/* Green Law Group concept site — shared design system
   Layout: editorial single column, 1200px max, evergreen "statement" bands alternating with white/paper reading bands. */

/* Poppins, self-hosted (latin subset from Google Fonts) so text isn't render-blocked by a third-party CSS request.
   500 and 800 are preloaded in partials/head-common.html. "Poppins Fallback" is Arial resized to Poppins' metrics
   so the swap doesn't shift layout. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-400-latin.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/poppins-500-latin.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-600-latin.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-700-latin.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-700-italic-latin.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/poppins-800-latin.woff2) format("woff2"); }
/* size-adjust = measured Poppins/Arial width ratio (500 vs Arial: 112.5%; 800 vs Arial Bold: 107.9%);
   overrides = Poppins' 1050/350/100 metrics divided by it. Separate bold face so headings don't use faux-bold Arial. */
@font-face { font-family: "Poppins Fallback"; font-weight: 100 550; src: local("Arial"), local("ArialMT"); ascent-override: 93.33%; descent-override: 31.11%; line-gap-override: 8.89%; size-adjust: 112.5%; }
@font-face { font-family: "Poppins Fallback"; font-weight: 551 900; src: local("Arial Bold"), local("Arial-BoldMT"); ascent-override: 97.31%; descent-override: 32.44%; line-gap-override: 9.27%; size-adjust: 107.9%; }

:root {
  --evergreen: #0F3D2E;
  --evergreen-2: #164C3A;
  --evergreen-3: #1E5B46;
  --ink: #0C1A14;
  --sage: #8ED8B6;
  --sage-soft: #DDF1E7;
  --paper: #F5F2EA;
  --white: #FFFFFF;
  --amber: #F2A93B;
  --amber-hover: #E39A2A;
  --muted: #4D5C55;
  --line: #E1DDD1;
  --line-dark: rgba(245, 242, 234, .16);
  --on-dark-muted: #B7CBC1;
  --display: "Poppins", "Poppins Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Poppins", "Poppins Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;  /* all site text is Poppins (Noelle, 2026-10-07) */
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.7rem, 2.9vw, 2.35rem);
  --step-4: clamp(2.1rem, 4.4vw, 3.4rem);  /* sized for Poppins' wider letterforms */
  --shadow: 0 1px 2px rgba(12, 26, 20, .06), 0 12px 32px -12px rgba(12, 26, 20, .18);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 500 var(--step-0)/1.6 var(--body); overflow-x: clip; }
img, svg { max-width: 100%; height: auto; }
button, input, select, textarea, option { font-family: inherit; font-weight: inherit; }
img { display: block; }
a { color: var(--evergreen); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
/* Two-tone focus ring: an ink ring (17.9:1 on white/paper, 9:1 on amber) inside an amber ring (6.1:1 on evergreen,
   9:1 on ink), so the indicator meets 3:1 on every surface (WCAG 1.4.11 / 2.4.7). */
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; box-shadow: 0 0 0 3px var(--ink); border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); }
.timeline h3, .evidence h3 { line-height: 1.15; }  /* list-item headings: h3 for outline order, sized by each page's inline CSS */
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font: 700 .78rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--evergreen-3); }
.dark .eyebrow, .eyebrow.on-dark { color: var(--sage); }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 62ch; }
.dark .lede { color: var(--on-dark-muted); }
.prose { max-width: 70ch; }
.prose p, .prose li { color: #24332C; }
.prose ul { padding-left: 1.2em; display: grid; gap: .45em; margin-block: 1em; }
.prose h3 { margin-top: 1.6em; margin-bottom: .5em; }
.cite { font-size: .82em; color: var(--muted); }
.cite::before { content: "§ "; color: var(--evergreen-3); }
.cite:not(.case) { white-space: nowrap; } /* keep "§ CCP 352(b)" together; statute cites are short */
.cite.case::before { content: none; } /* cases and jury instructions aren't statute sections */
.cite.case { font-style: italic; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .8em 1.4em; border-radius: 999px; font: 700 1rem/1.15 var(--body); text-align: center; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; white-space: normal; } /* wraps under text-spacing overrides (1.4.12) */
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-hover); }
.btn-ghost { border-color: currentColor; color: var(--evergreen); background: transparent; }
.dark .btn-ghost { color: var(--paper); }
.btn-green { background: var(--evergreen); color: var(--paper); }
.btn-green:hover { background: var(--evergreen-2); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Concept banner + logo switcher ---------- */

/* ---------- Header + mega menu ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
/* Wraps instead of clipping under text-spacing overrides or large default fonts (1.4.12, 1.4.4); the wider container
   lets the default row fit on one line at every desktop width. */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; min-height: 76px; max-width: 1360px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }
