/* Collar website, round 15b: the inner pages (pricing, tour, trust, rules) on the realistic-earth art
   direction of the 3D hero (spike PR #253, spikes/site-3d/src/earth.html and f-main.js). The ground
   is the hero's dark earth; rock photo materials (the hero's CC0 Poly Haven sets, tex/) make the
   laterite band under the header, the strata band between sections, the cut-rock plan cards and the
   rule-group map units. The geological map is the annotation layer on top: oxide finding rings and
   numbered callouts, thin survey lines, depth tags for section numbers, paper tags and paper cells as
   small accents. Labels and headings: Lexend Exa 200 caps with the hero's tracking. Body: the hero's
   system face at 17 px, light on dark. Every colour is a token on :root. */
:root {
  color-scheme: dark;
  /* the hero's tokens (earth.html :root) */
  --ground: #0b0907;
  --ink: #efe6d4;
  --mute: #a3937c;
  --dim: #6c604f;
  --lamp: #ffb35c;
  --line: rgb(239 230 212 / 0.38);
  --paper: #ece2cc;
  --paper-ink: #2b2219;
  --oxide: #a3341f;
  /* the hero's background shader colour as a top glow, and raised faces */
  --ground-glow: rgb(62 46 32 / 0.55);
  --ground-2: #14100c;
  --ground-3: #1c1711;
  --line-soft: rgb(239 230 212 / 0.16);
  --line-faint: rgb(239 230 212 / 0.08);
  --ink-2: #d6ccb9;
  --lamp-ink: #1a1207;
  --lamp-wash: rgb(255 179 92 / 0.1);
  --oxide-hi: #c94a2c;
  --oxide-wash: rgb(201 74 44 / 0.12);
  --paper-wash: rgb(236 226 204 / 0.07);
  --rock-veil: rgb(11 9 7 / 0.55);
  --rock-veil-2: rgb(11 9 7 / 0.86);
  --shadow: rgb(0 0 0 / 0.55);
  --btn-ground: rgb(3 4 5 / 0.4);
  --clear: transparent;
  /* severity, lifted for a dark ground (direction A's) */
  --blocker: #ff6b5e;
  --warning: #f5a63a;
  --info: #7aa7ff;
  --ok: #8fd19e;
  /* mockup notes: not part of the design */
  --note-ground: #0f1a2e;
  --note-line: #6f9bff;
  --note-ink: #c9dafc;

  --font-wide: "Lexend Exa", "Arial", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --track: 0.32em;
  --wrap: 1200px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); }
body {
  margin: 0;
  background-color: var(--ground);
  background-image: radial-gradient(ellipse 90% 60% at 50% 0%, var(--ground-glow), var(--clear) 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lamp); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 1px solid var(--lamp); outline-offset: 4px; }
h1, h2, h3 {
  font-family: var(--font-wide); font-weight: 200; text-transform: uppercase;
  line-height: 1.3; margin: 0; color: var(--ink);
}
h1 { font-size: clamp(24px, 3.1vw, 38px); letter-spacing: 0.2em; }
h2 { font-size: clamp(19px, 2vw, 25px); letter-spacing: 0.24em; }
h3 { font-size: 16px; letter-spacing: 0.24em; font-weight: 300; }
p { margin: 0 0 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.label {
  font: 300 11px/1.5 var(--font-wide);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--mute);
}
.label.oxide { color: var(--lamp); }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 760px; }
.muted { color: var(--mute); }

/* ---- header (with the laterite ground band) and footer ---- */
.top { background: var(--ground); }
.top::after {
  content: ""; display: block; height: 14px;
  background: url(/tex/laterite.webp) 0 0 / 512px 24px repeat-x;
  box-shadow: inset 0 3px 6px var(--shadow), inset 0 -4px 6px var(--shadow);
}
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; flex-wrap: wrap; }
.brand {
  display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none;
  font: 200 18px/1 var(--font-wide); letter-spacing: 0.62em; text-transform: uppercase;
}
.brand svg { width: 26px; height: 26px; }
.brand .ring-o { fill: none; stroke: var(--oxide-hi); stroke-width: 2; }
.brand .core-l { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; flex: 1; }
.nav a {
  font: 300 11px/1 var(--font-wide); letter-spacing: var(--track); text-transform: uppercase;
  color: var(--mute); text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--clear);
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--lamp); border-bottom-color: var(--lamp); }
.top-actions { display: flex; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px 0 calc(20px + 0.3em); border-radius: 999px;
  font: 300 12px/1 var(--font-wide); letter-spacing: 0.3em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--line); color: var(--ink); background: var(--btn-ground);
}
.btn:hover { border-color: var(--lamp); background: var(--lamp-wash); color: var(--ink); }
.btn.primary { background: var(--lamp); border-color: var(--lamp); color: var(--lamp-ink); font-weight: 400; }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--lamp-ink); }
.btn.small { min-height: 38px; padding: 0 14px 0 calc(14px + 0.3em); font-size: 10.5px; }

