/* Jersey Shore Cost Seg · design system "boardwalk" (Jersey Shore boardwalk).
   Rendered by sites/_template-regionsite/build.py from designs.json. Layout variants are
   body classes: nav-*, hero-*, cards-*, longform-*, case-*, tex-*. */

:root {
  --primary: #13294b;
  --accent: #f2b632;
  --accent-ink: #13294b;
  --ink: #101827;
  --bg: #f7f0e1;
  --surface: #ffffff;
  --muted: #53607a;
  --border: #e3d7bd;
  --hero-ink: #ffffff;
  --r: 14px;
  --display: "Oswald", Georgia, serif;
  --body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1180px;
  --prose: 70ch;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
.case-upper h1, .case-upper h2, .case-upper .wordmark, .case-upper .section-kicker, .case-upper .kicker { text-transform: uppercase; letter-spacing: 0.02em; }
.case-upper h3 { letter-spacing: 0.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.prose-wrap { max-width: calc(var(--prose) + 2 * var(--gutter)); }
.fine { font-size: .86rem; color: var(--muted); }
.kicker, .section-kicker, .card-kicker, .path-kicker { font-family: var(--body); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 .7em; }
.section-lede, .dek { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.35rem; border-radius: var(--r); font-family: var(--body); font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--primary); color: #fff; }
.btn-secondary:hover { background: var(--ink); }
.btn-ghost { background: transparent; color: var(--primary); border-color: currentColor; }
.btn-ghost:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- nav: bar | masthead | minimal ---------- */
.site-nav { position: relative; z-index: 40; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.35rem; text-decoration: none; color: inherit; line-height: 1.1; white-space: nowrap; flex: 0 0 auto; }
.wordmark-sub { display: block; white-space: nowrap; font-family: var(--body); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .75; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: .1rem; flex-wrap: nowrap; }
.nav-links a { white-space: nowrap; }
.nav-links a { color: inherit; text-decoration: none; font-size: .95rem; font-weight: 500; padding: .55rem .7rem; border-radius: var(--r); min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.nav-links .nav-cta { background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-left: .4rem; }
.nav-toggle, .nav-burger { display: none; }

.nav-bar .site-nav { background: var(--primary); color: #fff; position: sticky; top: 0; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.nav-bar .nav-links a:hover { background: rgba(255,255,255,.12); }

.nav-masthead .site-nav { background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--ink); }
.nav-masthead .nav-inner { flex-direction: column; padding: 1.4rem 0 .4rem; gap: .5rem; }
.nav-masthead .wordmark { font-size: clamp(1.8rem, 4vw, 2.8rem); text-align: center; font-weight: 600; }
.nav-masthead .wordmark-sub { text-align: center; }
.nav-masthead .nav-links { justify-content: center; border-top: 1px solid var(--border); padding-top: .3rem; width: 100%; }
.nav-masthead .nav-links a:hover { color: var(--primary); }

.nav-minimal .site-nav { background: transparent; color: var(--ink); }
.nav-minimal.kind-home .site-nav { position: absolute; left: 0; right: 0; color: var(--hero-ink); }
.nav-minimal .nav-links a:hover { background: rgba(0,0,0,.06); }

/* ---------- hero: fullbleed | split | masthead | wide ---------- */
.hero { position: relative; }
.hero h1 { color: inherit; }
.hero .lede { font-size: clamp(1.08rem, 1.6vw, 1.3rem); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
.hero-media { margin: 0; }
.hero-media img { width: 100%; object-fit: cover; }
.hero-media figcaption { font-size: .75rem; color: var(--muted); padding: .3rem var(--gutter); }

.hero-fullbleed .hero { min-height: min(82vh, 760px); display: flex; align-items: flex-end; color: var(--hero-ink); }
.hero-fullbleed .hero-media { position: absolute; inset: 0; }
.hero-fullbleed .hero-media img { height: 100%; }
.hero-fullbleed .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 25%, rgba(0,0,0,.72) 100%); }
.hero-fullbleed .hero-media figcaption { position: absolute; right: 0; bottom: 0; color: rgba(255,255,255,.75); z-index: 2; }
.hero-fullbleed .hero-text { position: relative; z-index: 2; padding-top: 5rem; padding-bottom: 3.5rem; width: 100%; }
.hero-fullbleed .hero .kicker { color: #fff; opacity: .85; }
.hero-fullbleed .hero .btn-ghost { color: #fff; }
.hero-fullbleed .hero .btn-ghost:hover { background: #fff; color: var(--primary); border-color: #fff; }

.hero-split .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: stretch; background: var(--primary); color: var(--hero-ink); }
.hero-split .hero-text { padding: clamp(2.5rem, 6vw, 5rem) var(--gutter); max-width: 640px; margin-left: auto; align-self: center; }
.hero-split .hero-media img { height: 100%; min-height: 420px; }
.hero-split .hero .kicker { color: var(--accent); }
.hero-split .hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
.hero-split .hero .btn-ghost { color: #fff; }
.hero-split .hero .btn-ghost:hover { background: #fff; color: var(--primary); border-color: #fff; }

.hero-masthead .hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); color: var(--ink); }
.hero-masthead .hero-text { text-align: center; max-width: 920px; }
.hero-masthead .hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 600; }
.hero-masthead .hero .lede { margin: 0 auto; color: var(--muted); }
.hero-masthead .hero-actions { justify-content: center; }
.hero-masthead .hero-media { max-width: 1440px; margin: clamp(2rem, 4vw, 3.5rem) auto 0; padding: 0 var(--gutter); }
.hero-masthead .hero-media img { aspect-ratio: 21 / 9; }

.hero-wide .hero { display: flex; flex-direction: column; color: var(--ink); }
.hero-wide .hero-media { order: -1; }
.hero-wide .hero-media img { aspect-ratio: 21 / 9; max-height: 640px; }
.hero-wide .hero-text { position: relative; margin-top: clamp(-7rem, -9vw, -3rem); background: var(--surface); padding: clamp(1.5rem, 3vw, 2.6rem); border-radius: var(--r); box-shadow: 0 18px 50px rgba(20,30,40,.14); max-width: 860px; width: calc(100% - 2 * var(--gutter)); }

/* ---------- bands ---------- */
.band { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.band + .band { border-top: 1px solid var(--border); }
.band-numbers { background: var(--surface); }
.band-tool { background: color-mix(in srgb, var(--primary) 6%, var(--bg)); }
.band-paths { background: var(--bg); }
.tex-topo .band-tool, .tex-topo .band-numbers { background-image: repeating-radial-gradient(circle at 20% 40%, transparent 0 22px, color-mix(in srgb, var(--primary) 6%, transparent) 22px 23px); }
.tex-stripe .band-numbers { background: repeating-linear-gradient(90deg, var(--surface) 0 38px, color-mix(in srgb, var(--accent) 12%, var(--surface)) 38px 76px); }
.tex-brick .band-numbers { background-image: linear-gradient(color-mix(in srgb, var(--accent) 7%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent) 7%, transparent) 1px, transparent 1px); background-size: 64px 24px; background-color: var(--surface); }
.tex-paper body, .tex-paper .band { background-color: var(--bg); }
.tex-paper .band + .band { border-top: 1px dashed var(--border); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.4rem; margin: 1.8rem 0 1.2rem; }
.stat { border-top: 3px solid var(--accent); padding-top: .8rem; }
.stat-num { font-family: var(--display); font-size: clamp(2rem, 3.8vw, 2.9rem); font-weight: 700; color: var(--primary); line-height: 1; margin: 0 0 .4rem; }
.stat-lbl { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- cards: photo | bordered | index ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.4rem; margin: 1.8rem 0; }
.card { background: var(--surface); border-radius: var(--r); overflow: hidden; color: inherit; text-decoration: none; display: flex; flex-direction: column; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 1.2rem 1.3rem 1.4rem; }
.card h3, .card-h { font-size: 1.22rem; margin: 0 0 .45rem; }
.card p { margin: 0 0 .5rem; font-size: .98rem; }
.card-index { font-family: var(--display); color: var(--accent); font-weight: 700; font-size: .95rem; }
.card-link:hover h3, .card-link:hover .card-h { color: var(--primary); text-decoration: underline; }
.card-num { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--primary); line-height: 1.05; margin-bottom: 0; }
.card-numlbl { color: var(--muted); font-size: .85rem; }
.card-dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .8rem 0 0; }
.card-dl dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card-dl dd { margin: 0; font-weight: 700; }

.cards-photo .card { box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 10px 30px rgba(0,0,0,.07); }
.cards-photo .card-link:hover { transform: translateY(-2px); transition: transform .15s; }
.cards-bordered .card { border: 2px solid var(--border); }
.cards-bordered .card-link:hover { border-color: var(--primary); }
.cards-index .card-grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--ink); }
.cards-index .card { flex-direction: row; background: transparent; border-bottom: 1px solid var(--border); border-radius: 0; align-items: center; }
.cards-index .card img { width: 240px; flex: 0 0 240px; aspect-ratio: 4 / 3; margin: 1.1rem 0; }
.cards-index .card-body { display: grid; grid-template-columns: 4rem 1fr; column-gap: 1rem; padding: 1.4rem .5rem; }
.cards-index .card-index { grid-row: span 3; font-size: 1.6rem; }
.cards-index .card.fixture { display: grid; grid-template-columns: 240px 1fr; }

