/* Overtime Kept — the page is the pay stub.
   Layout: navy workwear ground; paper panels set like payroll stationery; hi-vis orange for the one action and the money you keep. */
/* Archivo (SIL Open Font License), self-hosted latin subset */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --navy: #1a2640;
  --navy-2: #22304f;
  --paper: #f3f4ef;
  --paper-2: #e7e9e1;
  --ink: #12151b;
  --ink-2: #3f4655;
  --on-navy: #f3f4ef;
  --on-navy-2: #b9c2d6;
  --hivis: #ff6a1a;
  --hivis-ink: #12151b;
  --good: #1f7a4d;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --step-0: 1.0625rem;
  --step-1: 1.375rem;
  --step-2: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --step-3: clamp(2.6rem, 1.4rem + 5.4vw, 5.75rem);

  --gutter: max(16px, min(4vw, 48px));
  --max: 1240px;
  --section: clamp(96px, 12vw, 176px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --focus: var(--hivis);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
::selection { background: var(--hivis); color: var(--hivis-ink); }
input { caret-color: var(--hivis); }
html { scrollbar-color: var(--navy) var(--paper-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.on-paper { --focus: var(--navy); }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section-paper2 { background: var(--paper-2); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 50; background: var(--hivis); color: var(--hivis-ink); padding: 8px 14px; }

/* ---------- Bar ---------- */
.bar { background: var(--navy); color: var(--on-navy); position: sticky; top: 0; z-index: 20; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.wordmark { font-weight: 800; font-variation-settings: "wdth" 75; font-size: 1.25rem; letter-spacing: -0.01em; text-decoration: none; }
.bar nav { display: flex; align-items: center; gap: 28px; font-size: 0.98rem; }
.bar nav a { text-decoration: none; color: var(--on-navy-2); transition: color 160ms ease; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--on-navy); }
.bar nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--hivis); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hivis); color: var(--hivis-ink); border: 0; border-radius: 0;
  font: 700 1rem/1 var(--font); padding: 14px 20px; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #ff7d36; } }
.bar .btn { padding: 11px 16px; }
.bar nav a.btn { color: var(--hivis-ink); }
/* Phones: the calculators sit in a swipeable row under the wordmark; the header scrolls away to save space. */
@media (max-width: 760px) {
  html { scroll-padding-top: 16px; }
  .bar { position: static; }
  .bar .wrap { flex-wrap: wrap; row-gap: 0; min-height: 0; padding-top: 14px; }
  .bar nav { width: 100%; gap: 14px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .bar nav::-webkit-scrollbar { display: none; }
  .bar nav a { white-space: nowrap; padding: 12px 4px; font-size: 0.95rem; }
  .bar nav a.btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--on-navy); padding-block: clamp(32px, 4vw, 56px) clamp(72px, 9vw, 128px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: clamp(32px, 5vw, 80px); align-items: start; }
.hero h1 {
  font-size: var(--step-3); font-weight: 850; font-variation-settings: "wdth" 72;
  line-height: 0.92; letter-spacing: -0.03em; margin: 0 0 32px; text-wrap: balance; max-width: 9ch;
}
.lede { font-size: var(--step-1); line-height: 1.4; color: var(--on-navy); max-width: 30ch; margin: 0 0 40px; }
.hero-terms { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; max-width: 36ch; color: var(--on-navy-2); }
.hero-terms b { color: var(--on-navy); font-weight: 700; }
@media (max-width: 1099px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-copy { display: contents; }
  .hero h1 { max-width: 12ch; order: 1; }
  .hero .lede { order: 2; }
  .hero .stub { order: 3; }
  .hero-terms { order: 4; margin-top: 40px; }
}

@media (min-width: 1100px) {
  .hero .wrap { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-areas: "h1 lede" "stub stub" "terms terms"; gap: 32px clamp(32px, 5vw, 80px); align-items: end; }
  .hero-copy { display: contents; }
  .hero h1 { grid-area: h1; max-width: none; margin: 0; font-size: clamp(3.2rem, 1.6rem + 2.8vw, 4.75rem); }
  .hero .lede { grid-area: lede; margin: 0; max-width: 34ch; }
  .hero .stub { grid-area: stub; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 8px; }
  .hero-terms { grid-area: terms; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; gap: 32px; margin-top: 8px; }
  .stub-out { display: flex; flex-direction: column; background: var(--paper-2); }
  .stub-out > .lines { margin-top: clamp(20px, 3vw, 28px); }
  .stub-out .check { margin-top: auto; }
  .stub .out-checks { margin: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px) 0; }
  .seg { gap: 5px; }
  .seg label { padding: 0 11px; font-size: 0.9rem; }
}
@media (min-width: 1100px) and (max-height: 920px) {
  .hero { padding-block: 24px 64px; }
  .hero .wrap { row-gap: 20px; }
  .hero h1 { font-size: clamp(3rem, 1.4rem + 2.6vw, 4.2rem); }
  .hero .lede { font-size: 1.15rem; }
  .stub-body { gap: 14px; padding-block: 20px; }
  .seg label { min-height: 40px; }
  .input input { padding-block: 10px; }
  .lines th, .lines td { padding-block: 6px; }
  .check { padding-block: 18px; }
  .check-amount { font-size: clamp(2.6rem, 1.6rem + 2.4vw, 3.6rem); }
  .check-words { margin-top: 8px; }
}

/* ---------- The stub (calculator) ---------- */
.stub { background: var(--paper); color: var(--ink); --focus: var(--navy); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.55); }
.stub-body { padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px); display: grid; gap: 18px; }
.stub-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.stub-title { font-weight: 800; font-variation-settings: "wdth" 80; font-size: 1.35rem; letter-spacing: -0.01em; margin: 0; }
.stub fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.stub legend, .field-label { font-weight: 650; font-size: 0.95rem; margin-bottom: 8px; padding: 0; color: var(--ink); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px;
  background: var(--paper-2); cursor: pointer; font-size: 0.95rem; font-weight: 600;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.seg label:active { transform: scale(0.97); }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--navy); color: var(--on-navy); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; }
