/* West Coast Pain: navy trust, terracotta action, warm sand, Pacific photography. Tokens in design.md. */
:root {
  --navy: #17375e; --navy-900: #0e2440; --navy-700: #224a7a;
  --terra: #b0502a; --terra-700: #8f3f1f; --terra-50: #fbefe8;
  --sand: #f6ede3; --mist: #eef3f8;
  --teal: #22706d; --teal-50: #e4f2f0;
  --amber: #8a5a00; --amber-50: #fff4dc;
  --risk: #a02c2c; --risk-50: #fbe9e7;
  --ink: #1d2935; --muted: #4f5d6b; --line: #d8e0e8; --white: #fff;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --r: 4px; --r-lg: 8px;
  --shadow: 0 6px 24px rgba(14, 36, 64, .08);
  --ring: 0 0 0 3px #f2b591;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-underline-offset: 2px; }
a:hover { color: var(--terra-700); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 2px; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
h3 { font-size: 1.3rem; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--terra); }
p { margin: 0 0 1em; }
.kicker { font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--terra); margin: 0 0 .75em; }
.kicker-light { color: #f4c9b2; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.fine { font-size: .875rem; color: var(--muted); }
.center { text-align: center; margin-top: 32px; }
.cpt { display: inline-block; font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--terra); text-transform: uppercase; margin-right: .5em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 10px 20px; border-radius: var(--r); border: 2px solid transparent; font: 700 .95rem/1.2 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--terra); color: var(--white); }
.btn-primary:hover { background: var(--terra-700); color: var(--white); }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.75); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-lg { min-height: 52px; padding: 13px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 24px; }
.text-link { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; color: var(--navy); text-decoration: none; }
.text-link:hover { color: var(--terra-700); }

