/* Self-hosted Libre Franklin (SIL Open Font License, see assets/fonts/OFL-LICENSE.txt) */
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/libre-franklin-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/libre-franklin-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/libre-franklin-latin-600-normal.woff2") format("woff2"); }

/* Adjudix website. Light theme in the logo colors: navy and teal, with extrapolated neutrals.
   Layout: one reading column on off-white, pale teal panels for summaries, navy for actions.
   Dark mode is intentionally not offered: the brand guide says it needs separate review. */
:root {
  color-scheme: light;
  /* Reference tokens. Navy and teal come from the logo files in brand/; the rest
     are extrapolated from them and checked for WCAG 2.2 AA contrast. */
  --navy: #0B2545;        /* logo A. White on navy 15.4:1 */
  --navy-deep: #071A33;   /* hover */
  --teal: #1B998B;        /* logo check. 3.3:1 on page: graphics and rules only, never text */
  --teal-light: #2EC4B6;  /* reverse-logo check. 7.1:1 on navy */
  --teal-deep: #0B6B60;   /* teal for text and numbers. 6.1:1 on page */
  --mist: #E7F1F0;        /* pale teal panels */
  --page: #F7F9FA;        /* cool off-white */
  --slate: #4A5B6E;       /* secondary text. 6.6:1 on page */
  --steel: #6B7C8F;       /* form borders. 4.1:1 on page */
  --haze: #C5D3DB;        /* hairline rules */
  --mist-on-navy: #A9BCCF;/* secondary text on navy. 7.9:1 */
  --clay: #B76548;        /* warm accent from the original palette. 4.0:1 on page: graphics and large text only */
  --clay-deep: #9A4A30;   /* clay for small text. 5.9:1 on page */
  --coral: #E07A5F;       /* warm accent on navy. 5.2:1 */
  /* Semantic tokens */
  --text-primary: #13233A;
  --text-secondary: var(--slate);
  --surface-page: var(--page);
  --surface-raised: #FFFFFF;
  --surface-subtle: var(--mist);
  --border-control: var(--steel);
  --rule: var(--haze);
  --action-primary: var(--navy);
  --action-primary-hover: var(--navy-deep);
  --action-on-primary: #FFFFFF;
  --accent: var(--teal);
  --accent-text: var(--teal-deep);
  --focus-ring: var(--teal-deep);
  /* Type */
  --font-sans: "Libre Franklin", "Noto Sans", Arial, sans-serif;
  --step--1: 0.9375rem;  /* 15px supporting text */
  --step-0: 1.125rem;    /* 18px body */
  --step-1: 1.375rem;
  --step-2: 1.75rem;     /* 28px */
  --step-3: clamp(2rem, 4.5vw, 3.25rem);
  /* Space, 8px rhythm */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --radius-control: .25rem;
  --radius-panel: .5rem;
  --measure: 40rem;
  --wide: 68rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.55;
  font-weight: 400;
}
img, svg { max-width: 100%; }
a { color: var(--action-primary); text-underline-offset: .15em; }
a:hover { color: var(--action-primary-hover); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; font-weight: 600; margin: 0; }
h1 { font-size: var(--step-3); letter-spacing: -0.01em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.25rem; }
li + li { margin-top: var(--space-2); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--surface-raised); padding: var(--space-2) var(--space-4); z-index: 50; }
.skip-link:focus { left: var(--space-4); }

