/* Aurelle: shared stylesheet for aurelle.com, aurelle.institute and aurelle.academy.
   Rules: orange for one action and the seam; spruce for money, links and "confirmed"; red for cost.
   No gradients, no shadows, one panel radius. Links are spruce (5.3:1 on white); the focus ring is ink. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --orange: #F89818;
  --orange-hover: #E88A0E;
  --orange-deep: #B85C00;
  --orange-soft: #FDEBD2;
  --ink: #182320;
  --ink-soft: #4A5450;
  --spruce: #1F7A4D;
  --spruce-soft: #E8F3EC;
  --field: #F4F2EC;
  --line: #DAD7CF;
  --field-border: #8C887C;
  --paper: #FFFFFF;
  --red: #B3261E;
  --red-soft: #FBEAE8;
  --on-spruce-line: #8CC3A6;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.9rem;
  --step-0: 1.05rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.1rem;
  --step-4: clamp(2.4rem, 1.1rem + 4.2vw, 4.4rem);
  --measure: 64ch;

  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: clamp(3rem, 2rem + 4vw, 4.5rem);
  --s-7: 7rem;

  --radius-panel: 14px;
  --radius-pill: 999px;
  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-text); font-size: var(--step-0); line-height: 1.55;
  font-feature-settings: "tnum" 1, "kern" 1;
  -webkit-font-smoothing: antialiased;
}
main:focus { outline: none; }

h1, h2, h3 { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 700; line-height: 1.08; letter-spacing: -0.012em; margin: 0 0 var(--s-2); text-wrap: balance; }
h1 { font-size: var(--step-4); letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-family: var(--font-text); font-weight: 600; line-height: 1.3; letter-spacing: 0; }
p { margin: 0 0 var(--s-2); max-width: var(--measure); }
.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.45; }
a { color: var(--spruce); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; box-shadow: 0 0 0 2px var(--paper); }
small, .small { font-size: var(--step--1); color: var(--ink-soft); }
strong { font-weight: 600; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 var(--s-2); }
time { white-space: nowrap; }

.wrap { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--s-6); }
.section.field { background: var(--field); }
.section.tight { padding-top: var(--s-3); }
.section-head { max-width: var(--measure); margin-bottom: var(--s-4); }
.section-head p:last-child { margin-bottom: 0; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: var(--gutter); top: var(--s-1); background: var(--paper); padding: 0.5rem 1rem; z-index: 40; border: 2px solid var(--ink); border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header: the green bar stays on screen; the wordmark keeps its orange */
.site-header { background: var(--spruce); color: #fff; position: sticky; top: 0; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; gap: var(--s-3); min-height: 60px; width: calc(100% - 2 * clamp(1rem, 3vw, 2.25rem)); max-width: none; }
.brand { display: flex; align-items: baseline; gap: 0.55rem; flex-shrink: 0; line-height: 1; text-decoration: none; color: inherit; padding-block: 10px; }
.brand img { height: 24px; width: auto; }
.brand .product { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 400; font-size: 1.55rem; color: #fff; line-height: 1; position: relative; top: -0.04em; }
.nav { display: flex; gap: var(--s-3); margin-left: auto; }
.nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: 0.97rem; padding-block: 0.7rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; border-color: var(--on-spruce-line); }
.nav a[aria-current] { border-color: var(--orange); }
.site-header .cta { background: #fff; color: var(--ink); min-height: 40px; padding: 0.5rem 1.05rem; font-size: 0.95rem; text-decoration: none; }
.site-header .cta:hover { background: var(--spruce-soft); color: var(--ink); }
.site-header :focus-visible { outline-color: #fff; box-shadow: none; }
.nav-mobile { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 46px; padding: 0.8rem 1.35rem; border-radius: var(--radius-pill); font: inherit; font-weight: 600; text-decoration: none; border: 2px solid transparent; line-height: 1.1; cursor: pointer; }
.btn.primary { background: var(--orange); color: var(--ink); }
.btn.primary:hover { background: var(--orange-hover); color: var(--ink); }
.btn.ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.quiet { color: var(--ink); background: var(--field); }
.btn.quiet:hover { background: var(--line); color: var(--ink); }
.section.field .btn.quiet, .panel.field .btn.quiet { background: var(--paper); }
.section.field .btn.quiet:hover, .panel.field .btn.quiet:hover { background: var(--line); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.form-actions { margin-top: var(--s-1); }

/* The seam: the border between the two countries, the one decorative device */
.two-country { border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper); overflow: hidden; }
.tc-head, .tc-row { display: grid; grid-template-columns: minmax(0, 1fr) 2px minmax(0, 1fr); column-gap: var(--s-3); padding-inline: var(--s-3); }
.tc-head { padding-block: var(--s-2) 0.2rem; }
.tc-head .side { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); font-variation-settings: "SOFT" 100; line-height: 1.1; }
.tc-q { grid-column: 1 / -1; font-size: var(--step-0); margin: 0; padding: var(--s-2) 0 0.35rem; border-top: 1px solid var(--line); color: var(--ink); }
.tc-head + .tc-row .tc-q { margin-top: var(--s-1); }
.tc-row > div { padding-bottom: var(--s-2); }
.seam { background: var(--orange); border-radius: 2px; }
.tc-row .figure { font-size: var(--step-2); }
.tc-row p { margin: 0.3rem 0 0; color: var(--ink-soft); font-size: var(--step--1); }
.tc-row p.rule-line { color: var(--ink-soft); }
.tc-row .fine { color: var(--spruce); }
.tc-row .cost { color: var(--red); }
.rule-line { font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 720px) {
  .tc-head { display: none; }
  .tc-row { grid-template-columns: 1fr; row-gap: 0; }
  .tc-row .seam { height: 2px; width: 100%; margin-bottom: var(--s-2); }
  .tc-row > div:first-of-type::before { content: "Canada says"; display: block; font-family: var(--font-display); font-weight: 700; margin-bottom: 0.2rem; }
  .tc-row > div:last-of-type::before { content: "The United States says"; display: block; font-family: var(--font-display); font-weight: 700; margin-bottom: 0.2rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .tc-row .seam { animation: draw 0.9s cubic-bezier(.2,.7,.2,1) 0.1s both; transform-origin: top; }
  @keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}
@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  .tc-row .seam { animation-name: draw-x; transform-origin: left; }
  @keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* Hero */
.hero { padding-block: var(--s-6); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-5); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lede { max-width: 36ch; }
.hero .small { margin-top: var(--s-2); max-width: 46ch; }
.page-hero { padding-block: var(--s-6) var(--s-3); }
.page-hero h1 { font-size: clamp(2.2rem, 1.2rem + 3.2vw, 3.6rem); max-width: 20ch; }
.page-hero .lede { max-width: 50ch; margin-bottom: 0; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: var(--s-4); } .hero h1 { max-width: none; } }

/* Ruled rows */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-3); padding: var(--s-2) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rows .meta { color: var(--ink-soft); font-size: var(--step--1); white-space: nowrap; }
.rows p { margin: 0.2rem 0 0; color: var(--ink-soft); }
@media (max-width: 640px) { .rows li { grid-template-columns: 1fr; } .rows .meta { white-space: normal; } }

.figure { font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); line-height: 1.05; font-variation-settings: "SOFT" 100; display: block; }
.figure small { font-family: var(--font-text); font-weight: 400; font-size: var(--step--1); color: var(--ink-soft); }
.figure.money, .fine { color: var(--spruce); }
.figure.cost, .cost { color: var(--red); }
.figure + .label { display: block; margin-top: 0.35rem; color: var(--ink-soft); font-size: var(--step--1); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--s-3); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.2rem 1fr; gap: var(--s-2); }
.steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); color: var(--spruce); line-height: 1; font-variation-settings: "SOFT" 100; }
.steps h3 { margin-bottom: 0.25rem; }
.steps p { margin: 0; color: var(--ink-soft); }

