/* BLACK CROWN - the public site, "STONE AND TRIM" (2026-09-25, wave A2). The same tokens as the command
   room (tokens.css, loaded first) so the two are one house: black stone, gold as a 1px trim and ONE gold
   button, Cinzel capitals for titles, Barlow for reading, cut corners, crown colours as ribbons.
   Dark only, on purpose - it is a night city - so every colour is painted explicitly.
   Spec: _design/site-revamp-20260924/3-ui.md. Originals parked under unused/site-revamp-20260925/A2/. */
:root {
  --void: var(--stone-0); --ink: var(--ivory); --ink-dim: var(--ivory-2); --ink-faint: var(--ivory-3);
  --gold-hot: var(--gold-hi); --gold-deep: var(--gold-lo);
  --edge: var(--rule-hi); --edge-hot: var(--gold-lo);
  --panel: var(--stone-1); --panel-2: var(--stone-2);
  --serif: var(--font-display); --sans: var(--font-text); --mono: var(--font-text); --label: var(--font-label);
  --gutter: clamp(16px, 4vw, 56px); --wide: 1440px;
}
* { box-sizing: border-box; }
html { background: var(--stone-0); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stone-0); color: var(--ivory); font: 400 18px/1.6 var(--font-text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.locked { overflow: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
a:hover { color: var(--ivory); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
kbd, code { font: 600 .88em var(--font-label); letter-spacing: .02em; color: var(--gold-hi); background: var(--stone-2); box-shadow: inset 0 0 0 1px var(--rule-hi); border-radius: var(--r-input); padding: .12em .45em; white-space: nowrap; }
code { white-space: normal; word-break: break-word; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--gold); color: var(--on-gold); padding: 12px 16px; font-weight: 600; }
.skip:focus { left: 12px; }
#view:focus { outline: none; }

/* the cut corner, shared by every framed thing on this page: --line is the edge, --surface the fill */
.btn, .nav a.cta, .steps li, .crown, .pcard, .feat, .sheet, .panel, .notice, .idbar, .teamcard, .mine, details, .how, .sclose, .burger, .top > a.applytop {
  --line: var(--rule-hi); --surface: transparent; --c: var(--cut);
  background:
    linear-gradient(135deg, transparent 50%, var(--line) 50% calc(50% + 1px), transparent calc(50% + 1px)) 0 0 / var(--c) var(--c) no-repeat,
    linear-gradient(135deg, transparent calc(50% - 1px), var(--line) calc(50% - 1px) 50%, transparent 50%) 100% 100% / var(--c) var(--c) no-repeat,
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  border: 0; border-radius: 0;
}

/* ── top ── */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 24px; min-height: 72px; padding: 8px var(--gutter);
  background: var(--stone-0); box-shadow: 0 1px 0 var(--rule); }
.brand img { height: 46px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: var(--touch); color: var(--ivory-2); text-decoration: none; font: 600 var(--fs-15)/1.2 var(--font-label); letter-spacing: var(--track-label); text-transform: uppercase; padding: 0 14px; box-shadow: inset 0 -2px 0 transparent; }
.nav a:hover { color: var(--ivory); }
.nav a[aria-current] { color: var(--ivory); box-shadow: inset 0 -2px 0 var(--gold); }
/* buttons: the secondary is stone with an edge; the ONE gold button is .gold */
.nav a.cta, .btn { --c: var(--cut-sm); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--touch); text-decoration: none;
  font: 600 var(--fs-15)/1.2 var(--font-label); letter-spacing: var(--track-label); text-transform: uppercase; padding: 10px 20px; color: var(--ivory); cursor: pointer; }
.nav a.cta { margin-left: 8px; }
/* the staff door sits in the header but must never compete with the visitor's path: a quiet text link */
.nav a.staffdoor { margin-left: 8px; color: var(--ivory-3); }
.nav a.staffdoor:hover { color: var(--ivory); }
.btn:hover, .nav a.cta:hover { --surface: var(--stone-2); --line: var(--ivory-3); color: var(--ivory); }
/* Apply for Staff is the ONE filled button in the nav - the Crown wants it seen */
a.cta.gold, .btn.gold { --surface: var(--gold); --line: var(--gold); color: var(--on-gold); }
a.cta.gold:hover, .btn.gold:hover { --surface: var(--gold-hi); --line: var(--gold-hi); color: var(--on-gold); }
/* the top-bar twin exists for phones only - desktop shows the one inside the nav */
.top > a.applytop { --c: var(--cut-sm); display: none; margin-left: auto; min-height: 44px; padding: 0 14px;
  font: 600 var(--fs-14)/1.2 var(--font-label); letter-spacing: var(--track-label); text-transform: uppercase; text-decoration: none; align-items: center; white-space: nowrap; }