.seg.small label { min-height: 38px; padding: 0 12px; font-size: 0.9rem; }

.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields.one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 520px) { .fields, .fields.two { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field .hint { font-size: 0.9rem; color: var(--ink-2); line-height: 1.35; }
fieldset > .hint { display: block; margin-top: 8px; font-size: 0.9rem; color: var(--ink-2); line-height: 1.35; }
.input { min-width: 0; display: flex; align-items: center; background: #fff; border: 1.5px solid #9aa1ad; transition: border-color 160ms ease; }
.input:focus-within { border-color: var(--navy); outline: 3px solid var(--navy); outline-offset: 1px; }
.input span { padding-left: 12px; color: var(--ink-2); font-weight: 600; }
.input span.unit { padding: 0 12px 0 0; }
.vin-row { display: flex; gap: 8px; }
.vin-row .input { flex: 1; min-width: 0; }
.vin-row .input input { text-transform: uppercase; letter-spacing: 0.04em; }
.vin-row .input input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 0.95rem; }
@media (max-width: 520px) { .vin-row { flex-wrap: wrap; } .vin-row .btn { width: 100%; } }
.vin-row .btn { background: var(--navy); color: var(--on-navy); }
.vin-row .btn:disabled { opacity: 0.6; cursor: progress; }
@media (hover: hover) and (pointer: fine) { .vin-row .btn:hover { background: var(--navy-2); } }
.vin-result { margin: 8px 0 0; font-size: 0.9rem; color: var(--ink-2); white-space: pre-line; }
.vin-result.good { color: var(--good); font-weight: 650; }
.vin-result.bad { color: #a8321a; font-weight: 650; }
.vin-result.warn { color: var(--ink); font-weight: 600; }
.checks { display: grid; gap: 10px; }
.checks label { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; cursor: pointer; }
.checks input, .seg input[type=checkbox] { accent-color: var(--navy); }
.checks input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.seg label.is-disabled { opacity: 0.45; cursor: not-allowed; }
.input input { flex: 1 1 0; width: 100%; min-width: 0; border: 0; background: transparent; font: 600 1.1rem/1 var(--font); padding: 13px 12px; color: var(--ink); font-variant-numeric: tabular-nums; }
.input input:focus { outline: none; }
.input input::-webkit-outer-spin-button, .input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.method-panel[hidden] { display: none; }

.lines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lines th, .lines td { padding: 8px 0; border-top: 1px solid #c9ccc2; text-align: left; font-weight: 500; vertical-align: top; }
.lines td { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 16px; }
.lines tr.key th, .lines tr.key td { font-weight: 800; }
.lines small { display: block; font-weight: 500; color: var(--ink-2); font-size: 0.88rem; margin-top: 2px; }

/* the tear-off: a paycheck with notches cut where it separates from the stub */
.check {
  background: var(--hivis); color: var(--hivis-ink); padding: clamp(22px, 3vw, 32px);
  border-top: 4px dotted rgba(18, 21, 27, 0.55);
  -webkit-mask: radial-gradient(circle 13px at 0 0, #0000 97%, #000 100%) top left / 51% 100% no-repeat,
                radial-gradient(circle 13px at 100% 0, #0000 97%, #000 100%) top right / 51% 100% no-repeat;
          mask: radial-gradient(circle 13px at 0 0, #0000 97%, #000 100%) top left / 51% 100% no-repeat,
                radial-gradient(circle 13px at 100% 0, #0000 97%, #000 100%) top right / 51% 100% no-repeat;
}
.check-to { font-weight: 650; font-size: 0.95rem; margin: 0 0 6px; }
.check-amount { font-weight: 850; font-variation-settings: "wdth" 75; font-size: clamp(3rem, 2rem + 4vw, 4.6rem); line-height: 0.95; letter-spacing: -0.03em; margin: 0; }
.check-words { margin: 14px 0 0; padding-bottom: 6px; border-bottom: 2px solid rgba(18, 21, 27, 0.6); font-weight: 600; font-size: 1rem; }
.check-memo { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 12px 0 0; font-size: 0.9rem; }
.check.writing .check-words { animation: write 520ms var(--ease-out); }
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.stub .out-checks { margin: 20px clamp(20px, 3vw, 32px) 0; }
.stub fieldset.part legend { font-size: 0.95rem; }
.stub-out > .lines { width: calc(100% - 2 * clamp(20px, 3vw, 32px)); margin: 0 clamp(20px, 3vw, 32px) 20px; }
.stub-note { padding: 16px clamp(20px, 3vw, 32px) 22px; background: var(--hivis); font-size: 0.92rem; margin: 0; }
.stub-note:empty { display: none; }
.ineligible .check-amount { opacity: 0.55; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section h2 { font-size: var(--step-2); font-weight: 820; font-variation-settings: "wdth" 78; line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 28px; text-wrap: balance; max-width: 20ch; }
.section p { max-width: 64ch; }
.prose p { margin: 0 0 18px; }

/* the 1938 band: one archival photograph, large */
.photo-band { padding-block: var(--section) 0; }
.band-grid { display: grid; grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); gap: clamp(28px, 4vw, 64px); align-items: end; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.band-photo { margin: 0; }
.band-photo img { width: 100%; height: clamp(360px, 46vw, 720px); object-fit: cover; object-position: 60% 40%; }
.band-photo figcaption, .when-photo figcaption { font-size: 0.88rem; color: var(--ink-2); margin-top: 12px; max-width: 60ch; }
.band-text { padding-bottom: 8px; max-width: 30rem; }
.band-text h2 { font-size: var(--step-2); font-weight: 820; font-variation-settings: "wdth" 78; line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 24px; text-wrap: balance; }
.statement { font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); line-height: 1.35; margin: 0; max-width: 26ch; }
@media (max-width: 860px) {
  .band-grid { grid-template-columns: minmax(0, 1fr); }
}

/* how it works: the split rate */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split { margin: 8px 0 0; }
.split-bar { display: grid; grid-template-columns: 2fr 1fr; min-height: 132px; }
.split-bar > div { padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; }
.split-reg { background: var(--navy); color: var(--on-navy); }
.split-prem { background: var(--hivis); color: var(--hivis-ink); }
.split-bar b { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); font-weight: 850; font-variation-settings: "wdth" 75; letter-spacing: -0.02em; line-height: 1; }
.split-bar span { font-size: 0.95rem; font-weight: 600; }
.split figcaption { margin-top: 14px; color: var(--ink-2); font-size: 0.95rem; max-width: 52ch; }
.rules { width: 100%; border-collapse: collapse; margin-top: 56px; }
.rules th, .rules td { text-align: left; vertical-align: top; padding: 16px 0; border-top: 1px solid #c9ccc2; }
.rules th { width: 34%; padding-right: 24px; font-weight: 750; }
@media (max-width: 860px) { .how { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .rules th, .rules td { display: block; width: 100%; } .rules td { border-top: 0; padding-top: 0; } }

/* who qualifies: hi-vis field */
.field-hivis { background: var(--hivis); color: var(--hivis-ink); --focus: var(--navy); }
.qualify { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 80px); margin-top: 16px; }
.qualify h3 { font-size: var(--step-1); font-weight: 800; font-variation-settings: "wdth" 80; margin: 0 0 18px; }
.qualify ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.qualify li { padding-left: 30px; position: relative; max-width: 46ch; }
.qualify li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 14px; background: var(--ink); }
.qualify .no li::before { background: transparent; box-shadow: inset 0 0 0 3px var(--ink); }
.qualify.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
@media (max-width: 960px) { .qualify.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .qualify, .qualify.four { grid-template-columns: minmax(0, 1fr); } }

/* when: the time card */
.field-navy { background: var(--navy); color: var(--on-navy); }
.field-navy .section-intro { color: var(--on-navy-2); }
.timecard { margin-top: 40px; background: var(--paper); color: var(--ink); --focus: var(--navy); overflow-x: auto; }
.timecard table { width: 100%; min-width: 620px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.timecard th, .timecard td { text-align: left; padding: 18px 22px; vertical-align: top; border-top: 1px solid #c9ccc2; }
.timecard thead th { border-top: 0; font-size: 0.9rem; color: var(--ink-2); font-weight: 650; background: var(--paper-2); }
.timecard tbody th { font-size: 1.6rem; font-weight: 850; font-variation-settings: "wdth" 75; width: 120px; }
.timecard tr.now { background: #ffe2d0; }
.timecard tr.now th::after { content: "This season"; display: block; font-size: 0.8rem; font-weight: 700; font-variation-settings: "wdth" 100; color: var(--ink); margin-top: 4px; }

.when-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(32px, 5vw, 80px); align-items: end; }
.when-photo { margin: 0; }
.when-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.when-photo figcaption { color: var(--on-navy-2); padding-left: 0; }
@media (max-width: 760px) { .when-head { grid-template-columns: minmax(0, 1fr); } .when-photo { max-width: 420px; } }

/* what it doesn't change */
.unchanged { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: 24px; }
.unchanged div { padding-top: 4px; }
.unchanged h3 { font-size: var(--step-1); font-weight: 800; font-variation-settings: "wdth" 80; margin: 0 0 10px; line-height: 1.15; }
.unchanged p { margin: 0; }
@media (max-width: 860px) { .unchanged { grid-template-columns: minmax(0, 1fr); } }

/* faq */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); }
.faq details { border-top: 1px solid #c9ccc2; }
.faq details:last-child { border-bottom: 1px solid #c9ccc2; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font-weight: 750; font-size: 1.15rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 22px; color: var(--ink); }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); } }

/* footer: the back of the stub */
.foot { background: var(--navy); color: var(--on-navy-2); padding-block: 96px 40px; }
.foot-name { color: var(--on-navy); font-weight: 900; font-variation-settings: "wdth" 62; font-size: clamp(3.5rem, 15vw, 13rem); line-height: 0.82; letter-spacing: -0.035em; margin: 0 0 48px; }
.foot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; font-size: 0.92rem; }
.foot-grid h3 { color: var(--on-navy); font-size: 1rem; margin: 0 0 10px; }
.foot-grid p, .foot-grid ul { margin: 0; padding: 0; list-style: none; }
.foot-grid li + li { margin-top: 6px; }
.foot-grid a { color: var(--on-navy); text-decoration-color: rgba(243,244,239,.35); }
.foot-grid a:hover { text-decoration-color: var(--hivis); }
@media (max-width: 960px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Answer pages ---------- */
.hero.short { padding-block: clamp(40px, 6vw, 80px) clamp(48px, 6vw, 88px); }
.hero.short .wrap { display: block; }
.crumbs { font-size: 0.92rem; color: var(--on-navy-2); margin: 0 0 20px; }
.crumbs a { color: var(--on-navy-2); }
.hero.short h1 { font-size: clamp(2.3rem, 1.3rem + 4.2vw, 4.4rem); max-width: 18ch; margin-bottom: 28px; }
.answer { font-size: var(--step-1); line-height: 1.45; max-width: 46ch; margin: 0; }
.article { display: grid; grid-template-columns: minmax(0, 68ch) minmax(0, 320px); gap: clamp(32px, 6vw, 96px); justify-content: space-between; padding-block: clamp(56px, 7vw, 104px) var(--section); }
.article h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 820; font-variation-settings: "wdth" 80; line-height: 1.08; letter-spacing: -0.02em; margin: 56px 0 16px; text-wrap: balance; }
.article h2:first-child { margin-top: 0; }
.article p, .article li { max-width: 68ch; }
.article ul, .article ol { padding-left: 1.2em; display: grid; gap: 8px; }
.article table { width: 100%; border-collapse: collapse; margin: 20px 0 8px; font-variant-numeric: tabular-nums; }
.article th, .article td { text-align: left; padding: 12px 16px 12px 0; border-top: 1px solid #c9ccc2; vertical-align: top; }
.article thead th { font-size: 0.88rem; color: var(--ink-2); border-top: 0; }
.tablewrap { overflow-x: auto; }
.worked { background: var(--paper-2); padding: 22px 24px; margin: 20px 0; }
.worked p { margin: 0 0 8px; }
.worked p:last-child { margin: 0; font-weight: 750; }
.side { align-self: start; position: sticky; top: 96px; display: grid; gap: 28px; }
.side-card { background: var(--navy); color: var(--on-navy); padding: 26px; display: grid; gap: 14px; }
.side-card h2 { margin: 0; font-size: 1.4rem; font-weight: 800; font-variation-settings: "wdth" 80; line-height: 1.1; }
.side-card p { margin: 0; color: var(--on-navy-2); font-size: 0.95rem; }
.side-card .btn { justify-self: start; }
.side-links h2 { font-size: 1rem; margin: 0 0 10px; font-weight: 750; }
.side-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.faq-more { margin-top: 32px; }
.faq-more h3 { font-size: 1rem; margin: 0 0 12px; }
.faq-more ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.updated { color: var(--ink-2); font-size: 0.9rem; margin-top: 48px; }
@media (max-width: 960px) { .article { grid-template-columns: minmax(0, 1fr); } .side { position: static; } }

.foot-legal { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(243,244,239,.15); font-size: 0.88rem; }
.foot-legal a { color: var(--on-navy); text-decoration-color: rgba(243,244,239,.35); }
.foot-legal span { margin-left: auto; }
@media (max-width: 760px) { .foot-legal span { margin-left: 0; width: 100%; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lede, .hero-terms, .stub { animation: rise 700ms var(--ease-out) both; }
  .hero .lede { animation-delay: 70ms; }
  .hero-terms { animation-delay: 140ms; }
  .stub { animation-delay: 120ms; }
  html.js .reveal > * { transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
  html.js .reveal:not(.in) > * { opacity: 0; transform: translateY(22px); }
  html.js .reveal > *:nth-child(2) { transition-delay: 70ms; }
  html.js .reveal > *:nth-child(3) { transition-delay: 140ms; }
  html.js .reveal > *:nth-child(4) { transition-delay: 210ms; }
  .split-prem { transform-origin: left; }
  html.js .reveal.in .split-prem { animation: grow 700ms 250ms var(--ease-out) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .check.writing .check-words { animation: none; } }

/* compact segmented buttons inside the two-column desktop calculator (kept last so it wins the cascade) */
@media (min-width: 1100px) {
  .stub .seg { gap: 5px; }
  .stub .seg label { padding: 0 11px; font-size: 0.9rem; }
}
.stub-body { align-content: start; }

/* larger tap targets on phones */
@media (max-width: 760px) {
  .foot-legal a, .foot-grid a { display: inline-block; padding-block: 11px; }
  .seg.small label { min-height: 44px; }
  .bar .btn { min-height: 44px; }
  .wordmark { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- Share a result ---------- */
.share-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 14px clamp(20px, 3vw, 32px) 18px; font-size: 0.92rem; }
.share-btn { font: 650 0.92rem/1 var(--font); color: var(--navy); background: transparent; border: 1.5px solid var(--navy); padding: 0 14px; min-height: 44px; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.share-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .share-btn:hover { background: rgba(26, 38, 64, 0.08); } }
.share-embed { color: var(--ink-2); }
.share-status { color: var(--good); font-weight: 600; }
.share-status:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.share-url { flex: 1 1 100%; min-width: 0; font: 500 0.88rem/1.3 var(--font); padding: 10px 12px; border: 1.5px solid #9aa1ad; background: #fff; }

/* ---------- Embedded calculator (inside other sites' iframes) ---------- */
.embed-page { background: var(--paper); margin: 0; }
.embed .stub { box-shadow: none; animation: none; border: 1px solid #c9ccc2; }
@media (min-width: 760px) {
  .embed .stub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .embed .stub-out { display: flex; flex-direction: column; background: var(--paper-2); }
  .embed .stub-out > .lines { margin-top: clamp(20px, 3vw, 28px); }
  .embed .stub-out .check { margin-top: auto; }
  .embed .stub .out-checks { margin: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px) 0; }
}
.embed-credit { margin: 0; padding: 10px 14px; background: var(--navy); color: var(--on-navy-2); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.embed-credit a { color: var(--on-navy); font-weight: 700; }

/* ---------- The "embed a calculator" page ---------- */
.embed-pick { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: 460px; }
.embed-pick label { font-weight: 650; }
.embed-pick select { font: 500 1rem/1.2 var(--font); padding: 12px; border: 1.5px solid #9aa1ad; background: #fff; color: var(--ink); min-height: 48px; width: 100%; min-width: 0; }
.embed-code { width: 100%; font: 0.82rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 14px; border: 1.5px solid #9aa1ad; background: #fff; color: var(--ink); resize: vertical; }
.embed-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.embed-actions span { color: var(--good); font-weight: 600; }
.embed-preview { border: 1px dashed #9aa1ad; padding: 12px; background: #fff; }
.embed-preview iframe { display: block; width: 100%; height: 1150px; border: 0; }

/* ---------- Result helpers (share.js) ---------- */
.check-example { display: inline-block; margin: 0 0 12px; padding: 4px 8px; background: var(--hivis-ink); color: #fff; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.01em; }
.share-next { flex: 1 1 100%; font-weight: 700; color: var(--navy); text-underline-offset: 4px; padding: 6px 0; }
.share-trust { flex: 1 1 100%; margin: 0; font-size: 0.82rem; color: var(--ink-2); }
.peek {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30;
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; padding: 0 16px;
  background: var(--hivis); color: var(--hivis-ink); border: 0; font: 600 0.95rem/1.2 var(--font);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); cursor: pointer;
}
.peek[hidden] { display: none; }
.peek b { font-weight: 850; font-size: 1.1rem; }
.peek i { font-style: normal; font-weight: 800; }
.stub-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0; padding: 16px clamp(20px, 3vw, 32px) 4px; font-size: 0.88rem; color: var(--ink-2); }
.stub-cta .btn { background: var(--navy); color: var(--on-navy); }
.input select { flex: 1 1 0; width: 100%; min-width: 0; border: 0; background: transparent; font: 600 1.1rem/1.2 var(--font); color: var(--ink); padding: 12px; min-height: 48px; }
.input select:focus { outline: none; }
/* checkboxes styled as buttons get a visible box so they read as "check all that apply" */
.seg label:has(input[type=checkbox])::before { content: ""; width: 16px; height: 16px; margin-right: 8px; border: 2px solid currentColor; flex: none; box-sizing: border-box; }
.seg label:has(input[type=checkbox]:checked)::before { background: var(--hivis); border-color: var(--hivis); box-shadow: inset 0 0 0 2px var(--navy); }

/* second usability pass */
html.has-peek { scroll-padding-bottom: var(--peek-room, 88px); }
.peek span, .peek b { white-space: nowrap; }
@media (max-width: 760px) {
  .bar nav { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 28px; }
}
@media (max-width: 400px) {
  .bar nav { gap: 16px; }
  .bar nav a { font-size: 0.9rem; }
  .hero h1 { font-size: 2.4rem; }
  .hero .lede { font-size: 1.05rem; margin-bottom: 24px; }
}
@media (min-width: 761px) and (max-width: 1099px) { .bar nav a:not(.btn) { padding-block: 12px; } }
.fields .field + .field, .fields > .field { min-width: 0; }
.checks .hint { display: block; font-size: 0.88rem; line-height: 1.4; color: var(--ink-2); margin: -2px 0 6px; padding-left: 32px; }

/* ---------- Mini calculator inside articles (tax brackets page) ---------- */
.mini-calc { display: grid; gap: 14px; padding: clamp(18px, 3vw, 26px); background: var(--paper-2); max-width: 560px; margin: 0 0 8px; }
.mini-row { display: grid; gap: 6px; }
.mini-row label { font-weight: 650; font-size: 0.95rem; }
.mini-out { display: grid; gap: 4px; padding: 16px 18px; background: var(--hivis); color: var(--hivis-ink); font-size: 1rem; }
.mini-out p { margin: 0; max-width: none; }
.mini-out b { font-weight: 800; }
.mini-note { margin: 0; font-size: 0.85rem; color: var(--ink-2); }

/* ---------- Refund schedule page ---------- */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.btn-ghost { background: transparent; color: var(--on-navy); box-shadow: inset 0 0 0 2px var(--on-navy-2); }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { background: rgba(243, 244, 239, 0.08); } }
.schedule td:first-child { font-weight: 650; white-space: nowrap; }
.schedule td { white-space: nowrap; }
.table-note { font-size: 0.92rem; color: var(--ink-2); }
.mini-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.mini-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.mini-out-note { font-size: 0.88rem; font-weight: 500; }

/* ---------- Third usability pass ---------- */
.h1-sub { display: block; font-size: 0.42em; font-weight: 700; letter-spacing: 0; margin-top: 10px; color: var(--on-navy-2); font-variation-settings: "wdth" 90; }
/* Refund schedule: each week becomes a card on phones, so no column is hidden off-screen */
@media (max-width: 600px) {
  .schedule thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .schedule, .schedule tbody, .schedule tr, .schedule td { display: block; width: 100%; }
  .schedule tr { padding: 12px 0; border-top: 1px solid #c9ccc2; }
  .schedule td { border: 0; padding: 3px 0; white-space: normal; display: flex; justify-content: space-between; gap: 12px; }
  .schedule td::before { content: attr(data-label); color: var(--ink-2); font-weight: 500; }
  .schedule td:first-child { font-size: 1.05rem; }
  .schedule td:first-child::before { content: "Accepted"; font-weight: 650; color: var(--ink); }
}
.jump { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 8px; font-weight: 650; }
.article tr.is-you td { background: var(--hivis); color: var(--hivis-ink); font-weight: 700; }
.hero-actions .btn + .hint-on-navy { color: var(--on-navy-2); font-size: 0.95rem; }
.mini-hint { font-size: 0.85rem; color: var(--ink-2); margin: 2px 0 0; }
.input select.input-unit { flex: 0 0 auto; width: auto; border-left: 1.5px solid #9aa1ad; font-size: 1rem; padding: 12px 10px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px clamp(24px, 4vw, 56px); }
.tools-grid h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 12px; }
.tools-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tools-grid a { color: var(--ink); text-underline-offset: 4px; }
/* Home timecard: stack each tax year on narrow phones instead of clipping the table */
@media (max-width: 600px) {
  .timecard table { min-width: 0; }
  .timecard thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .timecard tr, .timecard th, .timecard td { display: block; width: auto; }
  .timecard tbody th { border-top: 1px solid #c9ccc2; padding: 16px 18px 4px; }
  .timecard td { border-top: 0; padding: 6px 18px; }
  .timecard td:last-child { padding-bottom: 16px; }
  .timecard td::before { display: block; font-size: 0.82rem; font-weight: 650; color: var(--ink-2); }
  .timecard td:nth-of-type(1)::before { content: "When you claim it"; }
  .timecard td:nth-of-type(2)::before { content: "Where the number comes from"; }
}

/* Line chart (average refund page): a wide and a narrow drawing; the narrow one shows on phones */
.chart { margin: 24px 0 8px; --s26: #eb6834; --s25: #2a78d6; }
.chart figcaption { font-size: 0.95rem; margin-bottom: 6px; }
.ch-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-2); font-size: 0.9rem; margin: 0 0 8px; }
.ch-legend span, .ch-tip span { display: inline-flex; align-items: center; gap: 6px; }
.k { display: inline-block; width: 16px; height: 3px; border-radius: 2px; }
.k26 { background: var(--s26); } .k25 { background: var(--s25); }
.ch-box { position: relative; }
.chart svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.chart svg:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.ch-narrow { display: none !important; }
.ch-grid { stroke: #d9dbd2; stroke-width: 1; }
.ch-tick { fill: var(--ink-2); font: 500 12px var(--font); font-variant-numeric: tabular-nums; }
.ch-narrow .ch-tick { font-size: 14px; }
.ch-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-line.ch-26 { stroke: var(--s26); } .ch-line.ch-25 { stroke: var(--s25); }
.ch-dot { stroke: var(--paper); stroke-width: 2; } .ch-dot.ch-26 { fill: var(--s26); } .ch-dot.ch-25 { fill: var(--s25); }
.ch-end { fill: var(--ink); font: 700 13px var(--font); font-variant-numeric: tabular-nums; }
.ch-narrow .ch-end { font-size: 14px; }
.ch-cross { stroke: var(--ink-2); stroke-width: 1; }
.ch-tip { position: absolute; top: 8px; display: flex; flex-direction: column; gap: 3px; background: var(--paper); border: 1px solid #c9ccc2; box-shadow: 0 4px 14px rgba(18,21,27,.12); padding: 8px 10px; font-size: 0.85rem; pointer-events: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ch-tip[hidden] { display: none; }
.ch-note { color: var(--ink-2); font-size: 0.88rem; margin: 6px 0 0; }
.cite code { display: block; background: var(--paper-2); padding: 12px 14px; font-size: 0.85rem; white-space: normal; overflow-wrap: anywhere; }
.article td { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .ch-wide { display: none !important; }
  .ch-narrow { display: block !important; }
  /* on phones the readout sits under the chart instead of covering it */
  .ch-tip { position: static; flex-direction: row; flex-wrap: wrap; gap: 2px 14px; box-shadow: none; white-space: normal; margin-top: 8px; }
  .ch-tip b { flex-basis: 100%; }
  .data-table th, .data-table td { padding-right: 10px; font-size: 0.9rem; }
  .data-table td { white-space: nowrap; }
  .data-table td:first-child { white-space: normal; }
}
@media (max-width: 360px) { .data-table th, .data-table td { padding-right: 6px; font-size: 0.82rem; } }

.share-next { display: inline-flex; align-items: center; min-height: 44px; }

[hidden] { display: none !important; }

/* Retire Kept additions */
article p, article li { overflow-wrap: anywhere; }
.stub-year { font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.scroll-cue { display: none; font-size: 0.85rem; color: var(--ink-2); margin-bottom: 4px; }
@media (max-width: 700px) {
  .scroll-cue { display: block; }
  .foot ul a, .foot-legal a { display: inline-flex; align-items: center; min-height: 44px; }
  .skip:focus { min-height: 44px; display: inline-flex; align-items: center; }
}
