/* Commercial Leak Detection — "moisture survey" design system
   Concrete paper + ironbow ink; thermal colors (indigo → magenta → orange → yellow) only where they mean heat, moisture or urgency.
   Type: Space Grotesk (display) · Source Sans 3 (text) · DM Mono (readings). */
:root {
  --ink: #191330;
  --ink-2: #241B42;
  --ink-3: #30265A;
  --ink-line: #43397A;
  --on-dark: #ECE9F7;
  --on-dark-2: #C2BCDD;
  --paper: #F2F3F1;
  --paper-2: #E8EAE6;
  --card: #FFFFFF;
  --grid: #E2E5E1;
  --line: #D3D7D1;
  --text: #1B1A24;
  --text-2: #3A3848;
  --muted: #5D5B6B;
  --accent: #B3195A;          /* text-safe magenta on light */
  --accent-dark: #FF7EB0;     /* on ink */
  --accent-bg: #FBE8F0;
  --hot: #FF6A2B;
  --hot-2: #FFC23D;
  --cool: #2F5BD3;
  --ok: #17784A;
  --bad: #B42318;
  --t0: #2A1B5C; --t1: #6B1F8C; --t2: #C4246A; --t3: #FF6A2B; --t4: #FFD04A;
  --thermal: linear-gradient(90deg, var(--t0), var(--t1) 25%, var(--t2) 50%, var(--t3) 75%, var(--t4));
  --r: 3px;
  --f-display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-text: 'Source Sans 3', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 18px/1.6 var(--f-text); text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem); font-weight: 650; }