.burger { --c: var(--cut-sm); display: none; margin-left: auto; min-height: var(--touch); font: 600 var(--fs-15)/1 var(--font-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ivory); padding: 0 16px; cursor: pointer; }

/* ── hero: the art UNCOVERED on the right, stone behind the words on the left ── */
.hero { position: relative; isolation: isolate; padding: clamp(64px, 12vh, 144px) var(--gutter) clamp(56px, 10vh, 112px); overflow: hidden; box-shadow: 0 1px 0 var(--rule); }
.hero-art { position: absolute; inset: 0; z-index: -1; background: url(/assets/hero-city.webp) center 40% / cover no-repeat; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--stone-0) 0%, rgba(7, 7, 6, .9) 35%, rgba(7, 7, 6, .25) 70%, rgba(7, 7, 6, .05) 100%), linear-gradient(0deg, var(--stone-0) 0%, transparent 30%); }
.hero-in { max-width: var(--wide); margin: 0 auto; }
.hero h1 { font: 600 var(--fs-display)/1.02 var(--font-display); letter-spacing: .03em; margin: 24px 0; text-wrap: balance; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--gold-hi); }
.lede { max-width: 56ch; font-size: clamp(18px, 1.45vw, 21px); color: var(--ivory-2); margin: 0 0 32px; }
.season { margin: 24px 0 0; font: 500 var(--fs-15)/1.5 var(--font-text); color: var(--ivory-2); max-width: 60ch; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; }
.acts.center { justify-content: center; margin-top: 32px; }
/* the city status: a square mark, no pulsing dot */
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font: 600 var(--fs-14)/1.2 var(--font-label); letter-spacing: var(--track-label); text-transform: uppercase; padding: 4px 12px; border-radius: var(--r-input); box-shadow: inset 0 0 0 1px var(--rule-hi); color: var(--ivory-2); background: var(--stone-0); }
.chip.up { color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); background: var(--ok-bg); }
.chip.up i { width: 8px; height: 8px; background: var(--ok); }
.chip.down { color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold-lo); }

/* ── sections ── */
.band, .page { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(48px, 8vh, 96px) var(--gutter); }
.page { min-height: 62vh; }
.sec { max-width: 72ch; margin-bottom: 32px; }
.eyebrow { font: 600 var(--fs-15)/1.2 var(--font-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--gold-hi); }
.sec h1, .sec h2, .lost h1 { font: 600 clamp(32px, 4.2vw, 56px)/1.08 var(--font-display); letter-spacing: .02em; margin: 12px 0 16px; text-wrap: balance; }
.sec h2 { font-size: clamp(30px, 3.4vw, 40px); }
.sec p { color: var(--ivory-2); margin: 0 0 16px; }
.sec p b, .panel p b, .ans b { color: var(--ivory); }

/* steps: numbered with Roman numerals in Cinzel (I · II · III), on a notched plate */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.steps.full { grid-template-columns: 1fr; max-width: 78ch; }
.steps li { --surface: var(--stone-1); counter-increment: s; position: relative; padding: 24px 24px 24px 88px; }
.steps li::before { content: counter(s, upper-roman); position: absolute; left: 24px; top: 22px; width: 48px; font: 600 var(--fs-30)/1 var(--font-display); color: var(--gold); }
.steps b { display: block; font: 600 var(--fs-20)/1.25 var(--font-text); margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ivory-2); font-size: 16px; }
.steps.tight li { --surface: transparent; --line: transparent; padding: 20px 16px 20px 72px; clip-path: none; box-shadow: inset 0 1px 0 var(--rule); }
.steps.tight li:first-child { box-shadow: none; }
.steps.tight li::before { left: 12px; top: 20px; font-size: var(--fs-24); }
.steps.tight b { font-size: var(--fs-20); }

/* ── the three crowns (CROWNMERGE 2026-10-29): each card framed and ribboned in its own colour ── */
.crownsec { max-width: none; }
.crownsec .sec, .crowngrid, .crownsec .callouts { max-width: var(--wide); margin-left: auto; margin-right: auto; }
/* the Crown HQ / head business / streets row under the four cards (2026-09-23) */
.crownsec .callouts { margin-top: 32px; margin-bottom: 0; }
.crownsec .sec { margin-bottom: 32px; }
.crowngrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.crown { --k: var(--gold); --kt: var(--gold-hi); --line: color-mix(in srgb, var(--k) 70%, var(--rule-hi)); --c: 14px; position: relative; isolation: isolate; overflow: hidden; min-height: 560px; display: flex;
  box-shadow: inset 0 4px 0 var(--k), inset 0 0 0 1px var(--line); }
