/* OMNIcheck software site, teams build. Matches omnicheck.co: navy #00365F bands, light
   system-sans headings, 3 px corners, underlined nav. Spec: docs/DESIGN.md. The page CSP
   allows no inline styles and no web fonts, so everything is here and the stack is the
   system's own (SF Pro, Segoe UI and Roboto all have the Light face the headings use). */
:root {
  --navy: #00365F; --navy-700: #002846; --navy-800: #001F38; --navy-100: #E3EDF5; --navy-200: #BBD0E3;
  --on-navy-muted: #C9D7E3; --on-navy-line: rgba(255, 255, 255, .22); --on-navy-hover: rgba(255, 255, 255, .10);
  --canvas: #F2F2F2; --surface: #FFFFFF; --surface-2: #F7F8FA;
  --ink: #14212E; --text: #333333; --muted: #5B6670; --placeholder: #6B7680;
  --line: #D9DEE3; --line-soft: #E6EAEE; --control-border: #8A95A1;
  --ok: #1E6B3A; --ok-bg: #E3F3E8; --ok-line: #BFE3CA;
  --wait: #7A5200; --wait-bg: #FBF0D2; --wait-line: #EBD9A3;
  --err: #A61B1B; --err-bg: #FBE9E9; --err-line: #EFC2C2;
  --tag: #3A4652; --tag-bg: #E9ECEF; --amber-dot: #B8860B;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --display: 44px; --h1: 32px; --h2: 22px; --lead: 17px;
  --r-ctrl: 3px; --r-card: 4px;
  --focus: #1E6FC0; --focus-halo: rgba(30, 111, 192, .25);
  --t: 120ms ease-out;
  --chevron: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%2314212E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  --chevron-navy: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'><path d='M6 3.5l4.5 4.5L6 12.5' fill='none' stroke='%2300365F' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
@media (max-width: 760px) { :root { --display: 34px; --h1: 28px; --h2: 20px; --lead: 16px; } }
@media (prefers-reduced-motion: reduce) { :root { --t: 0s; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--canvas); color: var(--text); font: 400 16px/1.5 var(--font); font-feature-settings: "tnum" 1;
  min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; color: var(--navy); }
h1 { font-size: var(--h1); line-height: 1.15; font-weight: 300; letter-spacing: -.01em; }
h2 { font-size: var(--h2); line-height: 1.3; font-weight: 400; letter-spacing: -.005em; }
h3 { font-size: 17px; line-height: 1.35; font-weight: 600; color: var(--ink); }
p { margin: 0; }
strong { font-weight: 600; color: var(--ink); }
a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color var(--t); }
a:hover { color: var(--navy-700); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
header.top :focus-visible, footer.bottom :focus-visible, .hero-band :focus-visible { outline-color: #fff; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font: 600 12px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: var(--lead); line-height: 1.55; color: var(--text); max-width: 68ch; }
.small { font-size: 14px; line-height: 1.45; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 14px; }
.path { overflow-wrap: anywhere; }
.icon { flex: 0 0 auto; display: inline-block; vertical-align: -2px; }

/* test banner */
.test-banner { background: var(--wait-bg); color: var(--wait); border-bottom: 1px solid var(--wait-line); font-size: 13px;
  line-height: 1.4; text-align: center; padding: 7px 16px; }
.test-banner strong { font: 600 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--wait); margin-right: 10px; }
.test-banner a { color: var(--wait); }
.view-as-bar { background: var(--navy-100); color: var(--navy); border-bottom: 1px solid var(--navy-200); font-size: 13px;
  line-height: 1.4; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding: 7px 16px; }
.view-as-bar form { margin: 0; }

/* header */
header.top { background: var(--navy); color: #fff; }
header.top .wrap { display: flex; align-items: center; gap: 0 32px; min-height: 72px; }
header.top .logo { display: flex; align-items: center; height: 72px; flex: 0 0 auto; }
header.top .logo img { height: 50px; width: auto; display: block;
  /* the wordmark sits low in the image (the bird rises above it): lift it so OMNICHECK stands on the menu's
     baseline, at any height (Sieggy 11 Nov) */
  transform: translateY(-15.5%); }
header.top .site-name { margin-left: auto; font: 500 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--on-navy-muted); }
nav.main { flex: 1 1 auto; display: flex; gap: 4px; align-self: stretch; min-width: 0; }
nav.main a { position: relative; display: inline-flex; align-items: center; height: 72px; padding: 0 14px; color: #fff;
  font: 400 16px/1 var(--font); text-decoration: none; white-space: nowrap; }
nav.main a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 18px; height: 2px; background: #fff; opacity: 0; transition: opacity var(--t); }
nav.main a:hover { color: #fff; } nav.main a:hover::after { opacity: .5; } nav.main a.on::after { opacity: 1; }
nav.main a:focus-visible { outline-offset: -4px; }
.who { display: flex; align-items: center; gap: 16px; margin-left: auto; min-width: 0; }
.site-name + .who { margin-left: 0; }
.who span { font-size: 14px; color: var(--on-navy-muted); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who form { margin: 0; }
.who button { height: 44px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .45); border-radius: var(--r-ctrl); background: transparent;
  color: #fff; font: 500 14px/1 var(--font); }
.who button:hover { background: var(--on-navy-hover); border-color: rgba(255, 255, 255, .8); color: #fff; }
.who button:active { background: rgba(255, 255, 255, .16); }

/* staff sub-nav */
nav.admin { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; }
nav.admin::after { content: "\203A"; position: absolute; top: 0; right: 0; bottom: 1px; width: 44px; display: flex; align-items: center; justify-content: flex-end;
  padding-right: 10px; background: linear-gradient(to right, transparent, var(--surface) 70%); color: var(--navy); font: 600 22px/1 var(--font);
  pointer-events: none; opacity: 0; transition: opacity var(--t); }
nav.admin.more::after { opacity: 1; }  /* S-3: more links to the right */
nav.admin .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
nav.admin .wrap::-webkit-scrollbar { display: none; }
@media (min-width: 901px) { nav.admin .wrap { flex-wrap: wrap; } }  /* desktop: every link in sight; phones swipe */
nav.admin a { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px; color: var(--ink);
  font: 500 14px/1 var(--font); text-decoration: none; white-space: nowrap; }
nav.admin a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--navy); opacity: 0; transition: opacity var(--t); }
nav.admin a:hover { color: var(--navy); } nav.admin a:hover::after { opacity: .4; }
nav.admin a.on { color: var(--navy); } nav.admin a.on::after { opacity: 1; }
nav.admin a:focus-visible { outline-offset: -4px; }
nav.admin .count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--navy); color: #fff; font: 600 11px/18px var(--font); text-align: center; }
nav.admin .menu-group { display: inline-flex; align-items: center; height: 48px; padding: 0 4px 0 16px; color: var(--muted); font: 600 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }  /* KB step 10 */

/* page */
main { flex: 1 1 auto; width: 100%; max-width: 1120px; margin: 0 auto; padding: 40px 24px 64px; }
main.narrow-page { max-width: 900px; }
main.landing { padding-top: 28px; padding-bottom: 28px; }
main.landing .help { max-width: 72ch; color: var(--muted); }
.page-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.page-head.row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; }
.page-head.row h1 { max-width: 30ch; }
.page-head .meta, .team-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 14px; color: var(--muted); }
.team-bar a { white-space: nowrap; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 14px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--navy); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.gap-s { gap: 8px; } .gap-m { gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; display: flex;
  flex-direction: column; gap: 20px; min-width: 0; }