.nav { margin-left: auto; }
.nav > ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav-top { display: inline-flex; align-items: center; gap: 6px; font: 700 .95rem/1 var(--body); color: var(--ink); background: none; border: 0; padding: 12px 12px; border-radius: 8px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.nav-top:hover, .nav-top[aria-expanded="true"] { background: var(--paper); text-decoration: none; }
.nav-top .chev { width: 10px; height: 10px; flex: none; transition: transform .2s; }
.nav-top[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(12,26,20,.35); }
@media (min-width: 60.0625em) { .mega { max-height: calc(100vh - 120px); overflow-y: auto; } } /* desktop panel scrolls when zoomed (1.4.4); the drawer doesn't clip focus rings */
.mega .wrap { display: grid; grid-template-columns: 1.1fr 2.4fr; gap: 40px; padding-block: 32px 36px; min-height: 0; align-items: start; }
.mega-intro h2 { font-size: 1.5rem; margin-bottom: 8px; }
.mega-intro p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.mega-links { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; }
.mega-links a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.mega-links a:hover { background: var(--paper); }
.mega-links strong { display: block; font-weight: 700; }
.mega-links span { display: block; font-size: .85rem; color: var(--muted); }
.mega-links .is-live strong::after { content: "Live"; margin-left: 8px; font: 700 .62rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; background: var(--sage-soft); color: var(--evergreen); padding: 3px 6px; border-radius: 999px; vertical-align: 2px; }
.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.header-phone { font: 700 1rem/1.1 var(--body); color: var(--evergreen); text-decoration: none; display: flex; flex-direction: column; text-align: right; font-variant-numeric: tabular-nums; }
.header-phone small { font: 700 .68rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; }

/* 961-1240px (incl. 110-150% zoom on laptops): drop the duplicate header button and the phone's caption so the
   phone number and nav never clip (1.4.4). The drawer and every page still offer the case review. */
@media (max-width: 81.25em) { /* em, so a larger browser font size also switches (1300px at 16px) */
  .header-cta .btn { display: none; }
  .header-phone small { display: none; }
  .nav-top { padding-inline: 9px; }
  .site-header .wrap { gap: 12px; }
}
@media (max-width: 60em) { /* 960px at 16px; must match mobileMQ in site.js */
  .menu-toggle { display: inline-flex; }
  .site-header { backdrop-filter: none; background: var(--white); } /* filter would trap the fixed drawer */
  .header-cta { display: none; }
  .brand img { height: 40px; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); background: var(--white); z-index: 60; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; padding: 18px 18px 120px; box-shadow: -20px 0 40px rgba(12,26,20,.2); margin: 0; visibility: hidden; }
  .nav.open { transform: none; visibility: visible; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav-top { width: 100%; justify-content: space-between; padding: 16px 6px; font-size: 1.05rem; border-radius: 0; }
  .nav-top:hover, .nav-top[aria-expanded="true"] { background: none; }
  .mega { position: static; box-shadow: none; border: 0; }
  .mega .wrap { grid-template-columns: 1fr; padding: 0 0 14px; gap: 10px; }
  .mega-intro { display: none; }
  .mega-links { grid-template-columns: 1fr; }
  .mega-links span { display: none; }
  .nav-close { display: flex !important; }
  .nav-drawer-cta { display: grid !important; }
}
.nav-close { display: none; justify-content: flex-end; margin-bottom: 6px; }
.nav-close button { background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.nav-drawer-cta { display: none; gap: 10px; margin-top: 20px; }
.scrim { position: fixed; inset: 0; background: rgba(12,26,20,.45); z-index: 49; } /* below the sticky header, whose stacking context holds the drawer */

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section.tight { padding-block: clamp(40px, 6vw, 72px); }
.section.paper { background: var(--paper); }
.dark { background: var(--evergreen); color: var(--paper); }
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.dark a:not(.btn) { color: var(--sage); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section-head.split { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; }
@media (max-width: 760px) { .section-head.split { grid-template-columns: 1fr; } }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .85rem; color: var(--on-dark-muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; content: "/" / ""; margin-right: 6px; opacity: .6; } /* decorative: alt text "" keeps it out of names */
.crumbs a { color: var(--on-dark-muted) !important; }

/* ---------- Hero ---------- */
.hero { background: var(--evergreen); color: var(--paper); position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(900px 500px at 85% 10%, rgba(142,216,182,.12), transparent 60%),
  radial-gradient(700px 400px at 0% 100%, rgba(242,169,59,.08), transparent 60%); }
.hero-ca { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: min(520px, 46vw); opacity: .09; z-index: -1; pointer-events: none; }
.hero-ca path { fill: none; stroke: var(--sage); stroke-width: 2; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 84px); }
.hero h1 { color: var(--white); margin-block: 14px 18px; }
.hero h1 em { font-style: italic; font-weight: 700; color: var(--sage); }
.hero .lede { color: var(--on-dark-muted); }
.hero .btn-row { margin-top: 26px; }
.hero .btn-ghost { color: var(--paper); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: .92rem; color: var(--paper); list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--sage); flex: none; }
.stars { color: #A65F00; letter-spacing: 1px; } /* 4.9:1 on white, 4.4:1 on paper (1.4.11) */
.hero .stars, .dark .stars, .trust .stars, .cta-band .stars { color: var(--amber); } /* amber reads on the dark bands */
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero-ca { display: none; } }

/* ---------- Case review form card ---------- */
.case-card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); }
.case-card h2 { font-size: 1.5rem; margin-bottom: 4px; color: var(--ink) !important; }
.case-card > p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; font: 500 1rem/1.4 var(--body); color: var(--ink); background: #FBFAF7; border: 1.5px solid #857F72; border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px; } /* border 3.8:1 (1.4.11) */
.field textarea { min-height: 88px; resize: vertical; }
/* transparent outline (not none) so forced-colors mode still draws a focus ring */
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--evergreen); outline-offset: 1px; border-color: var(--evergreen); box-shadow: none; background: var(--white); }
.field .hint { font-weight: 500; color: var(--muted); }
.form-note { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
/* Error/alert regions stay rendered while empty (so screen readers announce them when they fill), with no size. */
.form-error:empty, .calc-err:empty, .clock-error:empty { margin: 0; padding: 0; background: none; border: 0; }
.form-error { margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: #F6DCD8; color: #7A2A20; font-weight: 700; font-size: .92rem; }
.clock-error { color: #7A2A20; font-weight: 700; font-size: .9rem; }
.form-done:focus { outline: 3px solid var(--evergreen); outline-offset: 2px; }
.case-card .btn { width: 100%; margin-top: 4px; }
.case-card a:not(.btn) { color: var(--evergreen) !important; text-decoration: underline; } /* white card inside dark sections */
.fine { font-size: .78rem; color: var(--muted); margin-top: 10px; line-height: 1.45; }
.form-done { display: grid; gap: 8px; text-align: center; padding: 22px 6px; }
.form-done h3 { font-size: 1.4rem; }
.hp { position: absolute; left: -9999px; }

/* ---------- Proof bar ---------- */
/* Amber proof band: a continuous marquee (two identical groups, the second aria-hidden). Pauses on hover; static under reduced motion. */
.proof { background: var(--amber); color: var(--ink); overflow: hidden; border-block: 1px solid rgba(12,26,20,.12); }
.proof-track { display: flex; width: max-content; animation: proof-scroll 38s linear infinite; }
.proof:hover .proof-track, .proof:focus-within .proof-track, .proof.paused .proof-track { animation-play-state: paused; }
.proof { position: relative; }
/* Paused = the same static, wrapping layout as reduced motion, so every fact is readable (1.4.10). */
.proof.paused .proof-track { width: auto; animation: none; }
.proof.paused .proof-group { flex-wrap: wrap; justify-content: center; flex: 1 1 auto; min-width: 0; }
.proof.paused .proof-group[aria-hidden="true"] { display: none; }
.proof.paused li { white-space: normal; padding: 14px 22px; }
.proof-group { list-style: none; display: flex; flex: none; min-width: 100vw; justify-content: space-around; } /* 5 facts: each copy spans the screen so very wide displays show no gap at the loop seam */
.proof li { display: flex; align-items: baseline; gap: 12px; padding: 20px 40px; white-space: nowrap; position: relative; }
.proof li::after { content: "§"; content: "§" / ""; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); font: 800 1.1rem var(--display); color: rgba(12,26,20,.35); }
.proof b { font: 800 1.75rem/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.proof span { font-size: .95rem; font-weight: 700; color: #3A2A0C; }
@keyframes proof-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 760px) { .proof li { padding: 16px 28px; } .proof b { font-size: 1.45rem; } .proof-track { animation-duration: 30s; } }
@media (prefers-reduced-motion: reduce) {
  .proof-track { width: auto; animation: none; }
  .proof-group { flex-wrap: wrap; justify-content: center; flex: 1 1 auto; min-width: 0; }
  .proof-group[aria-hidden="true"] { display: none; }
  .proof li { white-space: normal; padding: 14px 22px; } /* static band wraps instead of clipping the facts (1.4.10) */
}

/* ---------- Claim Clock ---------- */
.clock { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.clock-tool { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow); }
.clock-tool .field { margin-bottom: 18px; min-width: 0; }
/* iOS Safari gives date inputs an intrinsic min-width that overflows narrow cards: reset it */
.clock-tool input[type="date"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; text-align: left; font-variant-numeric: tabular-nums; }
.clock-tool input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.deadlines { list-style: none; display: grid; gap: 10px; }
.deadline { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--paper); }
.deadline::before { content: ""; grid-row: 1 / span 2; align-self: stretch; border-radius: 3px; background: var(--evergreen-3); }
.deadline.urgent::before { background: var(--amber); }
.deadline.passed::before { background: #B4483B; }
.deadline h3 { font: 700 .98rem/1.3 var(--body); }
.deadline p { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.deadline .date { font: 800 1.05rem/1.2 var(--display); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.deadline .left { display: block; margin-top: 4px; font: 700 .74rem/1.3 var(--body); color: var(--evergreen-3); letter-spacing: .02em; }
.deadline.urgent .left { color: #8A5A0E; }
.deadline.passed .left { color: #9C3A2F; }  /* 5.3:1 on the #F6DCD8 pill (WCAG AA for small text) */
@media (max-width: 860px) { .clock { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  /* Phones: title on top, then date (left) and status chip (right) on their own row */
  .deadline { grid-template-columns: 6px minmax(0, 1fr); padding: 14px; }
  .deadline .date { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; text-align: left; padding-top: 8px; border-top: 1px solid var(--line); }
  .deadline .left { margin-top: 0; padding: 3px 10px; border-radius: 999px; background: var(--sage-soft); font-size: .72rem; }
  .deadline.urgent .left { background: #FBE9C8; }
  .deadline.passed .left { background: #F6DCD8; }
}

/* Deadline summary beside the Claim Clock */
.limits { margin: 22px 0 0; display: grid; gap: 10px; }
.limits > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.limits dt { font: 800 1.9rem/1 var(--display); color: var(--evergreen); text-align: center; font-variant-numeric: tabular-nums; }
.limits dt span { display: block; margin-top: 4px; font: 700 .68rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--evergreen-3); }
.limits dd { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--muted); }
.limits dd b { display: block; font-size: 1rem; color: var(--ink); margin-bottom: 2px; }
.limits dd .cite { display: inline-block; margin-top: 4px; }
.limits-note { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: var(--sage-soft); font-size: .92rem; color: var(--ink); }
.limits-cta { margin-top: 14px; font-size: .95rem; color: var(--muted); }
@media (max-width: 480px) { .limits > div { grid-template-columns: 70px minmax(0, 1fr); gap: 12px; padding: 12px 14px; } .limits dt { font-size: 1.6rem; } }

/* ---------- Answer blocks (AEO) ---------- */
.answer { border-left: 3px solid var(--sage); padding: 4px 0 4px 18px; margin-block: 14px 8px; font-size: 1.08rem; color: var(--ink); }
.takeaways { background: var(--sage-soft); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); }
.takeaways h2 { font-size: 1.35rem; margin-bottom: 12px; }
.takeaways ul { list-style: none; display: grid; gap: 10px; }
.takeaways ul { grid-template-columns: minmax(0, 1fr); }
.takeaways li { position: relative; padding-left: 32px; overflow-wrap: break-word; }
/* County/location pages: practice links, communities and neighbouring counties as tidy multi-column lists */
/* cities and communities: plain place names with a small map-pin, no box (they aren't links) */
.area-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 24px; margin: 18px 0 22px; padding: 0; }
@media (max-width: 480px) { .area-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.area-list li { display: flex; align-items: center; min-width: 0; gap: 6px; font-size: 1rem; font-weight: 500; line-height: 1.4; color: #24332C; }
.area-list li::before { content: ""; flex: none; width: 14px; height: 14px; background: var(--evergreen); opacity: .8; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center/contain no-repeat; }
/* practice links: tappable tiles with an arrow (same card language as the attorney bio practice tiles) */
.practice-links { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 10px; margin: 16px 0 20px; padding: 0; }
.practice-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-weight: 600; line-height: 1.3; color: var(--evergreen); text-decoration: none; transition: border-color .15s, background-color .15s; }
.practice-links a::after { content: "→"; flex: none; color: var(--evergreen); opacity: .55; transition: transform .15s, opacity .15s; }
.practice-links a:hover { border-color: var(--evergreen); background: var(--paper); }
.practice-links a:hover::after { opacity: 1; transform: translateX(3px); }
/* nearby counties: the same map-pin pills as the communities list, but as links (arrow + hover) */
.nearby-links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 20px; padding: 0; }
.nearby-links a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 14px 8px 12px; border-radius: 999px; background: var(--paper); border: 1px solid #E4DFD2; font-size: .95rem; font-weight: 600; line-height: 1.3; color: var(--evergreen); text-decoration: none; transition: border-color .15s, background-color .15s; }
.nearby-links a::before { content: ""; flex: none; width: 14px; height: 14px; background: var(--evergreen); opacity: .8; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center/contain no-repeat; }
.nearby-links a::after { content: "→"; flex: none; opacity: .55; transition: transform .15s, opacity .15s; }
.nearby-links a:hover { border-color: var(--evergreen); background: #fff; }
.nearby-links a:hover::after { opacity: 1; transform: translateX(3px); }
.takeaways li::before { content: ""; position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--evergreen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23F5F2EA' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.reviewed { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.reviewed img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

/* ---------- Practice grid ---------- */
[hidden] { display: none !important; }
.practice-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } /* 12 practice areas = 3 rows of 4 */
.practice-grid li { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--white); transition: box-shadow .2s, transform .2s; }
.practice-grid li:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.practice-grid a { display: grid; grid-template-rows: auto auto 1fr; align-content: start; gap: 6px; height: 100%; padding: 0 0 24px; background: var(--white); text-decoration: none; color: var(--ink); transition: background .15s; overflow: hidden; }
.practice-grid a:hover { background: var(--paper); }
.practice-grid .pa-img { display: block; overflow: hidden; aspect-ratio: 3 / 2; margin-bottom: 12px; background: var(--evergreen); border-radius: 17px 17px 0 0; }
.practice-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.practice-grid a:hover img { transform: scale(1.05); }
.practice-grid h3, .practice-grid p { padding-inline: 22px; }
.practice-grid h3 { font-size: 1.15rem; display: flex; justify-content: space-between; gap: 8px; }
/* The card clips its photo (overflow:hidden), which would clip the link's focus ring too: draw the ring on the card. */
.practice-grid li:has(a:focus-visible) { outline: 3px solid var(--amber); outline-offset: 3px; box-shadow: 0 0 0 3px var(--ink); }
.practice-grid a:focus-visible { outline: none; box-shadow: none; }
@supports not selector(:has(a)) { .practice-grid a:focus-visible { outline: 3px solid var(--ink); outline-offset: -4px; } }
.practice-grid h3::after { content: "→"; content: "→" / ""; font-family: var(--body); color: var(--evergreen-3); transition: transform .15s; }
.practice-grid a:hover h3::after { transform: translateX(4px); }
.practice-grid p { font: 500 1rem/1.45 var(--display); color: var(--muted); }
.section.flush-top { padding-top: 0; }
.section.short-bottom { padding-bottom: clamp(28px, 3.5vw, 44px); }
@media (max-width: 68.75em) { .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 35em) { .practice-grid { grid-template-columns: 1fr; } }

/* ---------- Calculator teaser ---------- */
.calc-teaser { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--evergreen); color: var(--paper); border-radius: calc(var(--radius) * 1.4); padding: clamp(26px, 4vw, 52px); position: relative; overflow: hidden; }
.calc-teaser h2 { color: var(--white); margin-block: 10px 12px; }
.calc-teaser p { color: var(--on-dark-muted); }
.calc-teaser .btn { margin-top: 22px; }
.calc-preview { background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; font-size: .92rem; }
.calc-preview .row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line-dark); font-variant-numeric: tabular-nums; }
.calc-preview .row span:first-child { color: var(--on-dark-muted); }
.calc-preview .range { font: 800 1.9rem/1.1 var(--display); color: var(--amber); font-variant-numeric: tabular-nums; }
.calc-preview small { color: var(--on-dark-muted); font-size: .75rem; }
@media (max-width: 860px) { .calc-teaser { grid-template-columns: 1fr; } }

/* ---------- Attorney / why ---------- */
.why { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.portrait { position: relative; }
.portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); background: var(--paper); }
.portrait figcaption { margin-top: 12px; display: grid; gap: 2px; }
.portrait figcaption b { font: 800 1.15rem var(--display); }
.portrait figcaption span { color: var(--muted); font-size: .9rem; }
.diffs { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin-top: 28px; }
.diffs li { display: grid; gap: 6px; padding-top: 16px; border-top: 2px solid var(--evergreen); }
.diffs h3 { font-size: 1.12rem; }
.diffs p { font-size: .95rem; color: var(--muted); }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } .portrait { max-width: 360px; } }
@media (max-width: 560px) { .diffs { grid-template-columns: 1fr; } }

