/*
  TARIFF CHANGES / SITE DESIGN SYSTEM (ChatGPT design 2026-11-22, implemented by Fable the same evening)
  Single, framework-free CSS for every page. Fonts: Source Serif 4 and IBM Plex Sans, loaded by a <link> in the page head.
  Sections 01-12 are the new system (the home page uses them in full). Section 13 restyles the class names the pages not yet
  redesigned still use (rate, notices, calculator, alerts, about, congress, guides, country, chapter) so they keep working
  with the new fonts, colours and tables until each gets its own pass. Reference copy of ChatGPT's files: Docs\ChatGPT design 2026-11-22\
*/

/* 01 / TOKENS - light */
:root {
  color-scheme: light;
  --font-text: 'IBM Plex Sans', Arial, sans-serif;
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-mono: ui-monospace, Consolas, 'SFMono-Regular', Menlo, monospace;
  --fs-2xs: .72rem;     /* 11.5px fine print */
  --fs-xs: .8125rem;    /* 13px captions */
  --fs-sm: .875rem;     /* 14px table text */
  --fs-base: 1rem;      /* 16px body */
  --fs-lg: 1.125rem;    /* 18px lead */
  --fs-xl: 1.375rem;    /* 22px section headings */
  --fs-2xl: 1.875rem;   /* 30px page headings on mobile */
  --fs-3xl: 2.5rem;     /* 40px page headings on desktop */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --radius-sm: 3px;
  --radius-md: 5px;
  --max-width: 1320px;
  --bg: #F4F6F6;
  --surface: #FFFFFF;
  --surface-subtle: #F7F9F9;
  --surface-accent: #EDF3F5;
  --ink: #18232E;
  --ink-secondary: #445462;
  --ink-muted: #586773;
  --border: #CED8DC;
  --border-strong: #AEBFC8;
  --navy: #132C42;
  --navy-hover: #204761;
  --navy-contrast: #FFFFFF;
  --link: #165474;
  --link-hover: #103C54;
  --accent: #91662A;         /* restrained editorial brass */
  --accent-tint: #F5EBDC;
  --positive: #226047;
  --positive-tint: #E9F3EE;
  --caution: #835016;
  --caution-tint: #F9F0E1;
  --danger: #933B30;
  --danger-tint: #FAEEEB;
  --focus: #176C9B;
  --shadow: 0 2px 12px rgb(19 44 66 / .04);
  /* names the older templates and scripts still use */
  --fg: var(--ink); --muted: var(--ink-muted); --line: var(--border); --card: var(--surface);
  --accent-fg: #FFFFFF; --warn: var(--caution-tint); --warn-fg: var(--caution); --tag: var(--surface-accent);
}