/* ---------- prose / longform ---------- */
.prose { font-size: 1.06rem; }
.prose h2 { margin-top: 2.2em; padding-top: .2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1.6em 0; padding: .2em 0 .2em 1.2em; border-left: 4px solid var(--accent); font-family: var(--display); font-size: 1.2rem; }
.answer-first { background: var(--surface); border-left: 4px solid var(--accent); padding: 1rem 1.2rem; border-radius: 0 var(--r) var(--r) 0; }
.page-head { padding-top: clamp(2.2rem, 5vw, 4rem); padding-bottom: 1rem; }
.lf-head { padding-top: clamp(2.2rem, 5vw, 4rem); max-width: calc(860px + 2 * var(--gutter)); }
.lf-head .dek { font-size: 1.25rem; }
.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.byline { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: .8rem; }
.lf-figure { margin: 1.5rem auto 0; }
.lf-figure img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--r); }
.lf-figure figcaption { font-size: .75rem; color: var(--muted); padding-top: .3rem; }
.lf-body { padding-top: 2rem; padding-bottom: 2rem; }
.lf-body .prose { max-width: var(--prose); }
.longform-single .lf-body { max-width: calc(var(--prose) + 2 * var(--gutter)); }
.longform-single .toc { border: 1px solid var(--border); padding: 1rem 1.3rem; margin-bottom: 2rem; border-radius: var(--r); }
.longform-sidebar .lf-body.has-toc { display: grid; grid-template-columns: 250px minmax(0, var(--prose)); gap: 3rem; }
.longform-sidebar .toc { position: sticky; top: 90px; align-self: start; font-size: .9rem; border-left: 3px solid var(--accent); padding-left: 1rem; }
.toc-h { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: .35em 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--primary); text-decoration: underline; }
.sources { font-size: .9rem; border-top: 1px solid var(--border); margin-top: 3rem; }
.sources h2 { font-size: 1.2rem; }
.related { padding-bottom: 3rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.related-h { width: 100%; font-weight: 700; margin-bottom: .2rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2rem 0; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .7rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 2px solid var(--ink); }
.ex-table th { font-weight: 500; color: var(--ink); width: 60%; }
.ex-table .ex-total th, .ex-table .ex-total td { font-weight: 700; border-top: 2px solid var(--ink); }

/* ---------- callouts, rules, areas ---------- */
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--accent); padding: 1.2rem 1.4rem; border-radius: var(--r); margin: 2rem 0 0; }
.callout-h { font-weight: 700; margin-bottom: .4rem; }
.rule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin: 1.8rem 0; }
.rule { background: var(--surface); padding: 1.3rem; border-radius: var(--r); border-top: 4px solid var(--primary); }
.rule h3 { font-size: 1.1rem; }
.rule p { font-size: .97rem; }
.area { padding: 2rem 0; border-bottom: 1px solid var(--border); max-width: 900px; }
.area h2 a { text-decoration: none; }
.area-county { font-family: var(--body); font-size: .9rem; color: var(--muted); font-weight: 500; }
.area-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem 1.4rem; margin: 1rem 0; }
.area-facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.area-facts dd { margin: 0; }

