/* style-guide theme "handbook" 1.1.0 (STANDARD 1.10.1). Light, then dark twice: system dark and explicit dark.
   Source: DNSGuard's portal preset "handbook" (letsfixdns web/src/styles.css), the look of letsfixdns.com Design C
   (owner's pick 2026-11-16). The flight-manual layout with the site's orange and a warmer paper. See theme.toml. */
:root[data-preset="handbook"], .preset-preview[data-preset="handbook"] {
  color-scheme: light;
  --font-sans: "IBM Plex Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --font-head: "Barlow Condensed","Roboto Condensed","Arial Narrow",Arial,sans-serif;
  --font-mono: "IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --radius: 0;
  --rule-w: 1.5px;
  --h-case: uppercase;
  --h-track: .04em;
  --h-weight: 600;
  --eyebrow-track: .14em;
  --body-size: 14px;
  --label-size: 11px;
  --label-size-lg: 12px;
  --h1-size: 26px;
  --h2-size: 19px;
  --h3-size: 15px;
  --bg: #F6F3EC;
  --panel: #FFFFFF;
  --panel2: #EEEAE0;
  --border: #D3CFC4;
  --hair: #D3CFC4;
  --rule: #1B1F24;
  --text: #1B1F24;
  --dim: #4A5059;
  --accent: #B0480A;
  --accent2: #B0480A;
  --on-accent: #FFFFFF;
  --ok: #3F6B3F;
  --warn: #8A5A0A;
  --fail: #9E2A2B;
  --info: #1F5F8B;
  --ok-soft: color-mix(in srgb, var(--ok) 12%, var(--panel));
  --warn-soft: color-mix(in srgb, var(--warn) 12%, var(--panel));
  --fail-soft: color-mix(in srgb, var(--fail) 12%, var(--panel));
  --info-soft: color-mix(in srgb, var(--info) 12%, var(--panel));
  --focus: var(--accent);
}
@media (prefers-color-scheme: dark) {
  :root[data-preset="handbook"]:not([data-theme="light"]), :root:not([data-theme="light"]) .preset-preview[data-preset="handbook"] {
    color-scheme: dark;
    --bg: #111418;
    --panel: #171B20;
    --panel2: #1C2127;
    --border: #2E343B;
    --hair: #2E343B;
    --rule: #E6E4DE;
    --text: #E6E4DE;
    --dim: #AEB3BA;
    --accent: #F26B1D;
    --accent2: #F58A4B;
    --on-accent: #111418;
    --ok: #8FBF8F;
    --warn: #E0A53A;
    --fail: #E07A7B;
    --info: #6FA8D6;
    --ok-soft: color-mix(in srgb, var(--ok) 12%, var(--panel));
    --warn-soft: color-mix(in srgb, var(--warn) 12%, var(--panel));
    --fail-soft: color-mix(in srgb, var(--fail) 12%, var(--panel));
    --info-soft: color-mix(in srgb, var(--info) 12%, var(--panel));
    --focus: var(--accent);
  }
}
:root[data-preset="handbook"][data-theme="dark"], :root[data-theme="dark"] .preset-preview[data-preset="handbook"] {
  color-scheme: dark;
  --bg: #111418;
  --panel: #171B20;
  --panel2: #1C2127;
  --border: #2E343B;
  --hair: #2E343B;
  --rule: #E6E4DE;
  --text: #E6E4DE;
  --dim: #AEB3BA;
  --accent: #F26B1D;
  --accent2: #F58A4B;
  --on-accent: #111418;
  --ok: #8FBF8F;
  --warn: #E0A53A;
  --fail: #E07A7B;
  --info: #6FA8D6;
  --ok-soft: color-mix(in srgb, var(--ok) 12%, var(--panel));
  --warn-soft: color-mix(in srgb, var(--warn) 12%, var(--panel));
  --fail-soft: color-mix(in srgb, var(--fail) 12%, var(--panel));
  --info-soft: color-mix(in srgb, var(--info) 12%, var(--panel));
  --focus: var(--accent);
}
/* Optional component classes for the handbook theme (STANDARD 1.10.0 section 11), the same as flight-manual's. Tokens only, no hex.
   Names are prefixed fm- so they never clash with an app's own classes. Square corners come from --radius. */