.panel { border: 1px solid var(--line); border-radius: var(--radius-panel); padding: var(--s-3); background: var(--paper); }
.panel.ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.panel.ink p, .panel.ink .label { color: #CFD6D2; }
.panel.field { background: var(--field); border-color: var(--field); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s-3); }
/* A second heading inside the same column starts a new topic, so it gets room above it. */
.grid-2 > div > * + h2, .tool > div > * + h2 { margin-top: var(--s-5); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-3); }
.panel h2, .panel h3.big { font-size: var(--step-2); }
.panel > *:last-child { margin-bottom: 0; }

/* Compact cards with a cost line */
.door { display: grid; gap: var(--s-2); align-content: start; }
.door .btn { justify-self: start; margin-top: auto; }
.door p { margin: 0; color: var(--ink-soft); }
.door h2, .door h3.big { margin: 0; }
.mini { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem var(--s-2); margin: 0; font-size: var(--step--1); }
.mini dt { font-weight: 600; color: var(--ink-soft); }
.mini dd { margin: 0; }

/* Dated strip, status line, tags, sample marks */
.stamp { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); margin: var(--s-3) 0 0; padding: 0.7rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--field); font-size: var(--step--1); max-width: 760px; }
.stamp div { display: flex; gap: 0.4rem; align-items: baseline; }
.stamp dt { color: var(--ink-soft); font-weight: 600; }
.stamp dd { margin: 0; }
.stamp .stamp-link { margin-left: auto; }
.section.field .stamp { background: var(--paper); }
.status-line { border-left: 4px solid var(--spruce); background: var(--spruce-soft); padding: 0.8rem 1rem; border-radius: 0 10px 10px 0; max-width: var(--measure); margin: var(--s-3) 0; }
.tag { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.12rem 0.55rem; border-radius: var(--radius-pill); border: 1px solid currentColor; vertical-align: middle; white-space: nowrap; line-height: 1.5; }
.tag-settled { color: var(--spruce); background: var(--spruce-soft); }
.tag-changing { color: var(--ink); background: var(--orange-soft); border-color: var(--orange-deep); }
.tag-contested { color: var(--red); background: var(--red-soft); }
.tag-person { color: var(--ink); background: var(--field); border-color: var(--ink-soft); }
.payline { padding: var(--s-2) var(--s-3); border: 2px solid var(--ink); border-radius: 10px; max-width: 620px; background: var(--paper); font-size: var(--step-0); }
.sample { position: relative; border: 2px dashed var(--field-border); border-radius: var(--radius-panel); padding: var(--s-4) var(--s-3) var(--s-3); background: var(--paper); }
.sample::before { content: attr(data-label); position: absolute; top: -0.85rem; left: 1rem; background: var(--ink); color: #fff; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.2rem 0.65rem; border-radius: var(--radius-pill); }
.sample > *:last-child { margin-bottom: 0; }
.sample-title { font-weight: 600; }
.worked { font-variant-numeric: tabular-nums; background: var(--field); padding: 0.6rem 0.9rem; border-radius: 8px; font-size: var(--step--1); color: var(--ink); max-width: none; }
.panel.field .worked, .section.field .worked { background: var(--paper); }
.meter { display: block; width: 100%; height: 12px; margin: var(--s-1) 0; }
.meter .track { fill: var(--line); }
.meter .fill { fill: var(--spruce); }
.meter .fill.cost { fill: var(--red); }
.meter .fill.near { fill: var(--orange-deep); }
.band { font-weight: 600; }
.sources-list { padding-left: 1.1rem; font-size: var(--step--1); color: var(--ink-soft); }
.sources-list li { margin-bottom: 0.35rem; }
.src-meta { color: var(--ink-soft); }

/* Tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper); }
.table { width: 100%; border-collapse: collapse; font-size: var(--step--1); min-width: 640px; }
.table.narrow { min-width: 0; }
.table caption { text-align: left; padding: 0.8rem 1rem; font-weight: 600; color: var(--ink-soft); }
.table th, .table td { text-align: left; vertical-align: top; padding: 0.75rem 1rem; border-top: 1px solid var(--line); }
.table thead th { background: var(--field); color: var(--ink-soft); font-weight: 600; white-space: nowrap; border-top: 0; }
.table tbody th { font-weight: 600; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll:focus-visible { outline: 3px solid var(--ink); }
/* A table marked "stack" becomes one card per row on a phone. The build adds data-label to each cell and the table roles
   (engine.stack_tables), because changing display on table parts can drop their meaning for screen readers. */
@media (max-width: 720px) {
  .table.stack { min-width: 0; }
  .table.stack, .table.stack tbody, .table.stack tfoot, .table.stack tr, .table.stack th, .table.stack td, .table.stack caption { display: block; }
  .table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table.stack tr { padding: 0.9rem 1rem; border-top: 1px solid var(--line); }
  .table.stack tbody tr:first-child { border-top: 0; }
  .table.stack th, .table.stack td { padding: 0.2rem 0; border: 0; }
  .table.stack tbody th { font-size: var(--step-0); margin-bottom: 0.15rem; }
  .table.stack td[data-label]::before { content: attr(data-label); display: block; margin-top: 0.4rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
}

/* Checks */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.checks li { display: grid; grid-template-columns: 1.6rem 1fr; gap: var(--s-2); align-items: start; }
.checks li::before { content: ""; width: 1.1rem; height: 1.1rem; margin-top: 0.3rem; border-radius: 50%; background: var(--spruce);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat; }
.checks strong { display: block; }
.checks span { color: var(--ink-soft); }
.checks.light li::before { background: var(--on-spruce-line); }
.checks.light strong { color: #fff; }
.checks.light span { color: #CFD6D2; }

/* Forms */
.form { display: grid; gap: var(--s-3); max-width: 620px; }
.field-group { display: grid; gap: 0.4rem; }
.field-group label, .field-group legend { font-weight: 600; }
.field-group .hint { color: var(--ink-soft); font-size: var(--step--1); margin: 0; }
.opt { font-weight: 400; color: var(--ink-soft); }
fieldset.field-group { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field-group legend { padding: 0; margin-bottom: 0.2rem; }
input[type="text"], input[type="email"], input[type="number"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  padding: 0.75rem 0.95rem; border: 1.5px solid var(--field-border); border-radius: 10px; min-height: 46px;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 3px solid var(--ink); outline-offset: 1px; box-shadow: none; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); background: var(--red-soft); }
.error { color: var(--red); font-size: var(--step--1); font-weight: 600; margin: 0; }
.error:empty { display: none; }
.choice { display: flex; gap: 0.65rem; align-items: flex-start; font-weight: 400 !important; }
.choice input { width: 1.25rem; height: 1.25rem; min-height: 0; margin-top: 0.15rem; accent-color: var(--ink); flex-shrink: 0; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.6rem var(--s-2); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 3.3rem; }
.input-suffix span { position: absolute; right: 0.95rem; top: 50%; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.consent-text { font-size: var(--step--1); color: var(--ink-soft); margin: 0; max-width: 540px; }
.consent .choice span { font-size: var(--step--1); }
.signup-form { gap: var(--s-1); }
.signup { display: flex; flex-wrap: wrap; gap: var(--s-1); max-width: 540px; }
.signup input { flex: 1 1 250px; border-radius: var(--radius-pill); padding-inline: 1.2rem; }
.signup + .error { margin-top: 0.2rem; }
.form-note { margin-top: var(--s-2); }
.status { margin-top: var(--s-2); padding: var(--s-2) var(--s-3); border-radius: 10px; background: var(--spruce-soft); color: var(--ink); font-weight: 500; max-width: 620px; }
.status[hidden] { display: none; }
.status.bad { background: var(--red-soft); }
.age-gate .row-2 { max-width: 420px; }
.age-gate[hidden], .after-age[hidden], .followup[hidden], .age-fail[hidden] { display: none; }
details.more { border-top: 1px solid var(--line); padding-top: var(--s-1); }
details.more summary { cursor: pointer; font-weight: 600; padding: 0.5rem 0; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
details.more[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
details.more[open] summary { margin-bottom: var(--s-1); }
details.more .form { margin-top: var(--s-1); }

/* Calculators */
.tool { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-4); align-items: start; }
@media (max-width: 900px) { .tool { grid-template-columns: 1fr; } }
.tool .form { max-width: none; gap: var(--s-2); }
.tool-result { position: sticky; top: 80px; }
@media (max-width: 900px) { .tool-result { position: static; } }
.tool h2:not(:first-child) { margin-top: var(--s-5); }
.tool .form h2 { font-size: var(--step-2); }
.result-empty { color: var(--ink-soft); }
.verdicts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.verdicts li { padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }
.verdicts .v-label { font-size: var(--step--1); color: var(--ink-soft); font-weight: 600; display: block; }
.verdicts .v-head { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: var(--step-2); line-height: 1.15; display: block; margin: 0.15rem 0 0.35rem; }
.v-head.fine { color: var(--spruce); }
.v-head.cost { color: var(--red); }
.cost-text { color: var(--red); }
.verdicts p { margin: 0.35rem 0 0; color: var(--ink-soft); font-size: var(--step--1); max-width: none; }
.verdicts .sum { color: var(--ink); }
.compare { width: 100%; border-collapse: collapse; margin: var(--s-2) 0; font-size: var(--step-0); }
.compare th, .compare td { text-align: left; padding: 0.7rem 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.compare td:last-child, .compare th:last-child { text-align: right; }
.compare th { font-weight: 500; }
.compare .total th, .compare .total td { font-weight: 700; border-bottom: 0; }
.compare .n { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: var(--step-1); }
.compare .n.cost { color: var(--red); }
.compare .n.fine { color: var(--spruce); }
.notcover { margin-top: var(--s-3); padding-top: var(--s-2); border-top: 1px solid var(--line); }
.notcover h3 { font-size: var(--step-0); margin-bottom: 0.35rem; }
.notcover p, .notcover li { color: var(--ink-soft); font-size: var(--step--1); }
.notcover ul { padding-left: 1.1rem; margin: 0; }
.disclaimer { font-size: var(--step--1); color: var(--ink-soft); border-left: 3px solid var(--field-border); padding-left: 0.8rem; margin-top: var(--s-2); }
.sources { font-size: var(--step--1); color: var(--ink-soft); }
.sources p { max-width: none; }
.result-actions { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-2); align-items: center; }
.verdicts + .notcover { border-top: 0; margin-top: 0; }

/* Prose pages */
.prose { max-width: var(--measure); }
/* a reading column sits on the same left edge as the page title above it */
.wrap.prose { margin-left: max(var(--gutter), calc((100% - var(--container)) / 2)); margin-right: auto; }
.prose h2 { font-size: var(--step-3); margin-top: var(--s-5); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-3); }
.prose li { margin-bottom: 0.4rem; }
.toc { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-3); }
.legal-section { padding-block: var(--s-5); border-top: 1px solid var(--line); }
.legal-section:first-of-type { border-top: 0; }
.rules { padding-left: 1.3rem; }
.rules li { margin-bottom: 0.5rem; }

/* Identity block, breadcrumbs */
.identity { margin-top: var(--s-5); max-width: 820px; }
.id-list { margin: 0; }
.id-list div { display: grid; grid-template-columns: 11rem 1fr; gap: var(--s-2); padding: 0.75rem 0; border-top: 1px solid var(--line); }
.id-list div:last-child { border-bottom: 1px solid var(--line); }
.id-list dt { font-weight: 600; color: var(--ink-soft); }
.id-list dd { margin: 0; }
@media (max-width: 640px) { .id-list div { grid-template-columns: 1fr; gap: 0.2rem; } }
.crumbs { border-bottom: 1px solid var(--line); font-size: var(--step--1); background: var(--paper); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.1rem 0.5rem; list-style: none; margin: 0; padding: 0.35rem 0; }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--ink-soft); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; }
.crumbs [aria-current] { color: var(--ink-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s-5); color: var(--ink-soft); font-size: var(--step--1); }
.site-footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s-4); }
.site-footer .foot-brand { grid-column: span 2; }
.site-footer .foot-brand p { max-width: 46ch; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }
.site-footer .rule { grid-column: 1 / -1; max-width: none; border-top: 1px solid var(--line); padding-top: var(--s-3); margin: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.1rem; }
.site-footer li a { display: inline-block; padding-block: 0.2rem; }
.site-footer strong { color: var(--ink); }
.site-footer .brand img { height: 22px; }
.site-footer p { margin: 0.75rem 0 0; }
@media (max-width: 640px) { .site-footer .foot-brand { grid-column: 1 / -1; } }