.foot { margin-top: 56px; padding: 0 0 40px; }
.foot::before { content: ""; display: block; height: 44px; margin-bottom: 32px; background: url(/tex/strata.webp) 0 0 / 1024px 44px repeat-x; }
.foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.foot ul { list-style: none; margin: 10px 0 0; padding: 0; }
.foot li { margin: 6px 0; }
.foot p { font-size: 15px; color: var(--mute); }

/* ---- the sheet: thin survey lines on the dark ground; a title block (cartouche) top right ---- */
.sheet { margin-top: 28px; border: 1px solid var(--line-soft); position: relative; }
.sheet::before, .sheet::after { content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid var(--paper); pointer-events: none; }
.sheet::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; }
.sheet::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }
.cartouche { display: grid; grid-template-columns: 1fr 300px; border-bottom: 1px solid var(--line-soft); }
.cartouche .title { padding: 34px 32px 28px; }
.cartouche .title h1 { margin: 12px 0 16px; }
.cartouche .block { border-left: 1px solid var(--line-soft); display: grid; grid-template-rows: auto auto 1fr; font-size: 14px; }
.cartouche .block > div { padding: 12px 16px; border-bottom: 1px solid var(--line-faint); }
.cartouche .block > div:last-child { border-bottom: 0; }
.cartouche .block dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.cartouche .block dt { font: 300 10px/1.9 var(--font-wide); letter-spacing: 0.24em; text-transform: uppercase; color: var(--mute); }
.cartouche .block dd { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--ink); }

/* depth-scale rule: ink ticks every metre, long ticks every five */
.scale {
  height: 14px;
  background:
    linear-gradient(var(--line), var(--line)) bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, var(--clear) 1px 60px) bottom / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, var(--clear) 1px 12px) bottom / 100% 7px no-repeat;
}
.scale-labels { display: flex; justify-content: space-between; font: 300 9.5px/1.8 var(--font-wide); letter-spacing: 0.16em; color: var(--mute); }

/* sections are separated by a strata band cut from the hero's rock materials */
.section { padding: 40px 32px 84px; position: relative; }
.section::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44px;
  background: url(/tex/strata.webp) 0 0 / 1024px 44px repeat-x;
  box-shadow: inset 0 4px 8px var(--shadow);
}
.section:last-child { padding-bottom: 40px; }
.section:last-child::after { display: none; }
.section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
/* the section number as a depth tag, read off the scale rule beside the heading */
.section-head .station {
  font: 300 10px/1 var(--font-wide); letter-spacing: 0.16em; color: var(--paper-ink);
  background: var(--paper); border: 1px solid var(--paper-ink); padding: 5px 7px 5px 9px; flex: none;
  box-shadow: 3px 3px 0 var(--shadow);
}
.section-head .station::after { content: " m"; }
.section-head h2 { flex: 0 1 auto; }
.section-head::after {
  content: ""; flex: 1 1 120px; height: 12px; align-self: center;
  background:
    linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, var(--clear) 1px 10px) 0 100% / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, var(--ink-2) 0 1px, var(--clear) 1px 50px) 0 100% / 100% 12px no-repeat;
}
.section-head p { flex-basis: 100%; margin: 6px 0 0; color: var(--ink-2); max-width: 820px; order: 3; }

/* dashed mockup notes: not part of the design */
.mock-note { border: 1px dashed var(--note-line); background: var(--note-ground); color: var(--note-ink); font-size: 14px; line-height: 1.5; padding: 10px 14px; margin: 16px 0; border-radius: 3px; }
.mock-note b { font-family: var(--font-wide); font-weight: 400; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; }
.mock-note code { color: var(--ink); }
.sheet > .mock-note { margin: 16px 32px; }