.fm-sheet { background: var(--panel); border: var(--rule-w) solid var(--rule); color: var(--text); font-family: var(--font-sans); }
.fm-sheet-head { display: grid; grid-template-columns: 1fr auto; border-bottom: var(--rule-w) solid var(--rule);
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; }
.fm-sheet-head .fm-l, .fm-sheet-head .fm-r { padding: 8px 14px; font-size: 13px; }
.fm-sheet-head .fm-r { border-left: var(--rule-w) solid var(--rule); text-align: right; font-family: var(--font-mono);
  text-transform: none; letter-spacing: 0; font-size: 12px; }
.fm-sheet-body { padding: 22px 24px 26px; }
.fm-sheet-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; border-top: var(--rule-w) solid var(--rule);
  padding: 7px 14px; font-family: var(--font-mono); font-size: 11.5px; color: var(--dim); }
.fm-h { font-family: var(--font-head); text-transform: var(--h-case); letter-spacing: var(--h-track); font-weight: var(--h-weight); line-height: 1.1; margin: 0 0 12px; }
.fm-h .fm-no { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; color: var(--dim); margin-right: 10px; font-size: .8em; text-transform: none; }
.fm-eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: var(--eyebrow-track); font-size: 13px; color: var(--dim); }
.fm-box { border: var(--rule-w) solid var(--rule); padding: 10px 14px; margin: 14px 0; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.fm-box .fm-lbl { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; padding: 2px 8px; border: var(--rule-w) solid currentColor; }
.fm-box p { margin: 0; }
.fm-box.fm-warning { border-color: var(--fail); background: var(--fail-soft); } .fm-box.fm-warning .fm-lbl { color: var(--fail); }
.fm-box.fm-caution { border-color: var(--warn); background: var(--warn-soft); } .fm-box.fm-caution .fm-lbl { color: var(--warn); }
.fm-box.fm-note { border-color: var(--border); background: var(--panel2); } .fm-box.fm-note .fm-lbl { color: var(--dim); }
.fm-table { border-collapse: collapse; width: 100%; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.fm-table th, .fm-table td { border: 1px solid var(--border); padding: 5px 8px; text-align: left; vertical-align: top; }
.fm-table th { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; background: var(--panel2); }
/* Self-hosted fonts (style-guide STANDARD 1.0.0 section 6). Files, SHA-256 and licences: public/fonts/FONTS.md.
   Only the weights the handbook and flight-manual themes use. No font CDN; the CSP says font-src 'self'. */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/barlow-condensed/BarlowCondensed-Medium.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/barlow-condensed/BarlowCondensed-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/barlow-condensed/BarlowCondensed-Bold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans/IBMPlexSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans/IBMPlexSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans/IBMPlexSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono/IBMPlexMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono/IBMPlexMono-Medium.woff2") format("woff2"); }

/* Fallback faces shaped like the real fonts, so the page does not jump when they swap in on a first visit (#56). The
   method is web.dev's and Chrome's (web.dev/articles/font-best-practices, developer.chrome.com/blog/font-fallbacks):
   size-adjust = the real font's text width / Arial's, on the site's own headline (capitals) and body text; each override =
   the real font's metric / size-adjust. Measured in Chromium against Liberation Sans, which has Arial's metrics. */
@font-face { font-family: "Barlow Condensed Fallback"; font-style: normal; font-weight: 500; src: local("Arial"), local("Helvetica"), local("Liberation Sans"), local("Roboto"); size-adjust: 63.75%; ascent-override: 156.87%; descent-override: 31.37%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Condensed Fallback"; font-style: normal; font-weight: 600; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold"), local("Roboto Bold"); size-adjust: 64.52%; ascent-override: 155.00%; descent-override: 31.00%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Condensed Fallback"; font-style: normal; font-weight: 700; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold"), local("Roboto Bold"); size-adjust: 66.40%; ascent-override: 150.61%; descent-override: 30.12%; line-gap-override: 0%; }
@font-face { font-family: "IBM Plex Sans Fallback"; font-style: normal; font-weight: 400; src: local("Arial"), local("Helvetica"), local("Liberation Sans"), local("Roboto"); size-adjust: 99.69%; ascent-override: 103.32%; descent-override: 28.09%; line-gap-override: 0%; }
@font-face { font-family: "IBM Plex Sans Fallback"; font-style: normal; font-weight: 600; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold"), local("Roboto Bold"); size-adjust: 96.26%; ascent-override: 107.00%; descent-override: 29.09%; line-gap-override: 0%; }
:root[data-preset="handbook"], :root[data-preset="flight-manual"] {
  --font-head: "Barlow Condensed","Barlow Condensed Fallback","Arial Narrow",Arial,sans-serif;
  --font-sans: "IBM Plex Sans","IBM Plex Sans Fallback",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
/* Let's Fix DNS: Design C, Handbook (owner's pick 2026-11-16; docs/design/design-c.md, #62).
   Tokens come from site/css/tokens.css (style-guide theme handbook, verbatim) and the brand tokens below. Every
   viewport length divides by --zoom (STANDARD section 7) so a UI-scale control can be added later without breaking a modal or a pinned section. tool-bin's viewport-units-check enforces it. */

:root {
  /* Brand accent sampled from the logo sheet (MDD-WEBSITE §3.1): the one orange fill, for calls to action, the
     active step, the progress needle and the hazard stripe, with ink text on it. Not a theme token: it is below
     4.5:1 as text. --lfd-orange-text is Design C's orange text, the handbook theme's --accent2, kept as its own token
     so the admin area draws it under every theme. */
  --lfd-orange: #F26B1D;
  --lfd-orange-text: #B0480A;
  --lfd-on-orange: #1B1F24;
  --zoom: 1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --lfd-orange-text: #F58A4B; }
}
:root[data-theme="dark"] { --lfd-orange-text: #F58A4B; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 15.5px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: var(--accent); }
/* Under handbook, links are the theme's orange text (--accent2), as in Design C and the portal; --accent is the dark
   mode's button orange there. :where() keeps it as weak as a bare `a`, so buttons, the rail and the footer keep their own colour. */
:where(:root[data-preset="handbook"]) a { color: var(--accent2); }
h1, h2, h3 { font-family: var(--font-head); text-transform: var(--h-case); letter-spacing: var(--h-track); line-height: 1.04; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 7vw, 88px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: var(--h-weight); }
h3 { font-size: 19px; font-weight: var(--h-weight); }
p { margin: 0; max-width: 62ch; }
img, svg { max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* The scripts show and hide parts with the hidden attribute; a class's display (.btn, .box, grids) must not undo it. */
[hidden] { display: none !important; }
.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; }

.k { font-family: var(--font-head); text-transform: uppercase; letter-spacing: var(--eyebrow-track); font-size: 12px; color: var(--dim); }
.mono { font-family: var(--font-mono); font-size: 12.5px; }
.no { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; color: var(--dim); margin-right: 10px; font-size: .66em; text-transform: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
/* The shell (Design C): the plate on phones, the rail at 900 px and wider, then the page and its footer. Each
   section is its own page, so nothing is reached by scrolling down a long one. */
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--panel); color: var(--text); border: var(--rule-w) solid var(--rule); padding: 8px 12px; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand svg { flex: none; }
.brand b { font-family: var(--font-head); font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; line-height: 1.1; }
.lab { font-family: var(--font-head); font-weight: 600; font-size: 13px; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.shell { display: grid; min-height: calc(100vh / var(--zoom)); }
.page { display: flex; flex-direction: column; min-width: 0; }
.page > main { flex: 1 0 auto; }
.page > main:focus { outline: none; }

.plate-bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); border-bottom: var(--rule-w) solid var(--rule); padding: 8px 16px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; }
.plate-links { display: flex; flex-wrap: wrap; gap: 0 12px; }
.plate-links a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--text); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.plate-links a span { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.plate-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.plate-select {
  appearance: none; -webkit-appearance: none; width: 100%; min-height: 44px; border: var(--rule-w) solid var(--rule); border-radius: var(--radius);
  background-color: var(--panel); color: var(--text); padding: 0 34px 0 10px; font-family: var(--font-head); font-weight: 600; font-size: 16px; letter-spacing: .04em; text-transform: uppercase;
  background-image: linear-gradient(45deg, transparent 50%, var(--rule) 50%), linear-gradient(-45deg, transparent 50%, var(--rule) 50%);
  background-size: 6px 6px; background-position: calc(100% - 17px) 55%, calc(100% - 11px) 55%; background-repeat: no-repeat;
}

.rail { display: none; }
@media (min-width: 900px) {
  .shell { grid-template-columns: 248px minmax(0, 1fr); }
  .plate-bar { display: none; }
  .rail { display: grid; align-content: start; gap: 18px; position: sticky; top: env(safe-area-inset-top, 0px); align-self: start; max-height: calc(100vh / var(--zoom)); overflow-y: auto; padding: 22px 20px 22px 32px; }
  .page { border-left: var(--rule-w) solid var(--rule); }
}
.rail ol, .rail ul { list-style: none; margin: 0; padding: 0; display: grid; }
.rail .parts { border-top: var(--rule-w) solid var(--rule); }
.rail .parts a, .rail .appx a { display: grid; grid-template-columns: 26px 1fr; gap: 4px; padding: 8px; color: var(--text); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.rail .appx a { font-size: 14px; padding-block: 6px; }
.rail .parts a span, .rail .appx a span { color: var(--dim); font-family: var(--font-mono); font-size: 12px; padding-top: 3px; letter-spacing: 0; }
.rail li a[aria-current="page"] { background: var(--rule); color: var(--bg); }
.rail li a[aria-current="page"] span { color: var(--bg); }
.rail .appx { display: grid; gap: 6px; }
.rail-check { display: grid; gap: 6px; }
.rail-check input[type=text] { min-height: 44px; font-size: 14px; padding: 0 10px; }
.rail-check .btn { min-height: 44px; }
.rev { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5; color: var(--dim); }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: var(--rule-w) solid var(--rule); background: var(--text); color: var(--bg); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; border-radius: var(--radius); }
.btn.orange { background: var(--lfd-orange); border-color: var(--lfd-orange); color: var(--lfd-on-orange); }
.btn.ghost { background: transparent; color: var(--text); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
input[type=text], input[type=email] { min-height: 46px; border: var(--rule-w) solid var(--rule); background: var(--panel); padding: 0 14px; font-family: var(--font-mono); font-size: 15px; color: var(--text); width: 100%; border-radius: var(--radius); }

/* sections */
section { padding-block: 56px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-block: 56px 32px; }
@media (max-width: 899px) { .hero { grid-template-columns: 1fr; gap: 28px; } }
.hero .lead { font-size: 18px; color: var(--dim); }
.check { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; max-width: 560px; }
.check label { grid-column: 1 / -1; }
.check .hint { grid-column: 1 / -1; font-size: 13px; color: var(--dim); }
@media (max-width: 480px) { .check { grid-template-columns: 1fr; } }
figure { margin: 0; border: 1px solid var(--border); background: var(--panel); padding: 14px 14px 10px; }
figcaption { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; border-top: 1px solid var(--border); margin-top: 10px; padding-top: 8px; font-size: 12.5px; }
figcaption b { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.fig svg { display: block; width: 100%; height: auto; font-family: var(--font-head); color: var(--text); }
.fig .px { will-change: transform; }

.plate { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: var(--rule-w) solid var(--rule); background: var(--panel); }
.plate > div { padding: 14px 16px; border-right: var(--rule-w) solid var(--rule); display: grid; gap: 2px; }
.plate > div:last-child { border-right: 0; }
.plate .v { font-family: var(--font-head); font-size: 34px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.plate .s { font-size: 12.5px; color: var(--dim); }
.plate-note { font-size: 12.5px; color: var(--dim); margin: 10px 0 0; max-width: none; }
.plate-note .nowrap { white-space: nowrap; }
@media (max-width: 899px) {
  .plate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plate > div:nth-child(2) { border-right: 0; }
  .plate > div:nth-child(-n+2) { border-bottom: var(--rule-w) solid var(--rule); }
}

/* Design C's handbook furniture: the page plate, figures with a caption bar, a record before and after with
   numbered reasons, the NOTE box and the numbered procedure. */
.doc { padding: 22px 20px 34px; display: grid; gap: 22px; max-width: 900px; }
.doc > section { padding-block: 0; display: grid; gap: 16px; }
.doc > p, .doc li { max-width: 66ch; }
.docplate { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5; color: var(--dim); display: flex; flex-wrap: wrap; gap: 2px 14px; border-block: var(--rule-w) solid var(--rule); padding: 6px 0; }
.doc h1 { font-size: clamp(34px, calc(6vw / var(--zoom, 1)), 58px); font-weight: 600; line-height: 1; letter-spacing: .02em; }
.doc h2 { font-size: clamp(22px, calc(3vw / var(--zoom, 1)), 28px); line-height: 1.1; letter-spacing: .04em; display: flex; gap: 10px; align-items: baseline; border-bottom: var(--rule-w) solid var(--rule); padding-bottom: 6px; }
.doc h2 .no { font-size: 13px; color: var(--accent2); margin: 0; }
.doc h3 { font-size: 17px; line-height: 1.2; letter-spacing: .04em; }
.lede { font-size: 18px; }
/* The threat globe behind Start here's opening section (site/js/globe.js): a faint line drawing, never in front of
   the text and never taking a click. It stays inside the section's own height (the script draws the largest circle the
   box holds), so it never runs under the figure below. Desktop: on the right. Phone: centred behind the text, fainter. */
.globe-hero { position: relative; display: grid; gap: 22px; isolation: isolate; }
.globe-hero > :not(.globe) { position: relative; z-index: 1; }
.globe { position: absolute; z-index: 0; pointer-events: none; top: 0; bottom: 0; right: 0; width: min(440px, 58%); height: 100%; opacity: .5; }
.globe-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.globe-stats { margin: 0; flex: 1 1 32ch; max-width: 66ch; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; color: var(--dim); }
.globe-toggle { min-height: 44px; padding: 0 14px; font-size: 13px; background: var(--bg); }
.globe-toggle[aria-pressed="false"] { color: var(--dim); }
@media (max-width: 899px) { .globe { width: 100%; opacity: .28; } }
.cfig { border: var(--rule-w) solid var(--rule); background: var(--panel); display: grid; padding: 0; }
.cfig .cap { margin: 0; border-top: 0; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; justify-content: space-between; padding: 7px 12px; border-bottom: var(--rule-w) solid var(--rule); font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.cfig .cap span { font-family: var(--font-mono); font-weight: 400; font-size: 11.5px; letter-spacing: 0; text-transform: none; color: var(--dim); text-align: right; }
.cfig .in { padding: 14px 12px; display: grid; gap: 12px; }
.ba { display: grid; gap: 4px; }
.ba .rec { border: 0; border-left: 3px solid var(--fail); background: var(--panel2); padding: 8px 10px; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; max-width: none; }
.ba.after .rec { border-left-color: var(--ok); font-weight: 500; }
.ba .rec del { color: var(--fail); }
.ba .rec ins { color: var(--ok); text-decoration: none; font-weight: 500; border-bottom: var(--rule-w) solid var(--ok); }
.callouts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.callouts li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.callouts li b { font-family: var(--font-mono); font-weight: 600; font-size: 12px; border: var(--rule-w) solid var(--rule); width: 20px; height: 20px; display: grid; place-items: center; margin-top: 2px; }
.note { border: var(--rule-w) solid var(--rule); display: grid; grid-template-columns: auto 1fr; background: var(--panel); }
.note > b { background: var(--rule); color: var(--bg); font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .14em; padding: 10px; }
.note > p { padding: 9px 12px; font-size: 15px; }
.proc { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; }
.proc li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.proc li::before { content: counter(s); font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1; color: var(--accent2); }
.proc b { font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; display: block; }
.next { display: flex; flex-wrap: wrap; gap: 10px; }

/* tables, columns, boxes */
.tbl { overflow-x: auto; border: var(--rule-w) solid var(--rule); background: var(--panel); }
/* A table wider than the screen scrolls inside its box. The box can take focus (tabindex, role="region", a label),
   so the keyboard can scroll it, and a shadow shows at an edge that has more to see: the "local" covers scroll with
   the content and hide the "scroll" shadows once that edge is reached (mobile QA 2026-11-22). */
.tbl[role="region"] {
  background:
    linear-gradient(to right, var(--panel) 40%, transparent) left / 28px 100% no-repeat local,
    linear-gradient(to left, var(--panel) 40%, transparent) right / 28px 100% no-repeat local,
    linear-gradient(to right, var(--hair), transparent) left / 12px 100% no-repeat scroll,
    linear-gradient(to left, var(--hair), transparent) right / 12px 100% no-repeat scroll,
    var(--panel);
}
.tbl[role="region"]:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; min-width: 640px; }
table.fit { min-width: 0; }
th { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; text-align: left; border-bottom: var(--rule-w) solid var(--rule); padding: 9px 12px; }
td { border-bottom: 1px solid var(--hair); padding: 10px 12px; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 899px) { .cols2, .cols3 { grid-template-columns: 1fr; } }
.dark { background: var(--text); color: var(--bg); }
.dark .k { color: var(--border); }
.dark h3 { color: var(--bg); }
.dark p { color: var(--hair); }
.who > div { display: grid; gap: 8px; border-top: 2px solid var(--lfd-orange); padding-top: 14px; }
.plan { border: var(--rule-w) solid var(--rule); background: var(--panel); display: grid; gap: 10px; padding: 20px; align-content: start; }
.plan.lead { border-width: 2.5px; }
.plan .price { font-family: var(--font-head); font-size: 34px; font-weight: 700; text-transform: uppercase; line-height: 1; }
.plan ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; }
.box { border: var(--rule-w) solid var(--border); padding: 12px 16px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; background: var(--panel); }
.box .lbl { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; padding: 3px 9px; border: var(--rule-w) solid currentColor; color: var(--dim); }
.box.warning { border-color: var(--fail); background: var(--fail-soft); } .box.warning .lbl { color: var(--fail); }
.box.caution { border-color: var(--warn); background: var(--warn-soft); } .box.caution .lbl { color: var(--warn); }
.prose { display: grid; gap: 14px; max-width: 72ch; }
.prose ul, .prose ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.prose h2 { margin-top: 10px; }
.sect-list { display: grid; gap: 28px; }

/* footer with the self-check shield */
footer { border-top: var(--rule-w) solid var(--rule); margin-top: auto; padding: 14px 20px 20px; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
footer .links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-family: var(--font-mono); font-size: 12px; color: var(--dim); align-items: center; }
footer .links a { color: inherit; }
.shield { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 13.5px; }
.shield svg { flex: none; }
.theme-btn { min-height: 32px; border: 1px solid var(--hair); background: transparent; color: var(--dim); font-family: var(--font-mono); font-size: 12px; padding: 0 10px; cursor: pointer; }
/* Tap targets of at least 44 px on a phone or tablet (WCAG 2.2 2.5.5; mobile QA 2026-11-22). */
@media (max-width: 899px) {
  footer .links a, .theme-btn, .shield { min-height: 44px; display: inline-flex; align-items: center; }
  .brand { min-height: 44px; }
}

/* reveals: readable at rest, lifted when seen */
.rv { opacity: .35; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.result { display: none; border: var(--rule-w) solid var(--rule); background: var(--panel); margin-top: 18px; max-width: 560px; }
.result.show { display: block; }
.result .hd { padding: 8px 14px; border-bottom: var(--rule-w) solid var(--rule); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.result ul { margin: 0; padding: 12px 14px 12px 32px; display: grid; gap: 6px; font-size: 13.5px; }
.result .sev { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700; padding: 1px 7px; border: var(--rule-w) solid currentColor; margin-right: 6px; }
.result .sev.crit { color: var(--fail); } .result .sev.high, .result .sev.med { color: var(--warn); }
.result .sev.low, .result .sev.info { color: var(--dim); }

/* status page */
.status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.status-grid > div { border: var(--rule-w) solid var(--rule); background: var(--panel); padding: 14px 16px; display: grid; gap: 6px; }
.dot { display: inline-block; width: 10px; height: 10px; border: 1.5px solid currentColor; margin-right: 8px; vertical-align: -1px; }
.dot.pass { color: var(--ok); background: var(--ok); } .dot.warn { color: var(--warn); background: var(--warn); } .dot.fail { color: var(--fail); background: var(--fail); } .dot.unknown { color: var(--dim); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
}

/* Sign in: the two doors (customers to the portal, employees to /admin). */
.signin { padding-block: 48px; }
.signin > section { padding-block: 0; }
.page-h1 { font-size: clamp(34px, calc(5vw / var(--zoom, 1)), 64px); }
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.door { border: var(--rule-w) solid var(--rule); background: var(--panel); padding: 18px; display: grid; gap: 10px; align-content: start; }
.door h2 { margin: 0; }
.door .btn { justify-self: start; }
.adm-loading { padding-block: 48px; color: var(--dim); }

/* Layout and colour classes for what the pages once set inline (the CSP is style-src 'self', so the built
   pages carry no style= attribute; site/templates/). */
.g4, .g14, .g16, .g18, .g20, .g22 { display: grid; }
.g4 { gap: 4px; } .g14 { gap: 14px; } .g16 { gap: 16px; } .g18 { gap: 18px; } .g20 { gap: 20px; } .g22 { gap: 22px; }
.dim { color: var(--dim); }
.small { font-size: 13.5px; }
.mw-760 { max-width: 760px; } .mw-820 { max-width: 820px; }
.lead-dim { color: var(--dim); font-size: 18px; }
.big-mono { font-size: 16px; }
.band { background: var(--panel); border-top: var(--rule-w) solid var(--rule); border-bottom: var(--rule-w) solid var(--rule); }
.feat { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--dim); }
.link-orange { color: var(--lfd-orange); }
.orange-text { color: var(--lfd-orange-text); }
.verdict { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; }
.result .msg-row { padding: 12px 14px; font-size: 13.5px; }
.result .sum { color: var(--dim); font-size: 13px; }
.result .fixl { font-size: 13px; }
.result .ex-note { padding: 0 14px 12px; font-size: 13px; color: var(--dim); }
.fig .wrench { transform-origin: 470px 70px; }
.fig .bars { transform-origin: 0 200px; }
.fig .f-panel { fill: var(--panel); }
.fig .f-text { fill: var(--text); }
.fig .f-dim { fill: var(--dim); }
.fig .f-accent { fill: var(--accent); }
.fig .f-fail { fill: var(--fail); }
.fig .f-warn { fill: var(--warn); }
.fig .f-border { fill: var(--border); }
.fig .f-info { fill: var(--info-soft); stroke: var(--accent); }
.fig .f-failbox { fill: var(--fail-soft); stroke: var(--fail); }
.fig .f-warnbox { fill: var(--warn-soft); stroke: var(--warn); }
.fig .c-border { color: var(--border); }
.fig .c-hair { color: var(--hair); }

/* The self-check shield shows the one mark its data-state has; "never" is an outline with no mark. */
.shield-g .sg-m { display: none; }
.shield-g[data-state="pass"] .sg-pass, .shield-g[data-state="warn"] .sg-warn,
.shield-g[data-state="fail"] .sg-fail, .shield-g[data-state="stale"] .sg-stale { display: inline; }
.shield-g[data-state="never"] .sg-body { fill: none; }