/* ---------- Injury tabs ---------- */
/* Header row: title on the left, pill selector on the right. Panel: three columns with hairline dividers. */
.tabs { margin-top: 40px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--white); }
.tabs-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding: 22px clamp(18px, 3vw, 32px); background: var(--paper); border-bottom: 1px solid var(--line); }
.tab-hint { font: 800 1.2rem/1.25 var(--display); color: var(--ink); }
.tab-hint span { display: block; margin-bottom: 4px; font: 700 .7rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--evergreen-3); }
.tablist { display: flex; flex-wrap: wrap; gap: 8px; }
.tablist button { font: 700 .9rem/1.2 var(--body); color: var(--ink); background: var(--white); border: 1.5px solid #CFCABC; border-radius: 999px; padding: 10px 18px; min-height: 44px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s, border-color .15s, color .15s; }
.tablist button:hover { border-color: var(--evergreen); }
.tablist button[aria-selected="true"] { background: var(--evergreen); border-color: var(--evergreen); color: var(--paper); }
.tablist button[aria-selected="true"]::before { content: "✓"; content: "✓" / ""; font-weight: 700; color: var(--sage); }
.tabpanel { padding: 28px clamp(18px, 3vw, 32px) 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.tabpanel > div { padding-inline: 24px; border-left: 1px solid var(--line); }
.tabpanel > div:first-child { padding-left: 0; border-left: 0; }
.tabpanel > div:last-child { padding-right: 0; }
.tabpanel h4 { font: 700 .72rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--evergreen-3); margin-bottom: 10px; }
.tabpanel p { font-size: .95rem; line-height: 1.6; color: #24332C; }
@media (max-width: 760px) {
  .tabs-head { padding: 18px 16px; }
  .tablist { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .tablist button { padding: 11px 10px; min-height: 46px; }
  .tabpanel { grid-template-columns: 1fr; gap: 20px; padding: 22px 16px 24px; }
  .tabpanel > div { padding: 0; border-left: 0; }
  .tabpanel > div + div { padding-top: 18px; border-top: 1px solid var(--line); }
}

/* ---------- Coverage map ---------- */
.coverage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.ca-map { width: 100%; max-width: 440px; justify-self: center; }
.ca-map .state { fill: var(--evergreen-2); stroke: var(--sage); stroke-width: 1.5; stroke-linejoin: round; }
.ca-map .city { fill: var(--sage); }
.ca-map .hq { fill: var(--amber); }
.ca-map .pulse { fill: none; stroke: var(--amber); stroke-width: 2; transform-origin: center; transform-box: fill-box; animation: pulse 2.4s ease-out 2; } /* two pulses (4.8s), so it stops within 5s (2.2.2) */
.ca-map text { font: 700 13px var(--body); fill: var(--paper); }
.ca-map text.hq-label { fill: var(--amber); font-weight: 700; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.loc-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; margin-top: 22px; }
.loc-list a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line-dark); text-decoration: none; color: var(--paper) !important; }
.loc-list a:hover { color: var(--sage) !important; }
.loc-list a.hq-link { color: var(--amber) !important; font-weight: 700; }
@media (max-width: 860px) { .coverage { grid-template-columns: 1fr; } }
.counties { margin-top: clamp(36px, 5vw, 56px); padding-top: 28px; border-top: 1px solid var(--line-dark); }
.counties h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 6px; }
.counties > p { color: var(--on-dark-muted); margin-bottom: 18px; }
.county-list { list-style: none; columns: 5 140px; column-gap: 24px; font-size: .9rem; color: var(--paper); }
@media (max-width: 480px) { .county-list { font-size: .82rem; column-gap: 16px; } }
.county-list li { padding: 5px 0; break-inside: avoid; border-bottom: 1px dashed var(--line-dark); }
.county-list a { display: block; min-height: 24px; color: var(--paper) !important; text-decoration: none; }
.county-list a:hover { color: var(--sage) !important; text-decoration: underline; }