/* ---- plan cards: cut rock blocks ---- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.plan { background: var(--ground-2); display: flex; flex-direction: column; border: 1px solid var(--line-soft); box-shadow: 10px 12px 0 var(--shadow); }
.plan-head {
  padding: 18px 20px 20px; min-height: 196px;
  display: flex; flex-direction: column; justify-content: space-between;
  background-size: cover; background-position: center;
  border-bottom: 3px solid var(--paper);
}
.plan:nth-child(1) .plan-head { background-image: linear-gradient(var(--rock-veil), var(--rock-veil-2)), url(/tex/rock-sap.webp); }
.plan:nth-child(2) .plan-head { background-image: linear-gradient(var(--rock-veil), var(--rock-veil-2)), url(/tex/rock-dol.webp); }
.plan:nth-child(3) .plan-head { background-image: linear-gradient(var(--rock-veil), var(--rock-veil-2)), url(/tex/rock-grn.webp); }
.plan-head .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-head h3 { font-size: 18px; letter-spacing: 0.32em; }
.plan-head .label { color: var(--ink-2); }
.plan.feature { border-color: var(--lamp); }
.plan.feature .plan-head { border-bottom-color: var(--lamp); }
.plan.feature .plan-head .label { color: var(--lamp); }
.plan-body { padding: 18px 20px; flex: 1; }
.price-big { font: 200 58px/1 var(--font-wide); letter-spacing: 0.02em; color: var(--ink); margin-top: 18px; }
.price-unit { font-size: 15px; color: var(--ink-2); margin: 8px 0 0; }
.price-alt { font-family: var(--font-mono); font-size: 15px; color: var(--ink); margin: 6px 0 0; }
.price-table { width: 100%; border-collapse: collapse; margin: 0 0 4px; font-size: 15px; }
.price-table th { text-align: left; font: 300 10px/1.4 var(--font-wide); letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute); padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.price-table td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line-faint); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.price-table td:first-child { font-family: var(--font-body); color: var(--ink-2); }
.plan ul { margin: 14px 0 0; padding-left: 18px; font-size: 15.5px; color: var(--ink-2); }
.plan li { margin: 7px 0; }
.plan li::marker { color: var(--lamp); }
.plan-foot { padding: 0 20px 20px; }
.plan-foot .btn { width: 100%; }

/* the model diagram */
.model { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }
.model svg { width: 100%; height: auto; display: block; }
.model .co-box { fill: var(--ground-2); stroke: var(--line); stroke-width: 1; }
.model .co-tag { fill: var(--paper); }
.model .person { fill: var(--ink-2); }
.model .person.faint { fill: var(--dim); }
.model .t-label { font: 300 10px var(--font-wide); letter-spacing: 0.22em; fill: var(--mute); text-transform: uppercase; }
.model .t-body { font: 400 15px var(--font-body); fill: var(--ink); }
.model .t-big { font: 300 16px var(--font-wide); letter-spacing: 0.1em; fill: var(--ink); text-transform: uppercase; }
.model .t-oxide { font: 600 15px var(--font-body); fill: var(--lamp); }
.model .t-white { font: 400 10.5px var(--font-wide); letter-spacing: 0.08em; text-transform: uppercase; fill: var(--paper-ink); }
.model .t-mono { font: 400 13px var(--font-mono); fill: var(--ink-2); }
.model .band-in { fill: var(--lamp-wash); stroke: var(--lamp); stroke-width: 1; }
.model .band-add { fill: var(--oxide-wash); stroke: var(--oxide-hi); stroke-width: 1; stroke-dasharray: 5 3; }
.model .axis { stroke: var(--ink); stroke-width: 1; }
.model .tick { stroke: var(--ink-2); stroke-width: 1; }
.model .ring { fill: none; stroke: var(--oxide-hi); stroke-width: 2; }
.model .lead { stroke: var(--oxide-hi); stroke-width: 1; fill: none; }
.model .chip { fill: var(--oxide-hi); }
.model-points { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: pt; }
.model-points li { position: relative; padding: 0 0 16px 46px; counter-increment: pt; color: var(--ink-2); }
.model-points li::before {
  content: counter(pt); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--oxide-hi); color: var(--ink); font: 300 12px/27px var(--font-wide); text-align: center;
}
.model-points b { display: block; font-size: 18px; font-weight: 600; color: var(--ink); }

