/* Levy Folio: warm paper, pine ink, honey brass. Fonts are self-hosted (SIL OFL). */

@font-face { font-family: 'Young Serif'; src: url('/fonts/young-serif-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/fonts/hanken-grotesk.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #f6efe3;
  --paper-2: #efe4d1;
  --card: #fffbf4;
  --ink: #1f2a27;
  --ink-soft: #4d5b56;
  --pine: #1d3b35;
  --pine-2: #2d5c51;
  --pine-tint: #dfe9e3;
  --honey: #e8a33d;
  --honey-soft: #f7deb0;
  --rose: #a8432c;
  --rose-tint: #f6ded4;
  --line: #e2d4bd;
  --line-strong: #cdb894;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(31, 42, 39, .04), 0 12px 32px -18px rgba(31, 42, 39, .35);
  --serif: 'Young Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-variant-numeric: tabular-nums;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--pine-2); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--pine); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; color: var(--pine); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 1.6em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code { font-size: .9em; background: var(--paper-2); padding: .1em .35em; border-radius: 5px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--pine); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- Header, notice, footer ---------- */

.site-head { background: var(--pine); color: var(--paper); }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font-family: var(--serif); font-size: 1.35rem; }
.brand:hover { color: #fff; }
.brand .mark-svg { width: 22px; height: 28px; color: var(--honey); --paper: var(--pine); }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { color: #e9e2d2; text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--honey); color: var(--pine); }

.notice { background: var(--honey-soft); border-bottom: 1px solid #e8c88d; color: #3b2f17; }
.notice-inner { display: flex; gap: 10px; align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: #8a5a10; }
.notice p { margin: 0; font-size: .95rem; }
.notice a { color: #5b3c08; font-weight: 600; }

.site-foot { background: var(--pine); color: #d9d4c6; margin-top: 72px; padding: 44px 0 52px; font-size: .95rem; }
.site-foot a { color: #f2e6c9; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.25rem; color: var(--paper); }
.foot-brand .mark-svg { width: 20px; height: 26px; color: var(--honey); --paper: var(--pine); }
.foot-links { display: grid; gap: 8px; align-content: start; }

/* ---------- Hero ---------- */

.hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 28px; }
.hero h1 em { font-style: normal; color: var(--pine-2); background: linear-gradient(transparent 68%, var(--honey-soft) 68%, var(--honey-soft) 92%, transparent 92%); }
.kicker { text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 700; color: var(--pine-2); margin-bottom: .6em; }
.kicker a { color: inherit; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* Key tags hanging from a rail */
.hero-facts { list-style: none; margin: 0; padding: 18px 0 0; display: flex; gap: 14px; justify-content: center; position: relative; }
.hero-facts::before { content: ''; position: absolute; top: 0; left: 4%; right: 4%; height: 8px; border-radius: 8px; background: linear-gradient(#c58a2c, #9a6a1d); box-shadow: 0 2px 0 rgba(0, 0, 0, .12); }
.hero-facts li {
  position: relative; width: 33%; max-width: 150px; margin-top: 26px; padding: 34px 12px 18px;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px 12px 26px 26px;
  text-align: center; box-shadow: var(--shadow); transform-origin: top center;
}
.hero-facts li:nth-child(1) { transform: rotate(-3deg); }
.hero-facts li:nth-child(2) { transform: rotate(2deg); margin-top: 40px; background: #fdf2dc; }
.hero-facts li:nth-child(3) { transform: rotate(-1.5deg); background: var(--pine-tint); }
.hero-facts li::before { content: ''; position: absolute; top: -34px; left: 50%; width: 2px; height: 46px; background: #8b7a5c; }
.hero-facts li::after { content: ''; position: absolute; top: 10px; left: 50%; width: 14px; height: 14px; margin-left: -6px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-strong); }
.hero-facts strong { display: block; font-family: var(--serif); font-weight: 400; color: var(--pine); font-size: 1.15rem; }
.hero-facts span { display: block; font-size: .85rem; color: var(--ink-soft); line-height: 1.35; margin-top: 4px; }

.page-head { padding-top: 40px; padding-bottom: 20px; }

/* ---------- Calculator ---------- */

.calc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; margin: 8px 0 24px; }
.calc-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px 18px; box-shadow: var(--shadow); }
.field-block { border: 0; margin: 0 0 18px; padding: 0 0 18px; border-bottom: 1px dashed var(--line); min-width: 0; }
.field-block:last-of-type { border-bottom: 0; }
.step { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.2rem; color: var(--pine); margin: 0 0 14px; padding: 0; }
.step span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pine); color: var(--paper); font-family: var(--sans); font-weight: 700; font-size: .9rem; flex: none; }

.pill-country { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 4px 0 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pill { position: relative; display: inline-flex; flex-direction: column; padding: 8px 14px 8px 30px; border: 1px solid var(--line-strong); border-radius: 10px 999px 999px 10px; background: #fff; cursor: pointer; line-height: 1.2; }
.pill::before { content: ''; position: absolute; left: 11px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--paper); }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill-name { font-weight: 700; color: var(--ink); }
.pill-meta { font-size: .78rem; color: var(--ink-soft); }
.pill:hover { border-color: var(--pine-2); }
.pill:has(input:checked) { background: var(--pine); border-color: var(--pine); }
.pill:has(input:checked) .pill-name { color: #fff; }
.pill:has(input:checked) .pill-meta { color: var(--honey-soft); }
.pill:has(input:checked)::before { background: var(--honey); border-color: var(--honey); }
.pill:has(input:focus-visible) { outline: 3px solid var(--honey); outline-offset: 2px; }
.pill.is-proposed { border-style: dashed; background: transparent; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; }
.field { min-width: 0; }
.field label, .map-row label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
input[type="text"], input[type="date"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; min-height: 46px;
}
input:hover, select:hover, textarea:hover { border-color: var(--pine-2); }
input[aria-invalid="true"] { border-color: var(--rose); background: #fff7f4; }
.money { display: flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff; }
.money:focus-within { outline: 3px solid var(--honey); outline-offset: 2px; }
.money span { padding: 0 2px 0 12px; color: var(--ink-soft); font-weight: 700; }
.money input { border: 0; min-height: 43px; padding-left: 4px; }
.money input:focus-visible { outline: none; }
.hint { font-size: .88rem; color: var(--ink-soft); margin: 6px 0 0; }
.err { color: var(--rose); font-size: .9rem; font-weight: 600; margin: 6px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--pine); flex: none; }
.check-inline { align-self: end; margin-bottom: 12px; }
.band-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.band { display: flex; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; cursor: pointer; background: #fff; font-size: .92rem; line-height: 1.35; }
.band input { accent-color: var(--pine); margin-top: 3px; }
.band strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--pine); }
.band:has(input:checked) { border-color: var(--pine); background: var(--pine-tint); }
.calc-form [data-show="cap"] { margin-top: 16px; }
.example-note { font-size: .85rem; color: var(--ink-soft); margin: 0; font-style: italic; }

/* The folio: a guest-house bill with a torn foot */
.folio { position: sticky; top: 16px; }
.folio-paper {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0;
  padding: 22px 26px 34px; box-shadow: var(--shadow);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 12px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 12px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 12px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 12px repeat-x;
}
.folio-paper::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: var(--radius) var(--radius) 0 0; background: repeating-linear-gradient(90deg, var(--pine) 0 22px, var(--honey) 22px 30px, var(--pine) 30px 52px, var(--pine-2) 52px 56px); }
.folio-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--pine); }
.folio-council { font-family: var(--serif); font-size: 1.15rem; color: var(--pine); }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .03em; padding: 3px 10px; border-radius: 999px; background: var(--pine-tint); color: var(--pine); white-space: nowrap; vertical-align: middle; font-family: var(--sans); }
.badge.in-force { background: var(--pine); color: #fff; }
.badge.approved { background: var(--honey-soft); color: #5b3c08; }
.badge.proposed { background: transparent; border: 1px dashed var(--ink-soft); color: var(--ink-soft); }
.folio-label { margin: 16px 0 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 700; }
.folio-figure { display: block; font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 3.6rem); color: var(--pine); line-height: 1.1; margin: 2px 0 2px; }
.folio-figure[data-outcome="out-of-scope"], .folio-figure[data-outcome="not-chargeable"], .folio-figure[data-outcome="cancelled"], .folio-figure[data-outcome="proposed"] { color: var(--ink-soft); }
.folio-outcome { font-weight: 700; color: var(--pine-2); margin: 0 0 14px; }
.folio-sub { font-family: var(--sans); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin: 18px 0 8px; }
.folio-lines { margin: 0; padding-left: 1.3em; font-size: .97rem; line-height: 30px; background: repeating-linear-gradient(transparent 0 29px, rgba(205, 184, 148, .45) 29px 30px); }
.folio-lines li { padding-left: 4px; }
.folio-lines li::marker { color: var(--honey); font-weight: 700; }
.folio-flags { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.folio-flags li, .flags-mini li { position: relative; padding: 9px 12px 9px 34px; border-radius: 10px; font-size: .92rem; line-height: 1.45; }
.flag-review { background: var(--rose-tint); color: #5e2414; }
.flag-info { background: var(--pine-tint); color: var(--pine); }
.folio-flags li::before, .flags-mini li::before { position: absolute; left: 11px; top: 9px; font-weight: 800; }
.flag-review::before { content: '!'; color: var(--rose); }
.flag-info::before { content: 'i'; color: var(--pine-2); font-family: var(--serif); }
.folio-foot { font-size: .85rem; color: var(--ink-soft); margin: 18px 0 0; padding-top: 12px; border-top: 1px dashed var(--line-strong); }

.calc-bar { display: none; }
@media (max-width: 980px) {
  .calc-bar:not([hidden]) {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 12px;
    padding: 10px 18px; border-radius: 999px; background: var(--pine); color: #fff; text-decoration: none; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
  }
  .calc-bar strong { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; color: var(--honey); }
  .calc-bar span:last-child { margin-left: auto; font-size: .9rem; color: #e9e2d2; }
  .calc-bar:hover { color: #fff; }
}

/* ---------- Sections and cards ---------- */

.section { padding: 28px 0 8px; }
.section-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-top h2 { margin-top: 0; }
.band-section { background: var(--pine); color: #e9e2d2; margin: 40px 0 20px; padding: 56px 0; background-image: radial-gradient(circle at 85% 20%, rgba(232, 163, 61, .16), transparent 45%); }
.band-section h2 { color: #fff; margin-top: 0; }
.band-section .kicker { color: var(--honey); }
.band-section .ticks li::before { color: var(--honey); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }

.ledger-art { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 10px 0; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .6); transform: rotate(1.2deg); }
.ledger-row { display: grid; grid-template-columns: 1.6fr .8fr .9fr; padding: 11px 22px; border-bottom: 1px solid var(--line); font-size: .98rem; }
.ledger-row span:last-child { text-align: right; font-weight: 700; }
.ledger-row.head { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 700; }
.ledger-row.flag span:last-child { color: var(--rose); }
.ledger-row.total { border-bottom: 0; border-top: 2px solid var(--pine); font-family: var(--serif); color: var(--pine); font-size: 1.15rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(165px, 100%), 1fr)); gap: 14px; }
.card { display: grid; gap: 4px; padding: 18px 18px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--pine-2); color: var(--ink); }
.card-country { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.card strong { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; color: var(--pine); overflow-wrap: anywhere; hyphens: auto; }
.card-rate { font-size: .95rem; }
.card-status { font-size: .82rem; font-weight: 700; color: var(--pine-2); }
.card-status.approved { color: #8a5a10; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 2px solid var(--honey); background: var(--honey); color: var(--pine); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: #f0b75b; color: var(--pine); }
.btn-quiet { background: transparent; border-color: var(--pine-2); color: var(--pine); }
.btn-quiet:hover { background: var(--pine-tint); }
.btn-disabled { background: var(--paper-2); border-color: var(--line-strong); color: var(--ink-soft); cursor: not-allowed; }
.link-like { color: var(--pine-2); text-decoration: underline; cursor: pointer; font-weight: 700; }

.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: '✓'; position: absolute; left: 4px; top: 0; color: var(--pine-2); font-weight: 800; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--honey-soft); color: var(--pine); font-weight: 800; font-size: .9rem; }
.callout { background: var(--pine-tint); border-left: 4px solid var(--pine-2); padding: 14px 18px; border-radius: 0 10px 10px 0; }

/* ---------- Timeline ---------- */

.timeline { list-style: none; margin: 0 0 1.2em; padding: 0 0 0 26px; position: relative; display: grid; gap: 14px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line-strong); }
.timeline li { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 2px 16px; align-items: baseline; }
.timeline li::before { content: ''; position: absolute; left: -25px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 3px solid var(--pine-2); }
.timeline time { font-weight: 700; color: var(--pine); grid-row: span 2; }
.t-kind { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); }
.t-text { grid-column: 2; }
.timeline .k-start::before { background: var(--pine); border-color: var(--pine); }
.timeline .k-deadline::before, .timeline .k-payment::before { border-color: var(--rose); }
.timeline .k-return::before { border-color: var(--honey); }
.timeline .k-consult::before { border-style: dashed; border-color: var(--ink-soft); }
.timeline li.is-past { opacity: .5; }
.timeline li.is-next::after { content: 'Next'; position: absolute; right: 0; top: 0; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--honey); color: var(--pine); padding: 2px 8px; border-radius: 999px; }
.timeline li.is-next .t-text { padding-right: 52px; }

/* ---------- Articles ---------- */

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; margin-top: 20px; }
.article { min-width: 0; }
.article h1 { margin-top: 24px; }
.article > h2:first-child { margin-top: .4em; }
.aside { position: sticky; top: 16px; display: grid; gap: 4px; }
.aside h2 { font-size: 1.15rem; margin-top: 1.4em; }
.aside .cards { grid-template-columns: 1fr; }
.aside .card { padding: 12px 16px; }
.aside .card strong { font-size: 1.15rem; }
.aside-card { background: var(--pine); color: #e9e2d2; padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); }
.aside-card h2 { color: #fff; margin-top: 0; }
.link-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.link-list a { font-weight: 600; }

.glance { margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.glance div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.glance div:last-child { border-bottom: 0; }
.glance dt { font-weight: 700; color: var(--pine); }
.glance dd { margin: 0; }
.mini-list { margin: 0 0 4px; padding-left: 1.1em; display: grid; gap: 4px; }
.glance .hint { display: block; }
.cite { font-size: .78em; font-weight: 700; text-decoration: none; vertical-align: super; line-height: 0; }
.sources { padding-left: 1.4em; display: grid; gap: 8px; }
.sources .checked { display: block; font-size: .85rem; color: var(--ink-soft); }
.official-link { display: inline-flex; gap: 8px; align-items: center; margin: 8px 0 16px; padding: 12px 18px; border: 2px solid var(--pine); border-radius: 12px; font-weight: 700; text-decoration: none; color: var(--pine); }
.official-link:hover { background: var(--pine); color: #fff; }

.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.article > .table { border: 1px solid var(--line); background: var(--card); margin-bottom: 1.4em; }
.table th, .table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--paper-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); white-space: nowrap; }
.table tbody tr:last-child > * { border-bottom: 0; }
.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0 0 1.2em; }
.boxes div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.boxes dt { font-size: .82rem; color: var(--ink-soft); font-weight: 700; }
.boxes dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.35rem; color: var(--pine); }
.boxes .total { background: var(--pine); border-color: var(--pine); }
.boxes .total dt { color: var(--honey-soft); }
.boxes .total dd { color: #fff; }
.scenarios { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 1.4em; }
.scenarios > div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.scenarios h3 { margin-bottom: .3em; }
.scenarios p { margin: 0; }
.guide-list { display: grid; gap: 12px; }
.guide-list a { display: grid; gap: 4px; padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.guide-list a:hover { border-color: var(--pine-2); }
.guide-list strong { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--pine); }
.guide-list span { color: var(--ink-soft); font-size: .95rem; }

.countdown { display: inline-flex; align-items: baseline; gap: 12px; padding: 14px 22px; background: var(--rose-tint); border-radius: var(--radius); margin: 4px 0 8px; }
.count-num { font-family: var(--serif); font-size: 2.4rem; color: var(--rose); line-height: 1; }
.count-label { font-weight: 700; color: #5e2414; }
.date-council { margin-bottom: 8px; }
.date-council h2 { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.date-council h2 a { text-decoration: none; color: var(--pine); }
.date-filter { display: flex; gap: 8px; margin: 8px 0 4px; }
.date-filter button { font: inherit; font-weight: 700; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer; }
.date-filter button[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: #fff; }

/* ---------- Return helper ---------- */

.bulk { display: grid; gap: 18px; }
.bulk-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); min-width: 0; }
.drop { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 30px 20px; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--paper); transition: background .15s, border-color .15s; }
.drop svg { width: 46px; height: 46px; color: var(--pine-2); }
.drop p { margin: 0; }
.drop.is-over { background: var(--pine-tint); border-color: var(--pine-2); }
.paste { margin: 14px 0 6px; }
.paste summary { cursor: pointer; font-weight: 700; color: var(--pine-2); }
.paste textarea { margin: 10px 0; font-family: ui-monospace, monospace; font-size: .88rem; }
.mapping { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; margin-bottom: 16px; }
.map-row.is-missing select { border-color: var(--rose); background: #fff7f4; }
.unlock { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--honey-soft); border-radius: 12px; padding: 16px 20px; margin-bottom: 18px; }
.unlock p { margin: 4px 0 0; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat { background: var(--paper); border-radius: 12px; padding: 12px 16px; }
.stat strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 2rem; color: var(--pine); line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--ink-soft); font-weight: 700; }
.stat.warn strong { color: var(--rose); }
.period { border-top: 2px solid var(--pine); padding-top: 14px; margin-top: 18px; }
.period-head h3 { margin-bottom: 2px; }
.period-head p { color: var(--ink-soft); font-size: .95rem; }
.boxes-table th[scope="row"] { font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; background: transparent; font-size: .92rem; }
.bulk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.table-tools { margin-bottom: 8px; }
.bookings-table td { font-size: .92rem; }
.bookings-table .when { white-space: nowrap; }
.bookings-table td:last-child { min-width: 260px; }
.bookings-table .sub { display: block; color: var(--ink-soft); font-size: .85rem; }
.bookings-table .num { font-weight: 700; white-space: nowrap; }
.bookings-table tr.needs-review td:first-child { box-shadow: inset 4px 0 0 var(--rose); }
.bookings-table details summary { cursor: pointer; color: var(--pine-2); font-weight: 700; font-size: .88rem; }
.bookings-table details ol { padding-left: 1.2em; margin: 6px 0 0; font-size: .88rem; }
.flags-mini { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 4px; }
.flags-mini li { padding: 5px 10px 5px 28px; font-size: .85rem; }
.flags-mini li::before { left: 10px; top: 5px; }
.pill-out { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--paper-2); color: var(--ink-soft); }
.pill-out.liable { background: var(--pine); color: #fff; }
.pill-out.invalid { background: var(--rose-tint); color: var(--rose); }

/* ---------- Small screens ---------- */

@media (max-width: 980px) {
  .calc, .article-grid, .split, .hero { grid-template-columns: 1fr; }
  .folio, .aside { position: static; }
  .hero { padding-top: 32px; gap: 20px; }
  .hero-facts { max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 14px; }
  .card strong { font-size: 1.2rem; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  body { font-size: 1rem; }
  .head-inner { min-height: 0; padding-top: 12px; padding-bottom: 10px; }
  .site-nav { width: 100%; margin: 0 -10px; }
  .site-nav a { padding: 6px 10px; font-size: .9rem; }
  .calc-form, .bulk-step { padding: 20px 16px 14px; }
  .folio-paper { padding: 20px 18px 32px; }
  .grid-2, .grid-3, .band-pick { grid-template-columns: 1fr; }
  .check-inline { margin-bottom: 0; }
  .glance div { grid-template-columns: 1fr; gap: 2px; }
  .timeline li { grid-template-columns: 1fr; }
  .timeline time { grid-row: auto; }
  .t-text { grid-column: 1; }
  .foot-grid { grid-template-columns: 1fr; gap: 20px; }
  .stat-row { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat { padding: 10px; }
  .stat strong { font-size: 1.5rem; }
  .hero-facts li { padding: 30px 8px 14px; }
  .hero-facts strong { font-size: 1rem; }
  .lead { font-size: 1.08rem; }
  .bookings-table thead { display: none; }
  .bookings-table, .bookings-table tbody, .bookings-table tr, .bookings-table td { display: block; width: 100%; }
  .bookings-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .bookings-table tr.needs-review { box-shadow: inset 4px 0 0 var(--rose); }
  .bookings-table tr.needs-review td:first-child { box-shadow: none; }
  .bookings-table td { border: 0; padding: 0; }
  .bookings-table td::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
  .bookings-table td[data-label="Notes"] { grid-column: 1 / -1; min-width: 0; }
  .bookings-table td[data-label="Row"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print: the return helper's results as a record ---------- */

@media print {
  body { background: #fff; font-size: 10.5pt; }
  .site-head, .site-nav, .skip, .site-foot nav, .bulk-step:not([data-b-results]), .bulk-actions, .table-tools, .unlock, .page-head .lead, .notice svg { display: none !important; }
  .notice { background: none; border: 1px solid #999; }
  .bulk-step, .boxes div, .table-wrap { box-shadow: none; border-color: #bbb; }
  .bookings-table details { display: block; }
  .bookings-table details > ol { display: block; }
  .site-foot { background: none; color: #333; margin-top: 16px; padding: 0; }
  .site-foot .mark-svg { display: none; }
  .period { break-inside: avoid; }
  a { color: inherit; }
}