/* Page gutter: set once on each band's inner wrapper */
.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--space-4); }
.stack > * + * { margin-top: var(--space-6); }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface-page); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--surface-page);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; gap: var(--space-6); padding-block: var(--space-3); max-width: 75rem; }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--text-primary); text-decoration: none; font-weight: 600; font-size: 1.25rem; min-height: 44px; }
.brand img { width: 130px; height: auto; display: block; }
.site-nav { display: flex; gap: var(--space-6); margin-left: auto; align-items: center; }
.site-nav a { color: var(--text-primary); text-decoration: none; font-size: var(--step--1); font-weight: 500; padding-block: var(--space-2); white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--action-primary); text-decoration: underline; }
.nav-toggle { display: none; }
@media (max-width: 980px) {
  .site-nav .nav-link { display: none; }
  .site-nav.open { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface-page); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-2) max(20px, env(safe-area-inset-right, 0px)) var(--space-4) max(20px, env(safe-area-inset-left, 0px)); }
  .site-nav.open .nav-link { display: block; padding-block: var(--space-3); }
  .nav-toggle { display: inline-flex; margin-left: auto; align-items: center; min-height: 44px; min-width: 44px; padding: 0 var(--space-3); background: none; border: 1px solid var(--border-control); border-radius: var(--radius-control); font: inherit; font-size: var(--step--1); color: var(--text-primary); cursor: pointer; }
  .site-nav { margin-left: 0; }
  .site-nav .btn { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-control); border: 2px solid var(--action-primary);
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--action-primary); color: var(--action-on-primary); }
.btn-primary:hover { background: var(--action-primary-hover); border-color: var(--action-primary-hover); color: var(--action-on-primary); }
.btn-secondary { background: var(--surface-raised); color: var(--action-primary); }
.btn-secondary:hover { background: var(--surface-subtle); color: var(--action-primary-hover); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.note { font-size: var(--step--1); color: var(--text-secondary); }

/* Sections */
.band { padding-block: var(--space-12); }
.band + .band { border-top: 1px solid var(--rule); }
.band-subtle { background: var(--surface-subtle); }
.eyebrow { font-size: var(--step--1); font-weight: 600; color: var(--text-secondary); letter-spacing: .02em; }
.lede { font-size: var(--step-1); line-height: 1.45; color: var(--text-primary); }

/* Home hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--space-12); align-items: center; }
.hero .copy > * + * { margin-top: var(--space-4); }
.hero .btn-row { margin-top: var(--space-6); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); } }

/* Illustrative work list: the subject's own artifact */
.worklist { background: var(--surface-raised); border: 1px solid var(--rule); border-radius: var(--radius-panel); margin: 0; }
.worklist header { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: var(--space-4); font-size: var(--step--1); font-weight: 600; }
.worklist .tag { font-weight: 500; color: var(--text-secondary); }
.worklist ol { list-style: none; padding: 0; margin: 0; }
.worklist li { margin: 0; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: var(--space-3); align-items: baseline; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--surface-subtle); font-size: var(--step--1); }
.worklist li:last-child { border-bottom: 0; }
.worklist .code { font-weight: 600; font-variant-numeric: tabular-nums; }
.worklist .days { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.worklist .days.soon { color: #8A2E1C; } /* deadline warning, 8.0:1 on page */
.worklist .what { color: var(--text-secondary); }
.worklist figcaption { padding: var(--space-3) var(--space-4); font-size: .875rem; color: var(--text-secondary); border-top: 1px solid var(--rule); }

/* Three steps (Home): same green rule on each, number badge beside the text */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); margin-top: var(--space-8); }
.steps li { margin: 0; padding-top: var(--space-4); border-top: 3px solid var(--action-primary); display: flex; gap: var(--space-3); align-items: flex-start; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Number badge, shared by steps and stages */
.badge { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--action-primary); color: var(--action-on-primary); font-weight: 600; font-size: 1rem; line-height: 1; font-variant-numeric: tabular-nums; }

/* Stages: numbered vertical sequence with a connecting rule */
.stages { list-style: none; padding: 0; margin: 0; }
.stages > li { position: relative; display: flex; gap: var(--space-4); margin: 0; padding-bottom: var(--space-6); }
.stages > li:last-child { padding-bottom: 0; }
.stages > li:not(:last-child)::before { content: ""; position: absolute; left: calc(1rem - 1px); top: 2.25rem; bottom: .25rem; width: 2px; background: var(--rule); }
.stages h3 { font-size: var(--step-1); padding-top: .2rem; }
.stages .meta { font-size: var(--step--1); color: var(--text-secondary); font-weight: 500; margin-top: var(--space-1); }
.stages h3 + p, .stages .meta + p { margin-top: var(--space-2); }
.stages.compact h3 { font-size: 1.0625rem; padding-top: .3rem; }
.stages.compact > li { padding-bottom: var(--space-4); }