/* Header */
.utility { background: var(--navy-900); color: #cfdbe8; font-size: .82rem; }
.utility .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.u-links { display: flex; gap: 20px; }
.utility a { color: #e6eef7; text-decoration: none; }
.utility a:hover { color: #f4c9b2; text-decoration: underline; }
.site-head { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: var(--serif); font-size: 1.45rem; font-weight: 600; white-space: nowrap; }
.logo .mark { width: 36px; height: 36px; color: var(--navy); }
.logo b { color: var(--terra); font-weight: 600; font-style: italic; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 10px; text-transform: uppercase; letter-spacing: .07em; font-size: .8rem; font-weight: 700; color: var(--navy); text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current] { border-bottom-color: var(--terra); color: var(--navy); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .15s, opacity .15s; }

/* Page head */
.page-head { background: var(--navy); color: var(--white); padding: 40px 0 52px; position: relative; overflow: hidden; }
.page-head.has-img { background: linear-gradient(90deg, rgba(14,36,64,.96) 0%, rgba(14,36,64,.88) 45%, rgba(14,36,64,.55) 100%), var(--img) center/cover no-repeat; }
.page-head h1 { color: var(--white); max-width: 22ch; }
.page-head h1 em { color: #f4c9b2; }
.page-head .lede { color: #d7e2ee; }
.page-head .kicker { color: #f4c9b2; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 24px; padding: 0; font-size: .85rem; color: #b9c9da; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: #7f98b3; }
.crumbs a { color: #e6eef7; }

/* Home hero */
.hero { position: relative; color: var(--white); background: linear-gradient(90deg, rgba(14,36,64,.92) 0%, rgba(14,36,64,.78) 42%, rgba(14,36,64,.2) 100%), url('/img/coast-hero.jpg') center 40%/cover no-repeat; }
.hero-inner { padding: 88px 24px 56px; }
.hero h1 { color: var(--white); max-width: 17ch; font-size: clamp(2.3rem, 5vw, 3.8rem); }
.hero h1 em { color: #f4c9b2; }
.hero .lede { color: #e1e9f2; max-width: 58ch; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 44px; }
.metro-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); }
.metro-strip > span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: #cfdbe8; margin-right: 6px; }
.metro { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); color: var(--white); border-radius: var(--r); font: 600 .9rem var(--sans); cursor: pointer; transition: background-color .15s; }
.metro:hover { background: rgba(255,255,255,.22); }
.metro small { font-size: .7rem; color: #f4c9b2; font-weight: 700; }
.band { background: var(--navy); color: #dbe5f0; font-size: .95rem; }
.band-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.band p { margin: 0; }
.band b { color: var(--white); }

/* Sections */
.section { padding: 80px 0; }
.section-mist { background: var(--mist); }
.section-sand { background: var(--sand); }
.section-navy { background: var(--navy); color: #dbe5f0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p:last-child { color: var(--muted); }
.section-head.light h2 { color: var(--white); }
.section-head.light h2 em { color: #f4c9b2; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-60 { grid-template-columns: 1.35fr 1fr; }
.photo { margin: 0; }
.photo img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.photo.tall img { aspect-ratio: 4/5; }
.photo figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.prose .photo { margin: 28px 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 16px 0 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--navy); color: var(--white); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; white-space: nowrap; }
table.data tbody tr:nth-child(even) { background: #f6f9fc; }
table.data tbody th { font-weight: 600; color: var(--ink); min-width: 190px; }
table.data tbody th a { color: var(--navy); }
table.data .gap { color: var(--terra); font-weight: 700; }
table.data tbody tr:last-child > * { border-bottom: 0; }
pre.formula { background: var(--mist); border-left: 4px solid var(--navy); padding: 14px 18px; border-radius: var(--r); font-size: .92rem; white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--navy-900); }

/* Cards */
.proc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proc-card, .path-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.proc-card:hover, .path-card:hover { border-color: var(--navy-700); box-shadow: var(--shadow); color: var(--ink); transform: translateY(-2px); }
.proc-card h3 { margin: 4px 0 6px; }
.proc-card p { color: var(--muted); font-size: .95rem; }
.proc-card dl { margin: auto 0 16px; display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 14px; }
.proc-card dl div { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.proc-card dt { color: var(--muted); }
.proc-card dd { margin: 0; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.more { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; color: var(--terra); font-size: .92rem; }
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.path-card .ic, .lane .ic { display: inline-flex; width: 48px; height: 48px; border-radius: 50%; align-items: center; justify-content: center; background: var(--terra-50); color: var(--terra); margin-bottom: 16px; }
.path-card .ic svg, .lane .ic svg { width: 24px; height: 24px; }
.path-card p { color: var(--muted); flex: 1; }
.path-card b { color: var(--navy); }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { margin-top: .2em; color: var(--teal); }
.ticks svg:has(path[d^="M12 3l9.5"]) { color: var(--amber); }
.lane-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lane { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-lg); padding: 32px; }
.lane h3 { color: var(--white); }
.lane .ic { background: rgba(244,201,178,.15); color: #f4c9b2; }
.lane p { color: #cfdbe8; }

/* Article */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 56px; padding-bottom: 72px; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose .lead { font-size: 1.2rem; color: var(--ink); }
.prose ul:not(.ticks), .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose-wide { max-width: 960px; }
.side { display: flex; flex-direction: column; gap: 20px; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.side-card h2 { font-size: 1.15rem; margin-bottom: 14px; }
.side-tools { position: sticky; top: 100px; background: var(--sand); border-color: #eadccd; }
.tool-link { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eadccd; text-decoration: none; color: var(--ink); font-size: .9rem; }
.tool-link svg { color: var(--terra); width: 28px; height: 28px; }
.tool-link b { display: block; color: var(--navy); font-size: 1rem; }
.tool-link:hover b { color: var(--terra-700); }
.side-tools .btn { margin-top: 16px; }
.kv { margin: 0; display: grid; gap: 10px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; color: var(--navy); text-align: right; font-variant-numeric: tabular-nums; }
.source { display: flex; gap: 10px; font-size: .85rem; color: var(--muted); background: var(--mist); border-radius: var(--r); padding: 12px 14px; margin-top: 32px; }
.source svg { color: var(--navy); margin-top: .15em; }
.guide-list { display: grid; gap: 12px; margin: 16px 0; }
.guide-link { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--muted); transition: border-color .15s, box-shadow .15s; }
.guide-link:hover { border-color: var(--navy-700); box-shadow: var(--shadow); color: var(--muted); }
.guide-link svg { width: 28px; height: 28px; color: var(--terra); }
.guide-link b { display: block; color: var(--navy); font-size: 1.05rem; }
.callout { display: flex; gap: 16px; padding: 20px 22px; border-radius: var(--r-lg); margin: 28px 0; }
.callout svg { width: 28px; height: 28px; }
.callout h3 { margin: 0 0 6px; font-size: 1.15rem; }
.callout p { margin: 0; }
.callout-risk { background: var(--risk-50); border-left: 4px solid var(--risk); }
.callout-risk svg, .callout-risk h3 { color: var(--risk); }
.case-grid, .split-cards, .rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.rule-grid { grid-template-columns: 1fr 1fr; }
.case, .sos, .rule-box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: var(--white); }
.case h3, .sos h3, .rule-box h3 { font-size: 1.1rem; margin-top: 0; }
.case p, .sos p, .rule-box p { font-size: .95rem; margin: 0; }
.case-year { display: inline-block; background: var(--navy); color: var(--white); font-weight: 700; font-size: .8rem; padding: 2px 8px; border-radius: var(--r); margin-bottom: 10px; }
.sos-n { font-family: var(--serif); font-size: 1.4rem; color: var(--terra); margin-bottom: 8px !important; }
.sos-hi { background: var(--terra-50); border-color: #ecc6b3; }

/* Hand-off band */
.handoff { background: var(--sand); padding: 56px 0; border-top: 1px solid #eadccd; }
.handoff-row { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.handoff p { margin: 0; color: var(--muted); max-width: 60ch; }
.handoff-btns { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }
.handoff .btn-ghost { color: var(--navy); border-color: var(--navy); }
.handoff .btn-ghost:hover { background: var(--navy); color: var(--white); }

/* Tools */
.tool-section { padding: 48px 0 24px; background: var(--mist); }
.tool { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 28px; align-items: start; }
.tool-controls, .result-card, .intake-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); }
.tool-controls h2 { font-size: 1.3rem; }
.field { display: block; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { display: block; font-weight: 700; font-size: .9rem; color: var(--navy); margin-bottom: 6px; padding: 0; }
.req { color: var(--risk); font-style: normal; }
select, input[type=text], input[type=email], input[type=tel], textarea { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #b9c6d3; border-radius: var(--r); font: 400 1rem var(--sans); color: var(--ink); background: var(--white); transition: border-color .15s, box-shadow .15s; }
select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317375e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 10px center/18px no-repeat; padding-right: 36px; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(23,55,94,.18); }
.field small { display: block; margin-top: 6px; font-size: .85rem; color: var(--muted); }
.field.invalid select, .field.invalid input, .field.invalid textarea { border-color: var(--risk); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.seg legend { grid-column: 1 / -1; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 6px; border: 1px solid #b9c6d3; font-size: .85rem; font-weight: 600; color: var(--navy); cursor: pointer; background: var(--white); line-height: 1.2; transition: background-color .15s; }
.seg label:first-of-type span { border-radius: var(--r) 0 0 var(--r); }
.seg label:last-of-type span { border-radius: 0 var(--r) var(--r) 0; }
.seg label + label span { border-left: 0; }
.seg input:checked + span { background: var(--navy); color: var(--white); border-color: var(--navy); }
.seg input:focus-visible + span { box-shadow: var(--ring); position: relative; z-index: 1; }
.result-kicker { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--muted); }
.result-total { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--terra); font-weight: 600; line-height: 1.1; margin: 0 0 18px; font-variant-numeric: tabular-nums; }
.result-total small { display: block; font-family: var(--sans); font-size: .85rem; color: var(--muted); font-weight: 400; margin-top: 4px; }
table.rows { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-bottom: 16px; }
table.rows td { padding: 9px 0; border-bottom: 1px solid var(--line); }
table.rows td:last-child { text-align: right; font-weight: 700; color: var(--navy); }
.oop { background: var(--mist); border-radius: var(--r); padding: 14px 16px; margin-bottom: 14px; }
.oop span { display: block; font-size: .85rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .05em; }
.oop b { font-size: 1.5rem; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.oop small { display: block; color: var(--muted); font-size: .88rem; }
.savings { display: flex; gap: 14px; align-items: center; background: var(--teal-50); border-left: 4px solid var(--teal); padding: 12px 16px; border-radius: var(--r); margin-bottom: 14px; }
.savings b { font-size: 1.35rem; color: var(--teal); font-variant-numeric: tabular-nums; white-space: nowrap; }
.savings span { font-size: .9rem; color: var(--ink); }
.savings[hidden] { display: none; }
.notes { margin: 0; padding-left: 1.1em; font-size: .9rem; color: var(--muted); }
.notes li { margin-bottom: 6px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tool-actions .btn-outline svg { width: 18px; height: 18px; }
.copied { background: var(--teal) !important; color: var(--white) !important; border-color: var(--teal) !important; }
.print-only { display: none; }

/* Checker */
.status { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); border-left-width: 6px; box-shadow: var(--shadow); }
.status b { display: block; font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; margin-bottom: 4px; }
.status p { margin: 0; color: var(--ink); }
.status-ic { width: 40px; height: 40px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; color: var(--white); }
.status-ic svg { width: 22px; height: 22px; stroke-width: 2.4; }
.status.ok { border-left-color: var(--teal); } .status.ok b { color: var(--teal); } .status.ok .status-ic { background: var(--teal); }
.status.gap { border-left-color: var(--amber); background: var(--amber-50); } .status.gap b { color: var(--amber); } .status.gap .status-ic { background: var(--amber); }
.status.risk { border-left-color: var(--risk); background: var(--risk-50); } .status.risk b { color: var(--risk); } .status.risk .status-ic { background: var(--risk); }
.rules-title { margin: 26px 0 12px; font-size: 1.2rem; }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rules li { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px 14px 48px; position: relative; }
.rules li::before { content: ''; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border-radius: 50%; }
.rules li.pass::before { background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/14px no-repeat; }
.rules li.gap::before { background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M12 6v8M12 18v.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.rules li.risk::before { background: var(--risk) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center/12px no-repeat; }
.rules li.info::before { background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M12 11v7M12 6.5v.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.rules b { display: block; color: var(--navy); }
.rules p { margin: 2px 0 0; font-size: .93rem; color: var(--muted); }
.rules .cite { font-size: .8rem; color: var(--muted); font-style: italic; }
.field[hidden] { display: none; }

/* Intake */
.intake-section { background: var(--mist); padding-top: 48px; }
.intake-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.intake-card { padding: 0; overflow: hidden; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy); }
.tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 12px; background: transparent; border: 0; color: #cfdbe8; font: 700 .92rem var(--sans); text-transform: uppercase; letter-spacing: .05em; cursor: pointer; border-bottom: 4px solid transparent; transition: background-color .15s, color .15s; }
.tabs button:hover { color: var(--white); background: var(--navy-700); }
.tabs button[aria-selected=true] { background: var(--white); color: var(--navy); border-bottom-color: var(--terra); }
.intake-form, .intake-done { padding: 30px; }
.intake-form h2, .intake-done h2 { font-size: 1.5rem; }
.form-intro { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-top: 18px; }
.span-2 { grid-column: 1 / -1; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: var(--risk-50); color: var(--risk); border-left: 4px solid var(--risk); padding: 10px 14px; border-radius: var(--r); font-weight: 600; }
.context-note { background: var(--sand); border-left: 4px solid var(--terra); padding: 10px 14px; border-radius: var(--r); font-size: .92rem; }
.intake-form .btn-lg { margin: 6px 0 12px; }
.intake-form.sending .btn-lg { opacity: .7; pointer-events: none; }
.done-ic { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; background: var(--teal); color: var(--white); align-items: center; justify-content: center; margin-bottom: 12px; }
.done-ic svg { width: 28px; height: 28px; stroke-width: 2.6; }
.intake-side { display: flex; flex-direction: column; gap: 20px; }
.intake-side .side-card a { display: inline-flex; gap: 8px; align-items: center; }

/* Footer */
.site-foot { background: var(--navy-900); color: #b9c9da; padding: 56px 0 28px; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-foot .logo { color: var(--white); }
.site-foot .logo .mark { color: #9fb8d6; }
.site-foot .logo b { color: #f4c9b2; }
.site-foot h2 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--white); margin-bottom: 14px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot a { color: #dbe5f0; text-decoration: none; }
.site-foot a:hover { color: #f4c9b2; text-decoration: underline; }
.foot-brand p { margin-top: 14px; }
.foot-brand a { display: inline-flex; gap: 8px; align-items: center; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 24px; font-size: .85rem; }
.foot-legal strong { color: var(--white); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }

/* Responsive */
@media (max-width: 1080px) {
  .site-nav ul a { padding: 8px 6px; font-size: .74rem; }
  .tool { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .side-tools { position: static; }
  .intake-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 24px 20px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { font-size: .9rem; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .split, .split-60, .lane-grid, .band-row { grid-template-columns: 1fr; gap: 32px; }
  .proc-grid, .path-grid, .case-grid, .split-cards { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .handoff-row { flex-direction: column; align-items: flex-start; }
  .photo.tall img { aspect-ratio: 3/2; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .utility .u-links { display: none; }
  .section { padding: 56px 0; }
  .hero-inner { padding: 56px 18px 40px; }
  .proc-grid, .path-grid, .case-grid, .split-cards, .rule-grid, .form-grid, .foot-grid { grid-template-columns: 1fr; }
  .tabs button span { font-size: .78rem; }
  .intake-form, .intake-done { padding: 22px; }
  .logo { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* Print: worksheet and checklist */
@media print {
  .utility, .site-head, .site-foot, .handoff, .no-print, .page-head .lede, .tool-controls h2, .metro-strip, .section:not(.tool-section) { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .page-head { background: none !important; color: #000; padding: 0 0 8pt; }
  .page-head h1, .page-head h1 em, .page-head .kicker { color: #000; }
  .crumbs { display: none; }
  .tool-section { background: none; padding: 0; }
  .tool { grid-template-columns: 1fr; }
  .tool-controls, .result-card, .status { box-shadow: none; border: 1px solid #999; }
  .tool-controls select { border: 0; padding: 0; background: none; min-height: 0; }
  .print-only { display: block; margin-top: 12pt; }
}