/* ---------- County finder (coverage section) ---------- */
.county-finder { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.cf-form label { display: block; font: 800 1.3rem/1.2 var(--display); color: var(--white); margin-bottom: 12px; }
.cf-row { display: flex; gap: 12px; }
.cf-row input { flex: 1 1 auto; min-width: 0; min-height: 54px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--white); color: var(--ink); font: 500 1rem var(--body); }
.cf-row input { border: 1px solid transparent; } /* visible boundary in forced colours */
.cf-row input::placeholder { color: #66716C; } /* 5.1:1 */
.cf-row .btn { min-height: 54px; padding-inline: 26px; box-shadow: 0 10px 24px -10px rgba(242,169,59,.6); }
.cf-result:empty { display: block; margin: 0; padding: 0; border: 0; } /* stays rendered (a live region) while empty */
.cf-result { overflow-wrap: anywhere; }
.cf-result:not(:empty) { margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: rgba(142,216,182,.12); border: 1px solid rgba(142,216,182,.35); color: var(--paper); }
.cf-result.miss { background: rgba(242,169,59,.1); border-color: rgba(242,169,59,.45); }
.cf-result .cf-head { font: 800 1.05rem/1.35 var(--display); color: var(--white); margin-bottom: 4px; }
.cf-result p { font-size: .95rem; color: var(--on-dark-muted); }
.cf-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; }
.cf-link { font-weight: 700; color: var(--sage) !important; }
.cf-link.cf-review { color: var(--amber) !important; }
.cf-all { display: inline-block; margin-top: 16px; font: 700 1rem var(--body); color: var(--sage) !important; text-decoration: underline; text-underline-offset: 4px; }
.cf-all:hover, .cf-all:focus-visible { color: var(--white); }
@media (max-width: 520px) { .cf-row { flex-direction: column; } .cf-row .btn { width: 100%; } }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.review { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; align-content: start; }
.review blockquote { margin: 0; font: 500 1.12rem/1.5 var(--display); }
.review figcaption { font-size: .88rem; color: var(--muted); }
.review figcaption b { color: var(--ink); }
.rating-head { display: flex; align-items: center; gap: 14px; }
.rating-head .big { font: 800 3rem/1 var(--display); }
.disclaim { font-size: .8rem; color: var(--muted); margin-top: 18px; }
/* County pages: compact reviews strip (smaller version of the home page reviews) */
.reviews-compact .section-head { margin-bottom: 18px; }
.reviews-compact h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.reviews-compact .rating-head .big { font-size: 2.1rem; }
.reviews-compact .reviews { gap: 12px; }
.reviews-compact .review { padding: 16px 18px; gap: 8px; border-radius: var(--radius-sm); }
.reviews-compact .review blockquote { font-size: .95rem; line-height: 1.45; }
.reviews-compact .review .stars { font-size: .85rem; }
.reviews-compact .review figcaption { font-size: .8rem; }
@media (max-width: 760px) { .reviews-compact .reviews { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 8px; padding: 24px; border-radius: var(--radius); background: var(--paper); }
.steps li::before { content: "Step " counter(step); font: 700 .74rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--evergreen-3); }
.steps p { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; font: 800 1.08rem/1.35 var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; content: "+" / ""; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 700 1.5rem/1 var(--body); color: var(--evergreen-3); }
.faq details[open] summary::after { content: "−"; content: "−" / ""; }
.faq .faq-a { padding: 0 20px 20px; color: #24332C; }
.faq .faq-a p + p { margin-top: .7em; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--evergreen); color: var(--paper); }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding-block: clamp(40px, 6vw, 64px); }
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--on-dark-muted); margin-top: 8px; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C2CEC8; font-size: .92rem; padding-block: 56px 110px; }
.site-footer a { color: #E6ECE8; text-decoration: none; }
.site-footer a:hover { color: var(--sage); text-decoration: underline; }
.site-footer p a, .site-footer address a { text-decoration: underline; text-decoration-color: rgba(230, 236, 232, .45); text-underline-offset: 3px; }  /* links inside text need more than color */
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h2 { font: 700 .74rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin-bottom: 14px; }
.foot-grid ul { list-style: none; display: grid; gap: 8px; }
.foot-brand img { height: 46px; width: auto; margin-bottom: 16px; }
.foot-brand address { font-style: normal; line-height: 1.7; }
.foot-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; display: grid; gap: 8px; color: #93A49B; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Mobile sticky bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(12,26,20,.12); }
  .mobile-bar .btn { min-height: 50px; padding-inline: 10px; font-size: .95rem; }
  html { scroll-padding-bottom: 96px; }  /* keep scrolled-to / focused controls clear of the bar */
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero .wrap { padding-block: clamp(28px, 4vw, 56px) clamp(40px, 6vw, 76px); }
.page-hero .crumbs { margin-bottom: 18px; }

/* ---------- Two-column article layout ---------- */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.aside .card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--white); }
.aside .card h2 { font-size: 1.15rem; margin-bottom: 8px; }
.toc ol { list-style: none; display: grid; gap: 4px; font-size: .92rem; }
.toc a { text-decoration: none; color: var(--muted); display: block; padding: 4px 0 4px 10px; border-left: 2px solid var(--line); }
.toc a:hover, .toc a.active { color: var(--evergreen); border-left-color: var(--evergreen); }
@media (max-width: 1000px) { .article { grid-template-columns: minmax(0, 1fr); } .aside { position: static; } }
.article > :first-child h2 { margin-top: 1.7em; margin-bottom: .2em; scroll-margin-top: 100px; }
.article > :first-child h2:first-child, .article .takeaways h2, .article .card h2 { margin-top: 0; }
.article > :first-child h3 { margin-top: 1.4em; margin-bottom: .4em; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin-block: 1.2em; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--paper); font-weight: 700; font-size: .85rem; }
tr:last-child td { border-bottom: 0; }
td { font-variant-numeric: tabular-nums; }

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