h3 { font-size: 1.22rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.small { font-size: .9rem; color: var(--muted); }
.kicker { font: 500 .78rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 .9rem; display: flex; align-items: center; gap: .55rem; }
.kicker::before { content: ""; width: 18px; height: 2px; background: var(--thermal); flex: none; }
.meta { font-size: .88rem; color: var(--muted); margin: 1rem 0 0; }
.meta a { color: inherit; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 46px; padding: .62rem 1.15rem; border-radius: var(--r); border: 1.5px solid transparent; font: 600 1rem/1.1 var(--f-display); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #95124A; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-3); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--line); }
.btn-sm { min-height: 40px; padding: .45rem .9rem; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(242,243,241,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 1.2rem; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); flex: none; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-word { font: 500 1.06rem/1 var(--f-display); letter-spacing: -.02em; }
.logo-word b { font-weight: 700; color: var(--accent); }
.logo-light { color: #fff; }
.logo-light .logo-word b { color: var(--accent-dark); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: .5rem .62rem; font: 500 .95rem/1.2 var(--f-display); color: var(--text-2); text-decoration: none; border-radius: var(--r); }
.main-nav a:hover { color: var(--ink); background: var(--paper-2); }
.main-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--card); border-radius: var(--r); cursor: pointer; padding: 0 11px; flex-direction: column; justify-content: center; gap: 4px; }
.menu-btn i { display: block; height: 2px; background: var(--ink); }
.mobile-nav { border-top: 1px solid var(--line); background: var(--card); padding: 10px 20px 20px; }
.mobile-nav ul { list-style: none; margin: 0 0 10px; padding: 0; }
.mobile-nav li a { display: block; padding: 11px 0; border-bottom: 1px solid var(--grid); color: var(--ink); text-decoration: none; font: 500 1.02rem var(--f-display); }
.mobile-nav .m-extra a { color: var(--text-2); font-size: .95rem; }
.mobile-nav .btn { width: 100%; }
@media (max-width: 1080px) { .main-nav a { padding: .5rem .45rem; font-size: .9rem; } }
@media (max-width: 960px) { .main-nav, .header-cta { display: none; } .menu-btn { display: flex; } }

/* ---------- Breadcrumbs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; padding: 0; margin: 0 0 1.4rem; font: .82rem var(--f-mono); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: var(--line); }
.crumbs a { color: var(--muted); }

/* ---------- Page hero ---------- */
.page-hero { padding: 34px 0 44px; border-bottom: 1px solid var(--line); background:
  linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 28px 28px, var(--paper); }
.page-hero-plain { padding-bottom: 34px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.bluf { font-size: 1.14rem; color: var(--text-2); max-width: 46em; }
.bluf p:last-child { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Survey sheet (signature) ---------- */
.sheet { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 8px; background-image: radial-gradient(var(--grid) 1px, transparent 1.2px); background-size: 14px 14px; }
.sheet::before, .sheet::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--ink); }
.sheet::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.sheet::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.sheet-title { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin: 0 0 .6rem; padding-bottom: .6rem; border-bottom: 2px solid var(--ink); font: 600 1rem/1.2 var(--f-display); color: var(--ink); }
.sheet-code { font: 500 .72rem var(--f-mono); color: var(--muted); letter-spacing: .06em; }
.sheet dl { margin: 0; }
.sheet dl > div { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr); gap: .8rem; padding: .62rem 0; border-bottom: 1px dashed var(--line); background: var(--card); }
.sheet dl > div:last-child { border-bottom: 0; }
.sheet dt { font: 500 .76rem/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: .12rem; }
.sheet dd { margin: 0; font-size: .98rem; color: var(--text); }

/* ---------- Reading chip + thermal scale (signature) ---------- */
.reading { display: inline-block; font: 500 .86em/1.3 var(--f-mono); color: var(--ink); background: var(--card); border: 1px solid var(--ink); border-left: 4px solid var(--hot); padding: .08em .45em; border-radius: 2px; white-space: nowrap; }
.tscale { margin: 1.6rem 0; }
.tscale-bar { position: relative; height: 14px; border-radius: 2px; background: var(--thermal); margin: 2.6rem 0 .5rem; }
.tscale-mark { position: absolute; top: -6px; width: 2px; height: 26px; background: var(--ink); transform: translateX(-1px); }
.tscale-mark b { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font: 500 .76rem/1.2 var(--f-mono); color: var(--ink); white-space: nowrap; background: var(--paper); padding: 1px 4px; }
.tscale-mark.alt b { bottom: auto; top: calc(100% + 4px); }
.tscale figcaption { display: flex; justify-content: space-between; font: .8rem var(--f-mono); color: var(--muted); margin-top: 1.9rem; }
@media (max-width: 560px) { .tscale-mark b { font-size: .68rem; } }

/* ---------- Body ---------- */
.body-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; padding-top: 44px; padding-bottom: 72px; }
.side-sticky { position: sticky; top: 86px; }
@media (max-width: 1040px) { .body-grid { grid-template-columns: 1fr; } .side { display: none; } }
.prose { min-width: 0; padding-bottom: 40px; }
.narrow .prose { padding-top: 34px; padding-bottom: 72px; }
.prose > h2, .prose section > h2 { margin-top: 2.6rem; padding-top: 1.1rem; border-top: 1px solid var(--line); position: relative; }
.prose > h2::before, .prose section > h2::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 3px; background: var(--thermal); }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .3rem 0; }
.prose li::marker { color: var(--accent); }
.prose img { border-radius: var(--r); }
.prose code { font-family: var(--f-mono); font-size: .88em; background: var(--paper-2); padding: .05em .3em; border-radius: 2px; }
sup.cite { font-size: .68em; line-height: 0; }
sup.cite a { font-family: var(--f-mono); text-decoration: none; color: var(--accent); padding: 0 .12em; }
sup.cite a::before { content: "["; } sup.cite a::after { content: "]"; }