/* 404 */
.lost { padding-block: var(--s-7); }
.lost h1 { max-width: 16ch; }
.lost .btn-row { margin: var(--s-4) 0 var(--s-3); }

/* Small screens: only the links that fit stay in the bar; the rest live in the menu */
@media (max-width: 980px) {
  .site-header .cta { display: none; }
  .site-header .wrap { flex-wrap: nowrap; min-height: 56px; gap: var(--s-2); }
  .site-header .nav { flex: 1 1 auto; min-width: 0; margin: 0; gap: 1.25rem; align-self: stretch; align-items: stretch; overflow: hidden; }
  .site-header .nav a { flex-shrink: 0; display: flex; align-items: center; padding-block: 0; border-bottom: 3px solid transparent; border-top: 3px solid transparent; font-size: 0.95rem; white-space: nowrap; }
  .site-header .nav a[aria-current] { border-bottom-color: var(--orange); }
  .site-header .nav a:first-child { margin-left: auto; }
  .site-header .nav a.is-cut { display: none; }
  @media (max-width: 480px) { .site-header .nav { gap: 1rem; } .site-header .nav a { font-size: 0.9rem; } .brand img { height: 20px; } .brand .product { font-size: 1.3rem; } .brand { gap: 0.4rem; } .nav-mobile summary { margin-right: -12px; } }
  .nav-mobile { display: block; flex-shrink: 0; }
  .nav-mobile summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: #fff; }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .nav-mobile .l-open, .nav-mobile .l-close { display: none; }
  .bars { width: 22px; height: 2px; background: #fff; position: relative; display: block; border-radius: 2px; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: #fff; border-radius: 2px; }
  .bars::before { top: -7px; }
  .bars::after { top: 7px; }
  .nav-mobile[open] .bars { background: transparent; }
  .nav-mobile[open] .bars::before { top: 0; transform: rotate(45deg); }
  .nav-mobile[open] .bars::after { top: 0; transform: rotate(-45deg); }
  .menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); max-height: calc(100vh - 56px); overflow-y: auto; padding: 0 var(--gutter) var(--s-4); color: var(--ink); }
  .menu-main { list-style: none; margin: 0; padding: 0; }
  .menu-main a { display: flex; align-items: center; min-height: 54px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .menu-main a[aria-current] { box-shadow: inset 4px 0 0 var(--orange); padding-left: 1rem; margin-left: calc(-1 * var(--gutter)); padding-inline: calc(var(--gutter) + 0.75rem) var(--gutter); }
  .menu-cta { width: 100%; margin-top: var(--s-3); }
  .menu-more { margin-top: var(--s-3); }
  .menu-more p { margin: 0 0 0.25rem; font-size: var(--step--1); color: var(--ink-soft); font-weight: 600; }
  .menu-more ul { list-style: none; margin: 0; padding: 0; }
  .menu-more a { display: block; padding: 0.55rem 0; color: var(--ink); text-decoration: none; }
  .menu-more a strong { display: block; }
  .menu-more a span { color: var(--ink-soft); font-size: var(--step--1); }
  .menu-more .legal-link { margin-top: var(--s-1); }
  .menu-more .legal-link a { color: var(--ink-soft); font-size: var(--step--1); text-decoration: underline; padding: 0.4rem 0; }
}
@media (max-width: 980px) and (prefers-reduced-motion: no-preference) {
  .bars, .bars::before, .bars::after { transition: transform 0.18s ease, top 0.18s ease, background 0.18s ease; }
}

@media print {
  .site-header, .site-footer .nav, .btn-row, .result-actions, .signup, .crumbs, .skip { display: none; }
  .section.field { background: none; }
  a { color: var(--ink); }
  .tool { display: block; }
  .tool-result { position: static; }
}