.c-scarlet { --k: var(--scarlet); --kt: var(--scarlet-text); } .c-violet { --k: var(--violet); --kt: var(--violet-text); }
.c-sovereign { --k: var(--sovereign); --kt: var(--sovereign-text); }
.cbg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.crown::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7, 7, 6, .96) 0%, rgba(7, 7, 6, .8) 44%, rgba(7, 7, 6, .1) 100%); }
.cin { margin-top: auto; padding: 24px; }
.cem { width: 72px; height: 72px; margin-bottom: 12px; }
.crown h3 { font: 600 var(--fs-24)/1.15 var(--font-display); letter-spacing: .02em; margin: 0 0 4px; }
/* Wave D: the palette words ("BLOOD RED AND IVORY") are gone - the lanes under the words say what the crown DOES */
.crown p { margin: 0 0 16px; font-size: 16px; line-height: 1.55; color: var(--ivory-2); }
.crown ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--fs-15); }
.crown li span { display: block; font: 600 var(--fs-14)/1.2 var(--font-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ivory-3); }

/* ── products ── */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-4); }
.pcard { --surface: var(--stone-1); display: flex; flex-direction: column; text-decoration: none; color: var(--ivory); overflow: hidden; }
.pcard:hover { --line: var(--ivory-3); color: var(--ivory); }
.pimg { display: block; aspect-ratio: 16 / 9; background: var(--stone-0); overflow: hidden; }
.pimg img { width: 100%; height: 100%; object-fit: cover; }
.pimg.icon { background: var(--stone-2); }
.pimg.icon img, #shMain.icon { object-fit: contain; padding: 16px; }
#shMain.icon { background: var(--stone-2); padding: 32px; }
.pbody { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 20px; flex: 1; }
.pname { font: 600 var(--fs-20)/1.25 var(--font-text); }
.psub { font-size: var(--fs-15); line-height: 1.45; color: var(--ivory-2); }
.prow { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font: 600 var(--fs-20) var(--font-text); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.price small { font: 600 var(--fs-14) var(--font-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ivory-3); }
.price.big { font-size: var(--fs-30); }
.tag { font: 600 var(--fs-14)/1.2 var(--font-text); color: var(--ivory); box-shadow: inset 0 0 0 1px var(--rule-hi); border-radius: var(--r-input); padding: 4px 10px; white-space: nowrap; }
.shelf { font: 600 var(--fs-30)/1.15 var(--font-display); letter-spacing: .02em; margin: 40px 0 16px; }
.shelf:first-of-type { margin-top: 8px; }
.loading, .empty { color: var(--ivory-3); font: 500 var(--fs-15) var(--font-text); padding: 32px 0; grid-column: 1 / -1; }
.empty { font: 400 var(--fs-17) var(--font-text); color: var(--ivory-2); }

/* ── the store (3-ui §4.3): masthead, one featured plate, category TILES, shelves ── */
.mast { position: relative; isolation: isolate; padding: clamp(56px, 10vh, 120px) var(--gutter) clamp(40px, 7vh, 80px); overflow: hidden; box-shadow: 0 1px 0 var(--rule); }
.mast-art { position: absolute; inset: 0; z-index: -1; background: url(/assets/bg-commerce.webp) center / cover no-repeat; }
.mast-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--stone-0) 0%, rgba(7, 7, 6, .88) 40%, rgba(7, 7, 6, .2) 100%), linear-gradient(0deg, var(--stone-0) 0%, transparent 40%); }
.mast-in { max-width: var(--wide); margin: 0 auto; }
.mast h1 { font: 600 clamp(36px, 5vw, 64px)/1.05 var(--font-display); letter-spacing: .03em; text-transform: uppercase; margin: 12px 0 16px; }
.mast p { max-width: 56ch; color: var(--ivory-2); margin: 0 0 24px; }
.page.store { padding-top: 32px; }
.feat { --surface: var(--stone-1); --line: var(--gold); --c: 14px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); text-decoration: none; color: var(--ivory); margin-bottom: 32px; overflow: hidden; }
.feat:hover { color: var(--ivory); --surface: var(--stone-2); }
.fimg { display: block; aspect-ratio: 16 / 9; background: var(--stone-0); overflow: hidden; }
.fimg img { width: 100%; height: 100%; object-fit: cover; } .fimg.icon img { object-fit: contain; padding: 32px; }
.finfo { display: flex; flex-direction: column; gap: 12px; padding: 32px; align-self: center; }
.fname { font: 600 clamp(26px, 2.6vw, 40px)/1.1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; }
.fmeta { font: 600 var(--fs-17)/1.3 var(--font-text); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.fhow { color: var(--ivory-2); font-size: var(--fs-15); }
.finfo .btn { align-self: flex-start; margin-top: 8px; }
.cats { display: flex; gap: 12px; overflow-x: auto; padding: 0 0 12px; margin-bottom: 16px; scrollbar-width: thin; }
.ctile { flex: 0 0 160px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ivory-2); padding-bottom: 8px; box-shadow: inset 0 -2px 0 transparent; }
.ctile:hover { color: var(--ivory); }
.ctile.on { color: var(--ivory); box-shadow: inset 0 -2px 0 var(--gold); }
.cart { display: grid; place-items: center; height: 100px; background: var(--stone-1); box-shadow: inset 0 0 0 1px var(--rule-hi); }
.ctile.on .cart { box-shadow: inset 0 0 0 1px var(--gold-lo); }
.cart img { width: 72px; height: 72px; object-fit: contain; }
.clab { font: 600 var(--fs-15)/1.25 var(--font-label); letter-spacing: var(--track-label); text-transform: uppercase; }
.search input { font: 500 16px var(--font-text); color: var(--ivory); background: var(--stone-2); border: 1px solid var(--rule-hi); border-radius: var(--r-input); min-height: var(--touch); padding: 10px 14px; width: min(320px, 78vw); }
.search.wide input { width: min(560px, 100%); font-size: var(--fs-17); }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 164, 92, .2); }
.shelfbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 8px; }
.shelfsec { margin-top: 32px; }
.shelfhead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; box-shadow: inset 0 -1px 0 var(--rule); padding-bottom: 12px; margin-bottom: 16px; }
.shelfhead .shelf { margin: 0; }
.shelfhead .n { font: 500 var(--fs-15) var(--font-text); color: var(--ivory-3); white-space: nowrap; }
.tag.soon { color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn); text-transform: capitalize; }
.price b { font-weight: 600; }
/* "Buy in the city (/vip)": in flow on a desk, pinned to the bottom of the full-screen sheet on a phone */
.sbuy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 0; box-shadow: inset 0 1px 0 var(--rule); color: var(--ivory); font: 600 var(--fs-17)/1.3 var(--font-text); }
.notice { --surface: var(--stone-1); --c: var(--cut-sm); padding: 16px 20px 16px 24px; margin-bottom: 20px; color: var(--ivory-2); box-shadow: inset 4px 0 0 var(--gold), inset 0 0 0 1px var(--line); }
.notice.bad { --surface: var(--bad-bg); box-shadow: inset 4px 0 0 var(--bad), inset 0 0 0 1px var(--line); }