/* ---------- Settlement calculator ---------- */
.calc { max-width: 760px; }
/* key limitations, shown above the form before any contact details are asked for (Steven Green, 2026-10-14) */
.calc-limits { margin-bottom: 16px; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); padding: 14px 16px; font-size: .9rem; line-height: 1.55; }
.calc-limits p + p { margin-top: 6px; font-size: .84rem; }
.calc-card { background: var(--evergreen); color: var(--paper); border-radius: calc(var(--radius) * 1.3); padding: clamp(22px, 4vw, 44px); box-shadow: 0 30px 60px -30px rgba(12,26,20,.5); }
.calc-card fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc-progress { display: flex; gap: 6px; margin-bottom: 14px; }
.calc-progress span { flex: 1; height: 4px; border-radius: 2px; background: rgba(245,242,234,.16); }
.calc-progress span.on { background: var(--amber); }
.calc-steplbl { font: 700 .74rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin-bottom: 6px; }
.calc-q { font: 800 1.45rem/1.25 var(--display); color: var(--white); margin-bottom: 14px; padding: 0; }
.calc-q2 { font-size: 1.15rem; margin-top: 26px; margin-bottom: 12px; }
.calc-sub { color: var(--on-dark-muted); margin-bottom: 16px; font-size: .95rem; }
.calc-opts { display: grid; gap: 8px; }
.calc-opts-row { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .calc-opts-row { grid-template-columns: 1fr; } }
.calc-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1.5px solid rgba(245,242,234,.2); border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.calc-opt:hover { border-color: var(--sage); }
.calc-opt.sel { border-color: var(--amber); background: rgba(242,169,59,.12); }
.calc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.calc-opt:focus-within { outline: 3px solid var(--amber); outline-offset: 2px; }
.calc-opt .dot { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid rgba(245,242,234,.45); }
.calc-opt.sel .dot { border-color: var(--amber); background: var(--amber); box-shadow: inset 0 0 0 3px var(--evergreen); }
.calc-opt b { display: block; color: var(--white); font-weight: 700; font-size: .98rem; }
.calc-opt small { display: block; color: var(--on-dark-muted); font-size: .8rem; line-height: 1.4; margin-top: 2px; }
.calc-alert { margin-top: 14px; border: 1px solid var(--amber); background: rgba(242,169,59,.12); color: #F7E3C2; font-size: .88rem; line-height: 1.5; padding: 10px 14px; border-radius: 8px; }
.calc-slider { margin-top: 16px; display: grid; gap: 8px; }
.calc-slider-head { font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.calc-slider output { font: 800 1.2rem var(--display); color: var(--amber); font-variant-numeric: tabular-nums; }
.calc-slider input { width: 100%; accent-color: var(--amber); height: 44px; margin: 0; cursor: pointer; }  /* 44px touch target */
.calc-help { color: var(--on-dark-muted); font-size: .8rem; line-height: 1.45; }
.calc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
@media (max-width: 560px) { .calc-grid2 { grid-template-columns: 1fr; } }
.calc .field label { color: var(--white); }
.calc .field input { background: var(--white); border-color: transparent; font-variant-numeric: tabular-nums; }
.calc .field input:focus { border-color: var(--ink); outline: 3px solid var(--amber); outline-offset: 2px; } /* visible focus on the dark card (2.4.7) */
.calc .field input[aria-invalid="true"] { border-color: #F6DCD8; box-shadow: 0 0 0 3px #F6DCD8; }
.calc a:not(.btn) { color: var(--sage); }
.calc-opts[aria-invalid="true"] { outline: 2px dashed #F6DCD8; outline-offset: 6px; border-radius: 12px; }
.calc .hint { color: var(--on-dark-muted); font-weight: 500; }
.calc-err { color: #F7C98A; font-size: .92rem; font-weight: 700; margin-top: 10px; }
.calc-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; gap: 12px; }
.calc-back { background: none; border: 0; color: var(--on-dark-muted); font: 700 .95rem var(--body); cursor: pointer; padding: 10px 0; min-height: 44px; min-width: 44px; }
.calc-back:hover { color: var(--white); }
.calc-next { margin-left: auto; }
.calc-next:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.calc-result:focus { outline: none; }
.calc-result { scroll-margin-top: 110px; } /* clear the sticky header when scrolled into view */
.calc-required { margin: 4px 0 10px; font-size: .88rem; }
.optout-status { color: #93A49B; font-size: .82rem; }
.calc-range { font: 800 clamp(2rem, 5vw, 3rem)/1.1 var(--display); color: var(--amber); font-variant-numeric: tabular-nums; margin-block: 4px 18px; }
.calc-break { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.calc-break li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-dark); font-size: .93rem; }
.calc-break span { color: var(--on-dark-muted); }
.calc-break b { color: var(--white); font-variant-numeric: tabular-nums; text-align: right; }
.calc-notes { list-style: none; display: grid; gap: 8px; margin-top: 16px; }
.calc-notes li { font-size: .9rem; color: var(--paper); padding-left: 18px; position: relative; }
.calc-notes li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.calc-call { margin-top: 22px; width: 100%; }
.calc-fine { color: var(--on-dark-muted); font-size: .76rem; line-height: 1.5; margin-top: 16px; }
.calc-restart { display: block; margin: 10px auto 0; min-height: 44px; padding: 10px 16px; background: none; border: 0; color: var(--sage); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: 700 .95rem var(--body); }

/* ---------- Privacy: first-visit notice (in the page flow at the top, so it never covers focused content) ---------- */
.consent { display: none; background: var(--paper); color: var(--ink); border-bottom: 2px solid var(--evergreen); }
.consent-pending .consent { display: block; }
.consent .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 28px; align-items: center; padding-block: 16px; }
.consent h2 { font-size: 1.05rem; margin-bottom: 4px; }
.consent p { font-size: .9rem; color: #2A3832; max-width: 82ch; }
.consent-links { margin-top: 6px; }
.consent-links a { font-weight: 700; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-btn { min-width: 128px; background: var(--evergreen); color: var(--paper); } /* both choices look identical (no dark pattern) */
.consent-btn:hover { background: var(--evergreen-2); }
.consent-status:empty { margin: 0; }
@media (max-width: 760px) { .consent .wrap { grid-template-columns: 1fr; } .consent-actions .btn { flex: 1 1 0; } }

/* ---------- Privacy choices page ---------- */
.choices { display: grid; gap: 18px; max-width: 70ch; margin-top: 18px; }
.choices fieldset { border: 1.5px solid #857F72; border-radius: var(--radius); padding: 18px 20px; margin: 0; }
.choices legend { font: 800 1.15rem/1.3 var(--display); padding: 0 6px; }
.choices p { color: #24332C; font-size: .95rem; }
.choice-toggle { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; font-weight: 700; cursor: pointer; }
.choice-toggle input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--evergreen); }
.choices-current { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--sage-soft); font-weight: 600; }
.gpc-note { padding: 12px 14px; border-radius: var(--radius-sm); background: #FBE9C8; font-weight: 600; }
.choices-status:empty { margin: 0; }
.choices-status { font-weight: 700; color: var(--evergreen); }
.choices .btn-row .btn { min-width: 180px; }

/* ---------- Click-to-load map (nothing is requested from Google until the visitor asks) ---------- */
.map-facade { display: grid; place-content: center; gap: 12px; text-align: center; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 4 / 3; }
.map-facade p { color: var(--muted); font-size: .92rem; max-width: 40ch; margin-inline: auto; }
.map-facade.loaded { padding: 0; display: block; overflow: hidden; }
.map-facade iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-facade iframe:focus-visible, [role="tabpanel"]:focus-visible { outline: 3px solid var(--ink); outline-offset: -4px; box-shadow: inset 0 0 0 6px var(--amber); } /* drawn inside: the parents clip overflow */
/* Short viewports (landscape phones, 400% zoom): sticky header and call bar would cover most of the screen. */
@media (max-height: 31.25em) { .site-header { position: relative; } .mobile-bar { display: none !important; } html { scroll-padding: 0; } }

/* ---------- Footer legal links ---------- */
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 32px; font-size: .88rem; }
.foot-links a { text-decoration: underline; text-decoration-color: rgba(230, 236, 232, .45); text-underline-offset: 3px; display: inline-block; min-height: 24px; }

/* ---------- Forced colours (Windows High Contrast): keep states visible when author colours are dropped ---------- */
@media (forced-colors: active) {
  :focus-visible { outline: 3px solid Highlight; box-shadow: none; }
  .field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid Highlight; }
  .calc-opt.sel { outline: 3px solid Highlight; outline-offset: 2px; }
  .site-header .brand img { forced-color-adjust: none; background: #FFFFFF; border-radius: 6px; }
  .foot-brand img { forced-color-adjust: none; background: var(--ink); border-radius: 6px; }
  .ca-map { forced-color-adjust: none; background: var(--evergreen); border-radius: 12px; }
  .toc a.active { text-decoration: underline; text-decoration-thickness: 2px; }
  .nav-top[aria-expanded="true"] { text-decoration: underline; }
  .cf-row input { border: 1px solid CanvasText; }
  .tablist button[aria-selected="true"] { text-decoration: underline; text-decoration-thickness: 2px; }
}