/* ToC */
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; margin: 0 0 2rem; }
.toc p { font: 500 .76rem var(--f-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 .5rem; }
.toc ol { margin: 0; padding-left: 1.4rem; columns: 2; column-gap: 2rem; font-size: .96rem; }
.toc li { break-inside: avoid; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0 .6rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: -3px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 560px; }
caption { caption-side: top; text-align: left; padding: 12px 14px; font: 500 .84rem/1.45 var(--f-text); color: var(--muted); border-bottom: 1px solid var(--line); background: var(--paper); }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--grid); }
thead th { font: 600 .8rem/1.3 var(--f-display); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); background: var(--paper-2); border-bottom: 2px solid var(--ink); white-space: nowrap; }
tbody th { font-weight: 600; color: var(--ink); }
tbody tr:last-child > * { border-bottom: 0; }
.table-note { font-size: .86rem; color: var(--muted); margin: .2rem 0 1.4rem; }
.yes, .no { font: 500 .82rem var(--f-mono); padding: .05em .4em; border-radius: 2px; white-space: nowrap; }
.yes { color: var(--ok); background: #E4F4EA; }
.no { color: var(--bad); background: #FCEBE9; }

/* Callouts */
.callout { border: 1px solid var(--line); border-left: 4px solid var(--ink); background: var(--card); border-radius: var(--r); padding: 16px 20px; margin: 1.6rem 0; }
.callout > :last-child { margin-bottom: 0; }
.callout-title { font: 600 1rem/1.3 var(--f-display); color: var(--ink); margin: 0 0 .4rem; }
.callout-key { border-left-color: var(--accent); background: var(--accent-bg); border-color: #F1C9DA; }
.callout-limit { border-left-color: var(--muted); background: var(--paper-2); }
.callout-note { border-left-color: var(--cool); }
.callout-warn { border-left-color: var(--hot); background: #FFF3EA; border-color: #FFD3B8; }

/* Cards, steps, checks */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 1.5rem 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 6px; position: relative; }
.card h3 { margin-top: 0; font-size: 1.08rem; }
.card p { font-size: .97rem; color: var(--text-2); }
a.card { text-decoration: none; color: inherit; transition: border-color .15s; }
a.card:hover { border-color: var(--ink); }
.steps { list-style: none; counter-reset: s; padding: 0 !important; margin: 1.4rem 0; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 1.05rem 3rem; margin: 0; }
.steps > li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: .05rem; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; font: 500 .8rem var(--f-mono); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 50%; background: var(--card); }
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 1.03rem; top: 2.3rem; bottom: .2rem; width: 1.5px; background: var(--line); }
.steps-light > li::before { color: #fff; border-color: var(--on-dark-2); background: transparent; }
.steps-light > li:not(:last-child)::after { background: var(--ink-line); }
.checks { list-style: none; padding: 0 !important; margin: 1.2rem 0; }
.checks > li { position: relative; padding-left: 2rem; margin: .55rem 0; }
.checks > li::before { content: ""; position: absolute; left: 0; top: .28rem; width: 1.1rem; height: 1.1rem; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--card); }
.checks > li::after { content: ""; position: absolute; left: .38rem; top: .38rem; width: .34rem; height: .66rem; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* Symptom triage (signature) */
.symptoms { display: grid; gap: 10px; margin: 1.6rem 0; }
.symptom { display: grid; grid-template-columns: 1.2fr 1fr 1fr 28px; gap: 18px; align-items: center; padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--t2); border-radius: var(--r); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.symptom:nth-child(5n+1) { border-left-color: var(--t3); } .symptom:nth-child(5n+2) { border-left-color: var(--t1); } .symptom:nth-child(5n+3) { border-left-color: var(--t4); } .symptom:nth-child(5n+4) { border-left-color: var(--t0); }
.symptom::after { content: "\2192"; font: 600 1.2rem var(--f-display); color: var(--accent); justify-self: end; }
.symptom:hover { border-color: var(--ink); transform: translateX(2px); }
.symptom > span { display: block; font-size: .98rem; }
.symptom > span::before { display: block; font: 500 .68rem/1.4 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.s-sign { font: 600 1.04rem/1.3 var(--f-display) !important; color: var(--ink); }
.s-sign::before { content: "What you see"; }
.s-cause::before { content: "Likely cause"; }
.s-next { color: var(--accent); font-weight: 600; }
.s-next::before { content: "Next step"; }
@media (max-width: 760px) { .symptom { grid-template-columns: 1fr 22px; gap: 8px 12px; } .symptom > span { grid-column: 1; } .symptom::after { grid-row: 1; grid-column: 2; } }

/* Directory */
.dir { display: grid; gap: 14px; margin: 1.5rem 0; }
.dir-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 8px; scroll-margin-top: 90px; }
.dir-item h3 { margin: 0 0 .2rem; }
.dir-item .hq { font: .82rem var(--f-mono); color: var(--muted); margin: 0 0 .7rem; }
.dir-links { font-size: .92rem; }
.dir-item:target { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-bg); }

/* Diagrams */
.diagram { margin: 1.8rem 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.diagram svg { display: block; margin: 0 auto; width: 100%; height: auto; font-family: var(--f-text); }
.diagram figcaption { font-size: .88rem; color: var(--muted); margin-top: .8rem; border-top: 1px dashed var(--line); padding-top: .7rem; }

/* Tools */
.tool { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r); margin: 2rem 0; overflow: hidden; }
.tool-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 14px 20px; background: var(--ink); color: #fff; }
.tool-head h3 { color: #fff; margin: 0; font-size: 1.1rem; }
.tool-tag { font: 500 .72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--hot-2); padding: .25em .55em; border-radius: 2px; flex: none; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; padding: 20px; background-image: radial-gradient(var(--grid) 1px, transparent 1.2px); background-size: 14px 14px; }
.tool label, .qform label { display: flex; flex-direction: column; gap: .35rem; font: 600 .9rem/1.3 var(--f-text); color: var(--ink); }
.tool input, .tool select, .qform input, .qform select, .qform textarea { width: 100%; min-height: 44px; padding: .55rem .7rem; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; color: var(--text); font: 400 1rem var(--f-text); }
.tool input:focus, .tool select:focus, .qform input:focus, .qform select:focus, .qform textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(255,106,43,.35); }
.tool-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 16px; padding: 0 20px 16px; }
.tool .tool-check, .tool label.tool-check { flex-direction: row; align-items: center; gap: .55rem; font-weight: 500; }
.tool .tool-check input { width: 20px; min-height: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.tool-out { border-top: 1px solid var(--line); padding: 18px 20px; background: var(--paper); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stats > div { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--hot); border-radius: var(--r); padding: 12px 14px; }
.lbl { font: 500 .72rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .3rem; }
.big { font: 700 1.5rem/1.15 var(--f-display); color: var(--ink); margin: 0; overflow-wrap: anywhere; }
.tool-result { margin-top: 12px; font-size: .98rem; }
.tool-result ul { margin: .3rem 0 0; }
.tool-note { font-size: .88rem; color: var(--muted); padding: 14px 20px; margin: 0; border-top: 1px dashed var(--line); }
.tag-ok, .tag-limit, .tag-no { font: 500 .76rem var(--f-mono); padding: .1em .45em; border-radius: 2px; white-space: nowrap; }
.tag-ok { color: var(--ok); background: #E4F4EA; } .tag-limit { color: #8A4B00; background: #FFF1D6; } .tag-no { color: var(--bad); background: #FCEBE9; }

/* ---------- Home ---------- */
.home-hero { background: var(--ink); color: var(--on-dark); padding: 56px 0 64px; position: relative; overflow: hidden; }
.home-hero::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px,
  linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px; pointer-events: none; }
.home-hero .hero-grid { position: relative; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
.home-hero h1 { color: #fff; }
.home-hero .kicker { color: var(--hot-2); }
.home-hero .bluf { color: var(--on-dark); }
.home-hero .bluf a, .home-hero .meta a { color: var(--accent-dark); }
.home-hero .meta { color: var(--on-dark-2); }
.home-hero .btn-primary { background: var(--hot); color: var(--ink); }
.home-hero .btn-primary:hover { background: var(--hot-2); }
.home-hero .btn-line { color: #fff; border-color: var(--on-dark-2); }
.home-hero .btn-line:hover { background: #fff; color: var(--ink); }
.home-hero sup.cite a { color: var(--accent-dark); }
.hero-art { position: relative; }
.hero-art svg { display: block; width: 100%; height: auto; }
.band { padding: 64px 0; }
.band-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--ink); color: var(--on-dark); }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark a { color: var(--accent-dark); }
.band-dark .card { background: var(--ink-2); border-color: var(--ink-line); }
.band-dark .card p { color: var(--on-dark-2); }
.band h2 { position: relative; padding-top: 1rem; }
.band h2::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 3px; background: var(--thermal); }
.band .prose { padding-bottom: 0; }
.band > .wrap > p, .band > .wrap > ul, .band > .wrap > ol { max-width: 48em; }
.band-form { background: var(--ink); color: var(--on-dark); padding: 72px 0; }
.band-form h2 { color: #fff; }
.band-form .kicker { color: var(--hot-2); }
.band-form .small { color: var(--on-dark-2); }
.form-band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: start; }
.form-band-copy .steps strong { color: #fff; }
.form-band-copy .steps li { color: var(--on-dark-2); }
@media (max-width: 960px) { .home-hero .hero-grid, .form-band-grid { grid-template-columns: 1fr; } .band, .band-form { padding: 48px 0; } }

/* ---------- Request form ---------- */
.qform { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; color: var(--text); position: relative; }
.qform::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: var(--thermal); border-radius: var(--r) var(--r) 0 0; }
.qform-title { font: 650 1.2rem/1.25 var(--f-display); color: var(--ink); margin: 0 0 .35rem; }
.qform-sub { font-size: .93rem; color: var(--text-2); margin: 0 0 .9rem; }
.qform-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 1rem; }
.qform-steps li { flex: 1; font: 500 .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 6px; border-top: 3px solid var(--line); }
.qform-steps li.on { color: var(--ink); border-top-color: var(--accent); }
.qstep { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
.qstep[data-step="2"] { display: none; }
.qform.step2 .qstep[data-step="1"] { display: none; }
.qform.step2 .qstep[data-step="2"] { display: grid; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.qform textarea { min-height: 96px; resize: vertical; }
.qform .opt { font-weight: 400; color: var(--muted); }
.qform [aria-invalid="true"] { border-color: var(--bad); }
.qform label.check { flex-direction: row; align-items: flex-start; gap: .6rem; font: 400 .86rem/1.45 var(--f-text); color: var(--text-2); }
.qform label.check input { width: 20px; min-height: 20px; height: 20px; margin-top: .12rem; accent-color: var(--accent); flex: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qactions { display: flex; gap: 10px; }
.qactions .qsubmit { flex: 1; }
.qnext { width: 100%; }
.qform-urgent { font-size: .9rem; background: #FFF3EA; border-left: 4px solid var(--hot); padding: 10px 12px; margin: 0; color: var(--text); }
.qform-error { color: var(--bad); font-size: .92rem; font-weight: 600; margin: .8rem 0 0; }
.qform-fine { font-size: .8rem; color: var(--muted); margin: 1rem 0 0; }
.qform.done .qstep, .qform.done .qform-steps, .qform.done .qform-sub, .qform.done .qform-head .qform-title { display: none; }
.qform-done { outline: none; }
.qform-done .qform-title::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--ok); border-radius: 50%; margin-right: .5rem; vertical-align: middle; }
.form-inline { margin: 2rem 0; max-width: 620px; }

/* Sources */
.sources { margin-top: 3rem; padding-top: 1rem; border-top: 2px solid var(--ink); }
.sources h2 { font-size: 1.2rem; border: 0 !important; padding: 0 !important; margin-top: 0 !important; }
.sources h2::before { display: none; }
.sources ol { font-size: .86rem; color: var(--text-2); padding-left: 1.6rem; }
.sources li { margin: .45rem 0; overflow-wrap: anywhere; }
.sources li:target { background: var(--accent-bg); }
.accessed { color: var(--muted); font-family: var(--f-mono); font-size: .78rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-2); padding: 56px 0 28px; font-size: .94rem; border-top: 4px solid; border-image: var(--thermal) 1; }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 40px; }
.f-head { font: 500 .74rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: #fff; margin: 0 0 .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .45rem 0; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.f-brand .logo { margin-bottom: 1rem; }
.f-disclose { font-size: .84rem; border-left: 2px solid var(--ink-line); padding-left: 12px; }
.f-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ink-line); font-size: .85rem; }
.f-base p { margin: 0; }
@media (max-width: 860px) { .f-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(25,19,48,.96); transform: translateY(110%); transition: transform .2s; display: none; }
.sticky-cta .btn { width: 100%; }
.sticky-cta.show { transform: none; }
@media (max-width: 1040px) { .sticky-cta { display: block; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .side, .sticky-cta, .qform { display: none !important; } }

/* ---------- Tool output extras (integrator) ---------- */
.limit { font: 500 .82rem var(--f-mono); padding: .05em .4em; border-radius: 2px; white-space: nowrap; color: #8A4B00; background: #FFF1D6; }
.rs-row { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin: 0 0 10px; }
.rs-name { margin: 0 0 .35rem; display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: baseline; }
.rs-name .small { margin: 0; }
.rs-notes { margin: 0; padding-left: 1.2rem; font-size: .94rem; color: var(--text-2); }
.tool-out ul { margin: .3rem 0 .8rem; padding-left: 1.2rem; font-size: .95rem; }
.tool-out .lbl { margin-top: .9rem; }
.tool label.check { flex-direction: row; align-items: center; gap: .55rem; font-weight: 500; }
.tool label.check input { width: 20px; min-height: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.tool select optgroup { font-weight: 600; }
.tool-out .checks { margin: .5rem 0 0; }

/* ---------- Home bands: reading width + dark band contents (integrator) ---------- */
.main-nav a { white-space: nowrap; }
.band .prose > p, .band .prose > ul, .band .prose > ol, .band .prose > h2, .band .prose > h3, .band .prose > .callout, .band > .wrap > .symptoms + p { max-width: 50rem; }
.band .prose > h2:first-child { margin-top: 0; border-top: 0; }
.band .prose > h2:first-child::before { top: 0; }
.band-dark .prose { color: var(--on-dark); }
.band-dark .prose li::marker { color: var(--accent-dark); }
.band-dark .callout, .band-dark .card, .band-dark .toc, .band-dark .table-wrap { color: var(--text); }
.band-dark .callout a, .band-dark .table-wrap a { color: var(--accent); }
.band-dark .callout-title, .band-dark .card h3 { color: var(--ink); }
.band-dark .card { background: var(--card); border-color: var(--line); }
.band-dark .card p { color: var(--text-2); }
.band-dark .steps > li::before { color: #fff; background: transparent; border-color: var(--on-dark-2); }
.band-dark .steps > li:not(:last-child)::after { background: var(--ink-line); }
.band-dark .checks > li::before { background: transparent; border-color: var(--on-dark-2); }
.band-dark .checks > li::after { border-color: var(--hot-2); }
.band-dark .small, .band-dark .meta { color: var(--on-dark-2); }
.band-dark sup.cite a { color: var(--accent-dark); }
@media (max-width: 640px) { .reading { white-space: normal; overflow-wrap: anywhere; } }

/* ---------- Audit fixes (integrator) ---------- */
/* Request form must stay reachable on phones/tablets: the sidebar becomes a block after the article. */
@media (max-width: 1040px) { .body-grid .side { display: block; } .side-sticky { position: static; } .body-grid { padding-bottom: 96px; } }
/* No-JS: show both steps and submit natively; hide step buttons. */
html:not(.js) .qstep[data-step="2"] { display: grid; margin-top: 12px; }
html:not(.js) .qnext, html:not(.js) .qback, html:not(.js) .qform-steps { display: none; }
.logo-word .ws { font-size: 0; }
.site-footer p a { text-decoration: underline; }
sup.cite a { display: inline-block; min-width: 24px; min-height: 24px; line-height: 24px; text-align: center; }