/* ---- dense tables on the dark ground ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); background: var(--ground-2); }
table.ledger { width: 100%; border-collapse: collapse; font-size: 15px; }
.ledger caption { text-align: left; padding: 12px; font: 300 11px/1.4 var(--font-wide); letter-spacing: var(--track); text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line-faint); color: var(--ink-2); }
.ledger thead th { font: 300 10px/1.5 var(--font-wide); letter-spacing: 0.24em; text-transform: uppercase; color: var(--mute); background: var(--ground-3); border-bottom: 1px solid var(--line-soft); }
.ledger tbody th { font-weight: 600; width: 22%; color: var(--ink); }
.ledger tbody th small { display: block; font-weight: 400; color: var(--mute); font-size: 13px; }
.ledger tbody tr:hover td, .ledger tbody tr:hover th { background: var(--paper-wash); }
.ledger td.num, .ledger td .num { font-family: var(--font-mono); white-space: nowrap; color: var(--ink); }
/* group rows: a paper strip, like the hero's printed tags */
.ledger tr.group th { background: var(--paper); color: var(--paper-ink); font: 400 10px/1.5 var(--font-wide); letter-spacing: var(--track); text-transform: uppercase; padding: 7px 12px; }
.ledger tbody tr.group:hover th { background: var(--paper); }
/* ticks: a small paper cell mark */
.ledger .yes::before {
  content: "✓"; display: inline-block; margin-right: 8px; width: 18px; height: 18px; line-height: 18px; text-align: center;
  background: var(--paper); color: var(--paper-ink); font-size: 12px; font-weight: 700; vertical-align: 1px;
}
.ledger .no { color: var(--mute); }
.compare { table-layout: fixed; }
.compare td.num { white-space: normal; }
.compare td.studio { background: var(--lamp-wash); }
.compare th.c-feature { width: 24%; }
.compare th.c-plan { width: 25.33%; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card { border: 1px solid var(--line-soft); background: var(--ground-2); padding: 20px; color: var(--ink-2); }
.card h3 { margin: 6px 0 10px; color: var(--ink); }
.card .num { color: var(--ink); }
.card.oxide { border-color: var(--lamp); }
.card .btn { margin-top: 6px; }
.card h3.num { font: 200 34px/1.1 var(--font-wide); letter-spacing: 0.04em; }

.faq { margin: 30px 0 0; }
.faq dt { font-weight: 600; font-size: 18px; margin-top: 18px; color: var(--ink); }
.faq dd { margin: 4px 0 0; color: var(--ink-2); }

/* ---- annotated screenshots (tour): map insets with paper corner marks and a paper label ---- */
.tour-index { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); margin-top: 16px; }
.tour-index a { display: block; padding: 12px 8px 0; text-decoration: none; color: var(--ink); border-left: 1px solid var(--line-faint); font-size: 15px; font-weight: 600; line-height: 1.3; }
.tour-index a:first-child { border-left: 0; }
.tour-index a:hover { color: var(--lamp); }
.tour-index a span { display: block; font: 300 10px/1.8 var(--font-wide); color: var(--lamp); letter-spacing: 0.2em; }

.stop { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.stop > div { display: grid; grid-template-columns: 1fr 2fr; gap: 28px; align-items: start; }
.stop .callouts { columns: 2; column-gap: 28px; }
.stop .callouts li { break-inside: avoid; }
.shot {
  margin: 0; padding: 8px;
  background:
    linear-gradient(var(--paper), var(--paper)) 0 0 / 18px 2px no-repeat,
    linear-gradient(var(--paper), var(--paper)) 0 0 / 2px 18px no-repeat,
    linear-gradient(var(--paper), var(--paper)) 100% 0 / 18px 2px no-repeat,
    linear-gradient(var(--paper), var(--paper)) 100% 0 / 2px 18px no-repeat,
    linear-gradient(var(--paper), var(--paper)) 0 100% / 18px 2px no-repeat,
    linear-gradient(var(--paper), var(--paper)) 0 100% / 2px 18px no-repeat,
    linear-gradient(var(--paper), var(--paper)) 100% 100% / 18px 2px no-repeat,
    linear-gradient(var(--paper), var(--paper)) 100% 100% / 2px 18px no-repeat;
}
.shot-frame { position: relative; border: 1px solid var(--line); box-shadow: 0 24px 60px var(--shadow); }
.shot-frame img { width: 100%; }
.ring {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  border: 2.5px solid var(--oxide); border-radius: 18px;
  box-shadow: 0 0 0 1.5px var(--paper), inset 0 0 0 1px var(--paper);
}
.ring.round { border-radius: 50%; }
.ring b {
  position: absolute; left: -14px; top: -14px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--oxide); color: var(--paper); font: 400 12px/26px var(--font-wide); text-align: center;
  box-shadow: 0 0 0 1.5px var(--paper);
}
.shot figcaption {
  display: inline-block; margin: 12px 0 2px; font: 300 10px/1.5 var(--font-wide); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--paper-ink); background: var(--paper); border: 1px solid var(--paper-ink); padding: 4px 8px; box-shadow: 3px 3px 0 var(--shadow);
}
.callouts { list-style: none; margin: 0; padding: 0; counter-reset: co; }
.callouts li { position: relative; padding: 0 0 16px 40px; counter-increment: co; font-size: 16px; color: var(--ink-2); }
.callouts li::before {
  content: counter(co); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--oxide); color: var(--paper); font: 400 12px/26px var(--font-wide); text-align: center;
  box-shadow: 0 0 0 1.5px var(--paper);
}
.callouts b { display: block; color: var(--ink); }
.does { border-left: 1px solid var(--lamp); padding: 2px 0 2px 16px; margin: 0 0 16px; font-size: 18px; color: var(--ink); }
.does p:last-child { margin-bottom: 0; }
.inset { margin-top: 26px; display: grid; grid-template-columns: 520px 1fr; gap: 22px; align-items: start; }