/* Panels and callouts */
.panel { background: var(--surface-subtle); border-radius: var(--radius-panel); padding: var(--space-6); }
.panel-raised { background: var(--surface-raised); border: 1px solid var(--rule); border-radius: var(--radius-panel); padding: var(--space-6); }
.callout { border-left: 4px solid var(--action-primary); background: var(--surface-raised); padding: var(--space-4) var(--space-6); border-radius: 0 var(--radius-panel) var(--radius-panel) 0; }
.callout strong { display: block; font-size: var(--step-1); margin-bottom: var(--space-2); }
.facts { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.facts li { margin: 0; display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: var(--space-4); }
.facts b { font-weight: 600; }
@media (max-width: 560px) { .facts li { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* Forward strip */
.forward .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); }
.forward h2 { font-size: var(--step-1); }

/* Mobile action bar on Home */
.action-bar { display: none; }
@media (max-width: 640px) {
  .has-action-bar { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .action-bar {
    display: flex; gap: var(--space-2);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    background: var(--surface-page); border-top: 1px solid var(--rule);
    padding: var(--space-3) max(16px, env(safe-area-inset-right, 0px)) calc(var(--space-3) + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  }
  .action-bar .btn { flex: 1 1 0; padding-inline: var(--space-2); font-size: .9375rem; }
}

/* FAQ: question left, answer right on wide screens */
.faq { margin: 0; }
.faq > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-8); padding-block: var(--space-6); border-top: 1px solid var(--rule); }
.faq > div:last-child { border-bottom: 1px solid var(--rule); }
.faq dt { font-weight: 600; font-size: var(--step-1); line-height: 1.3; }
.faq dd { margin: 0; }
@media (max-width: 760px) { .faq > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); } }

/* Two-column helpers */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); }
@media (max-width: 760px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Team */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); margin-top: var(--space-8); }
.person h3 { font-size: var(--step-1); }
.person .role { color: var(--text-secondary); font-size: var(--step--1); font-weight: 500; margin-top: var(--space-1); }
.person p + p { margin-top: var(--space-3); }
.person { margin: 0; }
.person figcaption > * + * { margin-top: var(--space-3); }
.person figcaption .role { margin-top: var(--space-1); }
.person .photo { display: block; width: 160px; height: 160px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; margin-bottom: var(--space-6); background: var(--surface-subtle); border: 4px solid var(--surface-page); box-shadow: 0 0 0 3px var(--action-primary); }
.photo-initials { display: flex !important; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 600; color: var(--action-primary); letter-spacing: .02em; }
.profile-link { font-weight: 500; }
@media (max-width: 860px) { .people { grid-template-columns: minmax(0, 1fr); } }

/* Checklist */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.05rem; height: 1.05rem; border: 2px solid var(--border-control); border-radius: 3px; background: var(--surface-raised); }
.byline { font-size: var(--step--1); color: var(--text-secondary); }
.disclosure { font-size: var(--step--1); color: var(--text-secondary); border-left: 3px solid var(--accent); padding-left: var(--space-3); }

/* Forms */
.form { display: grid; gap: var(--space-6); max-width: 38rem; }
.field { display: grid; gap: var(--space-2); }
.field label, .field legend { font-weight: 600; font-size: 1rem; }
.field .help { font-size: var(--step--1); color: var(--text-secondary); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text-primary); background: var(--surface-raised);
  border: 1px solid var(--border-control); border-radius: var(--radius-control);
  padding: var(--space-3); min-height: 48px; width: 100%;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.choice { display: flex; gap: var(--space-3); align-items: flex-start; min-height: 32px; }
