:root{
  --ink:#202123;
  --paper:#fff;
  --card:#fff;
  --surface:#f7f7f8;
  --surface-strong:#ececf1;
  --line:#e5e5e5;
  --line-strong:#d1d5db;
  --muted:#667085;
  --accent:#10a37f;
  --accent-dark:#087f62;
  --blue:#f4f7f6;
  --green:#ecfdf7;
  --header-height:72px;
  --shadow-sm:0 1px 2px rgba(16,24,40,.04),0 1px 3px rgba(16,24,40,.06);
  --shadow-md:0 12px 32px rgba(16,24,40,.08);
}

html{
  scroll-padding-top:calc(var(--header-height) + 24px);
}

body{
  min-width:320px;
  padding-top:var(--header-height);
  overflow-x:clip;
  background:var(--paper);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

::selection{
  background:#d1fae5;
  color:#111827;
}

a,button,input,select,textarea{
  -webkit-tap-highlight-color:transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible{
  outline:3px solid rgba(16,163,127,.28);
  outline-offset:3px;
}

.skip-link{
  z-index:1000;
  border-radius:10px;
  background:var(--ink);
  box-shadow:var(--shadow-md);
}

.site-header{
  position:fixed!important;
  z-index:900;
  inset:0 0 auto;
  width:100%;
  height:var(--header-height);
  max-width:none;
  margin:0;
  padding:0 max(28px,calc((100vw - var(--max))/2 + 28px));
  flex-wrap:nowrap;
  gap:24px;
  border-bottom:1px solid rgba(17,24,39,.09);
  background:rgba(255,255,255,.9);
  box-shadow:0 1px 10px rgba(16,24,40,.035);
  backdrop-filter:saturate(160%) blur(18px);
  -webkit-backdrop-filter:saturate(160%) blur(18px);
}

.brand{
  color:#111827;
  font-size:27px;
  font-weight:850;
  letter-spacing:-1.5px;
  white-space:nowrap;
}

.brand i:before{
  width:7px;
  height:7px;
  top:-1px;
  background:var(--accent);
  box-shadow:0 0 0 3px rgba(16,163,127,.1);
}

.brand small{
  color:#6b7280;
  border-color:var(--line);
  font-weight:700;
}

.site-nav{
  gap:4px;
  font-size:14px;
  font-weight:650;
}

.site-nav a{
  opacity:1;
  color:#4b5563;
  padding:9px 12px;
  border-radius:9px;
  transition:background-color .16s ease,color .16s ease;
}

.site-nav a:hover,
.site-nav a.active{
  color:#111827;
  background:var(--surface);
}

.site-nav .nav-search{
  border-color:var(--line);
  border-radius:9px;
  padding:8px 12px;
  background:#fff;
}

.menu-btn{
  min-width:44px;
  min-height:44px;
  align-items:center;
  justify-content:center;
  border-color:var(--line-strong);
  border-radius:10px;
  color:#344054;
  background:#fff;
  font-weight:700;
}

.eyebrow,
.tool-card>span,
.guide-grid>a>span,
.related-grid>a>span,
.search-results>a>span,
.steps b{
  color:var(--accent-dark);
}

.button{
  min-height:44px;
  border-color:#202123;
  border-radius:10px;
  padding:11px 18px;
  transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease;
}

.button.dark{
  background:#202123;
  border-color:#202123;
  color:#fff;
}

.button:hover{
  box-shadow:0 5px 14px rgba(16,24,40,.12);
}

.button.dark:hover{
  background:#111827;
}

.home-hero,
.page-hero,
.tool-hero,
.detail-hero,
.home-intro,
.tool-title{
  background:#fff;
}

.home-hero{
  padding-top:76px;
}

.home-hero h1,
.page-hero h1,
.tool-hero h1,
.detail-hero h1,
.home-intro h1,
.tool-title h1{
  color:#171717;
}

.lede,
.page-hero p,
.tool-title p,
.home-intro p{
  color:#5f6368;
}

.trust-card,
.guide-cta{
  background:#202123;
  border:1px solid #202123;
  border-radius:18px;
  box-shadow:var(--shadow-md);
}

.trust-card li:before{
  color:#6ee7b7;
}

.quick-wrap,
.section.tinted{
  background:var(--surface);
}

.quick-wrap{
  border:1px solid var(--line);
  border-radius:22px;
}

.section-intro p,
.section p{
  color:#5f6368;
}

.tool-card,
.guide-grid>a,
.related-grid>a,
.search-results>a,
.workflow-card,
.stat,
.admin-card{
  background:#fff;
  border-color:var(--line);
  border-radius:14px;
  box-shadow:var(--shadow-sm);
}

.tool-card,
.guide-grid>a,
.related-grid>a,
.search-results>a{
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}

.tool-card:hover,
.guide-grid>a:hover,
.related-grid>a:hover,
.search-results>a:hover{
  transform:translateY(-2px);
  border-color:#b9c0c8;
  box-shadow:0 10px 28px rgba(16,24,40,.08);
}

.tool-card.featured{
  background:#f1f7f5;
  border-color:#d7e9e3;
}

.hub-grid a{
  border-top-color:#cfd4d9;
  transition:border-color .16s ease;
}

.hub-grid a:hover{
  border-top-color:var(--accent);
}

.disclaimer,
.source-note{
  border-left-color:var(--accent);
  background:var(--surface);
  border-radius:0 12px 12px 0;
}

.breadcrumbs{
  color:#667085;
}

.breadcrumbs a:hover,
.inline-link:hover,
.prose a:not(.button):hover,
.site-footer a:hover{
  color:var(--accent-dark);
}

.privacy-note{
  background:var(--green);
  border:1px solid #cceade;
  border-radius:14px;
}

.calculator{
  background:#fff;
  border-color:var(--line);
  border-radius:18px;
  box-shadow:0 16px 40px rgba(16,24,40,.07);
}

.calc-status{
  color:var(--accent-dark);
}

.calculator input,
.calculator select,
.search-form input,
.form input,
.form textarea,
.stack input,
.stack textarea,
.stack select,
[data-growth] input,
[data-growth] textarea,
[data-workflow] input,
[data-workflow] textarea,
[data-workflow] select{
  min-height:46px;
  border-color:var(--line-strong);
  border-radius:10px;
  color:#202123;
  background:#fff;
  box-shadow:0 1px 2px rgba(16,24,40,.025);
}

.calculator input:focus,
.calculator select:focus,
.search-form input:focus,
.form input:focus,
.form textarea:focus,
.stack input:focus,
.stack textarea:focus,
.stack select:focus,
[data-growth] input:focus,
[data-growth] textarea:focus,
[data-workflow] input:focus,
[data-workflow] textarea:focus,
[data-workflow] select:focus{
  border-color:var(--accent);
  outline:3px solid rgba(16,163,127,.12);
  outline-offset:0;
}

.money-input{
  border-color:var(--line-strong);
  border-radius:10px;
}

.result-panel,
[data-workflow] .result,
[data-workflow] output.result{
  background:#202123;
  border-radius:14px;
  color:#fff;
}

.result-panel>div{
  border-color:#3e4046;
}

.result-note,
.rotation-summary>div,
.explain-grid article,
.direct-answer,
.topic-chips span,
.calendar-day.rest{
  background:var(--surface);
}

.calendar-day.work{
  background:#eef8f4;
  border-color:#cceade;
}

.explain-grid article{
  border-top-color:#cfd4d9;
}

.prose{
  color:#344054;
}

.prose p,
.prose li{
  color:#3f4650;
}

.prose a:not(.button){
  color:#087f62;
  text-decoration-color:rgba(8,127,98,.45);
}

.direct-answer{
  border:1px solid var(--line);
}

.toc{
  background:#fbfbfc;
  border-color:var(--line);
  border-radius:14px;
}

.toc a{
  color:#475467;
}

.toc a:hover{
  color:var(--accent-dark);
}

.faq-section details{
  border-color:var(--line);
}

.faq-section summary{
  color:#202123;
}

.table-scroll{
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  -webkit-overflow-scrolling:touch;
}

.table-scroll table{
  margin:0;
}

.table-scroll th{
  background:var(--surface);
}

.site-footer{
  width:100%;
  max-width:none;
  margin:0;
  padding:48px max(28px,calc((100vw - var(--max))/2 + 28px)) 56px;
  border-top:1px solid var(--line);
  background:var(--surface);
  color:#475467;
}

.site-footer strong{
  color:#202123;
}

.site-footer a{
  border-radius:4px;
}

.empty{
  background:var(--surface);
}

[id]{
  scroll-margin-top:calc(var(--header-height) + 24px);
}

@media(max-width:1050px){
  .site-header{
    padding-left:24px;
    padding-right:24px;
  }

  .site-nav{
    gap:1px;
  }

  .site-nav a{
    padding-left:9px;
    padding-right:9px;
  }

  .site-footer{
    grid-template-columns:repeat(3,minmax(0,1fr));
    padding-left:24px;
    padding-right:24px;
  }
}

@media(max-width:760px){
  :root{
    --header-height:64px;
  }

  .site-header{
    height:var(--header-height);
    padding:0 16px;
    flex-wrap:nowrap;
  }

  .brand{
    font-size:25px;
  }

  .menu-btn{
    display:inline-flex;
  }

  .site-nav{
    display:none;
    position:fixed;
    z-index:950;
    top:calc(var(--header-height) + 8px);
    left:12px;
    right:12px;
    max-height:calc(100dvh - var(--header-height) - 24px);
    overflow-y:auto;
    flex-direction:column;
    align-items:stretch;
    gap:2px;
    padding:10px;
    border:1px solid var(--line);
    border-radius:14px;
    background:rgba(255,255,255,.98);
    box-shadow:0 18px 48px rgba(16,24,40,.16);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
  }

  .site-nav.open{
    display:flex;
  }

  .site-nav a,
  .site-nav .nav-search{
    min-height:44px;
    display:flex;
    align-items:center;
    padding:11px 12px;
  }

  .home-hero,
  .page-hero,
  .tool-hero,
  .calculator-shell,
  .breadcrumbs,
  .explain-grid,
  .detail-hero,
  .prose,
  .home-intro,
  .tool-title{
    padding-left:18px;
    padding-right:18px;
  }

  .home-hero{
    padding-top:48px;
    gap:32px;
  }

  .home-hero h1,
  .page-hero h1,
  .tool-hero h1,
  .detail-hero h1{
    font-size:clamp(38px,12vw,52px);
    line-height:.98;
  }

  .home-intro h1,
  .tool-title h1{
    font-size:clamp(34px,10vw,46px);
  }

  .section{
    padding-left:18px;
    padding-right:18px;
  }

  .section.tinted{
    padding-left:18px;
    padding-right:18px;
  }

  .quick-wrap{
    margin-left:12px;
    margin-right:12px;
    padding-left:18px;
    padding-right:18px;
    border-radius:18px;
  }

  .tool-grid,
  .guide-grid,
  .related-grid,
  .explain-grid,
  .hub-grid,
  .calc-settings,
  .calc-settings.three{
    grid-template-columns:1fr;
  }

  .calculator{
    padding:18px;
    border-radius:15px;
  }

  .calc-head{
    align-items:flex-start;
  }

  .time-row{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .time-row>strong{
    grid-column:1/-1;
  }

  .time-row label:nth-of-type(3){
    grid-column:1;
  }

  .time-row output{
    grid-column:2;
    text-align:left;
  }

  .result-panel,
  .result-panel.three{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .result-panel>div{
    border-right:0;
    border-bottom:1px solid #3e4046;
  }

  .site-footer{
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:38px 18px 44px;
    gap:30px 22px;
  }

  .site-footer>div:first-child{
    grid-column:1/-1;
  }
}

@media(max-width:520px){
  .brand small{
    display:none;
  }

  .hero-actions,
  .calc-actions,
  .search-form>div{
    align-items:stretch;
    flex-direction:column;
  }

  .hero-actions .button,
  .calc-actions .button,
  .calc-actions button,
  .search-form button{
    width:100%;
  }

  .result-panel,
  .result-panel.three{
    grid-template-columns:1fr;
  }

  .site-footer{
    grid-template-columns:1fr;
  }

  .site-footer>div:first-child{
    grid-column:auto;
  }

  .calendar-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(prefers-reduced-motion:reduce){
  .site-nav,
  .tool-card,
  .guide-grid>a,
  .related-grid>a,
  .search-results>a,
  .button{
    transition:none!important;
  }
}

@media print{
  body{
    padding-top:0;
  }
}
/* Planning calculators: consistent controls, touch targets and stacked mobile forms. */
[data-planning] label{display:block;font-weight:600;margin-bottom:1rem}
[data-planning] input:not([type=checkbox]),[data-planning] textarea{display:block;width:100%;max-width:100%;min-width:0;min-height:44px;box-sizing:border-box;margin-top:.4rem;padding:.75rem;border:1px solid var(--line,#ddd);border-radius:10px;background:#fff;color:var(--ink,#222);font:inherit}
[data-planning] textarea{min-height:110px;resize:vertical}
[data-planning] fieldset{display:flex;flex-wrap:wrap;gap:.5rem 1rem;padding:1rem;border:1px solid var(--line,#ddd);border-radius:10px;margin:0 0 1.25rem;min-width:0}
[data-planning] fieldset label{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;margin:0;font-weight:500}
[data-planning] input[type=checkbox]{width:18px;height:18px;accent-color:#222}
[data-planning] button{min-height:44px;padding:.75rem 1rem;margin:.25rem .3rem .25rem 0;border:1px solid #222;border-radius:10px;background:#222;color:#fff;font:inherit;font-weight:600;cursor:pointer}
[data-planning] button[type=reset]{background:#fff;color:#222;border-color:#ddd}
[data-planning] button:disabled{opacity:.45;cursor:not-allowed}
[data-planning] :focus-visible{outline:3px solid #16866c;outline-offset:3px}
[data-planning] [data-result]{background:#f5f5f5;border:1px solid #e5e5e5;max-height:32rem;overflow:auto;line-height:1.7}
@media(max-width:650px){[data-planning] button{width:100%;margin:.3rem 0}[data-planning] .calc-settings{grid-template-columns:minmax(0,1fr)}}