/* ── the product sheet: a gold-trimmed hero plate ── */
#sheet { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: clamp(0px, 3vw, 40px); }
.scrim { position: absolute; inset: 0; background: rgba(4, 4, 3, .85); }
.sheet { --surface: var(--stone-1); --line: var(--gold); --c: 14px; position: relative; width: min(1180px, 100%); max-height: 100%; overflow: auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.sclose { --surface: var(--stone-0); --c: var(--cut-sm); position: absolute; top: 16px; right: 16px; z-index: 2; min-height: var(--touch); font: 600 var(--fs-15)/1 var(--font-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ivory); padding: 0 16px; cursor: pointer; }
.sgal { background: var(--stone-0); display: flex; flex-direction: column; }
#shMain { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; }
.thumb { flex: 0 0 116px; padding: 0; border: 0; box-shadow: inset 0 0 0 2px transparent; overflow: hidden; background: none; cursor: pointer; opacity: .6; }
.thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.thumb.on, .thumb:hover { opacity: 1; outline: 2px solid var(--gold); outline-offset: -2px; }
.sinfo { padding: 32px 32px 32px; display: flex; flex-direction: column; gap: 16px; }
.sinfo h2 { font: 600 clamp(30px, 3.2vw, 40px)/1.08 var(--font-display); letter-spacing: .02em; margin: 0; text-wrap: balance; padding-right: 96px; }
.ssub, .sdesc { margin: 0; color: var(--ivory-2); }
.ssub { font-size: 18px; color: var(--ivory); }
.sprice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; padding: 12px 0; box-shadow: inset 0 1px 0 var(--rule), inset 0 -1px 0 var(--rule); }
.usd { font-size: var(--fs-15); color: var(--ivory-3); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 24px; color: var(--ivory-2); font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.how { --surface: var(--stone-2); --c: var(--cut-sm); padding: 16px 16px 16px 20px; box-shadow: inset 4px 0 0 var(--gold), inset 0 0 0 1px var(--line); }
.how b { font: 600 var(--fs-15)/1.2 var(--font-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--gold-hi); }
.how p { margin: 8px 0 0; font-size: 16px; color: var(--ivory-2); }
.terms { margin: 0; padding-left: 18px; font-size: var(--fs-14); color: var(--ivory-3); display: grid; gap: 4px; }

/* ── crowns, join ── */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); align-items: start; }
.panel { --surface: var(--stone-1); padding: 32px; display: grid; gap: 16px; }
.panel h2 { font: 600 var(--fs-30)/1.1 var(--font-display); letter-spacing: .02em; margin: 0; }
.panel p { margin: 0; color: var(--ivory-2); }
.panel .btn { justify-self: start; }
.callouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); margin: 32px 0; }
.callouts article { box-shadow: inset 0 1px 0 var(--gold); padding: 20px 4px 0; }
.callouts h3 { font: 600 var(--fs-24)/1.15 var(--font-display); letter-spacing: .02em; margin: 0 0 8px; }
.callouts p { margin: 0; color: var(--ivory-2); font-size: 16px; }