.choice input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--action-primary); flex: none; }
.field .error, .form > .form-section .error { color: #8A2E1C; font-size: var(--step--1); font-weight: 500; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); }
@media (max-width: 560px) { .form-row-2 { grid-template-columns: minmax(0, 1fr); } }

/* Footer: logo navy. Off-white on navy is 14.6:1; mist on navy 7.9:1. */
.site-footer { background: var(--navy); color: var(--page); padding-block: var(--space-12); margin-top: 0; font-size: var(--step--1); }
.band:last-child { border-bottom: 0; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-8); }
.site-footer .tagline { font-size: var(--step-1); font-weight: 600; color: #FFFFFF; }
.site-footer .descriptor { margin-top: var(--space-2); max-width: 32rem; }
.site-footer .legal { color: var(--mist-on-navy); margin-top: var(--space-4); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-top: var(--space-2); }
.site-footer a, .site-footer button.linklike { color: var(--page); }
.site-footer a:hover, .site-footer button.linklike:hover { color: var(--teal-light); }
.site-footer :focus-visible { outline-color: var(--teal-light); }
.site-footer button.linklike { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: .15em; cursor: pointer; min-height: 24px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Consent banner */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface-raised); border-top: 2px solid var(--action-primary); }
.consent .wrap { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; padding-block: var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); }
.consent p { max-width: 42rem; font-size: var(--step--1); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print {
  .site-header, .site-footer, .action-bar, .consent, .no-print { display: none !important; }
  body { background: #fff; }
}

/* Header button keeps button colors (overrides the nav link rule above) */
.site-nav a.btn-primary, .site-nav a.btn-primary:hover { color: var(--action-on-primary); text-decoration: none; }
.action-bar .btn { white-space: nowrap; }
@media (max-width: 380px) { .action-bar .btn { font-size: .875rem; } }

/* Page heads and wide sections: text uses the full page width on desktop
   while each line stays a readable length. */
.page-head .wrap > * + * { margin-top: var(--space-4); }
.page-head h1 { max-width: 56rem; }
.page-head .lede { max-width: 52rem; }
.page-head .btn-row { margin-top: var(--space-6); }
.page-head .summary { margin-top: var(--space-8); }
.sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: var(--space-8) var(--space-12); align-items: start; }
.sec > h2 { position: sticky; top: 6rem; }
.sec-body { max-width: 46rem; }
.sec-body > * + * { margin-top: var(--space-4); }
.sec-body > h3 { margin-top: var(--space-8); }
.sec-body > .stages, .sec-body > .btn-row, .sec-body > .callout, .sec-body > .split { margin-top: var(--space-6); }
@media (max-width: 860px) {
  .sec { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .sec > h2 { position: static; }
}
.tight { margin-top: var(--space-3); }
.summary .facts { margin-top: var(--space-4); }
.summary .facts li { padding-top: var(--space-3); border-top: 1px solid rgba(11, 37, 69, .15); }
.summary .facts li:first-child { padding-top: 0; border-top: 0; }

/* Calculator */
.calc { display: grid; gap: var(--space-6); margin-top: var(--space-6); }
.affixed { display: flex; align-items: stretch; }
.affixed input { flex: 1 1 auto; min-width: 0; }
.affix { display: inline-flex; align-items: center; padding: 0 var(--space-3); background: var(--surface-subtle); border: 1px solid var(--border-control); font-weight: 600; color: var(--text-secondary); }
.affix:first-child { border-right: 0; border-radius: var(--radius-control) 0 0 var(--radius-control); }
.affix:last-child { border-left: 0; border-radius: 0 var(--radius-control) var(--radius-control) 0; }
.affix:first-child + input { border-radius: 0 var(--radius-control) var(--radius-control) 0 !important; }
.affixed input:not(:last-child) { border-radius: var(--radius-control) 0 0 var(--radius-control) !important; }
details.more > summary { cursor: pointer; font-weight: 600; color: var(--action-primary); min-height: 44px; display: flex; align-items: center; }
details.more[open] > summary { margin-bottom: var(--space-4); }
.calc .error { color: #8A2E1C; font-size: var(--step--1); font-weight: 500; }
.calc-result { background: var(--surface-raised); border: 1px solid var(--rule); border-radius: var(--radius-panel); padding: var(--space-6); }
.calc-result > * + * { margin-top: var(--space-4); }
.result-list { margin: 0; display: grid; gap: 0; }
.result-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding-block: var(--space-3); border-top: 1px solid var(--surface-subtle); }
.result-list > div:first-child { border-top: 0; }
.result-list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-list .key dt, .result-list .key dd { font-weight: 600; }
.result-list .key dd { font-size: var(--step-2); color: var(--action-primary); }
.result-list > div[hidden] { display: none; }

/* Apply page: form with a short "what happens next" panel beside it */
.apply-grid { display: grid; grid-template-columns: minmax(0, 38rem) minmax(0, 1fr); gap: var(--space-12); align-items: start; }
.apply-grid .form { max-width: none; }
.next-steps { position: sticky; top: 6rem; }
.next-steps > * + * { margin-top: var(--space-4); }
.next-steps h2 { font-size: var(--step-1); }
@media (max-width: 960px) { .apply-grid { grid-template-columns: minmax(0, 1fr); } .next-steps { position: static; } }

/* Estimator sliders and results table */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.calc fieldset.field { border: 0; padding: 0; margin: 0; display: grid; gap: var(--space-6); }
.calc fieldset.field > legend { margin-bottom: var(--space-4); padding: 0; }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.slider-head output { font-weight: 600; color: var(--action-primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.slider input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--action-primary); margin: 0; }
.calc .field input[type="number"] { max-width: 12rem; }
.result-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.result-table caption { text-align: left; font-weight: 600; font-size: var(--step-1); padding-bottom: var(--space-3); }
.result-table th, .result-table td { padding: var(--space-3) 0; border-top: 1px solid var(--surface-subtle); text-align: right; }
.result-table th[scope="row"], .result-table thead th:first-child { text-align: left; font-weight: 400; padding-right: var(--space-4); }
.result-table thead th { border-top: 0; font-size: var(--step--1); color: var(--text-secondary); font-weight: 600; padding-top: 0; }
.result-table td { font-weight: 600; padding-left: var(--space-4); white-space: nowrap; }
.result-table tr.key th, .result-table tr.key td { font-weight: 600; }
.result-table tr.key td { color: var(--action-primary); font-size: var(--step-1); }
.result-table tfoot th, .result-table tfoot td { border-top: 2px solid var(--navy); padding-top: var(--space-4); }

/* Estimator: results sit beside the inputs on wide screens so nothing needs scrolling */
.sec-wide { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
.sec-wide > h2 { position: static; }
.sec-wide > .sec-body { max-width: none; }
.sec-wide > .sec-body > p, .sec-wide > .sec-body > h3, .sec-wide > .sec-body > .btn-row { max-width: 46rem; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8) var(--space-12); align-items: start; margin-top: var(--space-6); }
.calc-grid .calc { margin-top: 0; }
.calc-grid .calc-result { position: sticky; top: 6rem; }
.calc-bar { display: none; }
@media (max-width: 960px) {
  .calc-grid { grid-template-columns: minmax(0, 1fr); }
  .calc-grid .calc-result { position: static; }
  .calc-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; justify-content: space-between; align-items: center; gap: var(--space-4);
    background: var(--action-primary); color: var(--action-on-primary); font-size: var(--step--1);
    padding: var(--space-3) max(16px, env(safe-area-inset-right, 0px)) calc(var(--space-3) + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .calc-bar.show { display: flex; }
  .calc-bar b { font-size: var(--step-1); font-variant-numeric: tabular-nums; }
}

/* Estimate page: calculator sits in the hero so it's visible without scrolling */
.estimate-head .calc-grid { margin-top: var(--space-8); }
.calc-next { background: var(--surface-subtle); border-radius: var(--radius-panel); padding: var(--space-4); }
.calc-next > * + * { margin-top: var(--space-3); }
@media (min-width: 981px) and (max-width: 1100px) { .site-nav { gap: var(--space-4); } .site-nav .btn { padding-inline: var(--space-4); } }

/* About: two founders, LinkedIn badge links, news list */
.people-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 52rem; }
@media (max-width: 760px) { .people-2 { grid-template-columns: minmax(0, 1fr); } }
.profile-link { display: inline-block; line-height: 0; border-radius: 4px; }
.profile-link img { width: 192px; height: auto; }
.news { list-style: none; padding: 0; margin: 0; }
.news li { margin: 0; padding-block: var(--space-4); border-top: 1px solid var(--rule); display: grid; gap: var(--space-1); }
.news li:last-child { border-bottom: 1px solid var(--rule); }
.news-meta { font-size: var(--step--1); color: var(--text-secondary); }
.news a { font-weight: 600; }
/* Checklist step names */
.step-names { padding-left: 1.5rem; }

/* Logo-color accents: teal for graphics and rules, deep teal for emphasized numbers and link hover */
a:hover { color: var(--accent-text); }
.steps li { border-top-color: var(--accent); }
.callout { border-left-color: var(--accent); }
.person .photo { box-shadow: 0 0 0 3px var(--accent); }
.slider-head output, .result-table tr.key td { color: var(--accent-text); }
.slider input[type="range"] { accent-color: var(--accent-text); }
.stages > li:not(:last-child)::before { background: var(--haze); }

/* Calculator results on phones: each measure on its own row, month and year side by side */
@media (max-width: 600px) {
  .calc-result { padding: var(--space-4); }
  .result-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .result-table, .result-table tbody, .result-table tfoot { display: block; }
  .result-table caption { display: block; }
  .result-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-4); padding-block: var(--space-3); border-top: 1px solid var(--surface-subtle); }
  .result-table tfoot tr { border-top: 2px solid var(--navy); }
  .result-table th[scope="row"] { grid-column: 1 / -1; padding: 0 0 var(--space-1); border: 0; }
  .result-table td, .result-table tfoot td { text-align: left; border: 0; padding: 0; white-space: normal; }
  .result-table td::before { content: attr(data-label); display: block; font-size: .8125rem; font-weight: 500; color: var(--text-secondary); }
  .result-table tfoot th, .result-table tfoot td { border-top: 0; padding-top: 0; }
}