/* ---------- questions ---------- */
details.qa { border-bottom: 1px solid var(--border); padding: .4rem 0; }
details.qa summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; padding: .7rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 44px; }
details.qa summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
details.qa[open] summary::after { content: "–"; }
.qa-a { padding-bottom: .8rem; }
.topic-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; }
.topic-nav a { border: 1px solid var(--border); border-radius: 999px; padding: .35rem .9rem; text-decoration: none; font-size: .9rem; background: var(--surface); }
.qa-group { padding-top: 1.5rem; }
.qa-open { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.qa-open h3 { font-size: 1.15rem; }

/* ---------- two paths ---------- */
.paths { margin: 3rem 0; }
.paths-h { margin-bottom: 1.2rem; }
.paths-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.path { background: var(--surface); border-radius: var(--r); padding: clamp(1.4rem, 3vw, 2.2rem); display: flex; flex-direction: column; border: 1px solid var(--border); }
.path-online { border-top: 6px solid var(--accent); }
.path-local { border-top: 6px solid var(--primary); }
.path-title { font-family: var(--display); font-size: 1.6rem; font-weight: 700; margin-bottom: .5rem; }
.path-facts { padding-left: 1.1em; font-size: .95rem; color: var(--muted); margin: 0 0 1.4rem; }
.path-facts li { margin: .3em 0; }
.path .btn { margin-top: auto; align-self: flex-start; }
.paths-note { font-size: .8rem; color: var(--muted); margin-top: .9rem; }

/* ---------- tool ---------- */
.tool { background: var(--surface); border-radius: var(--r); padding: clamp(1.3rem, 3vw, 2.4rem); box-shadow: 0 10px 40px rgba(0,0,0,.06); border: 1px solid var(--border); margin-top: 1.6rem; }
.tool-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem 1.6rem; align-items: start; }
.tool-q label, .tool-q legend { display: block; font-weight: 700; margin-bottom: .4rem; font-size: .98rem; }
.tool-q select, .tool-q input[type=text] { width: 100%; min-height: 48px; font: inherit; font-size: 16px; padding: .6rem .8rem; border: 2px solid var(--border); border-radius: var(--r); background: var(--bg); color: var(--ink); }
.tool-q select:focus, .tool-q input:focus { border-color: var(--primary); outline: none; }
.tool-q-checks { grid-column: 1 / -1; }
.tool-q fieldset { border: 0; padding: 0; margin: 0; }
.tool-checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.tool-check { display: inline-flex; align-items: center; gap: .45rem; border: 2px solid var(--border); border-radius: 999px; padding: .4rem .9rem; font-weight: 500 !important; cursor: pointer; min-height: 44px; margin: 0 !important; background: var(--bg); }
.tool-check:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--bg)); }
.tool-help { font-size: .85rem; color: var(--muted); margin: .35rem 0 0; }
.tool-form > .btn { grid-column: 1 / -1; justify-self: start; }
.tool-result { margin-top: 2rem; border-top: 2px solid var(--ink); padding-top: 1.6rem; }
.verdict { border-radius: var(--r); padding: 1.2rem 1.4rem; margin-bottom: 1.2rem; border-left: 6px solid var(--muted); background: var(--bg); }
.verdict-good { border-left-color: #2f7d4f; }
.verdict-caution { border-left-color: #c48a12; }
.verdict-stop { border-left-color: #b03a2e; }
.verdict-h { font-family: var(--display); font-size: 1.35rem; font-weight: 700; margin-bottom: .4rem; }
.estimate { padding: .4rem 0 1rem; }
.estimate-h { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; margin: 0; }
.estimate-num { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; color: var(--primary); margin: .2rem 0 .4rem; }
.estimate-note { font-size: .92rem; }

/* ---------- examples ---------- */
.example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 2.2rem; padding: 2.6rem 0; border-bottom: 1px solid var(--border); align-items: start; }
.example-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.example:not(:has(.example-img)) { grid-template-columns: 1fr; max-width: 820px; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: color-mix(in srgb, #fff 78%, var(--ink)); padding: 3.5rem 0 2.5rem; margin-top: 3rem; font-size: .93rem; }
.site-foot a { color: #fff; text-decoration: none; display: block; padding: .3rem 0; }
.site-foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot-mark { font-family: var(--display); font-size: 1.4rem; color: #fff; font-weight: 700; }
.foot-h { color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1.2rem; font-size: .8rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-split .hero { grid-template-columns: 1fr; }
  .hero-split .hero-text { margin: 0; }
  .hero-split .hero-media img { min-height: 0; aspect-ratio: 16 / 10; }
  .longform-sidebar .lf-body.has-toc { display: block; }
  .longform-sidebar .toc { position: static; margin-bottom: 2rem; }
  .paths-grid, .example { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cards-index .card, .cards-index .card.fixture { flex-direction: column; display: flex; align-items: stretch; }
  .cards-index .card img { width: 100%; flex: none; margin: 1rem 0 0; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .wordmark, .wordmark-sub { white-space: normal; }
  .wordmark { flex: 1 1 auto; min-width: 0; }
  .nav-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; cursor: pointer; }
  .nav-burger span { display: block; height: 2px; background: currentColor; border-radius: 2px; }
  .nav-inner { flex-wrap: wrap; }
  .nav-masthead .nav-inner { flex-direction: row; justify-content: space-between; padding: .6rem 0; }
  .nav-masthead .wordmark, .nav-masthead .wordmark-sub { text-align: left; font-size: 1.4rem; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: .8rem; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links .nav-cta { margin: .4rem 0 0; justify-content: center; }
  .nav-minimal.kind-home .site-nav { position: relative; color: var(--ink); background: var(--bg); }
  .hero-fullbleed .hero { min-height: 560px; }
  .hero-wide .hero-text { margin-top: -2rem; }
  .hero-masthead .hero-media img, .hero-wide .hero-media img { aspect-ratio: 4 / 3; }
  .foot-grid { grid-template-columns: 1fr; }
  .card-dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-index .card-body { grid-template-columns: 1fr; }
  .cards-index .card-index { grid-row: auto; font-size: 1rem; }
}

/* ---------- print: the owner reviews these on paper ---------- */
@media print {
  @page { margin: 16mm 14mm; }
  body { font-size: 11pt; line-height: 1.45; background: #fff; color: #000; }
  .site-nav, .skip, .nav-burger, .hero-actions, .tool-form, .btn, .topic-nav, .toc, .related { display: none !important; }
  .hero, .hero-fullbleed .hero, .hero-split .hero { min-height: 0 !important; display: block !important; color: #000 !important; background: none !important; }
  .hero-media, .hero-fullbleed .hero-media { position: static !important; }
  .hero-media::after { display: none !important; }
  .hero-fullbleed .hero-text, .hero-wide .hero-text { margin: 0 !important; box-shadow: none !important; padding: 0 0 1rem !important; }
  .hero h1, .hero .lede, .hero .kicker { color: #000 !important; }
  .hero-media img, .lf-figure img { max-height: 90mm; object-fit: cover; }
  .band { padding: 8mm 0; background: none !important; }
  .card, .path, .rule, .tool, .callout, .verdict { box-shadow: none !important; break-inside: avoid; }
  .card img, .example-img { max-height: 55mm; }
  details.qa > *:not(summary) { display: block !important; }
  details.qa summary::after { content: "" !important; }
  .longform-sidebar .lf-body.has-toc { display: block; }
  .paths-grid, .example { grid-template-columns: 1fr 1fr; }
  a { color: #000; text-decoration: underline; }
  .prose a[href^="http"]::after, .sources a::after { content: " (" attr(href) ")"; font-size: 8pt; color: #444; word-break: break-all; }
  h2, h3 { break-after: avoid; }
  table, figure { break-inside: avoid; }
  .site-foot { background: none; color: #333; padding: 4mm 0 0; }
  .site-foot .foot-grid { display: none; }
  .site-foot a { color: #333; }
  .tool, .band-tool { display: none !important; }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
}