/* ── forms: the question above the field, 48px inputs ── */
.formpage { max-width: calc(860px + 2 * var(--gutter)); }
.idbar { --surface: var(--stone-1); --line: var(--gold-lo); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; margin-bottom: 24px; color: var(--ivory-2); }
.who { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; } .who img { width: 40px; height: 40px; border-radius: 50%; } .who b { color: var(--ivory); }
.linkish { background: none; border: 0; padding: 0; min-height: 32px; font: inherit; font-size: var(--fs-15); color: var(--ivory-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { color: var(--gold-hi); }
.fld { margin-bottom: 24px; display: grid; gap: 8px; }
.fld > label, .fld.check label span { font: 600 var(--fs-20)/1.3 var(--font-text); color: var(--ivory); }
.req { font: 600 var(--fs-14) var(--font-label); font-style: normal; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--gold-hi); margin-left: 8px; vertical-align: middle; }
.hint, .count { font-size: var(--fs-15); color: var(--ivory-3); } .count { justify-self: end; font-size: var(--fs-14); font-variant-numeric: tabular-nums; } .count.ok { color: var(--ok); }
.fld input[type=text], .fld input[type=number], .fld input[type=date], .fld select, .fld textarea { width: 100%; min-height: var(--touch); font: 500 var(--fs-17)/1.5 var(--font-text); color: var(--ivory); background: var(--stone-2); border: 1px solid var(--rule-hi); border-radius: var(--r-input); padding: 10px 14px; color-scheme: dark; }
.fld textarea { resize: vertical; min-height: 120px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 164, 92, .2); }
.fld select option { background: var(--stone-2); color: var(--ivory); }
.fld.bad input, .fld.bad select, .fld.bad textarea { border-color: var(--bad); }
.err { color: var(--bad); font-size: var(--fs-15); font-weight: 600; }
/* the little team boxes on /apply: a gold-ribboned plate under the picker, and the closer at the form's end */
.teamcard { --surface: var(--stone-1); --c: var(--cut-sm); box-shadow: inset 4px 0 0 var(--gold), inset 0 0 0 1px var(--line); padding: 16px 20px 16px 24px; margin: -8px 0 24px; }
.teamcard .tc-name { display: block; font: 600 var(--fs-15)/1.2 var(--font-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--gold-hi); margin-bottom: 8px; }
.teamcard p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ivory-2); }
.teamcard p + p { margin-top: 12px; }
.teamcard.closer { margin: 8px 0 28px; }
.multi { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.multi label, .fld.check label { display: flex; gap: 12px; align-items: flex-start; min-height: var(--touch); padding: 12px 16px; background: var(--stone-1); box-shadow: inset 0 0 0 1px var(--rule-hi); cursor: pointer; color: var(--ivory-2); }
.multi label:hover, .fld.check label:hover { background: var(--stone-2); }
.fld.check label span { font: 500 var(--fs-17)/1.5 var(--font-text); color: var(--ivory-2); }
.multi input, .fld.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--gold); flex: none; }
.saved { align-self: center; font: 500 var(--fs-14) var(--font-text); color: var(--ivory-3); }
.notice.good { --surface: var(--ok-bg); box-shadow: inset 4px 0 0 var(--ok), inset 0 0 0 1px var(--line); }
.doors { margin-top: 8px; }
.mylist { display: grid; gap: var(--sp-4); margin-bottom: 32px; }
.mine { --surface: var(--stone-1); --k: var(--gold); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: var(--sp-5); padding: 24px 24px 24px 28px; box-shadow: inset 4px 0 0 var(--k), inset 0 0 0 1px var(--line); }
.mine.s-accepted { --k: var(--ok); } .mine.s-declined, .mine.s-withdrawn { --k: var(--ivory-3); }
.mine h2 { font: 600 var(--fs-30)/1.1 var(--font-display); letter-spacing: .02em; margin: 8px 0 4px; } .mine p { margin: 0; color: var(--ivory-2); font-size: 16px; }
.mine blockquote { margin: 12px 0 0; padding-left: 16px; box-shadow: inset 2px 0 0 var(--gold-lo); color: var(--ivory); white-space: pre-wrap; }
.mstate { display: grid; gap: 12px; align-content: start; justify-items: start; }
@media (max-width: 700px) { .mine { grid-template-columns: 1fr; } }