/* Warm accent (clay): used sparingly, never for status or actions */
.steps li { border-top-color: var(--clay); }
.site-footer .tagline { color: var(--coral); }

/* News article */
.news-article .news-body { max-width: 44rem; margin-top: var(--space-8); }
.news-body > * + * { margin-top: var(--space-4); }
.news-body h2 { font-size: var(--step-1); margin-top: var(--space-8); }
.news-body blockquote { margin: var(--space-6) 0; padding: var(--space-4) var(--space-6); background: var(--surface-subtle); border-left: 4px solid var(--clay); border-radius: 0 var(--radius-panel) var(--radius-panel) 0; }
.news-body blockquote p { font-size: var(--step-1); line-height: 1.45; }
.news-body blockquote footer { margin-top: var(--space-2); font-size: var(--step--1); color: var(--text-secondary); }
.news-body .btn-row { margin-top: var(--space-8); }

/* Apply form sections */
.form-section { border: 0; border-top: 1px solid var(--rule); margin: 0; padding: var(--space-6) 0 0; display: grid; gap: var(--space-6); min-width: 0; }
.form-section > legend { float: left; width: 100%; padding: 0; margin: 0 0 var(--space-2); font-size: var(--step-1); font-weight: 600; color: var(--navy); }
.form-section > legend + * { clear: both; }