/* ---- severity marks (the app's shapes, lifted for dark) ---- */
.sev { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.sev::before { content: ""; width: 0; height: 0; display: inline-block; }
.sev.blocker { color: var(--blocker); }
.sev.blocker::before { border-left: 6px solid var(--clear); border-right: 6px solid var(--clear); border-bottom: 10px solid var(--blocker); }
.sev.warning { color: var(--warning); }
.sev.warning::before { width: 10px; height: 10px; background: var(--warning); }
.sev.info { color: var(--info); }
.sev.info::before { width: 10px; height: 10px; border-radius: 50%; background: var(--info); }

/* ---- legend (rules: groups as map units in the hero's rock materials) ---- */
.legend { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-soft); background: var(--ground-2); }
.legend a { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-faint); border-right: 1px solid var(--line-faint); }
.legend a:hover { background: var(--paper); color: var(--paper-ink); }
.legend a:hover .name small, .legend a:hover .count { color: var(--paper-ink); }
.legend .swatch { height: 30px; border: 1px solid var(--line); background-size: cover; }
.legend .count { font: 200 24px/1 var(--font-wide); color: var(--ink); }
.legend .name { font-weight: 600; line-height: 1.25; }
.legend .name small { display: block; font-weight: 400; color: var(--mute); font-size: 13px; }
.u-collar { background-image: url(/tex/unit-0.webp); }
.u-survey { background-image: url(/tex/unit-1.webp); }
.u-intervals { background-image: url(/tex/unit-2.webp); }
.u-core { background-image: url(/tex/unit-3.webp); }
.u-samples { background-image: url(/tex/unit-4.webp); }
.u-results { background-image: url(/tex/unit-5.webp); }
.u-qaqc { background-image: repeating-linear-gradient(45deg, var(--oxide-hi) 0 2px, var(--ground-2) 2px 7px); }
.u-project { background-image: repeating-linear-gradient(-45deg, var(--mute) 0 1px, var(--ground-2) 1px 6px); }
.u-photos { background-image: linear-gradient(90deg, var(--paper) 0 30%, var(--ground-2) 30% 36%, var(--paper) 36% 66%, var(--ground-2) 66% 72%, var(--paper) 72%); }
.sev-bar { display: flex; height: 10px; margin: 10px 0 8px; }
.sev-bar span { display: block; height: 100%; }
.sev-bar .b { background: var(--blocker); }
.sev-bar .w { background: var(--warning); }
.sev-bar .i { background: var(--info); }
.rules td.id { white-space: nowrap; width: 76px; }
/* the rule id as a paper depth tag */
.rules td.id a {
  display: inline-block; text-decoration: none; font: 400 11px/1.4 var(--font-wide); letter-spacing: 0.1em;
  color: var(--paper-ink); background: var(--paper); border: 1px solid var(--paper-ink); padding: 2px 6px;
}
.rules td.id a:hover { background: var(--lamp); }
.rules td.name { font-weight: 600; width: 26%; color: var(--ink); }
.rules td.sev-c { width: 110px; }
.rules td.chk { color: var(--ink-2); font-size: 15px; }
.group-head { display: flex; gap: 16px; align-items: center; margin: 0 0 12px; flex-wrap: wrap; }
.group-head .swatch { width: 48px; height: 28px; border: 1px solid var(--line); flex: none; background-size: cover; }
.group-head p { margin: 0; color: var(--ink-2); flex-basis: 100%; }
.rule-group + .rule-group { margin-top: 40px; }