/* ── help ── */
.hgroup { max-width: 84ch; margin-bottom: 32px; }
.hgroup h2 { font: 600 var(--fs-15)/1.2 var(--font-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--gold-hi); margin: 0 0 12px; }
details { --surface: var(--stone-1); --c: var(--cut-sm); margin-bottom: 8px; scroll-margin-top: 96px; }
details[open] { --line: var(--gold-lo); }
summary { cursor: pointer; list-style: none; min-height: 56px; padding: 16px 56px 16px 20px; font: 600 var(--fs-20)/1.3 var(--font-text); position: relative; }
summary::-webkit-details-marker { display: none; }
/* a drawn plus / minus, not a typed glyph */
summary::before, summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 2px; background: var(--gold); }
summary::after { transform: rotate(90deg); }
details[open] summary::after { display: none; }
.ans { padding: 0 20px 20px; color: var(--ivory-2); }
.ans p, .ans ol { margin: 0 0 12px; } .ans ol { padding-left: 22px; display: grid; gap: 8px; }
.perma { font: 500 var(--fs-14) var(--font-text); color: var(--ivory-3); }
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 20px; margin-bottom: 16px; font-size: 16px; }
.guide .ans ul { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 6px; }
.guide .ans h3 { font: 600 var(--fs-15)/1.2 var(--font-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--gold-hi); margin: 16px 0 8px; }
.gjump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.gjump a { text-decoration: none; }
.keys kbd { display: inline-block; min-width: 2.2em; text-align: center; margin-right: 8px; }

/* ── the server rules (2026-09-25-RULES): the home band + /rules. Text comes from public/rules.json verbatim. ── */
.rcard { --line: var(--rule-hi); --surface: transparent; --c: var(--cut);
  background:
    linear-gradient(135deg, transparent 50%, var(--line) 50% calc(50% + 1px), transparent calc(50% + 1px)) 0 0 / var(--c) var(--c) no-repeat,
    linear-gradient(135deg, transparent calc(50% - 1px), var(--line) calc(50% - 1px) 50%, transparent 50%) 100% 100% / var(--c) var(--c) no-repeat,
    var(--surface);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.rulewrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--sp-6); align-items: start; margin-bottom: 32px; }
.rulelead { margin: 0; padding: 4px 0 4px 24px; box-shadow: inset 3px 0 0 var(--gold); }
.rulelead p { margin: 0 0 16px; font: 500 clamp(19px, 1.5vw, 22px)/1.55 var(--font-text); color: var(--ivory); }
.rulelead cite { font: 600 var(--fs-15)/1.2 var(--font-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--gold-hi); font-style: normal; }
.rtiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.rtiles li { box-shadow: inset 0 1px 0 var(--rule); }
.rtiles a { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 8px 8px 4px; color: var(--ivory); text-decoration: none; font: 600 var(--fs-17)/1.3 var(--font-text); }
.rtiles a:hover { color: var(--gold-hi); background: var(--stone-1); }
.rtiles .rn, .rindex .rn, .rjump .rn { flex: none; min-width: 2em; font: 600 var(--fs-20)/1 var(--font-display); color: var(--gold); text-align: right; }
.rt-wait { color: var(--ivory-3); font-size: var(--fs-15); padding: 16px 4px; grid-column: 1 / -1; }
.rcount { align-self: center; font: 600 var(--fs-15)/1.2 var(--font-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ivory-3); }