/* Apply form in three steps (JavaScript adds .is-stepped; without it all sections show) */
.form-section > legend:focus { outline: none; }
.step-progress { font-size: var(--step--1); font-weight: 600; color: var(--text-secondary); }
.step-nav { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.form.is-stepped .form-section { display: none; border-top: 0; padding-top: 0; }
.form.is-stepped .form-section.current { display: grid; }
.fit-note { background: var(--surface-subtle); border-left: 4px solid var(--clay); padding: var(--space-3) var(--space-4); border-radius: 0 var(--radius-panel) var(--radius-panel) 0; font-size: var(--step--1); }

/* Tap-to-open detail sections (pilot page) */
.sec-body > details.more { border-top: 1px solid var(--rule); }
.sec-body > details.more + details.more { margin-top: 0; }
.sec-body > details.more:last-child { border-bottom: 1px solid var(--rule); }
details.more > summary { list-style: none; gap: var(--space-3); padding-block: var(--space-2); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; display: inline-block; width: 1rem; text-align: center; font-weight: 600; }
details.more[open] > summary::before { content: "\2212"; }
.more-body { padding: 0 0 var(--space-6) calc(1rem + var(--space-3)); }
.more-body > * + * { margin-top: var(--space-3); }

/* Home: free tools */
.tool-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.tool-list li { margin: 0; }

/* Calculator: two result tables */
.calc-title { font-size: var(--step-1); }
.calc-result .result-table caption { font-size: 1rem; }
.calc-result .result-table + .result-table { margin-top: var(--space-6); }