/* ---- trust ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-soft); background: var(--ground-2); }
.split > div { padding: 20px 22px; color: var(--ink-2); }
.split > div + div { border-left: 1px solid var(--line-soft); }
.split h3 { margin: 6px 0 4px; }
.split ul { margin: 10px 0 0; padding-left: 20px; }
.split li { margin: 7px 0; }
.split li::marker { color: var(--lamp); }
.split .never { margin-top: 16px; border-top: 1px dashed var(--oxide-hi); padding-top: 12px; }
.split .never .label { color: var(--blocker); }
.fact { display: grid; grid-template-columns: 220px 1fr; gap: 6px 20px; padding: 16px 0; border-top: 1px solid var(--line-faint); }
.fact:first-child { border-top: 0; }
.fact .k { font: 300 11px/1.7 var(--font-wide); letter-spacing: 0.24em; text-transform: uppercase; color: var(--lamp); padding-top: 3px; }
.fact .v { color: var(--ink-2); }
.fact .v p:last-child { margin-bottom: 0; }

@media (max-width: 1000px) {
  .plans, .three { grid-template-columns: 1fr; }
  .model, .stop, .stop > div, .two, .inset { grid-template-columns: 1fr; }
  .stop .callouts { columns: 1; }
  .cartouche { grid-template-columns: 1fr; }
  .cartouche .block { border-left: 0; border-top: 1px solid var(--line-soft); }
  .legend { grid-template-columns: 1fr 1fr; }
  .tour-index { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  h1 { letter-spacing: 0.12em; }
  h2 { letter-spacing: 0.16em; }
  .section { padding: 30px 16px 64px; }
  .section:last-child { padding-bottom: 30px; }
  .sheet > .mock-note { margin: 16px; }
  .cartouche .title { padding: 24px 16px 20px; }
  .sheet { margin-top: 16px; }
  .top .wrap { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .brand { letter-spacing: 0.4em; }
  .nav { order: 3; flex-basis: 100%; gap: 14px; }
  .nav a { letter-spacing: 0.18em; }
  .top-actions { margin-left: auto; }
  .legend { grid-template-columns: 1fr; }
  .tour-index { grid-template-columns: 1fr 1fr; }
  .tour-index a { border-left: 0; border-top: 1px solid var(--line-faint); padding-bottom: 8px; }
  .split { grid-template-columns: 1fr; }
  .split > div + div { border-left: 0; border-top: 1px solid var(--line-soft); }
  .fact { grid-template-columns: 1fr; }
  .foot .wrap { grid-template-columns: 1fr; }
  .ring b { width: 20px; height: 20px; font-size: 10px; line-height: 20px; left: -10px; top: -10px; }
  .ring { border-width: 2px; border-radius: 10px; }
  .rules td.name { width: auto; }
  .ledger th, .ledger td { padding: 8px; }
  .price-big { font-size: 48px; }
  .plan-head { min-height: 170px; }
  .shot { padding: 6px; }
}

/* At phone width the dense tables become stacked records, so nothing scrolls sideways. */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; }
  .stack thead { display: none; }
  .stack, .stack tbody, .stack tr, .stack th, .stack td { display: block; width: auto; }
  .stack tr { border-bottom: 1px solid var(--line-soft); padding: 6px 0; }
  .stack th, .stack td { border-bottom: 0; padding: 4px 10px; }
  .stack td[data-plan]::before { content: attr(data-plan); display: block; font: 300 9.5px/1.8 var(--font-wide); letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute); }
  .stack td.yes[data-plan]::before { content: attr(data-plan) "  ✓"; display: block; width: auto; height: auto; margin: 0; background: none; color: var(--mute); font: 300 9.5px/1.8 var(--font-wide); text-align: left; }
  .stack tbody th { width: auto; }
  .rules tr { display: grid; grid-template-columns: auto 1fr; gap: 0 4px; }
  .rules td.id, .rules td.sev-c { width: auto; }
  .rules td.name, .rules td.chk { grid-column: 1 / -1; }
  .ledger td.num, .ledger td .num { white-space: normal; }
}