.page.rules .sec { max-width: 84ch; }
.sec .rmeta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.rmeta span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; box-shadow: inset 0 0 0 1px var(--rule-hi); font: 600 var(--fs-15)/1.2 var(--font-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ivory-2); }
/* the match arrows float at the bottom of the screen so they stay in reach while the page jumps between matches */
.rhits { position: fixed; z-index: 30; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 6px; padding: 8px; background: var(--stone-1); box-shadow: inset 0 0 0 1px var(--gold-lo), 0 8px 24px rgba(0, 0, 0, .5); }
.rhits[hidden] { display: none; }
.rhitn { min-width: 6.5em; text-align: center; font: 600 var(--fs-15)/1.2 var(--font-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ivory-2); font-variant-numeric: tabular-nums; }
.rhbtn { min-width: var(--touch); min-height: var(--touch); font: 600 26px/1 var(--font-text); color: var(--ivory); background: var(--stone-2); border: 1px solid var(--rule-hi); border-radius: var(--r-input); cursor: pointer; }
.rhbtn:hover { border-color: var(--gold); color: var(--gold-hi); }
mark.rhit { background: #FFE14D; color: #15110A; border-radius: 2px; padding: 0 1px; scroll-margin: 160px 0; }
mark.rhit.on { background: #FF9F1C; box-shadow: 0 0 0 2px #FF9F1C; }
.sec .rshown { font-size: var(--fs-15); color: var(--ivory-3); margin: 12px 0 0; min-height: 1.4em; }
.rlayout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--sp-7); align-items: start; }
.rindex { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; padding: 20px 12px 20px 16px; background: var(--stone-1); box-shadow: inset 0 0 0 1px var(--rule-hi); scrollbar-width: thin; }
.rindex .eyebrow { display: block; margin: 0 0 12px 8px; }
.rindex ol, .rjump ol { list-style: none; margin: 0; padding: 0; }
.rindex a, .rjump a { display: flex; align-items: baseline; gap: 10px; padding: 8px 8px; color: var(--ivory-2); text-decoration: none; font: 500 var(--fs-15)/1.35 var(--font-text); box-shadow: inset 2px 0 0 transparent; }
.rindex .rn { font-size: var(--fs-15); min-width: 1.6em; }
.rindex a:hover, .rindex li.on a { color: var(--ivory); background: var(--stone-2); box-shadow: inset 2px 0 0 var(--gold); }
.rjump { display: none; }
.rjump ol { padding: 0 12px 12px; }
.rjump a { min-height: 48px; align-items: center; font-size: var(--fs-17); box-shadow: inset 0 1px 0 var(--rule); }
.rcard { --surface: var(--stone-1); padding: clamp(24px, 3vw, 40px); margin-bottom: 16px; scroll-margin-top: 96px; box-shadow: inset 0 3px 0 var(--gold-lo), inset 0 0 0 1px var(--line); }
.rcard:target { --line: var(--gold-lo); }
.rcard header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 8px 16px; margin-bottom: 20px; }
.rcard header .rn { font: 600 clamp(32px, 3vw, 44px)/1 var(--font-display); color: var(--gold); }
.rcard h2 { margin: 0; font: 600 clamp(24px, 2.4vw, 32px)/1.2 var(--font-display); letter-spacing: .02em; text-wrap: balance; }
.rcard .perma { white-space: nowrap; }
.rbody { max-width: 78ch; color: var(--ivory-2); }
.rbody p { margin: 0 0 14px; }
.rbody p:last-child { margin-bottom: 0; }
.rbody strong { color: var(--ivory); }
.rbody h3 { margin: 28px 0 10px; padding-top: 20px; box-shadow: inset 0 1px 0 var(--rule); font: 600 var(--fs-15)/1.3 var(--font-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--gold-hi); }
.rbody ul { list-style: none; margin: 12px 0 18px; padding: 0; display: grid; gap: 8px; }
.rbody li { position: relative; padding-left: 26px; }
.rbody li::before { content: ""; position: absolute; left: 4px; top: .66em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.rfoot { margin: 32px 0 0; text-align: center; color: var(--ivory-3); font-size: var(--fs-15); }
@media (max-width: 1080px) { .rlayout { grid-template-columns: 240px minmax(0, 1fr); gap: var(--sp-6); } }
@media (max-width: 900px) {
  .rulewrap { grid-template-columns: 1fr; gap: var(--sp-5); }
  .rlayout { grid-template-columns: 1fr; }
  .rindex { display: none; }
  .rjump { display: block; margin-bottom: 16px; }
}
@media (max-width: 560px) {
  .rtiles { grid-template-columns: 1fr; }
  .rtiles li:nth-child(n+7) { display: none; }   /* a phone shows the first six; the gold button opens all of them */
  .rcard { padding: 22px 18px; }
  .rcard header { grid-template-columns: auto minmax(0, 1fr); }
  .rcard .perma { grid-column: 1 / -1; }
  .rulelead { padding-left: 18px; }
}

.lost { text-align: center; padding-top: 16vh; } .lost .acts { justify-content: center; margin-top: 24px; } .lost p { color: var(--ivory-2); }

/* ── foot ── */
.foot { box-shadow: inset 0 1px 0 var(--rule); margin-top: 40px; padding-bottom: env(safe-area-inset-bottom, 0px); }
.foot-in { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 32px var(--gutter) 48px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.foot-brand { display: flex; gap: 16px; align-items: center; max-width: 62ch; }
.foot-brand p { margin: 0; font-size: var(--fs-14); line-height: 1.55; color: var(--ivory-3); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ivory-2); text-decoration: none; font-size: var(--fs-15); font-weight: 600; }
.foot nav a:hover { color: var(--gold-hi); }

@media (max-width: 1080px) { .crowngrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .crown { min-height: 480px; } }
@media (max-width: 900px) {
  .steps, .two, .callouts { grid-template-columns: 1fr; }
  .sheet { grid-template-columns: 1fr; height: 100%; --c: 0px; align-content: start; }
  #sheet { padding: 0; } .sinfo { padding: 24px 20px 32px; }
  .top { gap: 12px; }
  .top > a.applytop { display: inline-flex; }
  .burger { display: inline-flex; align-items: center; margin-left: 0; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; background: var(--stone-1); box-shadow: 0 1px 0 var(--rule), var(--elev-layer); }
  .nav.open { display: flex; } .nav a { min-height: 52px; font-size: var(--fs-17); box-shadow: inset 0 -1px 0 var(--rule); } .nav a[aria-current] { box-shadow: inset 3px 0 0 var(--gold), inset 0 -1px 0 var(--rule); }
  .nav a.cta { margin: 12px 0 0; box-shadow: inset 0 0 0 1px var(--line); }
  /* in the drawer the staff door is a full-width row like the rest - the desktop indent would misalign it */
  .nav a.staffdoor { margin: 0; }
}
@media (max-width: 700px) {
  .feat { grid-template-columns: 1fr; } .finfo { padding: 20px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pbody { padding: 12px 12px 14px; } .pname { font-size: var(--fs-17); } .psub { display: none; }
  .prow { flex-direction: column; align-items: flex-start; gap: 8px; } .price { font-size: var(--fs-17); }
  .ctile { flex-basis: 128px; } .cart { height: 88px; }
  .sbuy { position: sticky; bottom: 0; margin: 0 -20px -32px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--stone-1); box-shadow: 0 -1px 0 var(--gold-lo); }
}
@media (max-width: 560px) {
  body { font-size: var(--fs-17); }
  .brand img { height: 40px; }
  .crowngrid { grid-template-columns: 1fr; } .crown { min-height: 440px; }
  .steps li { padding: 20px 16px 20px 72px; } .steps li::before { left: 16px; font-size: var(--fs-24); }
  summary { font-size: var(--fs-17); }
  .panel { padding: 24px 20px; }
  .fld > label, .fld.check label span { font-size: var(--fs-17); }
}
@media (max-width: 380px) { .top > a.applytop { padding: 0 10px; } .brand img { height: 34px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ── /staff: the Crown Staff chart (2026-09-27). The cards themselves are orgview.js's css. ── */
.page.staffchart .sec { max-width: 84ch; }
.sc-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.sc-note { margin-left: auto; font-size: 15px; color: var(--ink-dim); }
.sc-canvas { height: clamp(460px, 74vh, 1100px); border: 1px solid var(--edge); }
.sc-wait { position: absolute; left: 24px; top: 24px; width: 60vw; max-width: 640px; font-size: 18px; color: var(--ink-dim); }
.sc-list { margin-top: 18px; font-size: 16px; }
.sc-list summary { cursor: pointer; font-weight: 700; color: var(--gold-hi, #ffd37a); padding: 8px 0; }
.sc-list h3 { margin: 18px 0 8px; font-size: 18px; }
.sc-list ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.sc-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--edge); border-radius: 10px; }
.sc-list li img, .sc-dot { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: rgba(255, 255, 255, .06); }
.sc-list li b { color: var(--ink); }
.sc-list li .sc-role { color: var(--ink-dim); font-size: 15px; margin-left: auto; text-align: right; }

/* JOBAPPS (2026-09-29): the businesses hiring right now, above the job form */
.hiring { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 0 0 28px; }
.hiring .biz h2 { margin: 0 0 6px; }
.hiring .biz .roles { color: var(--gold-hi, #d4a12f); font-weight: 600; margin: 0 0 6px; }
.hiring .biz .btn { margin-top: 10px; }
.two.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .two.three { grid-template-columns: 1fr; } }

/* PANELPAID 2026-10-02: every business on the jobs list says PAID or FREE */
.paidtag { display: inline-block; vertical-align: middle; margin-left: 8px; font: 800 13px/1 inherit; letter-spacing: .12em; padding: 5px 9px 4px; border-radius: 4px; }
.paidtag.on { background: #D4A12F; color: #120d02; border: 1px solid #f0c75a; }
.paidtag.off { background: transparent; color: inherit; border: 1px solid currentColor; opacity: .85; }