.help-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.help-cards .card { min-width: 0; overflow-wrap: anywhere; }
.help-sign-in { margin-top: 24px; }
.card.narrow { max-width: 480px; margin: 0 auto; width: 100%; }
.card.tight { gap: 6px; padding: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.empty { padding: 24px; border: 1px dashed var(--line); border-radius: var(--r-card); color: var(--muted); font-size: 15px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.inline { display: inline; }

/* flash */
.flash { padding: 12px 16px; border: 1px solid; border-radius: var(--r-ctrl); font-size: 15px; line-height: 1.5; margin-bottom: 24px; }
.flash a { color: inherit; }
.flash.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.flash.info { background: var(--navy-100); color: var(--navy); border-color: var(--navy-200); }
.flash.error { background: var(--err-bg); color: var(--err); border-color: var(--err-line); }
.card .flash, .stack > .flash { margin-bottom: 0; }

/* forms */
form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-start; }
.row > button { align-self: flex-end; }
.row > .field { flex: 1 1 260px; }
.field-narrow { max-width: 460px; }
label, .label, legend { font: 500 14px/1.3 var(--font); color: var(--ink); }
legend { padding: 0; margin-bottom: 8px; }
label .hint { font-weight: 400; color: var(--muted); margin-left: 6px; }
.hint { font-size: 13px; line-height: 1.45; color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], input[type=url], select, textarea {
  width: 100%; height: 44px; padding: 0 12px; background: #fff; color: var(--ink); border: 1px solid var(--control-border);
  border-radius: var(--r-ctrl); font: 400 16px/1.4 var(--font); transition: border-color var(--t), box-shadow var(--t); }
input::placeholder, textarea::placeholder { color: var(--placeholder); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--placeholder); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-halo); }
input:user-invalid, textarea:user-invalid, select:user-invalid { border-color: var(--err); box-shadow: 0 0 0 3px rgba(166, 27, 27, .18); }
textarea { height: auto; min-height: 140px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; background: #fff var(--chevron) no-repeat right 12px center; text-overflow: ellipsis; }
.actions select, .team-bar select, .line select { width: auto; max-width: 240px; height: 36px; font-size: 14px; }
.actions input[type=search] { flex: 1 1 180px; width: auto; min-width: 0; height: 36px; font-size: 14px; }
.filter-bar { margin-bottom: 20px; }
input.code { height: 56px; padding: 0 16px; font: 500 28px/1 var(--mono); letter-spacing: .35em; text-indent: .175em; }
input.code::placeholder { color: #B8C0C8; }
input[type=file] { font: 400 14px/1.4 var(--font); color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button { height: 36px; padding: 0 14px; margin-right: 12px; border: 1px solid var(--navy); border-radius: var(--r-ctrl);
  background: #fff; color: var(--navy); font: 500 14px/1 var(--font); cursor: pointer; transition: background-color var(--t); }
input[type=file]::file-selector-button:hover { background: var(--navy-100); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-ctrl);
  background: #fff; font: 400 15px/1.3 var(--font); color: var(--ink); cursor: pointer; transition: border-color var(--t), background-color var(--t); }
.opt:hover { border-color: var(--control-border); }
.opt:has(input:checked) { border-color: var(--navy); background: var(--navy-100); }
.opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.opt input, .check-list input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); flex: 0 0 auto; }
.opt input:focus-visible { outline: none; }

/* buttons */
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border: 1px solid var(--navy); border-radius: var(--r-ctrl); background: var(--navy); color: #fff; font: 500 15px/1 var(--font);
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--t), border-color var(--t), color var(--t); }
button:hover, .button:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
button:active, .button:active { background: var(--navy-800); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.secondary, .button.secondary { background: #fff; color: var(--navy); border-color: var(--navy); }
button.secondary:hover, .button.secondary:hover { background: var(--navy-100); color: var(--navy); }
button.secondary:active, .button.secondary:active { background: var(--navy-200); }
button.quiet, .button.quiet { background: transparent; color: var(--navy); border-color: transparent; }
button.quiet:hover, .button.quiet:hover { background: var(--navy-100); color: var(--navy); border-color: transparent; }
button.quiet:active, .button.quiet:active { background: var(--navy-200); }
button.danger, .button.danger { background: #fff; color: var(--err); border-color: var(--err-line); }
button.danger:hover, .button.danger:hover { background: var(--err-bg); border-color: #D98A8A; color: var(--err); }
button.danger:active { background: #F5D4D4; }
button.small, .button.small { height: 36px; padding: 0 14px; font-size: 14px; }
button.link { background: none; border: 0; height: auto; padding: 0; color: var(--navy); font-weight: 500; text-decoration: underline; }
.actions { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; }
.print-bar { margin-bottom: 16px; }
.print-bar .back { margin-bottom: 0; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; padding: 0 12px 10px; border-bottom: 1px solid var(--line); font: 600 12px/1.2 var(--font); letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--ink); }
th:first-child, td:first-child { padding-left: 0; } th:last-child, td:last-child { padding-right: 0; }
tr:last-child td { border-bottom: 0; }
td form { display: inline; }
td.mono { font: 400 14px/1.5 var(--mono); }
th.num, td.num { text-align: right; } th.end, td.end { text-align: right; }
table.dense td { padding-top: 8px; padding-bottom: 8px; font-size: 14px; }
td.nowrap { white-space: nowrap; width: 1%; }
td.wrap-any { overflow-wrap: anywhere; }
td .empty { margin: 8px 0; }

/* status tags */
.pill { display: inline-block; padding: 3px 8px; border: 1px solid transparent; border-radius: var(--r-ctrl); background: var(--tag-bg); color: var(--tag);
  font: 600 12px/1.4 var(--font); letter-spacing: .02em; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.pill.wait { background: var(--wait-bg); color: var(--wait); border-color: var(--wait-line); }
.pill.blue { background: var(--navy-100); color: var(--navy); border-color: var(--navy-200); }
.pill.err { background: var(--err-bg); color: var(--err); border-color: var(--err-line); }

/* landing */
.hero-band { background: var(--navy); color: #fff; padding: 40px 0 72px; }
.hero { max-width: 1120px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 56px; align-items: start; }
.hero .intro { display: flex; flex-direction: column; gap: 24px; min-width: 0; padding-top: 8px; }
.hero h1 { font-size: var(--display); line-height: 1.1; letter-spacing: -.015em; color: #fff; max-width: 20ch; text-wrap: balance; }
.hero .intro .lead { color: var(--on-navy-muted); font-size: 18px; max-width: 46ch; }
.hero .intro strong { color: #fff; }
.hero .intro .small { color: var(--on-navy-muted); }
.hero .intro a { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }
.hero .intro a:hover { text-decoration-color: #fff; }
.steps { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps .n { flex: 0 0 28px; height: 28px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .6); color: #fff;
  font: 500 13px/1 var(--font); display: flex; align-items: center; justify-content: center; }
.steps .t { color: #fff; padding-top: 2px; }
h2 .step { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 999px;
  border: 1px solid currentColor; font: 500 14px/1 var(--font); vertical-align: 3px; }
.card h3 { margin-top: 24px; }
.hero .card { padding: 32px; border: 0; color: var(--text); }
.hero .card :focus-visible { outline-color: var(--focus); }
.hero .card button { width: 100%; }
/* Turnstile shows nothing unless it needs a click (data-appearance=interaction-only), so it
   takes no room in the form's spacing until then. */
.stack > .cf-turnstile { margin-top: -18px; }

/* software page */
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.package { border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; gap: 14px; background: #fff; min-width: 0; }
.package.main { border-color: var(--navy); }
.package .tagline { display: inline-block; padding: 3px 8px; border: 1px solid var(--navy-200); border-radius: var(--r-ctrl); background: var(--navy-100);
  color: var(--navy); font: 500 12px/1.4 var(--font); white-space: nowrap; }
.package .small { color: var(--text); }
.package dl { display: grid; grid-template-columns: 88px 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.package dt { color: var(--muted); } .package dd { margin: 0; color: var(--ink); }
.package .eyebrow { padding-top: 4px; }
.package .eyebrow ~ .eyebrow { padding-top: 12px; border-top: 1px solid var(--line-soft); }
.package button { width: 100%; margin-top: auto; }
.sha { font: 400 12px/1.4 var(--mono); color: var(--muted); word-break: break-all; }

/* team page */
.places-bar { display: flex; gap: 6px; }
.places-bar span { flex: 1; height: 6px; border-radius: 3px; background: var(--line-soft); }
.places-bar span.used { background: var(--navy); }
.places-bar span.invite { background: var(--navy-200); }
.places-bar span.over { background: var(--err); }
.person { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.person:first-of-type { border-top: 0; padding-top: 0; }
.person .who-line { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.person .name { font-weight: 600; font-size: 15px; color: var(--ink); }
.person .mail { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.person .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.person .cal-emails { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; color: var(--muted); }
.week-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.week-grid .opt { display: flex; white-space: nowrap; }
.unit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.unit-list li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: var(--r-ctrl); }

/* add-unit outcomes, disclosures */
.outcome { display: flex; gap: 14px; align-items: flex-start; }
.outcome .dot { flex: 0 0 10px; height: 10px; border-radius: 999px; margin-top: 7px; background: var(--navy); }
.outcome .dot.amber { background: var(--amber-dot); } .outcome .dot.grey { background: var(--control-border); }
details summary { display: flex; align-items: center; gap: 8px; min-height: 44px; list-style: none; cursor: pointer; color: var(--navy); font: 500 15px/1.4 var(--font); }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: ""; flex: 0 0 12px; width: 12px; height: 12px; background: var(--chevron-navy) no-repeat center; transition: transform var(--t); }
details[open] summary::before { transform: rotate(90deg); }
details[open] summary { margin-bottom: 12px; }

/* facts (report detail, staff cards) */
dl.facts { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);  /* B88 S-1: a long label wraps, never squeezes the answer */
  gap: 10px 24px; margin: 0; font-size: 15px; }
dl.facts dt { color: var(--muted); } dl.facts dd { margin: 0; min-width: 0; color: var(--ink); overflow-wrap: anywhere; }

/* report sent */
.done-mark { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--ok-line); background: var(--ok-bg); color: var(--ok);
  display: flex; align-items: center; justify-content: center; }
.sent-head { display: flex; gap: 16px; align-items: flex-start; }

/* staff */
.aq-tag { align-self: flex-start; padding: 4px 10px; border: 1px solid var(--wait-line); border-radius: var(--r-ctrl); background: var(--wait-bg);
  color: var(--wait); font: 600 12px/1.4 var(--font); letter-spacing: .02em; }
.decide { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.decide .field { flex: 1 1 220px; }
.line { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.line:first-child { border-top: 0; padding-top: 0; }
.mail-body { white-space: pre-wrap; font: 400 13px/1.5 var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-ctrl);
  padding: 10px 12px; margin: 6px 0 0; overflow-wrap: anywhere; color: var(--ink); }
.card.tight > strong { font-size: 15px; }
.cards-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.claim-card { border: 1px dashed var(--control-border); border-radius: var(--r-card); padding: 20px; background: #fff; }
.claim-card .code { font: 600 22px/1.3 var(--mono); letter-spacing: 2px; margin: 8px 0; color: var(--ink); }
.check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2px 24px; }
.check-list label { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 0 8px; border-radius: var(--r-ctrl); font-weight: 400; cursor: pointer; }
.check-list label:hover { background: var(--surface-2); }
.code-help { border-top: 1px solid var(--line-soft); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.code-help .actions { gap: 4px 24px; }
.code-help a { font-size: 14px; }

/* footer */
footer.bottom { background: var(--navy); color: var(--on-navy-muted); margin-top: 64px; }
main.landing + footer.bottom { margin-top: 0; }
footer.bottom .brand { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding-top: 40px; padding-bottom: 28px; }
footer.bottom .brand img { display: block; width: auto; }
footer.bottom .mark img { height: 72px; }
footer.bottom .ator img { height: 40px; }
footer.bottom .ask { font-size: 15px; justify-self: center; text-align: center; }
footer.bottom a { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }
footer.bottom a:hover { color: #fff; text-decoration-color: #fff; }
footer.bottom .legal { position: relative; display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 16px; padding-bottom: 24px; font-size: 13px; }
footer.bottom .legal::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; border-top: 1px solid var(--on-navy-line); }
footer.bottom .legal a { color: var(--on-navy-muted); }
footer.bottom .legal a:hover { color: #fff; }
footer.bottom .legal span { margin-left: auto; }

@media print { header.top, nav.admin, .test-banner, .view-as-bar, .no-print, footer.bottom { display: none; } body { background: #fff; } .claim-card { break-inside: avoid; } }

/* unit record (B36): one printed sheet, with the navy masthead the header gives on screen */
span.nowrap { white-space: nowrap; }
.serial-head { font-family: var(--mono); font-weight: 400; letter-spacing: 0; overflow-wrap: anywhere; }
.print-masthead { display: none; }
@media print {
  @page { margin: 14mm; }
  .print-masthead { display: block; margin-bottom: 20px; padding: 12px 16px; background: var(--navy);
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-masthead img { display: block; height: 52px; width: auto; }
  main.unit-record { max-width: none; padding: 0; }
  .unit-record .card { break-inside: avoid; padding: 18px 20px; }
  .unit-record .stack { gap: 12px; }
}

/* support cases (B38-B47) */
/* B88 S-11: skip link, hidden until a keyboard user tabs to it */
.skip { position: absolute; left: 8px; top: -100px; z-index: 100; padding: 10px 16px; background: #fff; color: var(--navy); border-radius: var(--r-ctrl); font-weight: 600; }
.skip:focus { top: 8px; }
main:focus, #start:focus { outline: none; }
.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; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; line-height: 1.45; cursor: pointer; }
label.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); flex: 0 0 auto; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.timeline li:first-child { border-top: 0; padding-top: 0; }
.timeline .when { color: var(--muted); font-size: 13px; padding-top: 2px; }
.timeline li > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.timeline p.pre { color: var(--text); }
.timeline li.reply > div, .timeline li.advice > div { border-left: 3px solid var(--navy-200); padding-left: 12px; }
.timeline li.advice.review > div { border-left-color: var(--wait-line); }
.timeline li.escalation > div { border-left: 3px solid var(--err-line); padding-left: 12px; }
.timeline .tag { font: 600 11px/1.4 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.upload-progress { display: flex; flex-direction: column; gap: 6px; }
.upload-progress[hidden] { display: none; }
.upload-progress .bar { height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.upload-progress .bar span { display: block; height: 100%; width: 0; background: var(--navy); transition: width var(--t); }
.flags { display: flex; flex-wrap: wrap; gap: 4px; }
.subtabs { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; }
.subtabs a { text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.subtabs a.on { border-bottom-color: var(--navy); font-weight: 600; }
.record-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 20px; }
.case-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.case-files li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.case-files li:first-child { border-top: 0; padding-top: 0; }
.case-files .what { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.case-files .acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.log-lines { white-space: pre-wrap; font: 400 13px/1.5 var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-ctrl);
  padding: 12px; max-height: 480px; overflow: auto; overflow-wrap: anywhere; }
details > summary { cursor: pointer; color: var(--navy); font-weight: 500; font-size: 15px; }
details[open] > summary { margin-bottom: 16px; }
.consent-box { border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; }
}
@media (max-width: 760px) {
  .wrap, main, .hero { padding-left: 16px; padding-right: 16px; }
  header.top .wrap { gap: 0 16px; min-height: 60px; flex-wrap: wrap; }
  header.top .logo { height: 60px; }
  header.top .logo img { height: 40px; }
  footer.bottom .legal::before { left: 16px; right: 16px; }
  .who span { display: none; }
  .who button { margin: 2px 0; }
  nav.main { order: 3; flex: 1 0 100%; height: 44px; margin: 0 -16px; padding: 0 4px; border-top: 1px solid var(--on-navy-line);
    overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  nav.main::-webkit-scrollbar { display: none; }
  nav.main a { height: 44px; padding: 0 12px; font-size: 15px; scroll-snap-align: start; }
  nav.main a::after { left: 12px; right: 12px; bottom: 0; }
  .grid2 { grid-template-columns: 1fr; }
  main { padding-top: 24px; padding-bottom: 48px; }
  .page-head { margin-bottom: 24px; }
  .hero-band { padding: 24px 0 0; }
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero .card { margin-bottom: -40px; position: relative; }
  main.landing { padding-top: 64px; }
  footer.bottom { margin-top: 48px; }
  main.landing + footer.bottom { margin-top: 48px; }
  footer.bottom .brand { grid-template-columns: 1fr; justify-items: start; gap: 20px; padding-top: 32px; }
  footer.bottom .ask { justify-self: start; text-align: left; }
  footer.bottom .mark img { height: 56px; } footer.bottom .ator img { height: 32px; }
}
@media (max-width: 600px) {
  .card { padding: 20px 16px; }
  .hero .card { padding: 24px 20px; }
  .stack { gap: 20px; }
  button.small, .button.small { height: 44px; }
  input[type=file]::file-selector-button { height: 44px; }
  .card > form > button[type=submit]:only-of-type, .card > form > div > button[type=submit]:only-child, .package button { width: 100%; }
  .code-help a { display: inline-block; padding: 10px 0; }
  table.stack-table thead { display: none; }
  table.stack-table, table.stack-table tbody, table.stack-table tr { display: block; width: 100%; }
  table.stack-table tr { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  table.stack-table tr:first-child { padding-top: 0; }
  table.stack-table tr:last-child { border-bottom: 0; padding-bottom: 0; }
  table.stack-table td { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 12px; padding: 3px 0; border: 0; text-align: left; overflow-wrap: anywhere; }
  table.stack-table td[data-label]::before { content: attr(data-label); font: 600 12px/1.9 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  table.stack-table td:not([data-label]) { grid-template-columns: 1fr; padding-top: 8px; }
  table.stack-table td:not([data-label]):empty { display: none; }
  table.stack-table td[colspan] { grid-template-columns: 1fr; }
  table.stack-table td.nowrap { width: auto; white-space: normal; }
  table.stack-table td > * { justify-self: start; }  /* a status label stays a label, not a bar */
  /* B88 S-2: a cell's second line (organisation, product, result link) sits under the value, not the label */
  table.stack-table td[data-label]::before { grid-row: 1 / span 9; }
  table.stack-table td[data-label] > * { grid-column: 2; }
  table.stack-table td[data-label] > br { display: none; }  /* each line is already its own row; a <br> would add an empty one */
  /* B88 S-7: 44 px targets on phones (footer links, back links, chapters, Manage team) */
  footer.bottom .legal a, .back, .team-bar a { display: inline-flex; align-items: center; min-height: 44px; }
  .back { margin-bottom: 4px; }
  .video-chapters ol li { align-items: center; }  /* r1: beats the later desktop rule (baseline) */
  .video-chapters li > a { display: flex; align-items: center; min-height: 44px; }  /* r1: the link itself is the 44 px target */
  footer.bottom .legal { align-items: center; }  /* r1: the copyright lines up with the taller links */
  dl.facts { grid-template-columns: 1fr; gap: 2px; } dl.facts dd { margin-bottom: 10px; }
  .timeline li { grid-template-columns: 1fr; }
  form.team-switch { flex-wrap: nowrap; width: 100%; }
  form.team-switch select { flex: 1 1 auto; min-width: 0; max-width: none; }
  .person { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .person .acts { grid-column: 1 / -1; }
  .check-list { grid-template-columns: 1fr; }
  footer.bottom .legal span { margin-left: 0; }
}

/* B64: long titles, revision labels and links wrap on phones. */
.guide-library, .guide-library .card, .guide-library .field { min-width: 0; overflow-wrap: anywhere; }
.guide-library input, .guide-library select, .guide-library textarea { min-width: 0; max-width: 100%; }
.guide-entry + .guide-entry { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
/* B63: four steps wrap into two columns on phones. */
.repairs-card { margin-bottom: 1.25rem; min-width: 0; overflow-wrap: anywhere; }
.repair + .repair { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.repair-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; list-style: none; padding: 0; }
.repair-steps li { min-width: 0; color: var(--muted); border-top: 3px solid var(--line); padding-top: .5rem; }
.repair-steps .reached { color: var(--navy); border-color: var(--navy); }
.repair-steps [aria-current="step"] { font-weight: 700; }
.step-number { display: block; }
@media (max-width: 600px) { .repair-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { nav.main { gap: 0; padding: 0; } nav.main a { padding: 0 8px; font-size: 14px; } nav.main a::after { left: 8px; right: 8px; } }

/* The problem form (B67): big tap targets for the problem, the advice beside the questions, and the
   optional extras folded away. */
[data-show-product][hidden], .problem-panel[hidden], [data-for-other-unit][hidden], [data-for-customer][hidden],
.panel-title[hidden], optgroup[hidden], [data-when-q][hidden], [data-kind-only][hidden], .q-error[hidden],
.restore-note[hidden], .save-state[hidden], .send-note[hidden], .help-box[hidden],
[data-help-submit] { display: none !important; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.tile { display: flex; align-items: flex-start; gap: 10px; min-height: 56px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--r-ctrl); background: var(--surface); cursor: pointer; line-height: 1.35; transition: border-color var(--t), background var(--t); }
.tile:hover { border-color: var(--control-border); }
.tile input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--navy); flex: 0 0 auto; }
.tile:has(input:checked) { border-color: var(--navy); background: var(--navy-100); color: var(--ink); }
.tile:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
details.more { border: 1px solid var(--line); border-radius: var(--r-ctrl); background: var(--surface-2); }
details.more > summary { cursor: pointer; padding: 12px 14px; min-height: 44px; color: var(--navy); font-weight: 600; }
details.more[open] > summary { border-bottom: 1px solid var(--line-soft); }
details.more > .stack { padding: 14px; }

/* the "I'm human" check (human_check.js) */
.error-text { color: var(--err); }
.human-status { margin: 0; }

/* B68 redesign (docs/audits/B68_fable_ux.md): three numbered parts, big tiles, calm advice, inline errors,
   saved-as-you-go, a sticky Send bar on phones. */
:root { --alert-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><circle cx='8' cy='8' r='7' fill='none' stroke='%23A61B1B' stroke-width='1.5'/><path d='M8 4.5v4.2M8 11.2v.3' stroke='%23A61B1B' stroke-width='1.75' stroke-linecap='round'/></svg>"); }
.report-form { display: flex; flex-direction: column; gap: 0; }
.fs { display: flex; flex-direction: column; gap: 24px; padding: 28px 0 32px; border-top: 1px solid var(--line-soft); }
.fs.first { padding-top: 0; border-top: 0; }
.fs > h2 { display: flex; align-items: center; gap: 12px; font-size: 20px; margin: 0; }
.fs > h2 .step { margin: 0; vertical-align: 0; }
.fs .stack { gap: 24px; }

.report-form legend { float: left; width: 100%; margin: 0 0 10px; font: 600 16px/1.35 var(--font); color: var(--ink); max-width: 60ch; }
.report-form legend .hint { font: 400 14px/1.4 var(--font); margin-left: 6px; }
.report-form legend + * { clear: both; }
.report-form fieldset { scroll-margin-top: 24px; }
.report-form .q-help { clear: both; margin: -4px 0 10px; font-size: 14px; line-height: 1.45; color: var(--text); max-width: 64ch; }
.report-form .q-note { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--text); }
.report-form .field > label { font-size: 15px; }

.report-form .opts { gap: 8px; }
.report-form .opts:has(> :nth-child(4)) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.report-form .opt { padding: 0 14px 0 12px; }
.report-form .opt:hover { background: var(--surface-2); }
.report-form .opt:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--navy-100); font-weight: 500; }
.report-form .opt input, .report-form .tile input { width: 20px; height: 20px; margin: 0; }

.report-form .tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.report-form .tile { align-items: center; gap: 12px; min-height: 60px; padding: 14px 16px; font-size: 16px; line-height: 1.35; }
.report-form .tile:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--navy-100); font-weight: 500; }

.problem-panel { gap: 24px; padding: 20px; border: 1px solid var(--line-soft); border-radius: var(--r-card); background: var(--surface-2); }
.problem-panel .panel-title { margin: 0; font-size: 17px; color: var(--navy); }
.advice { padding: 12px 16px 12px 14px; border: 0; border-left: 3px solid var(--amber-dot); border-radius: 0 var(--r-ctrl) var(--r-ctrl) 0;
  background: var(--surface); color: var(--ink); font-size: 15px; line-height: 1.5; }
.advice strong { display: block; margin-bottom: 6px; font: 600 12px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--wait); }
.advice p { margin: 0; }
.advice p + p { margin-top: 6px; }

/* a follow-up revealed by an earlier answer, and a problem's questions as they open */
@keyframes q-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.report-form [data-when-q] { padding-left: 14px; border-left: 2px solid var(--navy-200); }
.report-form [data-when-q]:not([hidden]), .problem-panel:not([hidden]) { animation: q-in 160ms ease-out; }
@media (prefers-reduced-motion: reduce) { .report-form [data-when-q], .problem-panel { animation: none !important; } }

/* missing answer (JS adds .is-missing and a .q-error line; without JS the browser's own check runs) */
.q-error { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--err); font: 500 14px/1.4 var(--font); clear: both; }
.q-error::before { content: ""; flex: 0 0 16px; height: 16px; background: var(--alert-icon) no-repeat center; }
.report-form .is-missing { padding-left: 14px; border-left: 3px solid var(--err); }
.report-form .is-missing legend, .report-form .field.is-missing > label { color: var(--err); }
.report-form .field.is-missing input, .report-form .field.is-missing select, .report-form .field.is-missing textarea { border-color: var(--err); box-shadow: 0 0 0 3px rgba(166, 27, 27, .18); }

/* saved as you go */
.restore-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 0 0 24px; padding: 6px 16px; border: 1px solid var(--navy-200);
  border-radius: var(--r-ctrl); background: var(--navy-100); color: var(--navy); font-size: 15px; }
.restore-note button.link { margin-left: auto; min-height: 44px; color: var(--navy); }
.save-state { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 0 auto; font-size: 14px; color: var(--muted); }
.save-state::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--control-border); }
.save-state.saving::before { background: var(--amber-dot); }
.save-state.saved::before { background: var(--ok); }

/* send bar */
.send-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.send-bar button[type=submit] { min-width: 180px; }
.send-note { flex-basis: 100%; margin: 0; color: var(--err); font: 500 14px/1.4 var(--font); }
.report-form > .cf-turnstile { margin: 0 0 16px; }
.report-form .human-status { margin: -8px 0 16px; }

/* Cal-Kit, files, extras, staff */
.call-office { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--navy-200); border-radius: var(--r-card); background: var(--navy-100); color: var(--ink); }
.call-office p { margin: 0; }
.call-office .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.call-office .actions a.button { min-width: 220px; }
.report-form input[type=file] { width: 100%; padding: 10px; border: 1px dashed var(--control-border); border-radius: var(--r-ctrl); background: var(--surface); }
details.more > summary { font-weight: 500; }
details.more > .stack { padding: 4px 16px 18px; gap: 18px; }
label.check:has(input:disabled) { color: var(--muted); cursor: not-allowed; }
label.check .hint { display: block; margin-top: 2px; }

@media (max-width: 600px) {
  .fs { padding: 24px 0 28px; }
  .report-form .opts:has(> :nth-child(4)) { grid-template-columns: 1fr; }
  .report-form .opts:has(> :nth-child(4)) .opt { display: flex; }
  .report-form .tiles { grid-template-columns: 1fr; }
  .problem-panel { padding: 16px 14px; }
  .send-bar { position: sticky; bottom: 0; z-index: 2; margin: 0 -16px -20px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgba(20, 33, 46, .06); }
  .send-bar button[type=submit] { width: 100%; min-width: 0; }
  .save-state { order: -1; width: 100%; justify-content: center; margin-left: 0; font-size: 13px; }
  .call-office .actions a.button { width: 100%; }
}

/* B71 help videos */
.video-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.video-tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; text-decoration: none; color: inherit; min-width: 0; }
.video-tile:hover, .video-tile:focus-visible { border-color: var(--navy); }
.video-tile img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.video-tile-text { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; overflow-wrap: anywhere; }
.video-tile-text strong { color: var(--navy); }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-card); overflow: hidden; margin-bottom: 8px; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-chapters { margin-top: 16px; }
.video-chapters h2 { display: flex; gap: 10px; align-items: baseline; }
.video-chapters ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.video-chapters li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 8px; align-items: baseline; }
.video-chapters .hint { font-variant-numeric: tabular-nums; }
.video-more { margin-top: 32px; }
.video-more ul { padding-left: 1.2em; }
.advice.video-advice { border-left-color: var(--navy); }
.advice.video-advice strong { color: var(--navy); }

/* S-4: a distributor's units, one line each (two on a phone); the find box above narrows them (static/unit_find.js) */
.find { margin: 0 0 12px; }
.find label { display: block; font-weight: 600; margin-bottom: 6px; }
.find input { width: 100%; max-width: 420px; height: 44px; }
.find [data-find-count] { margin: 6px 0 0; }
.find [data-find-count]:empty { margin: 0; }  /* takes no room until there is a count to say */
table.dist-units tr[hidden] { display: none; }
table.dist-units .u-due, table.dist-units .u-sw { white-space: nowrap; }
@media (max-width: 600px) {
  table.dist-units thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.dist-units, table.dist-units tbody { display: block; }
  table.dist-units tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
  table.dist-units tr::after { content: ""; flex-basis: 100%; height: 0; order: 1; }  /* line break: serial and due above, customer and software below */
  table.dist-units td { display: block; padding: 0; border: 0; }
  table.dist-units .u-serial { order: 0; flex: 1 0 auto; }
  table.dist-units .u-due { order: 0; margin-left: auto; text-align: right; }  /* drops to its own line when it doesn't fit beside the serial */
  table.dist-units .u-customer { order: 2; flex: 1 1 0; min-width: 0; }
  table.dist-units .u-sw { order: 2; margin-left: auto; color: var(--muted); font-size: 13px; }
  table.dist-units a { display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0; }
}