/* 02 / TOKENS - dark (system preference; an explicit data-theme="light" on <html> keeps light) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #10191F;
    --surface: #19252D;
    --surface-subtle: #202E36;
    --surface-accent: #263B48;
    --ink: #F0F4F5;
    --ink-secondary: #CDD9E0;
    --ink-muted: #B3C0C9;
    --border: #3B4E59;
    --border-strong: #617984;
    --navy: #0A2439;
    --navy-hover: #143654;
    --navy-contrast: #FFFFFF;
    --link: #99D2F2;
    --link-hover: #C4E6F7;
    --accent: #D9AC65;
    --accent-tint: #3A3024;
    --positive: #9BDFC2;
    --positive-tint: #1B362C;
    --caution: #F4C78C;
    --caution-tint: #3C3020;
    --danger: #F3AAA2;
    --danger-tint: #3B2827;
    --focus: #A1D9FF;
    --shadow: 0 4px 20px rgb(0 0 0 / .17);
  }
}

/* 03 / BASE + ACCESSIBILITY */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--fs-base); line-height: 1.5; }
button, input, select, textarea { font: inherit; color: var(--ink); }
button, select, summary { cursor: pointer; }
a { color: var(--link); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { color: var(--ink); background: var(--accent-tint); }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
.skip, .skip-link { position: absolute; z-index: 1000; left: 12px; top: -80px; background: var(--surface); padding: 10px 15px; }
.skip:focus, .skip-link:focus { top: 12px; }
.container { width: calc(100% - 48px); max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.eyebrow { margin: 0 0 var(--space-2); font-size: var(--fs-2xs); letter-spacing: .12em; font-weight: 700; text-transform: uppercase; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.small { font-size: var(--fs-sm); }
.numeric, .num, .data-stamp, .number-cell, .stat-number { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: 'tnum' 1, 'lnum' 1; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.banner { background: var(--caution-tint); color: var(--caution); border-bottom: 1px solid var(--border); padding: 10px 24px; font-size: var(--fs-sm); text-align: center; }

/* 04 / HEADER AND NAVIGATION */
.site-header { background: var(--surface); border-top: 4px solid var(--navy); border-bottom: 1px solid var(--border); position: relative; }
.site-header__inner { min-height: 83px; display: flex; gap: var(--space-6); align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-size: 1.7rem; line-height: 1; font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand { color: var(--ink); } }
.brand-mark { display: block; width: 6px; height: 29px; background: var(--accent); }
.brand:hover { color: var(--link); }
.primary-nav { display: flex; gap: 3px; align-items: center; flex-wrap: nowrap; justify-content: flex-end; }
.primary-nav a { display: inline-block; padding: 9px 10px; color: var(--ink-secondary); text-decoration: none; border-bottom: 2px solid transparent; font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a[aria-current='page'] { color: var(--link); border-bottom-color: var(--accent); }
.mobile-navigation { display: none; }
.mobile-navigation summary { padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-weight: 600; list-style: none; }
.mobile-navigation summary::-webkit-details-marker { display: none; }
.mobile-navigation__links { position: absolute; right: 24px; top: 72px; z-index: 30; width: min(290px, calc(100vw - 48px)); padding: 8px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); display: grid; }
.mobile-navigation__links a { padding: 9px 12px; text-decoration: none; }
.site-kicker { background: var(--navy); color: var(--navy-contrast); font-size: var(--fs-xs); }
.site-kicker__inner { display: flex; gap: var(--space-3); justify-content: space-between; padding: 8px 0; }
.site-kicker__inner > span:first-child { text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.site-kicker__inner > span:last-child { opacity: .9; }

/* 05 / PAGE STRUCTURE */
main { min-width: 0; }
.page-intro { padding: var(--space-8) 0 var(--space-6); }
.page-intro h1 { margin: 0 0 10px; max-width: 960px; font-family: var(--font-display); font-size: clamp(var(--fs-2xl), 3.1vw, var(--fs-3xl)); line-height: 1.12; letter-spacing: -.02em; font-weight: 600; }
.page-intro .lead { margin: 0; max-width: 1000px; color: var(--ink-secondary); font-size: var(--fs-lg); line-height: 1.57; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 298px; gap: var(--space-6); align-items: start; padding-bottom: var(--space-10); }
.primary-column, .sidebar { min-width: 0; display: grid; gap: var(--space-5); }
.panel, .side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.panel { padding: var(--space-6); }
.side-card { padding: var(--space-5); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-4); }
.section-head h2, .side-card h2, .panel > h2:first-child { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xl); line-height: 1.24; }
.section-head__note { font-size: var(--fs-xs); color: var(--ink-muted); }
.panel > h2:first-child { margin-bottom: var(--space-3); }
.panel p:last-child { margin-bottom: 0; }

/* 06 / FORMS, BUTTONS, CONTROLS */
label { display: inline-block; margin-bottom: 7px; color: var(--ink-secondary); font-weight: 600; font-size: var(--fs-sm); }
input.field, select.field, textarea.field,
input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]), select, textarea { width: 100%; min-height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--ink); background: var(--surface); }
input::placeholder, textarea::placeholder { color: var(--ink-muted); opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 3px solid var(--focus); outline-offset: 1px; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; }
.field-note { font-size: var(--fs-sm); margin: var(--space-3) 0 0; color: var(--ink-muted); }
.lookup-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.lookup-form > div:first-child { flex: 1 1 360px; min-width: 220px; }
.lookup-form > div:nth-child(2) { flex: 0 1 205px; min-width: 160px; }
.lookup-form .form-action { flex: 0 0 100%; width: 100%; align-self: flex-end; }
.lookup-form label { display: block; }
.btn { display: inline-flex; justify-content: center; align-items: center; text-align: center; gap: var(--space-2); min-height: 44px; padding: 10px 17px; background: var(--navy); color: var(--navy-contrast); border: 1px solid var(--navy); border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; line-height: 1.3; cursor: pointer; }
.btn:hover { text-decoration: none; background: var(--navy-hover); color: #FFFFFF; border-color: var(--navy-hover); }
.btn--primary { background: var(--navy); color: var(--navy-contrast); border-color: var(--navy); }
.btn.ghost, .btn--small, .btn--outline { background: var(--surface); color: var(--link); border-color: var(--border-strong); }
.btn.ghost:hover, .btn--small:hover, .btn--outline:hover { background: var(--surface-accent); color: var(--link-hover); border-color: var(--link); }
.btn--small { min-height: 35px; padding: 7px 12px; font-size: var(--fs-sm); }
.search-result-list, .results { margin: 8px 0 0; padding: 0; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.results:empty { display: none; }
.search-result-list li + li, .results li + li { border-top: 1px solid var(--border); }
.search-result-list a, .results a, .results button.pick { display: block; width: 100%; text-align: left; padding: 10px 12px; text-decoration: none; color: inherit; border: 0; background: none; cursor: pointer; font: inherit; line-height: 1.45; }
.search-result-list a:hover, .search-result-list a:focus-visible, .results a:hover, .results button.pick:hover, .results a:focus-visible, .results button.pick:focus-visible { background: var(--surface-accent); }
.search-result-list small { display: block; color: var(--ink-muted); }
.results .code { font-family: var(--font-mono); font-weight: 600; color: var(--link); font-variant-numeric: tabular-nums; }
.search-help { margin: 10px 0 0; font-size: var(--fs-sm); color: var(--ink-secondary); }

/* 07 / SPONSOR COMPONENTS - always labelled, never ad-network styled */
.sponsor { display: grid; gap: 11px; background: var(--surface-subtle); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 16px 20px; }
.sponsor__label { font-size: var(--fs-2xs); color: var(--ink-muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.sponsor__body { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.sponsor__name { margin: 0 0 3px; font-size: var(--fs-base); font-weight: 600; }
.sponsor__description { margin: 0; font-size: var(--fs-sm); color: var(--ink-secondary); }
.sponsor--featured { min-height: 92px; }
.sponsor--sidebar { min-height: 162px; }
.sponsor--sidebar .sponsor__body { align-items: flex-start; flex-direction: column; gap: var(--space-3); }
.sponsor a { font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.advertise-block h2 { margin-bottom: 6px; }
.advertise-block p { margin: 0 0 13px; color: var(--ink-secondary); font-size: var(--fs-sm); }

/* unsold slot = a pitch for the sale (owner 2026-11-22) */
.sponsor--open { background: var(--surface); }
.sponsor--open .sponsor__label { color: var(--accent); }
.sponsor--open .sponsor__name { font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.3; }
.sponsor__points { margin: 10px 0 0; padding-left: 18px; font-size: var(--fs-sm); color: var(--ink-secondary); display: grid; gap: 5px; }
.sponsor--sidebar.sponsor--open .sponsor__body { gap: var(--space-4); }
.sponsor--sidebar.sponsor--open .sponsor__body > p { margin: 0; }
.sponsor--open a { white-space: normal; }
.sponsor__link-example { font-size: var(--fs-sm); font-weight: 600; color: var(--link); text-decoration: underline; }

/* 08 / EXPLANATION, NOTICE LIST, DATA STAMP */
.explain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.explain-item { min-width: 0; border-top: 2px solid var(--accent); padding: var(--space-4) var(--space-3) var(--space-2) 0; }
.explain-item h2 { font: 600 var(--fs-lg)/1.25 var(--font-display); margin: 0 0 10px; }
.explain-item p { margin: 0; font-size: var(--fs-sm); color: var(--ink-secondary); line-height: 1.65; }
.notice-list, .notices { margin: 0; padding: 0; list-style: none; }
.notice-list li, .notice { display: grid; grid-template-columns: 106px minmax(0, 1fr); gap: 5px var(--space-4); align-items: start; padding: 16px 12px; border-top: 1px solid var(--border); }
.notice-list li:last-child, .notice:last-child { border-bottom: 1px solid var(--border); }
.notice-list li:hover, .notice-list li:focus-within, .notice:hover, .notice:focus-within { background: var(--surface-subtle); }
.notice > .tag { grid-column: 1; grid-row: 1 / span 2; }
.notice > :not(.tag) { grid-column: 2; }
.notice:not(:has(.tag)) { grid-template-columns: minmax(0, 1fr); }
.notice:not(:has(.tag)) > * { grid-column: 1; }
.notice > a, .notice-title { font-weight: 600; line-height: 1.43; text-decoration-thickness: 1px; }
.notice > div, .notice-meta { display: block; color: var(--ink-muted); font-size: var(--fs-xs); }
.status, .tag { display: inline-block; border: 1px solid currentColor; border-radius: var(--radius-sm); padding: 3px 7px; font-size: var(--fs-xs); font-weight: 600; line-height: 1.4; white-space: nowrap; background: var(--surface-accent); color: var(--ink-secondary); }
.status--neutral, .tag-no-change, .tag-other, .tag-unclassified { background: var(--surface-accent); color: var(--ink-secondary); }
.status--raise, .tag-raise { background: var(--danger-tint); color: var(--danger); }
.status--cut, .tag-cut { background: var(--positive-tint); color: var(--positive); }
.tag-exclusion { background: var(--surface-accent); color: var(--link); }
.status--conditional, .tag-withdrawal { border-style: dashed; background: var(--caution-tint); color: var(--caution); }
.tag.premium-tag { background: var(--navy); color: var(--navy-contrast); border-color: var(--navy); }
.notice-list__more { margin: 17px 0 0; font-size: var(--fs-sm); font-weight: 600; }
.alert-card p { margin: 8px 0 0; color: var(--ink-secondary); }
.data-stamp { margin: 0; padding-top: 3px; border-top: 1px solid var(--border); }
.data-stamp dt { font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--ink-muted); }
.data-stamp dd { margin: 3px 0 12px; font-size: var(--fs-sm); color: var(--ink-secondary); overflow-wrap: anywhere; }

/* 09 / TABLES (new rate-table system AND the plain <table> the current rate pages and calculator write)
   New pattern: <tr class="rule-layer rule-layer--additive"> with <span class="layer-indicator layer-indicator--add">Adds 25%</span>;
   conditional rows .rule-layer--conditional ("Conditional - verify applicability"); unknown layers .layer-indicator--unchecked ("Not checked"). Never render an unknown layer as 0%. */
.table-wrap, .tablewrap { max-width: 100%; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.table-wrap--scroll { max-height: 590px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); background: var(--surface); }
.rate-table, .data-table { min-width: 700px; }
caption { text-align: left; padding: 14px 15px; color: var(--ink-secondary); font-weight: 600; caption-side: top; }
th { padding: 12px 13px; font-size: var(--fs-xs); font-weight: 600; text-align: left; color: var(--ink-secondary); border-bottom: 1px solid var(--border-strong); background: var(--surface-subtle); vertical-align: bottom; }
thead th { position: sticky; top: 0; z-index: 1; }
td { padding: 11px 13px; border-bottom: 1px solid var(--border); vertical-align: top; background: var(--surface); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td, tbody tr:focus-within td { background: var(--surface-accent); }
td.code, th.code { font-family: var(--font-mono); white-space: nowrap; font-variant-numeric: tabular-nums; }
.num, .number-cell { text-align: right; white-space: nowrap; }
.rate-table .notice-source { max-width: 380px; overflow-wrap: anywhere; }
.rate-table .rule-layer--additive td:first-child, .rate-table .rule-layer--additive th:first-child { border-left: 4px solid var(--link); padding-left: 9px; }
.rate-table .rule-layer--conditional td:first-child, .rate-table .rule-layer--conditional th:first-child { border-left: 4px dashed var(--caution); padding-left: 9px; }
.rate-table .rule-layer--unchecked td:first-child, .rate-table .rule-layer--unchecked th:first-child { border-left: 4px dotted var(--ink-muted); padding-left: 9px; }
.rate-table tbody th { background: var(--surface); font-weight: 600; color: var(--ink); font-size: var(--fs-sm); border-bottom: 1px solid var(--border); }
.layer-indicator { display: inline-block; padding: 3px 7px; border-radius: 2px; border: 1px solid currentColor; font-size: var(--fs-xs); font-weight: 600; line-height: 1.4; }
.layer-indicator--add { color: var(--link); background: var(--surface-accent); }
.layer-indicator--conditional { color: var(--caution); background: var(--caution-tint); border-style: dashed; }
.layer-indicator--unchecked { color: var(--ink-secondary); background: var(--surface-subtle); border-style: dotted; }
.layer-indicator--excluded { color: var(--positive); background: var(--positive-tint); }
.table-footnote { padding: 12px 14px; font-size: var(--fs-xs); color: var(--ink-secondary); background: var(--surface-subtle); border-top: 1px solid var(--border); }

/* 10 / FOOTER */
.site-footer { background: var(--surface); border-top: 1px solid var(--border-strong); margin-top: var(--space-10); }
.site-footer__inner { padding: var(--space-6) 0 var(--space-8); }
.footer-disclaimer { margin: 0 0 17px; max-width: 1000px; font-size: var(--fs-sm); color: var(--ink-secondary); line-height: 1.6; }
.footer-meta { display: grid; gap: 10px; font-size: var(--fs-xs); color: var(--ink-muted); }
.footer-meta p { margin: 0; }
.footer-meta a { font-weight: 500; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-links a { white-space: nowrap; }

/* 11 / OTHER-PAGE REUSABLE CARDS */
.page-title { margin: 0; font: 600 var(--fs-3xl)/1.15 var(--font-display); }
.breadcrumbs, .crumbs { font-size: var(--fs-xs); color: var(--ink-muted); margin: 16px 0 0; }
.breadcrumbs a, .crumbs a { color: var(--ink-secondary); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-3); }
.stat-card { background: var(--surface); border: 1px solid var(--border); padding: var(--space-4); }
.stat-card dt { font-size: var(--fs-xs); color: var(--ink-muted); }
.stat-card dd { margin: 6px 0 0; font-size: var(--fs-xl); font-weight: 600; font-variant-numeric: tabular-nums; }
.callout { background: var(--surface-subtle); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 4px var(--space-5) var(--space-4); margin: var(--space-6) 0; }
.callout--warning { border-left-color: var(--caution); }
.callout h2 { margin-top: .6em; }

/* 12 / RESPONSIVE, PRINT, REDUCED MOTION */
@media (max-width: 1170px) {
  .site-header__inner { gap: var(--space-2); }
  .primary-nav a { padding: 8px 6px; font-size: .79rem; }
  .brand { font-size: 1.45rem; }
  .page-layout { grid-template-columns: minmax(0, 1fr) 255px; gap: var(--space-4); }
  .lookup-form > div:nth-child(2) { flex-basis: 170px; }
}
@media (max-width: 900px) {
  .primary-nav { display: none; }
  .mobile-navigation { display: block; }
  .page-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .sidebar .data-card { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 28px); }
  .site-header__inner { min-height: 70px; }
  .brand { font-size: 1.35rem; }
  .site-kicker__inner { display: block; }
  .site-kicker__inner > span:last-child { display: none; }
  .page-intro { padding: var(--space-6) 0; }
  .page-intro h1 { font-size: var(--fs-2xl); }
  .page-intro .lead { font-size: var(--fs-base); }
  .panel { padding: var(--space-4); }
  .lookup-form { flex-direction: column; align-items: stretch; }
  .lookup-form > div:first-child, .lookup-form > div:nth-child(2) { flex: 0 0 auto; min-width: 0; width: 100%; }
  .lookup-form .form-action .btn { width: 100%; }
  .explain-grid { grid-template-columns: 1fr; gap: 0; }
  .explain-item { padding-block: var(--space-4); }
  .notice-list li, .notice { grid-template-columns: 1fr; gap: 8px; padding: 15px 5px; }
  .notice > .tag { grid-row: auto; }
  .notice > :not(.tag), .notice > .tag { grid-column: 1; }
  .sidebar { grid-template-columns: 1fr; }
  .sidebar .data-card { grid-column: auto; }
  .sponsor__body { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .site-footer__inner { padding-bottom: 26px; }
  th, td { padding: 8px 7px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  :root { color-scheme: light; }
  .site-header, .site-footer, .panel, .side-card { box-shadow: none; }
  .mobile-navigation, .sponsor, .advertise-block, .form-action, .skip, .skip-link, .banner { display: none !important; }
  .page-layout { display: block; }
  .sidebar { margin-top: 20px; }
  a { color: #163A52; }
  .table-wrap, .tablewrap { overflow: visible; }
  thead { display: table-header-group; }
  .notice-list li, .notice { break-inside: avoid; }
}

/* 13 / LEGACY CLASSES (pages not yet redesigned). Same tokens, same type; remove each block as its page type moves to the new markup. */
h1 { font-family: var(--font-display); font-size: clamp(var(--fs-2xl), 3.1vw, var(--fs-3xl)); line-height: 1.12; letter-spacing: -.02em; font-weight: 600; margin: 0 0 10px; }
h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xl); line-height: 1.24; margin: 1.6em 0 .5em; }
h3 { font-size: var(--fs-lg); font-weight: 600; margin: 1.3em 0 .4em; }
.hero { padding: var(--space-8) 0 var(--space-3); }
.hero h1 { max-width: 960px; }
.lead { color: var(--ink-secondary); font-size: var(--fs-lg); line-height: 1.57; max-width: 72ch; margin: 0 0 var(--space-4); }
main > section { margin-bottom: var(--space-6); }
label:has(> input), label:has(> select), label:has(> textarea) { display: flex; flex-direction: column; gap: 6px; margin: 0; }
label.check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 500; }
.lookup, .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 12px 0; }
.grow { flex: 1 1 280px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4) var(--space-6); }
.grid3 > div { border-top: 2px solid var(--accent); padding-top: var(--space-4); }
.grid3 h2 { font-size: var(--fs-lg); margin: 0 0 10px; }
.grid3 p { margin: 0; font-size: var(--fs-sm); color: var(--ink-secondary); line-height: 1.65; }
.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-items: end; max-width: 900px; }
.calc .field, .calc .btn, .calc p { grid-column: 1 / -1; }
.out { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 8px 20px 18px; margin-top: 16px; max-width: 900px; }
.out td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hp { position: absolute; left: -9999px; }
.draft { background: var(--caution-tint); color: var(--caution); border: 1px solid currentColor; display: inline-block; padding: 2px 8px; border-radius: var(--radius-sm); font-size: var(--fs-xs); font-weight: 600; }
.cols { columns: 2 340px; list-style: none; padding: 0; margin: 8px 0; }
.cols li { break-inside: avoid; margin: 4px 0; }
details:not(.mobile-navigation) { margin: 8px 0; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 14px; background: var(--surface); }
summary { font-weight: 600; }
.premium { border: 2px solid var(--navy); border-radius: var(--radius-md); background: var(--surface); padding: 4px 20px 16px; margin: 28px 0; }
.premium h2 { margin-top: .8em; }
.honest { border-left: 4px solid var(--caution); background: var(--caution-tint); color: var(--caution); padding: 2px 14px; margin: 12px 0; border-radius: var(--radius-sm); }
.honest a { color: inherit; }
.filings .filing { padding: 12px 0; border-top: 1px solid var(--border); }
.filing[hidden] { display: none; }
.caveat { color: var(--ink-secondary); }
.stamp { color: var(--ink-muted); }
.adcvd-list { margin: 6px 0 4px 18px; padding: 0; font-size: var(--fs-sm); }
.adcvd-list li { margin: 3px 0; }
