/* Tokens from docs/design/tokens.json (ADR-016). Fonts are self-hosted OFL faces (fonts/OFL-*.txt), Latin subset; see D09. */
@font-face { font-family: "Outfit"; src: url(fonts/outfit.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(fonts/schibsted-grotesk.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/ibm-plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/ibm-plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
/* The brochure's approved pairings (S16, D53): fetched only by a page that uses them. */
@font-face { font-family: "Jost"; src: url(fonts/jost.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
/* S19 (ADR-030): five more open-licence pairings, Latin subset. */
@font-face { font-family: "Manrope"; src: url(fonts/manrope.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(fonts/nunito.woff2) format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url(fonts/playfair-display.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url(fonts/dm-serif-display.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans.woff2) format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(fonts/space-grotesk.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --ink: #2A2A2A;
  --ink-muted: #5E5E5E;
  --line-control: #767676;
  --line-soft: #D6D6D6;
  --paper: #FFFFFF;
  --mist: #F2F2F2;
  --logo-black: #1A1A1A;
  --teal: #13A5A5;
  --teal-text: #0C7575; /* D60: #0E8080 was 4.25:1 on mist */
  --selected: #E7F5F5;
  --disabled-fg: #6B6B6B;
  --ok-fg: #1E6B3A; --ok-bg: #EAF5EE;
  --behind-fg: #9A4700; --behind-bg: #FFF4E8;
  --error-fg: #B42318; --error-bg: #FDECEA;
  /* Client field colour; every client uses the default until branding lands (S10.3). White text on it is 4.75:1. */
  --field: #0E8080; --on-field: #FFFFFF; --chart: #0E8080;
  /* XSEM brand (ADR-034, brand book 2026): charcoal and white are primary; the accents pass contrast only on charcoal, so on
     white they are decoration (stops, shapes, bars), never text or a control boundary. Used by the admin shell only. */
  --brand-charcoal: #1A1A1A; --brand-teal: #5FBCC0; --brand-orange: #F85B15; --brand-yellow: #FDC300; --brand-pink: #EEBFBF;
  --brand-link: #28787C; /* brand teal darkened to 5.2:1 on white, 4.6:1 on mist */
  --brand-on-charcoal-muted: #BDBDBD; /* 9.6:1 */
  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-ui: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-figure: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px;
  --radius: 6px;
  --radius-card: 16px; /* V2: cards people act on */
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .06), 0 10px 30px rgba(0, 0, 0, .07);
  --gutter: max(var(--space-4), 5vw);
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.5 var(--font-ui);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--teal-text); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: var(--space-4); top: -100px; background: var(--paper); padding: var(--space-3) var(--space-4); z-index: 1; }
.skip:focus { top: var(--space-4); }

.masthead { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-4) var(--gutter); border-bottom: 2px solid var(--ink); }
.masthead img { display: block; height: 22px; width: auto; }
.product { font: 600 20px/1 var(--font-display); }
.masthead .account-link { margin-left: auto; }
.signout { margin: 0; }
.account-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; overflow-wrap: anywhere; }

main { max-width: 1050px; margin: var(--space-12) auto; padding: 0 var(--gutter); }
main:focus { outline: none; }
.eyebrow { margin: 0 0 var(--space-2); font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink-muted); }
h1 { margin: 0 0 var(--space-4); font: 600 clamp(36px, 6vw, 60px)/1.03 var(--font-display); letter-spacing: -.03em; }
h2 { margin: 0 0 var(--space-2); font: 600 20px/1.2 var(--font-display); }
p { max-width: 65ch; }
.lede { font-size: 18px; }

.service, .panel { margin-top: var(--space-8); padding-top: var(--space-4); border-top: 2px solid var(--ink); }
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.figure { font-family: var(--font-figure); font-variant-numeric: tabular-nums; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; max-width: 100%; } /* D60: long chips wrap at 320px */
.chip-pending { border: 1px solid var(--line-control); color: var(--ink-muted); }
.chip-off { background: var(--mist); }
.chip-ok { background: var(--ok-bg); color: var(--ok-fg); }
.chip-error { background: var(--error-bg); color: var(--error-fg); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 16px/1 var(--font-button, var(--font-ui)); text-decoration: none; cursor: pointer; white-space: nowrap; }
.button:hover { background: var(--mist); color: var(--ink); }
.button:disabled { background: var(--mist); color: var(--disabled-fg); border-color: var(--mist); cursor: not-allowed; }

.button-primary { background: var(--ink); color: var(--paper); min-height: 48px; }
.button-primary:hover { background: var(--ink-muted); color: var(--paper); border-color: var(--ink-muted); }

/* Forms: S-System controls with the R6-Problems error summary pattern. */
.form { max-width: 34rem; margin-top: var(--space-8); }
.field { margin-bottom: var(--space-6); }
.field label { display: block; margin-bottom: var(--space-2); font-weight: 600; }
.field input[type=date]:focus-within { border-color: var(--ink); outline: 3px solid var(--ink); outline-offset: 2px; } /* D60: Chrome keeps :focus-visible on the date segments */
.field input { display: block; width: 100%; min-height: 48px; padding: 0 14px; border: 2px solid var(--line-control); border-radius: var(--radius); font: 500 16px var(--font-ui); color: var(--ink); background: var(--paper); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--ink); outline-offset: 2px; }
.field-error { padding-left: var(--space-4); border-left: 4px solid var(--error-fg); }
.field-error input { border: 3px solid var(--error-fg); }
.hint { margin: 0 0 var(--space-2); color: var(--ink-muted); font-size: 15px; }
.error-message { margin: 0 0 var(--space-2); color: var(--error-fg); font-weight: 600; }
.error-summary { margin-top: var(--space-6); padding: var(--space-4) var(--space-6); border: 3px solid var(--error-fg); background: var(--error-bg); }
.error-summary h2 { color: var(--error-fg); }
.error-summary ul { margin: 0; padding-left: var(--space-6); }
.error-summary a { display: inline-block; min-height: 24px; line-height: 24px; color: var(--error-fg); font-weight: 600; } /* S24: a 24px target (WCAG 2.5.8) */
/* The web inbox (S11 part B, no board): panels in a plain list, a new one marked by its field-coloured rule as well as the word "New". */
.inbox { margin: 0; padding: 0; list-style: none; }
.inbox .panel { margin-top: var(--space-6); }
.inbox .inbox-new { border-top-color: var(--field); border-top-width: 4px; }
.inbox h2 { margin-top: var(--space-2); }
.notice { margin-top: var(--space-6); padding: var(--space-3) var(--space-4); border-left: 4px solid var(--ink); background: var(--mist); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 var(--space-8); }
.footer { padding: var(--space-6) var(--gutter); background: var(--ink); color: var(--paper); font-size: 14px; }
.footer img { height: 12px; width: auto; vertical-align: -1px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Admin pages (S03.1): breadcrumb trail, link lists and the organisation tree. */
.breadcrumb { margin: 0 0 var(--space-3); color: var(--ink-muted); font-size: 15px; }
.link-list { padding-left: 0; list-style: none; }
.link-list li { padding: var(--space-2) 0; border-bottom: 1px solid var(--mist); }
.tree, .tree ul { list-style: none; padding-left: 0; margin: 0; }
.tree ul { margin-left: 14px; padding-left: var(--space-4); border-left: 2px solid var(--line-soft); }
.tree li { overflow-wrap: anywhere; }
.level { display: inline-block; min-width: 7ch; margin-right: var(--space-2); color: var(--ink-muted); font-size: 14px; }

/* Programme administration (S03.2): selects, text areas and checkboxes in the S-System control style; terms shown as R4-Terms. */
.field textarea { display: block; width: 100%; min-height: 48px; padding: var(--space-3); border: 2px solid var(--line-control); border-radius: var(--radius); font: inherit; color: var(--ink); background: var(--paper); }
/* A select is drawn exactly as an input (same height, border, type and weight), with one chevron in place of the platform's own. */
.field select { display: block; width: 100%; min-height: 48px; padding: 0 40px 0 14px; border: 2px solid var(--line-control); border-radius: var(--radius); font: 500 16px var(--font-ui); color: var(--ink); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232A2A2A' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; }
.field-error select, .field-error textarea { border: 3px solid var(--error-fg); }
fieldset.field { border: 0; padding: 0; margin-left: 0; margin-right: 0; min-width: 0; }
fieldset.field-error { padding-left: var(--space-4); }
legend { padding: 0; margin-bottom: var(--space-2); font-weight: 600; }
.field .choice { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; margin: 0; font-weight: 400; }
.choice input { flex-shrink: 0; width: 22px; height: 22px; min-height: 0; margin: 0; accent-color: var(--ink); }
/* A choice with a hint under its label (levels page): the control lines up with the label's first line. */
.field .choice-top { align-items: flex-start; padding: 6px 0; }
.hash { overflow-wrap: anywhere; font-size: 12px; }
.terms { max-height: 28rem; overflow-y: auto; max-width: 70ch; padding: var(--space-2) 18px var(--space-3); border: 2px solid var(--line-control); border-radius: var(--radius); }
.terms h1, .terms h2, .terms h3 { margin: var(--space-4) 0 6px; font: 600 17px/1.3 var(--font-display); letter-spacing: 0; }
.terms p { margin: 0 0 10px; }

/* Staff sign-in pages on the API host (A-SignIn, A-Mfa, A-Password): one narrow column, or two with the teal panel. */
.narrow { max-width: calc(480px + 2 * var(--gutter)); margin-top: var(--space-8); }
.narrow h1, .narrow-column h1, .signin h1 { font-size: clamp(28px, 4vw, 30px); line-height: 1.1; letter-spacing: -.01em; }
.narrow .form, .narrow-column .form, .signin .form { margin-top: var(--space-6); }
.narrow .field input, .narrow-column .field input { min-height: 52px; }
.narrow-column { max-width: 480px; }
.signin { max-width: calc(1200px + 2 * var(--gutter)); display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: stretch; }
.signin-intro { flex: 1 1 340px; display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 4vw, 40px); background: var(--teal); color: var(--logo-black); }
.signin-intro .eyebrow { margin: 0; color: var(--logo-black); }
.signin-headline { margin: 0; font: 600 clamp(32px, 5vw, 48px)/1.03 var(--font-display); letter-spacing: -.03em; }
.signin-intro ul { margin: auto 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.signin-form { flex: 1 1 340px; max-width: 480px; }
.with-button { display: flex; gap: var(--space-2); }
.with-button input { flex: 1; min-width: 0; }
.note { display: flex; gap: var(--space-3); padding: var(--space-4); background: var(--mist); font-size: 14px; }
.note p { margin: 0; }
.quiet { color: var(--ink-muted); font-size: 14px; }
.code-input { font: 500 22px var(--font-figure) !important; letter-spacing: .2em; }
.steps { margin: var(--space-6) 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 20px; }
.steps > li { display: flex; gap: var(--space-3); }
.steps > li > div { min-width: 0; flex: 1; }
.steps p { margin: 0 0 10px; }
.step-number { flex-shrink: 0; width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.steps .form { margin-top: 0; }
.key { margin: 0 0 10px; padding: 10px var(--space-3); background: var(--mist); letter-spacing: .06em; overflow-wrap: anywhere; }
.qr svg { width: 148px; height: 148px; border: 8px solid var(--paper); outline: 1px solid var(--line-soft); }
.codes { margin: var(--space-6) 0; padding: 14px var(--space-4); border: 2px solid var(--ink); list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px var(--space-4); }
.confirmation { margin-top: var(--space-6); padding: var(--space-4); border-top: 3px solid var(--ok-fg); background: var(--ok-bg); }

/* Admin frame (M-Participants, X-*): charcoal bar, context strip, left menu and the compact admin type scale. */
.admin-bar { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px var(--space-6); padding: 10px var(--space-6); background: var(--brand-charcoal); color: var(--paper); font-size: 13px; }
.admin-bar > * { position: relative; }
.admin-bar-shapes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; } /* the brand's chevrons, 6% white on charcoal */
.admin-bar a { color: var(--paper); display: inline-flex; align-items: center; min-height: 32px; }
.admin-bar :focus-visible, .admin-strip.field :focus-visible { outline-color: var(--paper); }
.admin-brand { display: flex; align-items: center; gap: 12px; font: 700 16px var(--font-display); letter-spacing: .01em; }
.admin-brand img { display: block; height: 18px; width: auto; }
.admin-brand .area { font: 400 13px var(--font-ui); color: var(--brand-on-charcoal-muted); padding-left: 12px; border-left: 1px solid #3A3A3A; }
.brand-stop { color: var(--brand-orange); } /* the brand's full stop: decoration, so it carries no meaning and its 3.2:1 on white is allowed */
.admin-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2) var(--space-4); padding: 14px var(--space-6); border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--ink-muted); }
.admin-footer > span { display: inline-flex; align-items: center; gap: 8px; }
.admin-footer img { height: 11px; width: auto; }
.admin-footer .strap { gap: 0; font: 600 13px var(--font-display); color: var(--brand-charcoal); }
.admin-user { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); overflow-wrap: anywhere; }
.button-on-ink { min-height: 32px; padding: 0 var(--space-3); background: transparent; color: var(--paper); border-color: var(--paper); font-size: 13px; }
.button-on-ink:hover { background: var(--paper); color: var(--ink); }
.admin-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 10px var(--space-6); background: var(--mist); border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.admin-strip .figure { font-size: 12px; color: var(--ink-muted); }
.admin-strip .switch { margin-left: auto; min-height: 32px; display: inline-flex; align-items: center; }
.admin-strip.field { background: var(--field); color: var(--on-field); border-bottom: 0; }
.admin-strip.field a, .admin-strip.field .figure { color: var(--on-field); }
.admin-body { display: flex; flex-wrap: wrap; align-items: flex-start; }
.admin-nav { flex: 1 1 200px; max-width: 220px; align-self: stretch; display: flex; flex-direction: column; gap: 2px; padding: 20px var(--space-3); border-right: 1px solid var(--line-soft); }
.admin-nav:empty { display: none; }
.admin-nav a { display: flex; align-items: center; min-height: 40px; padding: 0 var(--space-3); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-size: 14px; overflow-wrap: anywhere; }
.admin-nav a:hover { background: var(--mist); }
/* S18 part F: audit details on demand, and the strip's participant search. */
details.audit summary { cursor: pointer; font-weight: 600; min-height: 32px; }
details.audit dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 8px 0 0; font-size: 13px; }
details.audit dd { margin: 0; overflow-wrap: anywhere; }
.strip-search { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.strip-search input { min-height: 40px; width: min(260px, 48vw); padding: 0 14px; border: 2px solid var(--on-field); border-radius: 999px; background: var(--paper); color: var(--ink); font: 500 15px var(--font-ui); }
.strip-search .button { min-height: 40px; }
.strip-search + .switch { margin-left: 0; }
/* S18 part E: the programme menu in groups. */
.admin-nav-group { margin: 14px var(--space-3) 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
/* V2-ProgrammeHome (S18 part E): the launch checklist and what's waiting. */
.home-grid { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; }
.home-checklist { flex: 999 1 460px; min-width: 0; }
.home-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.home-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.home-head h2 { margin: 0; }
.home-checklist ol { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-soft); border-radius: var(--radius-card); overflow: hidden; }
.home-step { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 6px 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.home-step:last-child { border-bottom: 0; }
.home-step-text { display: flex; flex-direction: column; gap: 2px; }
.home-step-text > span { font-size: 14px; color: var(--ink-muted); }
.home-mark { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; box-sizing: border-box; border: 2px solid var(--line-control); border-radius: 999px; font-weight: 800; font-size: 14px; }
.home-step-done .home-mark { border: 0; background: var(--ok-fg); color: var(--paper); }
.home-step-attention { background: var(--behind-bg); }
.home-step-attention .home-mark { border: 0; background: var(--behind-fg); color: var(--paper); }
.home-step-state { font-size: 14px; font-weight: 600; }
.home-step-done .home-step-state { color: var(--ok-fg); }
.home-step-attention .home-step-state { color: var(--behind-fg); }
.home-step a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 14px; }
.home-waiting { padding: 20px 22px; border-radius: var(--radius-card); background: var(--ink); color: var(--paper); }
.home-waiting h2 { margin: 0 0 12px; font-size: 20px; color: var(--paper); }
.home-waiting ul { list-style: none; margin: 0; padding: 0; }
.home-waiting li + li { border-top: 1px solid #4A4A4A; }
.home-waiting a { display: flex; align-items: center; gap: 14px; min-height: 52px; color: var(--paper); text-decoration: none; }
.home-waiting a:hover { color: var(--paper); text-decoration: underline; }
.home-waiting :focus-visible { outline-color: var(--paper); }
.home-count { min-width: 2ch; font: 800 32px/1 var(--font-display); }
.home-waiting a > span:nth-child(2) { flex: 1; }
@media (max-width: 560px) { .home-step { grid-template-columns: 28px minmax(0, 1fr); } .home-step-state, .home-step a { grid-column: 2; } }
.admin-nav a[aria-current] { background: var(--selected); font-weight: 700; box-shadow: inset 4px 0 0 var(--brand-teal); } /* ADR-034: the teal bar is a shape on the selected tint; the tint and weight carry the state */
.admin-nav .group { margin: 14px var(--space-3) 4px; font-size: 12px; font-weight: 700; color: var(--ink-muted); }
.admin-main { flex: 999 1 560px; min-width: 0; max-width: none; margin: 0; padding: var(--space-6) 28px 40px; display: flex; flex-direction: column; gap: 22px; font-size: 14px; }
.admin-main > * { margin-top: 0; margin-bottom: 0; }
.admin-main h1 { margin: 0; font-size: 30px; line-height: 1; letter-spacing: -.01em; }
.admin-main h1::after { content: "." / ""; color: var(--brand-orange); } /* ADR-034: the brand's full stop, read by nobody */
:where(.admin-main) a { color: var(--brand-link); } /* zero-specificity so every component's own link colour still wins */
:where(.admin-main) a:hover { color: var(--ink); }
/* ADR-034: the page's committing action on charcoal, teal heading, white pill. */
.admin-main .box-brand { position: relative; overflow: hidden; gap: var(--space-3); padding: 22px; border: 0; border-radius: var(--radius); background: var(--brand-charcoal); color: var(--paper); }
.admin-main .box-brand > * { position: relative; }
.admin-main .box.box-brand h2, .admin-main .box.box-brand h3 { color: var(--brand-teal); font: 700 20px/1.2 var(--font-display); }
.admin-main .box-brand h2::after, .admin-main .box-brand h3::after { content: "." / ""; color: var(--brand-orange); }
.admin-main .box-brand p { color: #E6E6E6; }
.admin-main .box-brand .quiet { color: var(--brand-on-charcoal-muted); }
.admin-main .box-brand .button { background: var(--paper); color: var(--brand-charcoal); border-color: var(--paper); }
.admin-main .box-brand .button:hover { background: var(--brand-teal); border-color: var(--brand-teal); color: var(--brand-charcoal); }
.admin-main .box-brand :focus-visible { outline-color: var(--paper); }
.admin-main .box-brand .box-problems { color: var(--ink); }
.admin-main .box-brand .box-problems p { color: var(--ink); }
.admin-main .box-brand .box-shapes { position: absolute; right: -40px; top: -70px; width: 220px; height: 220px; opacity: .14; pointer-events: none; }
.admin-main .breadcrumb { font-size: 14px; }
.admin-main .lede { font-size: 16px; }
.admin-main .chip { padding: 3px 10px; font-size: 12px; }
.admin-main .form { margin-top: 0; max-width: none; display: flex; flex-direction: column; gap: 14px; }
.admin-main .field { margin: 0; font-size: 13px; }
.admin-main .field label, .admin-main legend { margin-bottom: 4px; font-size: 13px; }
.admin-main .field input, .admin-main .field select { min-height: 40px; padding: 0 10px; font-size: 14px; }
.admin-main .field select { padding-right: 32px; background-position: right 10px center; }
.admin-main .field textarea { font: 400 13px/1.55 var(--font-figure); }
.admin-main .hint { margin: 0 0 4px; font-size: 12px; }
.admin-main .button { min-height: 40px; padding: 0 var(--space-4); font-size: 14px; align-self: flex-start; }
.admin-main .notice, .admin-main .error-summary { margin-top: 0; }
.admin-main .notice { border-left: 0; border-top: 3px solid var(--ok-fg); background: var(--ok-bg); }
.admin-main p { margin: 0; max-width: none; } /* S24: instructions and notices run the full width of the admin column; the 65ch measure is for reading pages */
.admin-main .lede { font-size: 13px; color: var(--ink-muted); } /* S24: one line under every page's heading saying what the page is for, read like the hints */
.admin-main .reg-actions { flex-direction: row; flex-wrap: wrap; gap: var(--space-3); }
.admin-main .reg-actions .button { width: auto; min-height: 40px; font-size: 14px; }
.inline-form > .choice { align-self: center; min-height: 40px; margin-top: 18px; }
.inline-form > .button, .inline-form > button { align-self: flex-end; } /* S25: the admin button's flex-start would lift it to the label; it sits level with the input */
.title-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-4); }
.title-row h1 { margin-bottom: 10px; }
.facts { font-variant-numeric: tabular-nums; margin: var(--space-2) 0 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.facts dt { display: inline; color: var(--ink-muted); }
.facts dd { display: inline; margin: 0; font-weight: 700; }
.columns { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.columns > * { flex: 1 1 360px; min-width: 0; }
.columns > .wide { flex: 3 1 420px; display: flex; flex-direction: column; gap: var(--space-4); }
.columns > .side { flex: 2 1 320px; display: flex; flex-direction: column; gap: var(--space-4); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-2); padding-bottom: var(--space-2); border-bottom: 2px solid var(--ink); }
.section-head h2 { margin: 0; }
.section-head > .figure, .section-head .quiet { font-size: 12px; color: var(--ink-muted); }
.box { display: flex; flex-direction: column; gap: var(--space-3); padding: 18px; border: 1px solid var(--line-soft); }
.box h2, .box h3 { margin: 0; }
.box h3 { font: 600 18px/1.2 var(--font-display); }
.box-strong { border: 2px solid var(--ink); }
.box-mist { background: var(--mist); border-color: var(--mist); }
.box-problems { padding: var(--space-3) 14px; border-top: 3px solid var(--error-fg); background: var(--error-bg); }
.box-problems ul { margin: 0; padding-left: 18px; }
.box-problems a { display: inline-block; min-height: 24px; line-height: 24px; color: var(--error-fg); font-weight: 600; } /* S24: a 24px target (WCAG 2.5.8) */
.subtle-label { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; }
/* Positioned, so a visually hidden header inside a wide table is clipped with it rather than widening the page. */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line-soft); }
.table { width: 100%; min-width: 720px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th { padding: 10px; border-bottom: 2px solid var(--ink); font-size: 12px; font-weight: 700; text-align: left; white-space: nowrap; }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line-soft); font-size: 13px; vertical-align: top; }
.table .end { text-align: right; }
.table .sub { font-size: 12px; color: var(--ink-muted); }
/* V11-ClientsPaged (S30): the rest of a client's programmes behind a native disclosure in the cell; the link is the lasting route. */
.table .more { margin-top: 4px; }
.table .more summary { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; color: var(--teal-text); font-weight: 600; cursor: pointer; list-style: none; }
.table .more summary::-webkit-details-marker { display: none; }
.table .more summary::before { content: ""; border: 5px solid transparent; border-left: 7px solid currentColor; }
.table .more[open] summary::before { transform: rotate(90deg); }
.table .more ul { margin: 2px 0 0; padding-left: 18px; line-height: 1.6; }
.table .more a { display: inline-flex; align-items: center; min-height: 32px; }
.node { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: var(--radius); font-size: 14px; }
.node .level { min-width: 56px; margin: 0; font-size: 12px; }
.node.selected { background: var(--selected); box-shadow: inset 0 0 0 2px var(--ink); }
.node.inactive { color: var(--ink-muted); }
.node .code { font-size: 12px; color: var(--ink-muted); }
.count { margin-left: auto; font: 12px var(--font-figure); color: var(--ink-muted); }
.inline-form { flex-direction: row !important; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { flex: 1 1 200px; }
.versions { display: flex; flex-direction: column; }
.versions a { display: flex; flex-direction: column; gap: 4px; padding: var(--space-3); border-bottom: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
.versions a:hover { background: var(--mist); }
.versions a[aria-current] { background: var(--selected); box-shadow: inset 3px 0 0 var(--ink); }
.versions .top { display: flex; justify-content: space-between; gap: var(--space-2); }
.group { min-width: 0; margin: 0; padding: 0; border: 0; }
.group > legend { margin-bottom: 10px; font: 600 16px/1.2 var(--font-display); }
.admin-main .form fieldset.group { display: flex; flex-direction: column; gap: 14px; } /* S24: fields inside a named group keep the form's spacing */
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.locked + .hint { margin-top: 6px; }
.locked { display: flex; align-items: center; min-height: 40px; padding: 6px 10px; background: var(--mist); border: 2px dashed var(--line-control); border-radius: var(--radius); }
.admin-main .terms { max-height: 340px; max-width: none; font-size: 14px; line-height: 1.6; }

@media (max-width: 760px) {
  /* Phone: the menu wraps above the page instead of sitting beside it. */
  .admin-nav { max-width: none; flex-direction: row; flex-wrap: wrap; padding: var(--space-2) var(--space-4); border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .admin-nav-group { flex-basis: 100%; margin: 8px var(--space-3) 0; } /* S18: each group starts its own row */
  .admin-nav .group { flex-basis: 100%; margin: 6px 0 0; }
  .admin-main { padding: 20px var(--space-4) 32px; }
  .admin-bar, .admin-strip { padding-left: var(--space-4); padding-right: var(--space-4); }
}

/* M-Import: step markers, file facts, problem counts and the commit row. */
.import-steps { margin: 0 0 var(--space-4); padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: var(--ink-muted); }
.import-steps li { display: flex; align-items: center; gap: 8px; }
.import-steps .step-number { width: 24px; height: 24px; border-color: var(--line-control); font-size: 12px; }
.import-steps .current { color: var(--ink); font-weight: 700; }
.import-steps .current .step-number { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.import-steps .done .step-number { border-color: var(--ok-fg); color: var(--ok-fg); }
.import-facts, .import-counts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--space-3); }
.import-facts dt, .import-counts dt { font-size: 12px; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; }
.import-facts dd { margin: 4px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.import-counts { padding-top: var(--space-3); border-top: 1px solid var(--line-soft); }
.import-counts dd { margin: 4px 0 0; font: 600 28px/1.1 var(--font-figure); }
.import-counts .has-errors dd { color: var(--error-fg); }
.import-types { max-width: 560px; margin-bottom: var(--space-6); }
.import-outcome { margin: var(--space-4) 0; }
.import-outcome h2 { margin: 0 0 var(--space-2); font-size: 20px; }
.import-outcome p { margin: 0 0 var(--space-2); }
.problem-types { margin: 0; padding: 0; list-style: none; }
.problem-types li { display: flex; justify-content: space-between; gap: var(--space-3); padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.more-rows { margin-top: var(--space-3); }
.more-rows summary { cursor: pointer; font-weight: 600; margin-bottom: var(--space-3); }
.commit-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: var(--space-4) 0; }
.commit-row p { margin: 0; }

/* Registration (R1–R6, R-Desktop): field header, step bar (phone) or step list with summary (desktop), one column of 52px controls. */
.reg-field { display: flex; flex-direction: column; gap: 6px; padding: var(--space-4) var(--gutter); background: var(--field); color: var(--on-field); }
.reg-field :focus-visible { outline-color: var(--on-field); }
.reg-bar-title { font-weight: 600; font-size: 15px; }
.reg-field .logo-plate { align-self: flex-start; } /* the programme's logo on the registration pages (feedback, 10 Nov 2026) */
.reg-hero { padding-top: 28px; padding-bottom: 28px; }
.reg-hero p { margin: 0; font-size: 15px; }
.reg-hero h1 { margin: 0; font-size: clamp(32px, 6vw, 48px); line-height: 1.06; letter-spacing: -.02em; overflow-wrap: anywhere; }
.reg-done { position: relative; padding-top: 40px; padding-right: calc(var(--gutter) + 120px); }
.reg-stamp { position: absolute; top: 20px; right: var(--gutter); width: 112px; height: 112px; padding: 10px; border-radius: 999px; background: var(--paper); }
.reg-chip { align-self: flex-start; background: var(--paper); color: var(--ok-fg); }
.reg-layout { display: flex; flex-direction: column; }
.reg-steps { padding: var(--space-4) var(--gutter); border-bottom: 1px solid var(--line-soft); }
.reg-steps p { margin: 0 0 10px; font-size: 14px; }
.reg-steps ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.reg-steps li { height: 6px; border: 1px solid var(--line-control); border-radius: 3px; }
.reg-steps li.done, .reg-steps li.current { background: var(--ink); border-color: var(--ink); }
.reg-step-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.reg-summary { display: none; }
main.reg-main { width: 100%; max-width: calc(560px + 2 * var(--gutter)); margin: 0; padding: 28px var(--gutter) 40px; display: flex; flex-direction: column; gap: var(--space-6); }
.reg-main > *, .reg-form > * { margin-top: 0; margin-bottom: 0; }
.reg-main h1 { margin: 0; font-size: clamp(28px, 4vw, 34px); line-height: 1.1; letter-spacing: -.02em; }
.reg-single { margin: 0 auto; }
.reg-form { display: flex; flex-direction: column; gap: var(--space-6); }
.reg-form .field { margin: 0; }
.reg-form .field input:not([type=checkbox]) { min-height: 52px; font-size: 18px; }
.reg-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.reg-actions { display: flex; flex-direction: column; gap: 10px; }
.reg-actions .button, .reg-wide { width: 100%; min-height: 52px; font-size: 17px; }
.reg-link { display: inline-flex; align-items: center; min-height: 44px; }
.reg-link-button { min-height: 44px; padding: 0; border: 0; background: none; color: var(--teal-text); font: inherit; text-decoration: underline; cursor: pointer; }
.reg-link-button:hover { color: var(--ink); }
.reg-break { overflow-wrap: anywhere; }
.ledger { margin: 0; border-top: 2px solid var(--ink); }
.ledger > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.ledger dt { flex-shrink: 0; color: var(--ink-muted); font-size: 15px; }
.ledger dd { margin: 0; min-width: 0; text-align: right; overflow-wrap: anywhere; }
.ledger .reg-locked { margin: 0 -12px; padding: 12px; background: var(--mist); }
.reg-locked dt { display: flex; gap: 6px; align-items: center; color: var(--ink); }
.reg-target dd.figure { font-size: 20px; font-weight: 500; }
/* Participant dashboard (S09): D-Dashboard's field hero, status row and 12-column grid; D-Mobile below 900px. */
.chip-behind { background: var(--behind-bg); color: var(--behind-fg); }
.chip-dashed { border-style: dashed; }
.button-on-field { min-height: 44px; background: var(--field); color: var(--on-field); border-color: var(--on-field); }
.button-on-field:hover { background: var(--on-field); color: var(--field); }
.dash-bar, .dash-field { background: var(--field); color: var(--on-field); padding-left: var(--gutter); padding-right: var(--gutter); }
.dash-bar :focus-visible, .dash-field :focus-visible { outline-color: var(--on-field); }
/* The bar stands on its own since S53 (a strip or a white top may follow it), so it has room beneath as well as above: 66px
   tall with its 44px button, the team bar's height. */
.dash-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-6); padding-top: 11px; padding-bottom: 11px; }
.dash-programme { font: 600 18px/1.2 var(--font-display); }
.dash-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) 20px; font-size: 14px; font-family: var(--font-menu, inherit); }
.dash-picker { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0; }
.dash-picker select { min-height: 44px; max-width: 100%; padding: 0 14px; border: 2px solid var(--on-field); border-radius: 999px; background: var(--field); color: var(--on-field); font: 600 15px var(--font-ui); }
.dash-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-field); font-weight: 600; }
.dash-link:hover { color: var(--on-field); }
.dash-field { position: relative; padding-top: 48px; padding-bottom: 44px; }
.dash-field > * { max-width: 1120px; }
.dash-id { margin: 0 0 12px; font-size: 13px; overflow-wrap: anywhere; }
.dash-field h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); overflow-wrap: anywhere; } /* S53, then XSEM on 17 Nov 2026: the h1 size of the type scale and the band's full width, so "what's left" sits on one line at desktop width */
.dash-sub { margin: var(--space-4) 0 0; font-size: 17px; }
/* The three figures a customer looks for (feedback, 10 Nov 2026): target, sales to date, remaining. The percentage is the bar's caption. */
.dash-key { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 20px 0 0; }
.dash-key > div { display: flex; flex-direction: column; gap: 2px; }
.dash-key dt { font: 600 13px var(--font-ui); }
.dash-key dd { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 500; overflow-wrap: anywhere; }
.dash-reached { padding-right: calc(var(--gutter) + 120px); }
.dash-stamp { position: absolute; top: 28px; right: var(--gutter); width: 104px; height: 104px; padding: 10px; border-radius: 999px; background: var(--paper); }
.dash-track { position: relative; max-width: 880px; height: 14px; margin-top: 36px; border: 2px solid var(--on-field); border-radius: 999px; }
.dash-track-pending { border-style: dashed; }
.dash-fill { position: absolute; inset: 0 auto 0 0; background: var(--on-field); border-radius: 999px; }
.dash-marker { position: absolute; top: -9px; bottom: -9px; width: 3px; margin-left: -1px; background: var(--on-field); }
.dash-scale { position: relative; display: flex; justify-content: space-between; max-width: 880px; margin-top: 10px; font-size: 13px; font-weight: 600; }
/* Kept clear of the ends, where the £0 and target labels sit. */
.dash-pace-label { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.dash-scale-line { margin: 10px 0 0; font-size: 14px; }
@media (prefers-reduced-motion: no-preference) { .dash-fill { transition: width .6s cubic-bezier(.2, .7, .2, 1); } }
/* S53 (D96): the dashboard's top on white where XSEM chose it. The band swaps its own two colours, so the track, marker, ladder and
   focus ring follow; the fill takes the bars' colour inside the ink line; the page beneath sits on mist so the two read apart. */
.dash-field-light { --field: var(--paper); --on-field: var(--ink); }
.dash-field-light .dash-fill { background: var(--chart, var(--ink)); }
.dash-field-light .dash-cta, .dash-field-light .dash-cta:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.dash-page-light { background: var(--mist); }
/* S49: the audit trail's table. The moment stays on one line; identifiers and what changed break where they must. */
.audit-table td:first-child { white-space: nowrap; }
.audit-table .sub { overflow-wrap: anywhere; }
/* S56: the sign-in page's photo in place of the colour panel; no words sit on it. */
.signin-photo { padding: 0; background: var(--mist); }
.signin-photo img { display: block; width: 100%; height: 100%; min-height: 220px; max-height: 640px; object-fit: cover; }
.signin-form > .logo-plate { align-self: flex-start; margin-bottom: 12px; }
/* S53: the programme's photo strip under the bar (dashboard and team Overview). No words sit on it. */
.portal-strip { height: clamp(120px, 17vw, 240px); background: var(--mist); }
.portal-strip img { display: block; width: 100%; height: 100%; object-fit: cover; }
main.dash-page { max-width: none; margin: 0; padding: 0; }
.dash-main { max-width: calc(1120px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 64px; }
main.dash-main { margin: 0 auto; }
main.dash-empty { padding-top: 48px; }
.dash-status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding: 18px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.dash-main > .notice { margin: var(--space-4) 0 0; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; margin-top: 40px; }
.dash-grid > section { min-width: 0; align-self: start; }
.dash-ledger, .dash-monthly, .dash-levels, .dash-rewards { border-top: 2px solid var(--ink); padding-top: 20px; }
.dash-grid h2 { margin: 0 0 18px; font-size: 24px; }
.dash-levels .ledger { border-top: 0; }
.dash-levels .ledger dt .chip { margin-left: 6px; }
.dash-sums { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 12px; column-gap: var(--space-4); font-size: 15px; }
.dash-sums > div { display: contents; }
.dash-sums dt { font-family: var(--font-ui); }
.dash-sums dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.dash-total dt, .dash-total dd { padding-top: 10px; border-top: 2px solid var(--ink); font-weight: 700; }
.dash-total dd, .dash-strong dd { font-weight: 500; }
.dash-strong dt { font-weight: 700; }
.dash-meta { display: grid; gap: 6px; margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--ink-muted); }
.dash-meta dt, .dash-meta dd { display: inline; margin: 0; }
.dash-meta dd { color: var(--ink); }
.dash-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); margin-bottom: 22px; }
.dash-section-head h2 { margin: 0; }
/* Charts start at zero; empty months are a dashed outline reading "No data yet" in the table. */
.dash-chart, .dash-chart-labels { display: grid; gap: 6px; }
.dash-chart { height: 220px; align-items: end; border-bottom: 2px solid var(--ink); }
.dash-column { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.dash-column .figure { font-size: 10px; text-align: center; }
.dash-col-bar { background: var(--chart); border-radius: 3px 3px 0 0; }
.dash-nodata { background: transparent; border: 1px dashed var(--line-control); }
/* V2: an empty month is a dotted baseline tick, not a dashed box that reads as broken. */
.dash-col-bar.dash-nodata { border: 0; border-top: 2px dotted var(--line-control); border-radius: 0; }
.dash-chart-note { margin: var(--space-2) 0 0; font-size: 13px; color: var(--ink-muted); }
.dash-chart-labels { margin-top: var(--space-2); font-size: 12px; text-align: center; color: var(--ink-muted); }
.dash-months { width: 100%; border-collapse: collapse; font-size: 15px; }
.dash-months th, .dash-months td { padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.dash-months thead th { border-bottom: 2px solid var(--ink); }
.dash-months th { text-align: left; font-weight: 400; }
.dash-months thead th, .dash-months td.figure { text-align: right; }
.dash-months thead th:first-child { text-align: left; }
.dash-months td.figure { padding-left: var(--space-4); white-space: nowrap; }
.dash-row-bar { width: 30%; padding: 0 var(--space-3); }
.dash-row-bar span { display: block; height: 10px; border-radius: 0 3px 3px 0; background: var(--chart); }
.dash-row-bar span.dash-nodata { background: transparent; }
.dash-terms { margin: 0; max-width: none; padding: 22px var(--gutter) 0; background: var(--ink); color: var(--paper); font-size: 13px; }
/* Phones (D-Mobile): the table with its bars instead of the chart. */
@media (max-width: 899px) {
  .dash-chart, .dash-chart-labels, .dash-chart-note, .dash-toggle { display: none; }
  .dash-months thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dash-months th[scope=row] { white-space: nowrap; padding-right: var(--space-2); }
}
@media (min-width: 900px) {
  .dash-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
  /* V2-Dashboard: rewards and the chart on the left, the ledger and upgrade beside them. */
  .dash-rewards, .dash-monthly { grid-column: span 7; }
  .dash-ledger, .dash-upgrade { grid-column: span 5; }
  .dash-next { grid-column: 1 / -1; }
  .dash-monthly.as-chart .dash-months, .dash-monthly.as-table .dash-chart, .dash-monthly.as-table .dash-chart-labels, .dash-monthly.as-table .dash-chart-note, .dash-row-bar { display: none; }
}
/* R3 level cards: native radios in a fieldset. Chosen is tinted with a heavier border and a badge; focus is the 3px outline, so the two never look alike. */
.reg-levels { display: flex; flex-direction: column; gap: 10px; }
.reg-levels .reg-level { margin: 0; font-weight: 400; display: grid; grid-template-columns: 22px 1fr auto; column-gap: 14px; row-gap: 4px; align-items: center; padding: 14px 16px; border: 2px solid var(--line-control); border-radius: var(--radius); cursor: pointer; }
.reg-form .reg-levels .reg-level input { grid-row: 1 / span 2; width: 22px; height: 22px; min-height: 0; margin: 0; accent-color: var(--ink); }
.reg-level-figures { display: flex; flex-direction: column; align-items: flex-end; font-size: 17px; }
.reg-level-note { grid-column: 2 / span 2; color: var(--ink-muted); font-size: 14px; }
.reg-selected { display: none; margin-left: 6px; background: var(--ink); color: var(--paper); font-size: 12px; }
.reg-levels .reg-level:has(input:checked) { background: var(--selected); border: 3px solid var(--ink); padding: 13px 15px; }
.reg-level:has(input:checked) .reg-selected { display: inline-flex; }
.reg-level input:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.field-error .reg-level { border-color: var(--error-fg); }
.reg-accept { padding: var(--space-4); border: 2px solid var(--ink); border-radius: var(--radius); }
.reg-accept.field-error { border-color: var(--error-fg); }
.reg-accept .choice { align-items: flex-start; }
.reg-accept .choice input { margin-top: 2px; flex-shrink: 0; }
/* S58 (ADR-045): where the terms are a link, the join button waits for the tick. Where :has isn't understood the button
   simply shows; the API refuses an unticked box either way. */
.reg-join-hint { display: none; }
@supports selector(:has(*)) {
  .reg-form:has(.reg-gate input:not(:checked)) .reg-join { display: none; }
  .reg-form:has(.reg-gate input:not(:checked)) .reg-join-hint { display: block; }
}
/* S59 (ADR-045): the signature box. The ruled line is decoration; ink is the page's ink, never the client's colour. */
.reg-form .reg-sign { gap: var(--space-3); }
.reg-form .reg-sign legend { padding: 0; font-weight: 600; }
.reg-sign-pad { display: flex; flex-direction: column; gap: var(--space-2); }
.reg-sign-pad[hidden] { display: none; }
.reg-sign-pad .hint { margin: 0; }
.reg-sign-pad canvas { display: block; width: 100%; max-width: 600px; aspect-ratio: 3 / 1; border: 2px solid var(--line-control); border-radius: var(--radius);
  background: linear-gradient(var(--line-soft) 0 0) no-repeat 50% 78% / 88% 2px, var(--paper); color: var(--ink); touch-action: none; cursor: crosshair; }
.reg-sign.field-error canvas { border-color: var(--error-fg); }
.reg-sign-tools { display: flex; align-items: center; gap: var(--space-3); margin: 0; }
.reg-form .reg-sign-tools .button { width: auto; min-height: 40px; padding: 0 var(--space-4); font-size: 15px; }
.reg-sign-or { display: none; }
.reg-sign-live .reg-sign-or { display: inline; }
.signature-held { margin-top: var(--space-4); }
.signature-held h3 { margin: 0 0 4px; }
.signature-held svg { display: block; width: 100%; max-width: 360px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--paper); }
.signature-held polyline { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.reg-mail { display: flex; gap: var(--space-3); margin: 0; font-size: 15px; }
.reg-mail svg { flex-shrink: 0; margin-top: 2px; }
.reg-alert { padding: 14px var(--space-4); border-top: 3px solid; }
.reg-alert h2 { margin: 0 0 6px; font: 600 16px/1.3 var(--font-ui); }
.reg-alert p { margin: 0; font-size: 15px; }
.reg-alert-error { border-color: var(--error-fg); background: var(--error-bg); }
.reg-alert-error h2 { color: var(--error-fg); }
.reg-alert-warning { border-color: var(--behind-fg); background: var(--behind-bg); }
.reg-alert-warning h2 { color: var(--behind-fg); }
.reg-main .terms { max-height: 24rem; }
.reg-terms-full { max-width: 70ch; }

@media (min-width: 900px) {
  /* R-Desktop: steps listed with their state and the matched details beside the form. */
  .reg-layout { flex-direction: row; align-items: flex-start; gap: 48px; padding: 0 var(--gutter); }
  .reg-side { flex: 0 0 350px; padding-top: 40px; display: flex; flex-direction: column; gap: var(--space-8); }
  .reg-steps { padding: 0; border: 0; }
  .reg-steps > p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .reg-steps ol { display: flex; flex-direction: column; gap: 18px; }
  .reg-steps li { height: auto; border: 0; display: flex; align-items: center; gap: var(--space-3); color: var(--ink-muted); }
  .reg-steps li::before { content: ""; width: 16px; height: 16px; border: 2px solid var(--line-control); border-radius: 999px; flex-shrink: 0; }
  .reg-steps li.done, .reg-steps li.current { background: none; color: var(--ink); }
  .reg-steps li.done::before { background: var(--ink); border-color: var(--ink); }
  .reg-steps li.current::before { width: 20px; height: 20px; margin: -2px; border-color: var(--ink); }
  .reg-steps li.current { font-weight: 700; }
  .reg-step-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .reg-step-state { color: var(--ink-muted); font-weight: 400; }
  .reg-summary { display: block; }
  main.reg-main { flex: 1; max-width: 740px; padding: 40px 0 56px; }
  .reg-main h1 { font-size: 44px; }
  .reg-actions { flex-direction: row; flex-wrap: wrap; }
  .reg-actions .button { width: auto; padding: 0 28px; }
  main.reg-single { width: 100%; max-width: calc(740px + 2 * var(--gutter)); margin: 0 auto; padding: 40px var(--gutter) 56px; }
}

@media print {
  .reg-field, .footer, .skip { display: none; }
  .reg-print { padding: 0; }
}
/* Team area (S10 part B, T-Dashboard, T-Leaderboard, T-Mobile): the participant dashboard's frame, chart and table patterns. */
/* Everything on the bar centres on one line; the tabs run the bar's full height so their underline meets its edge (6 Nov 2026). On
   phones the bar wraps, so the rows keep the 48px tabs with even padding. */
.team-bar { padding-top: 9px; padding-bottom: 9px; }
@media (min-width: 700px) { .team-bar { padding-top: 0; padding-bottom: 0; } .team-bar .team-tabs a { min-height: 66px; } }
.team-programme { font-weight: 400; }
.team-tabs { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 16px; font-weight: 600; }
.team-tabs a { display: inline-flex; align-items: center; min-height: 48px; color: var(--on-field); border-bottom: 3px solid transparent; }
.team-tabs a[aria-current=page] { border-bottom-color: var(--on-field); }
.team-tabs a:hover { color: var(--on-field); }
main.team-main { padding-top: 40px; }
.team-head h1 { margin: 0 0 6px; font-size: clamp(30px, 4.5vw, 40px); overflow-wrap: anywhere; }
.team-fresh { margin: 0; color: var(--ink-muted); font-size: 14px; max-width: none; }
.team-csv { margin-top: 14px; }
.export-fields, .access-permissions, .choice-grid { columns: 2 220px; }
.export-fields .choice, .access-permissions .choice, .choice-grid .choice { break-inside: avoid; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0 var(--space-6); } /* short radio sets sit on one line and wrap on narrow screens */
.choice-row .choice { flex: 0 1 auto; max-width: 100%; }
.levels-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px var(--space-6); align-items: start; }
@media (min-width: 900px) { .levels-layout { grid-template-columns: minmax(0, 1fr) 260px; } }
.levels-example { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.access-choice:has(input[value="full"]:checked) .access-permissions { display: none; } /* the grid only matters for chosen access */
.form-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.uat-strip { margin: 0; padding: 6px var(--space-4); background: var(--behind-bg); color: var(--behind-fg); font-size: 14px; font-weight: 700; text-align: center; } /* D62: Staging only */
.address { overflow-wrap: anywhere; } /* S17: an email address has no break points and would push a 320px page sideways */
.export-recent { margin-top: 40px; }
.team-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 12px; align-items: end; margin: 24px 0; padding: 14px; background: var(--mist); }
.team-filters .field { margin-bottom: 12px; }
.team-filters select { width: 100%; min-height: 44px; padding: 0 10px; border: 2px solid var(--line-control); border-radius: var(--radius); background: var(--paper); font: 500 15px var(--font-ui); color: var(--ink); }
.team-filters-go { margin-bottom: 12px; }
.team-filters .hint { grid-column: 1 / -1; margin: 0; font-size: 13px; }
/* V2-TeamOverview (S18 part D): the answers first, on ink, each with its count and one link. */
/* The client's area (6 Nov 2026): the panel, rules, headings, links and primary buttons wear the published theme's computed pairs
   (--field/--on-field, --accent/--on-accent, --field-text on white), so every combination keeps its contrast; without a theme the
   defaults are the ink pairs the boards drew. */
.team-needs { margin: 0 0 32px; padding: 24px 26px; border-radius: var(--radius-card); background: var(--field, var(--ink)); color: var(--on-field, var(--paper)); }
.team-needs h2 { margin: 0 0 16px; font: 700 24px/1.2 var(--font-display); color: inherit; }
.team-needs p { margin: 0; }
.team-needs ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.team-needs li { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 14px; background: rgba(0, 0, 0, .18); } /* a shade of the field: white text keeps 4.5:1 on the default teal, and axe can read it (color-mix() it can't) */
.team-needs-count { font: 800 40px/1 var(--font-display); }
.team-needs a { margin-top: auto; color: inherit; font-weight: 700; }
.team-needs a:hover { color: inherit; }
.team-needs :focus-visible { outline-color: var(--on-field, var(--paper)); }
.team-main h1, .team-main h2, .team-main h3 { color: var(--field-text, var(--ink)); }
.team-main a:not(.button) { color: var(--field-text, var(--teal-text)); }
.team-main .team-needs h2, .team-main .team-needs a { color: inherit; } /* on the field, not the field's text shade */
.team-bar .logo-bare img { max-height: 30px; max-width: 120px; }
.team-bar .logo-plate { height: 36px; }
.team-main .button-primary, .team-main .team-csv, .team-filters-go .button { background: var(--accent, var(--field, var(--ink))); color: var(--on-accent, var(--on-field, var(--paper))); border-color: var(--accent, var(--field, var(--ink))); }
.team-main .button-primary:hover, .team-main .team-csv:hover, .team-filters-go .button:hover { background: var(--field, var(--ink-muted)); color: var(--on-field, var(--paper)); border-color: var(--field, var(--ink-muted)); }
.team-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; background: var(--field-soft, var(--mist)); color: var(--ink); }
.team-hero-text { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 28px var(--gutter); }
.team-hero-headline { margin: 0; font: 700 clamp(26px, 3.5vw, 36px)/1.1 var(--font-display); color: var(--field-text, var(--ink)); max-width: 18ch; }
.team-hero p { margin: 0; max-width: 48ch; }
.team-hero img { display: block; width: 100%; height: 100%; max-height: 220px; object-fit: cover; }
@media (max-width: 699px) { .team-hero { grid-template-columns: 1fr; } .team-hero img { max-height: 160px; order: -1; } }
.team-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin: 0 0 40px; }
.team-tiles > div { padding-left: 16px; border-left: 2px solid var(--field, var(--ink)); min-width: 0; }
.team-tiles dt { font-size: 14px; font-weight: 600; }
.team-tiles dd { margin: 4px 0 0; font-size: 18px; overflow-wrap: anywhere; }
.team-big { font: 600 clamp(26px, 3.5vw, 36px)/1.1 var(--font-display); }
dd.team-big.figure { font-family: var(--font-figure); font-weight: 500; font-size: clamp(22px, 3vw, 32px); }
.team-tile-sub { font-size: 13px !important; color: var(--ink-muted); }
.team-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.team-grid > section, .team-side > section { border-top: 2px solid var(--field, var(--ink)); padding-top: 20px; min-width: 0; }
.team-side { display: grid; gap: 40px; align-content: start; }
.team-grid h2, .team-leaders h2 { margin: 0 0 6px; font-size: 24px; }
.team-bars { width: 100%; border-collapse: collapse; font-size: 15px; }
.team-bars th { padding: 5px 10px 5px 0; text-align: left; white-space: nowrap; }
.team-bars td { padding: 5px 0 5px 10px; text-align: right; white-space: nowrap; }
.team-bars td.team-bar-cell { width: 100%; text-align: left; padding-left: 0; }
.team-bar-cell span { display: block; height: 16px; min-width: 2px; background: var(--chart); border-radius: 0 3px 3px 0; }
.team-bar-share { color: var(--ink-muted); font-size: 12px; }
/* Pace shares: colour reinforces the legend's icons and words, never replaces them. */
.team-stack { display: flex; gap: 2px; height: 20px; margin: 14px 0 12px; }
.team-stack span, .team-key { background: var(--line-soft); border-radius: 2px; }
.team-stack-achieved { background: var(--ok-fg) !important; }
.team-stack-onTrack { background: color-mix(in srgb, var(--ok-fg) 55%, var(--paper)) !important; }
.team-stack-behind { background: var(--behind-fg) !important; }
.team-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.team-legend li { display: flex; align-items: center; gap: 6px; }
.team-key { display: inline-block; width: 12px; height: 12px; }
.team-leaders { margin-top: 48px; border-top: 2px solid var(--field, var(--ink)); padding-top: 20px; }
.team-leader-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.team-leader-cards li { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--mist); min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.team-leader-cards strong { font-size: 16px; }
.team-rank-word { font-size: 12px; }
.team-rank { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 500; }
.team-table td { vertical-align: middle; }
.team-progress { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.team-track { display: inline-block; width: 110px; height: 10px; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.team-track span { display: block; height: 100%; background: var(--chart); }
.team-pages { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.team-page-links { display: flex; gap: 10px; }
@media (min-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .team-grid > .dash-monthly { grid-column: auto; } /* the dashboard's 12-column span doesn't apply here */
  .team-grid .dash-monthly.as-chart .dash-months, .team-grid .dash-monthly.as-table .dash-chart, .team-grid .dash-monthly.as-table .dash-chart-labels { display: none; }
}

/* M-Participants (S10 part C): counts under the h1, the search wider than the selects, long names wrapping in the table. */
.participants-head { border-bottom: 0; align-items: center; }
.participants-counts { margin-top: 0; color: var(--ink-muted); }
.participants-counts strong { color: var(--ink); }
.participants-filters { padding: 14px; background: var(--mist); }
.participants-search { flex: 2 1 260px !important; }
.participants-table td { vertical-align: top; }
.participants-table td:nth-child(2) { min-width: 180px; }

/* Theme and brochure (S10 part D, W-Home, W-Level, W-Mobile, X-Branding). The logo always sits on a white plate; text never on the photo. */
.logo-plate { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 6px 10px; background: #FFFFFF; border-radius: 4px; }
.logo-plate img { max-height: 28px; max-width: 140px; width: auto; height: auto; }
.dash-bar .logo-plate, .dash-bar .logo-bare { margin-right: 12px; }
.dash-bar .logo-bare img, .reg-field .logo-bare img { max-height: 36px; max-width: 150px; }
.reg-field .logo-bare { align-self: flex-start; }
/* Brochure (S10 part D, S16 part B; W-Home, W-Level, W-Mobile, W-Templates). The root's classes carry the template, header style,
   photo treatment, typeface pairing, corners and ground; each section's layout is its own class. Colours only ever come from the
   theme's computed pairs (--field/--on-field, --accent/--on-accent), so every combination keeps its contrast. */
.site { --site-radius: 12px; background: var(--paper); color: var(--ink); font-family: var(--font-ui); }
.site-soft { --site-radius: 6px; }
.site-square { --site-radius: 0; }
.site-type-geometric { --font-display: "Jost", ui-sans-serif, system-ui, sans-serif; --font-ui: "Jost", ui-sans-serif, system-ui, sans-serif; }
.site-type-serif { --font-display: "Fraunces", ui-serif, Georgia, serif; }
.site-type-modern { --font-display: "Manrope", ui-sans-serif, system-ui, sans-serif; --font-ui: "Manrope", ui-sans-serif, system-ui, sans-serif; }
.site-type-friendly { --font-display: "Nunito", ui-rounded, ui-sans-serif, system-ui, sans-serif; --font-ui: "Nunito", ui-rounded, ui-sans-serif, system-ui, sans-serif; }
.site-type-editorial { --font-display: "Playfair Display", ui-serif, Georgia, serif; --font-ui: "Inter", ui-sans-serif, system-ui, sans-serif; }
.site-type-classic { --font-display: "DM Serif Display", ui-serif, Georgia, serif; --font-ui: "DM Sans", ui-sans-serif, system-ui, sans-serif; }
.site-type-technical { --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif; --font-ui: "Inter", ui-sans-serif, system-ui, sans-serif; }
.site-dark { background: #1A1A1A; color: #FFFFFF; }
.site-dark a:not(.button) { color: #FFFFFF; }
.site-dark .site-levels li, .site-dark .site-steps li, .site-dark .site-contact > div, .site-dark .site-status p, .site-dark .site-featured-card { background: #262626; border-color: #3A3A3A; }
.site-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 12px var(--gutter); background: var(--field); color: var(--on-field); }
.site-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--on-field); font: 700 20px/1.2 var(--font-display); text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; flex: 1 1 auto; font-family: var(--font-menu, inherit); } /* S41: the menu's own cut of the client's typeface, where XSEM chose one */
/* Links and the Rewards menu's summary read as one row: same height, no underline until hovered, the current page underlined (6 Nov 2026). */
.site-nav a, .site-nav summary { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; text-underline-offset: 6px; }
.site-nav a { color: var(--on-field); } /* the summary inherits, so the white and plain header styles recolour it with the rest */
.site-nav a:hover, .site-nav summary:hover, .site-nav a:focus-visible, .site-nav summary:focus-visible { text-decoration: underline; }
.site-nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }
.site-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.site-register { background: var(--on-field); color: var(--field); border-color: var(--on-field); }
/* Header styles: white with a brand rule, or plain on the page ground; buttons there sit on the ground, not the field. */
.site-head-rule .site-head { background: var(--paper); color: var(--ink); border-bottom: 4px solid var(--field); }
.site-head-plain .site-head { background: transparent; color: inherit; border-bottom: 1px solid var(--line-soft); }
.site-head-rule .site-head a:not(.button), .site-head-plain .site-head a:not(.button) { color: inherit; }
.site-head-rule .site-actions .button-on-field, .site-head-plain .site-actions .button-on-field { background: transparent; color: inherit; border-color: currentColor; }
.site-head-rule .site-actions .site-register, .site-head-plain .site-actions .site-register { background: var(--field); color: var(--on-field); border-color: var(--field); }
/* The draft's notice floats in a corner (editor plan, phase 0): in the page's flow it sat between the hero and the first row, so a
   preview never looked like the page it previews. */
.site-preview { position: fixed; left: 12px; bottom: 12px; z-index: 30; margin: 0; max-width: min(360px, calc(100% - 24px)); padding: 8px 12px; border-radius: var(--radius); font-size: 13px; line-height: 1.35; box-shadow: var(--shadow-card); }
/* S20 (ADR-031): the body runs full width and each row keeps itself to the page's measure, so a row can run to the edges (a band behind
   centred content, or everything, as the observed sites' photo rows do) without the page ever scrolling sideways. */
.site-main { max-width: none; margin: 0; padding: 0 0 40px; } /* the generic main rule caps width; rows cap themselves below */
.site-main > * { max-width: 1120px; margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.site-main > .site-bleed-band, .site-main > .site-bleed-edge { max-width: none; border-radius: 0; }
.site-main > .site-bleed-band { padding-left: max(var(--gutter), calc(50% - 560px)); padding-right: max(var(--gutter), calc(50% - 560px)); }
.site-main > .site-bleed-edge { padding-left: 0; padding-right: 0; }
/* In an edge-to-edge row only the pictures run out; its words keep the page's measure, so headings line up with the rows around them. */
.site-main > .site-bleed-edge > :not(ul, .site-hero-image, .site-hero-media, .site-deco, .site-plate, img, figure) { max-width: 1120px; margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.site-main > .site-bleed-edge .site-levels { border-radius: 0; }
.site-main > .site-bleed-edge .site-levels-photos { gap: 4px; }
.site-main > .site-bleed-edge .site-levels-photos li { border-radius: 0; }
.site-main > .site-bleed-edge .site-gallery { gap: 4px; }
.site-main > .site-bleed-edge .site-gallery img, .site-main > .site-bleed-edge .site-cards img { border-radius: 0; }
.site-main img { max-width: 100%; }
.site-photos-mono .site-main img { filter: grayscale(1); }
/* Hero layouts. Split: photo beside the plate. Plate: full-width photo, plate below. Headline: large type on the ground, photo below.
   Block: a colour block (the accent where set). Band: the member band, photo below. */
.site-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; margin: 24px auto 8px; } /* auto: centred like every other row */
.site-hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; border-radius: var(--site-radius) 0 0 var(--site-radius); }
.site-plate { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 28px; background: var(--field); color: var(--on-field); border-radius: 0 var(--site-radius) var(--site-radius) 0; }
.site-hero:not(:has(.site-hero-image)) { grid-template-columns: 1fr; }
.site-hero:not(:has(.site-hero-image)) .site-plate { border-radius: var(--site-radius); }
.site-plate h1 { margin: 0; font: 700 clamp(28px, 4vw, 44px)/1.1 var(--font-display); color: inherit; }
.site-plate p { margin: 0; }
.site-hero:not(.site-hero-split) { grid-template-columns: 1fr; gap: 16px; }
.site-hero:not(.site-hero-split) .site-hero-image img, .site-hero:not(.site-hero-split) .site-plate { border-radius: var(--site-radius); }
.site-hero-plate { gap: 0 !important; }
.site-hero-plate .site-hero-image img { aspect-ratio: 21 / 9; border-radius: var(--site-radius) var(--site-radius) 0 0; }
.site-hero-plate .site-plate { border-radius: 0 0 var(--site-radius) var(--site-radius); }
.site-hero-headline .site-plate { background: transparent; color: inherit; padding: 40px 0 8px; }
.site-hero-headline .site-plate h1 { font-weight: 400; font-size: clamp(36px, 6vw, 64px); max-width: 18ch; }
.site-hero-headline .button-on-field { background: transparent; color: inherit; border-color: currentColor; }
.site-hero-headline .site-register { background: var(--field); color: var(--on-field); border-color: var(--field); }
.site-hero-block .site-plate { background: var(--accent, var(--field)); color: var(--on-accent, var(--on-field)); padding: 48px 32px; text-align: center; align-items: center; }
.site-hero-block .site-plate h1 { font-weight: 800; font-size: clamp(32px, 6vw, 60px); text-transform: uppercase; }
.site-hero-block .button-on-field { background: transparent; color: inherit; border-color: currentColor; }
.site-hero-block .site-register { background: var(--on-accent, var(--on-field)); color: var(--accent, var(--field)); border-color: var(--on-accent, var(--on-field)); }
.site-hero-band .site-plate { border-bottom: 10px solid var(--accent, var(--field)); }
.site-dates { font: 600 14px var(--font-figure); }
.site-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px !important; }
.site-hero-block .site-cta { justify-content: center; }
.site-window { font-size: 14px; }
/* Programme status: a strip or a card. */
.site-status { margin-top: 16px; }
.site-status p { margin: 0; max-width: none; padding: 12px 16px; background: var(--mist); border-radius: var(--site-radius); display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.site-status-card p { display: block; padding: 18px; background: transparent; border: 1px solid var(--line-soft); }
.site-status-card strong, .site-status-card .site-dates { display: block; margin-bottom: 4px; }
/* Spacing (customer feedback, 10 Nov 2026): one setting for the room between rows and between the cards in a row. */
.site-space-tight { --site-row-gap: 24px; --site-card-gap: 8px; }
.site-space-roomy { --site-row-gap: 64px; --site-card-gap: 28px; }
.site-section { margin-top: var(--site-row-gap, 40px); }
/* A row flush to the one above (14 Nov 2026): no room, so a band sits straight under the hero; the hero drops its own margin before it. */
.site-main > .site-flush, .site-main > .site-status.site-flush, .site-t-luxe .site-section.site-flush { margin-top: 0; padding-top: 0; border-top: 0; }
.site-hero-tight { margin-bottom: 0 !important; }
#after-hero { display: block; height: 0; } /* the scroll target under the hero is no line of its own */
.site-section h2 { font: 700 28px/1.2 var(--font-display); margin: 0 0 8px; }
.site-lede { max-width: 60ch; }
.site-main > .site-lede { max-width: 1120px; padding-right: max(var(--gutter), calc(100% - 60ch)); box-sizing: border-box; } /* S24: a direct child of the row keeps the 60ch measure without being centred by the row's auto margins */
/* Levels: cards, photo grid, numbered list, tiles or a ladder (highest first). */
.site-levels, .site-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--site-card-gap, 16px); }
.site-levels li, .site-steps li { padding: 18px; border: 1px solid var(--line-soft); border-radius: var(--site-radius); background: var(--paper); }
.site-levels h3, .site-steps h3 { margin: 0 0 6px; font: 700 20px/1.2 var(--font-display); }
.site-levels-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.site-levels-grid li { padding: 0 0 14px; overflow: hidden; }
.site-levels-grid li > :not(img, .site-level-tile) { margin-left: 14px; margin-right: 14px; }
.site-levels-grid img, .site-level-tile { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 10px; }
.site-level-tile { background: var(--field); color: var(--on-field); font: 700 40px var(--font-display); }
.site-levels-list { display: block; counter-reset: level; }
.site-levels-list li { border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; background: transparent; padding: 18px 0 18px 56px; position: relative; }
.site-levels-list li::before { counter-increment: level; content: counter(level, decimal-leading-zero); position: absolute; left: 0; top: 18px; font: 500 20px var(--font-figure); }
.site-dark .site-levels-list li { background: transparent; }
/* On the dark ground a field-coloured control may sit close to the ground's own darkness: a white edge keeps it visible (WCAG 1.4.11). */
.site-dark .site-register, .site-dark .site-steps li::before, .site-dark .site-level-tile { box-shadow: 0 0 0 2px #FFFFFF; }
.site-levels-tiles li { background: var(--mist); border: 0; }
.site-levels-ladder { display: flex; flex-direction: column; gap: 8px; }
.site-levels-ladder li { border-style: dashed; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 12px 16px; }
.site-levels-ladder li h3 { margin: 0; font-size: 18px; }
.site-levels-ladder li p { margin: 0; }
.site-levels-ladder li a { margin-left: auto; }
/* Featured reward: a card, or a large image. */
.site-featured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.site-featured img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--site-radius); }
.site-featured-card { padding: 18px; border: 1px solid var(--line-soft); border-radius: var(--site-radius); }
.site-featured-large { grid-template-columns: 1fr; }
.site-featured-large img { aspect-ratio: 16 / 9; }
.site-featured:not(:has(img)) { grid-template-columns: 1fr; }
.site-steps { counter-reset: step; }
.site-steps li::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 8px; border-radius: 50%; background: var(--field); color: var(--on-field); font: 700 16px var(--font-figure); }
.site-steps-cards li { background: var(--mist); border: 0; }
/* Questions: an accordion or an open list. */
.site-faq { max-width: 72ch; margin-top: 12px; }
.site-faq details { border-bottom: 1px solid var(--line-soft); }
.site-faq summary { padding: 11px 0; font-weight: 600; cursor: pointer; } /* a list item, so it keeps its disclosure marker */
.site-faq details p { margin: 0 0 14px; }
.site-faq dt { font-weight: 700; margin-top: 16px; }
.site-faq dd { margin: 4px 0 0; }
.site-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 12px 0 0; }
.site-contact > div { padding: 14px; border: 1px solid var(--line-soft); border-radius: var(--site-radius); }
.site-contact dt { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.site-contact dd { margin: 4px 0 0; }
.site-contact-plain { grid-template-columns: 1fr; max-width: 480px; }
/* Luxe: generous space and fine rules between sections. */
.site-t-luxe .site-section { margin-top: calc(var(--site-row-gap, 40px) + 16px); padding-top: 32px; border-top: 1px solid var(--line-soft); }
.site-t-luxe .site-section h2 { font-weight: 400; font-size: 34px; }
.site-dark.site-t-luxe .site-section, .site-dark .site-levels-list li, .site-dark .site-faq details { border-color: #3A3A3A; }
.site-t-bold .site-section h2 { font-weight: 800; }
.site-level-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.site-level-tabs a { padding: 8px 14px; border: 2px solid var(--line-control); border-radius: 999px; text-decoration: none; color: inherit; }
.site-level-tabs a[aria-current="page"] { background: var(--field); color: var(--on-field); border-color: var(--field); }
.site-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 16px var(--gutter); border-top: 1px solid var(--line-soft); font-size: 14px; }
/* S19 (ADR-030, V3-Branding, V3-Blocks). A logo for colour sits on the header without the plate. */
.logo-bare img { display: block; max-height: 40px; max-width: 160px; width: auto; height: auto; }
/* Outline buttons take the text colour of whatever they sit on, so their contrast is the ground's. */
.site-buttons-outline .site-register, .site-buttons-outline .site-block-action, .site-buttons-outline .site-tone-field .site-block-action, .site-buttons-outline .site-head .site-actions .site-register { background: transparent; color: inherit; border-color: currentColor; }
/* Tinted surface: alternate programme sections on the soft band, ink text. */
.site-tinted .site-main > section.site-section:not(.site-block):nth-of-type(even) { background: var(--field-soft, var(--mist)); color: var(--ink); padding: 28px; border-radius: var(--site-radius); }
.site-tinted.site-dark .site-main > section.site-section:not(.site-block):nth-of-type(even) a:not(.button) { color: var(--ink); }
/* Content blocks. The page body is a size container, so each block lays out by the width it has (the builder's frame or a phone). */
.site-main { container-type: inline-size; }
.site-block h2 { color: var(--field-text, inherit); }
.site-dark .site-block h2, .site-tone-field h2 { color: inherit; }
.site-tone-soft, .site-tone-field, .site-tone-accent, .site-tone-dark { padding: var(--site-pad, 28px) 28px; border-radius: var(--site-radius); }
.site-main > :is(.site-tone-soft, .site-tone-field, .site-tone-accent, .site-tone-dark) { padding-left: max(28px, var(--gutter)); padding-right: max(28px, var(--gutter)); }
.site-main > .site-bleed-band:is(.site-tone-soft, .site-tone-field, .site-tone-accent, .site-tone-dark) { padding-top: var(--site-pad, 40px); padding-bottom: var(--site-pad, 40px); }
/* Editor phase 2 (ADR-038): any row but the hero may take a background, its own padding and centred words. The accent and dark
   tones join soft and brand; cards inside a toned row keep their own ground and ink. */
.site-tone-accent { background: var(--accent, var(--field)); color: var(--on-accent, var(--on-field)); }
.site-tone-dark { background: #1A1A1A; color: #FFFFFF; }
:is(.site-tone-field, .site-tone-accent, .site-tone-dark) :is(h2, .site-lede, .site-dates) { color: inherit; }
:is(.site-tone-accent, .site-tone-dark) a:not(.button) { color: inherit; }
:is(.site-tone-field, .site-tone-accent, .site-tone-dark) :is(.site-levels:not(.site-levels-photos) li, .site-steps li, .site-contact > div, .site-cards li, .site-featured-card) { background: var(--paper); color: var(--ink); }
:is(.site-tone-field, .site-tone-accent, .site-tone-dark) :is(.site-levels:not(.site-levels-photos) li, .site-steps li, .site-contact > div, .site-cards li) a:not(.button) { color: var(--field-text, var(--teal-text)); }
:is(.site-tone-accent, .site-tone-dark) .site-block-action { background: #FFFFFF; color: #1A1A1A; border-color: #FFFFFF; }
.site-pad-compact { --site-pad: 16px; }
.site-pad-roomy { --site-pad: 72px; }
.site-section:is(.site-pad-compact, .site-pad-roomy):not(.site-tone-soft, .site-tone-field, .site-tone-accent, .site-tone-dark) { padding-top: var(--site-pad); padding-bottom: var(--site-pad); }
.site-align-centre { text-align: center; }
.site-align-centre > :is(h2, p, .site-rich, figure), .site-align-centre .site-lede { margin-left: auto; margin-right: auto; }
.site-align-centre :is(.site-levels, .site-steps, .site-cards, .site-contact, .site-stats) { text-align: left; }
.site-main > .site-align-centre.site-lede { padding-right: var(--gutter); }
.site-block-text-centred { text-align: center; }
.site-block-text-centred .site-rich { margin: 0 auto; max-width: 60ch; }
.site-block-text-centred .site-rich a { font-weight: 600; }
/* The tinted surface's bands and a banded row read as one when the band runs to the edges. */
.site-tinted .site-main > section.site-section.site-bleed-band:not(.site-block):nth-of-type(even) { border-radius: 0; padding-top: 40px; padding-bottom: 40px; }
.site-tone-soft { background: var(--field-soft, var(--mist)); color: var(--ink); }
.site-tone-soft h2 { color: var(--field-text, var(--ink)); }
.site-tone-field { background: var(--field); color: var(--on-field); }
.site-tone-soft a:not(.button), .site-tone-field a:not(.button) { color: inherit; }
.site-rich { max-width: 65ch; }
.site-rich a { color: var(--field-text, inherit); }
.site-dark .site-rich a { color: inherit; }
.site-rich ul, .site-rich ol { padding-left: 1.25em; }
.site-block-imageText { display: grid; gap: 20px; align-items: center; }
.site-block-imageText img, .site-cards img, .site-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--site-radius); }
.site-block-text-wide { display: grid; gap: 8px 32px; }
.site-cards, .site-gallery { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: var(--site-card-gap, 16px); }
.site-cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-cards li { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line-soft); border-radius: var(--site-radius); background: var(--paper); color: var(--ink); }
.site-block-cards-photo .site-cards li { padding: 0 0 16px; overflow: hidden; }
.site-block-cards-photo .site-cards li > :not(img) { margin-left: 16px; margin-right: 16px; }
.site-block-cards-photo .site-cards img { border-radius: 0; }
.site-cards h3 { margin: 0; font: 700 20px/1.2 var(--font-display); }
.site-cards p { margin: 0; }
.site-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.site-block-quote figure { margin: 0; }
.site-block-quote blockquote { margin: 0; }
.site-block-quote blockquote p { margin: 0; max-width: 40ch; font: 600 24px/1.3 var(--font-display); }
.site-block-quote-large blockquote p { font-size: clamp(26px, 4vw, 36px); }
.site-block-quote figcaption { margin-top: 12px; font-size: 15px; }
.site-block-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-block-cta h2 { margin: 0 0 4px; }
.site-block-cta p { margin: 0; }
.site-block-cta-card { flex-direction: column; align-items: flex-start; max-width: 640px; padding: 28px; border: 1px solid var(--line-soft); border-radius: var(--site-radius); }
.site-block-action { background: var(--field); color: var(--on-field); border-color: var(--field); }
.site-tone-field .site-block-action { background: var(--on-field); color: var(--field); border-color: var(--on-field); }
@container (min-width: 640px) {
  .site-block-imageText { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .site-block-imageText-imageRight img { order: 2; }
  .site-block-text-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .site-block-text-wide h2 { margin: 0; }
  .site-block-gallery-grid .site-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .site-hero-split { grid-template-columns: 1fr; }
  .site-hero-image img { aspect-ratio: 4 / 3 !important; }
  .site-hero-split .site-hero-image img { border-radius: var(--site-radius) var(--site-radius) 0 0; }
  .site-hero-split .site-plate { border-radius: 0 0 var(--site-radius) var(--site-radius); }
  .site-plate { padding: 20px; }
  .site-hero-block .site-plate { padding: 32px 20px; }
  .site-featured { grid-template-columns: 1fr; }
  /* The phone header (14 Nov 2026): brand, Register and Menu on one row; the links and the other buttons in a panel under the bar. */
  .site-head { position: relative; flex-wrap: nowrap; gap: 8px; padding: 10px var(--gutter); }
  .site-brand { flex: 1 1 auto; min-width: 0; font-size: 17px; }
  .site-brand > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-brand:has(img) > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* the logo carries the name; the words stay for screen readers */
  .site-nav, .site-actions .button-on-field { display: none; }
  .site-actions { flex: 0 0 auto; }
  .site-menu-mobile { display: block; flex: 0 0 auto; }
  .site-menu-mobile summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 2px solid currentColor; border-radius: 999px; font: 600 14px var(--font-ui); color: inherit; }
  .site-menu-mobile summary::-webkit-details-marker { display: none; }
  .site-menu-mobile[open] summary { background: currentColor; }
  .site-menu-mobile[open] summary > * { color: var(--paper); filter: invert(0); }
  .site-head-rule .site-menu-mobile[open] summary > *, .site-head-plain .site-menu-mobile[open] summary > * { color: var(--paper); }
  .site-menu-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 6; display: flex; flex-direction: column; padding: 8px var(--gutter) 20px; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line-soft); box-shadow: var(--shadow-card); }
  .site-menu-panel > a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); font: 600 18px var(--font-display); text-decoration: none; }
  .site-menu-panel > a[aria-current="page"] { color: var(--field-text, var(--field)); }
  .site-menu-levels { list-style: none; margin: 0; padding: 4px 0 8px 16px; display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line-soft); }
  .site-menu-levels a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1.5px solid var(--line-control); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 14px; }
  .site-menu-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
  .site-menu-actions .button-on-field { display: inline-flex; background: var(--field); color: var(--on-field); border-color: var(--field); }
  .site-buttons-accent .site-menu-actions .button-on-field { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
  /* Level switchers scroll sideways in one row rather than wrapping into a block. */
  .site-level-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .site-level-tabs::-webkit-scrollbar { display: none; }
  .site-level-tabs a { flex: 0 0 auto; white-space: nowrap; }
  .site-level-tabs-band { justify-content: flex-start; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
}
@media (min-width: 701px) { .site-menu-mobile { display: none; } }
.branding-images { display: flex; flex-wrap: wrap; gap: 16px; }
.branding-images figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.branding-images img, .branding-empty { display: grid; place-items: center; width: 200px; height: 112px; object-fit: contain; background: var(--mist); border: 1px solid var(--line-soft); }
.branding-form { display: flex; flex-direction: column; gap: var(--space-4); }
.branding-steps { display: flex; flex-direction: column; gap: var(--space-3); border: 0; padding: 0; margin: 0; }
.branding-contrast { max-width: 720px; }
.branding-preview .branding-contrast { min-width: 0; }
.branding-preview .branding-contrast th { white-space: normal; }
.branding-preview .branding-contrast td { padding: 8px 6px; }
/* V3-Branding (S23): the form on the left, the preview sticky beside it from 1100px; colours with swatches, choices in a row, typefaces as tiles. */
.branding-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.branding-main { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
@media (min-width: 1100px) { .branding-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); } .branding-preview { position: sticky; top: var(--space-4); } }
.branding-preview { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.branding-preview h2 { margin: 0; }
.branding-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3) var(--space-4); }
.branding-words { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-3) var(--space-4); }
.branding-colour { display: flex; align-items: center; gap: 10px; }
.branding-colour input { flex: 1 1 auto; min-width: 0; }
.branding-swatch { flex-shrink: 0; width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: 4px; }
.branding-seg-row { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); }
.branding-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.branding-form label.branding-type { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: baseline; margin: 0; padding: 10px 12px; min-height: 72px; box-sizing: border-box; border: 2px solid var(--line-control); border-radius: 8px; background: var(--paper); cursor: pointer; font-weight: 600; font-size: 14px; }
.branding-type input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; }
.branding-type:has(input:checked) { border-color: var(--ink); background: var(--mist); box-shadow: inset 0 0 0 1px var(--ink); }
.branding-type:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.branding-type-sample { font: 600 24px/1 var(--font-display); }
.branding-type small { grid-column: 1 / -1; font-weight: 400; font-size: 12px; color: var(--ink-muted); }
.branding-mini { --mini-radius: 12px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font-family: var(--font-ui); overflow: hidden; }
.branding-mini[data-corners="soft"] { --mini-radius: 6px; }
.branding-mini[data-corners="square"] { --mini-radius: 0; }
.branding-mini-dark { background: var(--ink); color: var(--paper); }
.branding-mini-band { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--mini-main); color: var(--mini-on-main); font-size: 14px; }
.branding-mini-band strong { flex: 1 1 auto; min-width: 0; font: 700 14px var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.branding-mini-logo { height: 24px; width: auto; max-width: 90px; object-fit: contain; }
.branding-mini-plate { display: inline-flex; padding: 3px 6px; background: var(--paper); }
.branding-mini-cta { padding: 6px 12px; border: 2px solid var(--mini-on-main); border-radius: var(--mini-radius); font-weight: 700; font-size: 13px; background: var(--mini-on-main); color: var(--mini-main); }
.branding-mini[data-buttons="outline"] .branding-mini-cta { background: transparent; color: var(--mini-on-main); }
.branding-mini-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; padding: 16px; }
.branding-mini-hero img, .branding-mini-photo { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--mini-radius); background: var(--line-soft); color: var(--ink); font-size: 12px; }
.branding-mini-headline { display: block; font: 600 22px/1.1 var(--font-display); color: var(--mini-text); }
.branding-mini-dark .branding-mini-headline { color: var(--paper); }
.branding-mini-hero small { display: block; margin-top: 6px; font-size: 13px; }
.branding-mini-soft { padding: 12px 16px; font-size: 13px; background: var(--mini-soft); color: var(--ink); }
.branding-mini[data-surface="plain"] .branding-mini-soft { background: transparent; color: inherit; border-top: 1px solid var(--line-soft); }
.branding-mini-soft a { color: var(--mini-text); font-weight: 700; }
.branding-mini-dark[data-surface="plain"] .branding-mini-soft a { color: var(--paper); }
.branding-mini-app { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
.branding-mini-app h3 { flex-basis: 100%; margin: 0; font: 600 16px var(--font-display); }
.branding-mini-figure { padding: 10px 14px; background: var(--mini-main, var(--field)); color: var(--mini-on-main, var(--on-field)); font-weight: 700; font-size: 14px; }
.branding-mini-chip { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: var(--mini-accent, var(--field)); color: var(--mini-on-accent, var(--on-field)); font-weight: 700; font-size: 13px; }
/* Outside the header and plate the register button sits on the page ground, so it takes the field colour. */
.site-section .site-register { background: var(--field); color: var(--on-field); border-color: var(--field); }
/* X-Levels rewards (S13 part A): numbered rows of photo, name, description, details and order buttons. */
.row-current { background: var(--mist); }
.reward-rows { margin: 0; padding-left: 24px; display: flex; flex-direction: column; }
.reward-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) minmax(0, 2fr) auto; gap: 12px 16px; align-items: end; padding: var(--space-3) 0; border-bottom: 1px solid var(--line-soft); }
.reward-row .reward-thumb { width: 104px; height: 78px; object-fit: cover; }
.reward-move { display: flex; gap: 8px; }
.button-icon { min-width: 44px; padding: 0; }
.button-icon[disabled] { opacity: .4; cursor: default; }
.reward-details { grid-column: 2 / -1; }
.reward-details summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: 6px; text-decoration: underline; text-underline-offset: 3px; }
.reward-details summary::before { content: "▸"; font-size: 12px; } /* S24: reads as a disclosure, not a bare label */
.reward-details[open] summary::before { content: "▾"; }
.reward-details[open] { display: flex; flex-direction: column; gap: var(--space-3); }
@media (max-width: 760px) {
  .reward-row { grid-template-columns: 1fr; }
  .reward-details { grid-column: auto; }
}
/* W-Level and P-Rewards cards: photo above, never text on it; three across on desktop. */
.reward-cards { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.reward-cards img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--mist); }
.reward-cards h2, .reward-cards h3 { margin: 12px 0 4px; font: 700 20px/1.2 var(--font-display); }
.reward-cards p { margin: 0 0 8px; }
.reward-cards summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
/* Nights and people, and what's included as a list (customer feedback, 10 Nov 2026). */
.reward-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 8px; font: 600 14px var(--font-ui); }
.reward-facts span { display: inline-flex; align-items: center; gap: 6px; }
.reward-included { margin: 0 0 10px; padding-left: 20px; list-style: disc; }
.reward-included li { margin: 2px 0; }
.reward-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.reward-photos img { flex: 1 1 200px; max-width: 360px; }
.reward-photos-more { margin: 0 0 8px; }
.reward-photos-more img { flex-basis: 120px; max-width: 160px; }
/* Gallery level page: photos down both sides, the words in the middle; one column on a phone. */
.reward-gallery { grid-template-columns: 1fr; }
.reward-gallery > li { padding-bottom: 28px; border-bottom: 1px solid var(--line-soft); }
.reward-gallery .reward-sides { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.reward-side { display: flex; flex-direction: column; gap: 12px; }
.reward-sides h2 { margin-top: 0; }
@media (max-width: 699px) { .reward-gallery .reward-sides { grid-template-columns: 1fr; } .reward-side { flex-direction: row; flex-wrap: wrap; } .reward-side img { flex: 1 1 140px; } }
/* The admin's photo list and the nights/people pair. */
.reward-photo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.reward-photo-list li { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.reward-photo-list .reward-thumb { width: 104px; height: 78px; object-fit: cover; }
.reward-tile-photo { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 10px; }
.reward-tile-photo .hint { margin: 0; }
@media (max-width: 560px) { .reward-tile-photo { grid-template-columns: 104px minmax(0, 1fr); } }
.reward-facts-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 180px)); gap: 16px; }
.pre-line { white-space: pre-line; }
/* P-Rewards (S13 part A): standing box beside the heading, level tabs with target and relation, cards, how choosing works. */
.rewards-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-3); }
.rewards-standing { margin: 0; padding: 12px 16px; background: var(--mist); }
.rewards-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: var(--space-4) 0; }
.rewards-levels a { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border: 2px solid var(--line-control); border-radius: 8px; color: inherit; text-decoration: none; }
.rewards-levels a .figure { font-size: 13px; }
.rewards-levels a[aria-current="page"] { border-color: var(--ink); border-width: 3px; background: var(--mist); }
.rewards-level { border-top: 2px solid var(--ink); padding-top: var(--space-3); }
.rewards-how { margin-top: var(--space-8); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3); }
.rewards-how h2 { grid-column: 1 / -1; margin: 0; }
.rewards-how p { margin: 0; }
/* Reward claims (S13 part D): the history as a plain list. */
.claim-history { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
/* P-Choose (S13 part E): reward cards as native radios; the chosen card tinted with a 3px border, like R3's levels. */
.choose-main { max-width: 720px; }
.choose-options { border: 0; margin: 0 0 var(--space-4); padding: 0; display: flex; flex-direction: column; gap: 12px; }
.choose-option { display: grid; grid-template-columns: auto 120px 1fr; gap: 12px; align-items: center; padding: 12px; border: 2px solid var(--line-control); border-radius: 8px; cursor: pointer; }
.choose-option img { width: 120px; height: 90px; object-fit: cover; }
.choose-option:has(input:checked) { border: 3px solid var(--ink); background: var(--mist); }
.choose-option input { width: 22px; height: 22px; }
.choose-choice { margin-top: var(--space-6); border-top: 2px solid var(--ink); padding-top: var(--space-4); }
/* V2-AppChoose (S18 part C): pick from photo cards, then check and confirm. The radio stays real and visible; the card is its label. */
.choose-step { margin: 28px 0 0; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--ink-muted); }
.choose-grid { border: 0; margin: 0 0 var(--space-6); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.choose-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 2px solid var(--line-soft); border-radius: var(--radius-card); background: var(--paper); box-shadow: var(--shadow-card); cursor: pointer; }
.choose-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.choose-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.choose-card-body strong { font: 700 19px/1.25 var(--font-display); }
.choose-radio { position: absolute; top: 12px; left: 12px; width: 24px; height: 24px; margin: 0; accent-color: var(--ink); }
.choose-card:has(input:checked) { border: 3px solid var(--ink); box-shadow: 0 10px 28px rgba(0, 0, 0, .12); }
.choose-card:has(input:checked)::after { content: "Selected"; position: absolute; top: 10px; right: 10px; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 700; }
.choose-card:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.choose-instead { display: flex; flex-direction: column; gap: 4px; }
.choose-summary { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: var(--space-4); }
.choose-summary img, .choose-summary .reward-initial { width: 120px; height: 90px; aspect-ratio: auto; object-fit: cover; border-radius: 12px; font-size: 36px; }
.choose-summary h2 { margin: 0 0 4px; }
.choose-summary p { margin: 0 0 6px; }
.chosen-moment { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: var(--space-4) 0; padding: 24px; border-radius: var(--radius-card); background: var(--field); color: var(--on-field); }
.chosen-moment img { width: 96px; height: 96px; padding: 8px; border-radius: 999px; background: var(--paper); }
.chosen-moment h2 { margin: 0 0 4px; font: 800 36px/1 var(--font-display); color: var(--on-field); }
.chosen-moment p { margin: 0; font-size: 17px; }
@media (max-width: 560px) { .choose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .choose-card-body strong { font-size: 16px; } .choose-summary { grid-template-columns: 88px minmax(0, 1fr); } .choose-summary img, .choose-summary .reward-initial { width: 88px; height: 66px; } }
.rewards-standing-box { margin: var(--space-4) 0; }
.dash-rewards .reward-cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.dash-rewards .reward-cards > li { overflow: hidden; border-radius: var(--radius-card); background: var(--paper); box-shadow: var(--shadow-card); }
.dash-rewards .reward-cards h3 { margin: 0; padding: 16px 18px 18px; }
.reward-initial { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--mist); color: var(--ink-muted); font: 700 56px/1 var(--font-display); }
.dash-lock { vertical-align: -2px; margin-right: 4px; }
.dash-upgrade { border-radius: var(--radius-card); }
/* V2-Dashboard: the next step under the headline, and the levels as one journey on the field. */
.dash-next-step { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); margin-top: 28px; }
.dash-next-step p { margin: 0; max-width: 46ch; font-size: 18px; }
.dash-cta { min-height: 52px; padding: 0 26px; border-color: var(--paper); background: var(--paper); color: var(--logo-black); font-weight: 700; font-size: 17px; } /* text 17:1 whatever the client colour */
.dash-cta:hover { color: var(--logo-black); }
.dash-journey { margin-top: 40px; }
.dash-journey h2 { margin: 0 0 14px; font: 600 15px var(--font-ui); }
.dash-journey ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 18px 0; }
.dash-step { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 36px 14px 0 0; font-size: 14px; }
.dash-step::before { content: ""; position: absolute; top: 12px; left: 0; right: 0; height: 4px; background: color-mix(in srgb, var(--on-field) 32%, transparent); }
.dash-step-met::before { background: var(--on-field); }
/* Phones: the journey runs down the page so every level keeps its line. */
@media (max-width: 699px) {
  .dash-journey ol { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dash-step { padding: 2px 0 18px 40px; }
  .dash-step::before { top: 26px; bottom: 0; left: 10px; right: auto; width: 4px; height: auto; }
  .dash-step:last-child::before { display: none; }
  .dash-rewards .reward-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dash-rewards .reward-cards h3 { padding: 12px; font-size: 16px; }
  .reward-initial { font-size: 40px; }
}
.dash-node { position: absolute; top: 2px; left: 0; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; box-sizing: border-box; border: 3px solid var(--on-field); border-radius: 999px; background: var(--field); font-size: 13px; font-weight: 800; }
.dash-step-met .dash-node { background: var(--on-field); color: var(--field); }
.dash-step-yours .dash-node { box-shadow: 0 0 0 5px color-mix(in srgb, var(--on-field) 35%, transparent); }
.dash-step-name { font-weight: 600; font-size: 15px; }
.dash-step-yours .dash-step-name { font-weight: 800; }
@media (max-width: 560px) { .choose-option { grid-template-columns: auto 1fr; } .choose-option img { display: none; } }
/* X-SiteBuilder (S16 part C): template cards, section rows with ↑ ↓, the style selects. */
.site-templates { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.site-template-choice { align-items: flex-start; padding: 12px; border: 2px solid var(--line-soft); border-radius: var(--radius); }
.site-template-choice:has(input:checked) { border-color: var(--ink); background: var(--selected); }
.site-template-choice > span { display: flex; flex-direction: column; gap: 2px; }
.site-builder-form { display: flex; flex-direction: column; gap: var(--space-4); }
.site-builder-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 16px; }
.site-builder-bar .field { margin: 0; flex: 1 1 240px; max-width: 420px; }
.site-builder-bar .status-line { margin: 0; }
.site-builder-sections { list-style: none; margin: 0; padding: 0; }
.site-builder-sections li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 2px 8px 2px 4px; border-bottom: 1px solid var(--line-soft); }
.site-builder-sections li[aria-current] { background: var(--mist); box-shadow: inset 3px 0 0 var(--ink); }
.site-builder-sections li .error-message, .site-builder-sections li > .site-builder-note { grid-column: 1 / -1; margin: 0; }
.site-builder-sections li > .choice, .site-builder-sections li > .chip { margin: 0; }
.site-builder-move { display: flex; gap: 6px; align-items: center; }
.site-builder-pick { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 44px; width: 100%; padding: 4px 8px; border: 0; border-radius: var(--radius); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.site-builder-pick:hover { background: var(--mist); }
.site-builder-pick small { font-size: 13px; color: var(--ink-muted); }
.site-builder-sections li.is-dragging { opacity: .5; }
.site-builder-sections li[draggable="true"] { cursor: grab; }
.site-builder-handle { display: inline-grid; place-items: center; width: 20px; color: var(--ink-muted); }
.site-builder-inspectors:empty { display: none; }
.site-builder-inspector { display: flex; flex-direction: column; gap: var(--space-3); padding: 14px 16px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); }
.site-builder-inspector .section-head { margin: 0; }
.site-builder-inspector .section-head h3 { margin: 0; font: 600 18px/1.2 var(--font-display); }
.site-builder-inspector .field, .site-builder-item-row { margin: 0; }
.site-builder-item-row { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: var(--space-3); }
.site-builder-item-row legend { font-weight: 600; }
.site-builder-add-item > summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.site-builder-add-item > div { display: flex; flex-direction: column; gap: var(--space-3); padding-top: 8px; }
.site-builder-style { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; }
.site-builder-more > summary { min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; cursor: pointer; }
.site-builder-more > summary h2 { display: inline; font-size: 18px; }
.site-builder-more > summary .hint { margin: 0; }
.site-builder-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.site-builder-pics label.site-builder-pic { position: relative; display: grid; gap: 4px; margin: 0; font-size: 13px; font-weight: 400; text-align: center; cursor: pointer; }
.site-builder-pic input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; }
.site-builder-pic img, .site-builder-pic-none { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; box-sizing: border-box; border: 2px solid var(--line-soft); border-radius: 4px; }
.site-builder-pic-none { display: grid; place-items: center; color: var(--ink-muted); background: var(--mist); }
.site-builder-pic input:checked ~ img, .site-builder-pic input:checked ~ .site-builder-pic-none { border-color: var(--ink); box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.site-builder-pic input:focus-visible ~ img, .site-builder-pic input:focus-visible ~ .site-builder-pic-none { outline: 3px solid var(--ink); outline-offset: 2px; }
.site-builder-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.site-builder-photo img { width: 96px; height: 72px; object-fit: cover; border-radius: 4px; }
.site-builder-photo img.site-builder-deco { width: 64px; height: 64px; object-fit: contain; background: var(--ink); }
.site-builder-add { margin-top: var(--space-3); }
.site-builder-add h3 { margin: 0; font: 600 16px var(--font-display); }
.site-builder-note { margin: 0; padding: 10px 12px; background: var(--behind-bg); color: var(--ink); border-radius: var(--radius); font-size: 14px; }
.site-builder-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-items: start; }
@media (min-width: 1100px) { .site-builder-layout { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); } .site-builder-preview { position: sticky; top: var(--space-4); } }
.site-builder-forms { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.site-builder-widths { display: flex; flex-wrap: wrap; gap: 6px; }
.site-builder-widths .button { min-height: 40px; padding: 0 14px; font-size: 14px; }
.site-builder-widths .button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.site-builder-frame { padding: 12px; background: var(--mist); border-radius: var(--radius); overflow: auto; }
.site-builder-no-preview { display: grid; align-content: center; gap: 12px; min-height: 240px; padding: 24px; }

.site-builder-frame iframe { display: block; margin: 0 auto; width: 100%; max-width: 100%; height: 75vh; min-height: 480px; border: 1px solid var(--line-control); background: var(--paper); }
/* True to scale (editor plan, phase 0): the script sizes the frame to the device and scales it into this box. */
.site-builder-scale.is-scaled { margin: 0 auto; overflow: hidden; }
.site-builder-scale.is-scaled iframe { margin: 0; transform-origin: 0 0; }
.site-builder-frame:has(.is-scaled) { overflow: hidden; }
.site-builder-preview .section-head { flex-wrap: wrap; }
.site-builder-zoom { flex-basis: 100%; margin: 0; text-align: right; font-size: 13px; }
/* A layout's select takes the whole row, so its longest name reads in full. */
.site-builder-style > .field:first-child { grid-column: 1 / -1; }
/* Width means nothing where the layout always runs edge to edge: the cover, tinted and logo heroes, and the levels band. */
#block-hero .site-builder-style:has(#variant-hero option:is([value="cover"], [value="tinted"], [value="logo"]):checked) [data-width-field],
#block-levels .site-builder-style:has(#variant-levels option[value="band"]:checked) [data-width-field] { display: none; }
.swatch { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; border: 1px solid var(--line-control); }
.branding-images img.branding-on-colour { background: var(--ink); }
/* S20 (ADR-031; V4-Hero). Cover heroes: the photo (or video) fills the hero and the words sit on a scrim, a solid-enough band that
   contrast is measured against the scrim, never the picture. Dark scrim at 60% over a white photo is #666 behind white text (5.7:1);
   the tint is the brand colour at 88%, so its computed text colour holds. */
.site-hero { position: relative; }
.site-hero-wrap { padding-bottom: 0; }
.site-hero-wrap + .site-main { padding-top: 0; }
.site-hero-cover, .site-hero-tinted { grid-template-columns: 1fr !important; min-height: clamp(420px, 60vh, 640px); margin: 0 auto 8px; border-radius: 0; overflow: hidden; isolation: isolate; }
.site-hero-quiet .site-dates, .site-hero-quiet .site-window, .site-hero-quiet .site-cta .button-on-field { display: none; }
/* The cover, tinted and logo heroes run edge to edge, as the observed sites' do; the wrap drops the page's width and gutter for them. */
.site-hero-wrap > .site-hero-cover, .site-hero-wrap > .site-hero-tinted, .site-hero-wrap > .site-hero-logo, .site-hero-wrap > .site-bleed-edge, .site-hero-wrap > .site-bleed-band { max-width: none; padding-left: 0; padding-right: 0; }
.site-hero-wrap > .site-hero-cover .site-plate, .site-hero-wrap > .site-hero-tinted .site-plate { padding-left: var(--gutter); padding-right: var(--gutter); }
.site-hero-logo { margin: 0 auto 8px; }
.site-hero-logo .site-plate { border-radius: 0 !important; }
.site-hero-media { position: absolute; inset: 0; z-index: -1; }
.site-hero-media img, .site-hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The plate is the scrim: the words' own background, stretched over the whole picture, so contrast is measured against it. */
.site-hero-cover .site-plate, .site-hero-tinted .site-plate { background-color: rgba(26, 26, 26, .6); color: #FFFFFF; align-items: center; text-align: center; justify-content: center; padding: 56px var(--gutter); min-height: inherit; max-width: none; margin: 0; border-radius: 0 !important; }
.site-hero-cover .site-plate > *, .site-hero-tinted .site-plate > * { max-width: 56rem; }
.site-hero-tinted .site-plate { background-color: var(--field-scrim); color: var(--on-field); }
.site-hero-cover .site-plate h1, .site-hero-tinted .site-plate h1 { font-size: clamp(34px, 6vw, 64px); }
.site-hero-cover .site-cta, .site-hero-tinted .site-cta { justify-content: center; }
.site-hero-cover .button-on-field, .site-hero-cover .site-register { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.site-hero-cover .site-register { background: #FFFFFF; color: #1A1A1A; }
.site-buttons-outline .site-hero-cover .site-register { background: transparent; color: #FFFFFF; border-color: #FFFFFF; } /* the outline style reaches the cover hero too (13 Nov 2026) */
/* Buttons in the accent (13 Nov 2026): the header's buttons and every register button take the accent, so they can differ from the field.
   The header's buttons stay solid even with the outline style, as the Marley mockup has black buttons over an outline hero button. */
.site-buttons-accent .site-register, .site-buttons-accent .site-section .site-register, .site-buttons-accent .site-block-action,
.site-buttons-accent .site-head .site-actions .button-on-field, .site-buttons-accent .site-head .site-actions .site-register, .site-buttons-accent.site-head-rule .site-actions .site-register, .site-buttons-accent.site-head-plain .site-actions .site-register,
.site-buttons-accent .site-head-rule .site-actions .button-on-field, .site-buttons-accent .site-head-rule .site-actions .site-register, .site-buttons-accent .site-head-plain .site-actions .button-on-field, .site-buttons-accent .site-head-plain .site-actions .site-register,
.site-buttons-accent.site-buttons-outline .site-head .site-actions .site-register { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.site-buttons-accent.site-buttons-outline .site-hero .site-register, .site-buttons-accent.site-buttons-outline .site-section .site-register { background: transparent; color: var(--accent); border-color: var(--accent); }
.site-buttons-accent.site-buttons-outline .site-hero-cover .site-register { color: #FFFFFF; border-color: #FFFFFF; }
.site-hero-tinted .button-on-field { background: transparent; color: inherit; border-color: currentColor; }
.site-hero-tinted .site-register { background: var(--on-field); color: var(--field); border-color: var(--on-field); }
.site-media-toggle { position: absolute; right: 12px; bottom: 12px; z-index: 1; min-height: 44px; min-width: 44px; padding: 0 12px; border: 2px solid #FFFFFF; border-radius: 999px; background: rgba(26, 26, 26, .7); color: #FFFFFF; font: 600 14px var(--font-ui); cursor: pointer; }
/* The logo as the hero (SuperPerks): the colour block with the logo for colour where the headline goes. */
.site-hero-logo .site-plate { background: var(--field); color: var(--on-field); padding: 56px 32px; text-align: center; align-items: center; min-height: 360px; justify-content: center; }
.site-hero-logo-mark { margin: 0; }
.site-hero-logo-mark img { display: block; width: min(70%, 640px); max-height: 220px; object-fit: contain; margin: 0 auto; }
.site-hero-logo .button-on-field { background: transparent; color: inherit; border-color: currentColor; }
.site-hero-logo .site-register { background: var(--on-field); color: var(--field); border-color: var(--on-field); }
/* Decorations: in the corners, behind nothing that reads. */
.site-deco { position: absolute; z-index: 2; width: clamp(72px, 16%, 220px); height: auto; pointer-events: none; }
.site-deco-topLeft { top: 16px; left: 16px; } .site-deco-topRight { top: 16px; right: 16px; } .site-deco-bottomLeft { bottom: 16px; left: 16px; } .site-deco-bottomRight { bottom: 16px; right: 16px; }
/* A large graphic on the hero's edge (the Marley ident, 13 Nov 2026): about a third of the width, running off the bottom; the hero clips it. */
.site-deco-large { width: clamp(160px, 34%, 480px); }
.site-deco-left { top: 10%; left: 2%; } .site-deco-right { top: 10%; right: 2%; }
.site-hero { overflow: hidden; }
.site-hero .site-plate { position: relative; z-index: 1; }
.site-scroll { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 1; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: inherit; background: rgba(26, 26, 26, .35); }
.site-hero-cover .site-scroll, .site-hero-tinted .site-scroll { color: #FFFFFF; }
.site-hero-tinted .site-scroll { color: var(--on-field); }
/* Header options: below the hero, or the menu in capitals. The Rewards menu lists every level. */
.site-nav-upper .site-nav a, .site-nav-upper .site-nav summary { text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.site-menu { position: relative; }
.site-menu summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary::after { content: "▾"; font-size: 12px; }
.site-menu summary[aria-current="page"] { font-weight: 700; }
.site-menu ul { list-style: none; margin: 4px 0 0; padding: 8px 0; display: flex; flex-direction: column; min-width: 180px; background: var(--paper); color: var(--ink); border: 1px solid var(--line-soft); border-radius: var(--site-radius); box-shadow: var(--shadow-card); }
.site-menu ul a { display: block; padding: 8px 14px; color: var(--ink) !important; }
@media (min-width: 701px) { .site-menu ul { position: absolute; left: 0; top: 100%; z-index: 5; } }
/* Editor phase 2 sections (ADR-038, V13-Sections). Banner: words on a photo behind the dark scrim (ADR-031), or on a colour band. */
.site-block-banner { position: relative; display: grid; isolation: isolate; overflow: hidden; padding: 0 !important; color: #FFFFFF; background: var(--field); }
.site-main > .site-block-banner > .site-banner-words { max-width: none; margin: 0; padding: var(--site-pad, 48px) var(--gutter); }
.site-block-banner .site-banner-media { position: absolute; inset: 0; z-index: -1; }
.site-block-banner .site-banner-media img { width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; }
.site-block-banner .site-banner-words { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 260px; padding: var(--site-pad, 48px) var(--gutter); text-align: center; background: rgba(26, 26, 26, .6); max-width: none !important; }
.site-block-banner .site-banner-words h2 { margin: 0; font-size: clamp(26px, 4vw, 40px); color: inherit; }
.site-block-banner .site-banner-words p { margin: 0; max-width: 60ch; }
.site-block-banner-band { color: var(--on-field); }
.site-block-banner-band .site-banner-words { background: var(--field); min-height: 0; }
.site-block-banner.site-tone-accent .site-banner-words { background: var(--accent, var(--field)); color: var(--on-accent, var(--on-field)); }
.site-block-banner.site-tone-dark .site-banner-words { background: #1A1A1A; color: #FFFFFF; }
.site-block-banner-cover .site-banner-words { background: rgba(26, 26, 26, .6) !important; color: #FFFFFF !important; }
.site-block-banner .site-block-action { background: transparent; color: inherit; border-color: currentColor; }
/* Stats: the figure large, what it counts beneath. */
.site-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--site-card-gap, 16px); margin: 16px 0 0; }
.site-stats > div { display: flex; flex-direction: column; gap: 4px; }
.site-stats dd { margin: 0; font: 700 clamp(30px, 5vw, 48px)/1.05 var(--font-display); color: var(--field-text, var(--ink)); }
.site-stats dt { font-size: 15px; }
:is(.site-tone-field, .site-tone-accent, .site-tone-dark) .site-stats dd { color: inherit; }
.site-block-stats-cards .site-stats > div { padding: 18px; border: 1px solid var(--line-soft); border-radius: var(--site-radius); background: var(--paper); color: var(--ink); }
.site-block-stats-cards .site-stats dd { color: var(--field-text, var(--ink)); }
.site-align-centre .site-stats > div { align-items: center; text-align: center; }
/* Logo strip: each logo on its own white plate, as the header's, so any logo reads on any background. */
.site-logos { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--site-card-gap, 16px); }
.site-logos li { display: flex; align-items: center; justify-content: center; flex: 1 1 120px; max-width: 200px; height: 72px; padding: 10px 14px; background: #FFFFFF; border-radius: var(--site-radius); }
.site-logos img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 0 !important; }
.site-block-logos-grid .site-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.site-block-logos-grid .site-logos li { max-width: none; }
.site-align-centre .site-logos { justify-content: center; }
/* Rewards showcase: photo cards from the catalogue, each opening the reward's page. */
.site-showcase { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--site-card-gap, 16px); }
.site-showcase li { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--site-radius); background: var(--paper); color: var(--ink); text-align: left; }
.site-showcase img, .site-showcase .site-level-tile { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.site-showcase .site-dates { margin: 12px 14px 0; font-size: 12px; color: var(--ink-muted); }
.site-showcase h3 { margin: 2px 14px 14px; font: 700 17px/1.25 var(--font-display); }
.site-showcase h3 a { color: inherit; text-decoration: none; }
.site-showcase h3 a::after { content: ""; position: absolute; inset: 0; }
.site-showcase li:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (max-width: 560px) {
  .site-stats { grid-template-columns: 1fr 1fr; }
  .site-showcase { grid-template-columns: 1fr 1fr; gap: 10px; }
  .site-showcase h3 { font-size: 15px; margin: 2px 10px 10px; }
  .site-showcase .site-dates { margin: 10px 10px 0; }
}
/* Spacer: room between rows, by size. */
.site-block-spacer { margin: 0 !important; padding: 0 !important; height: 56px; background: transparent !important; }
.site-block-spacer-small { height: 24px; }
.site-block-spacer-large { height: 96px; }
/* The levels band (13 Nov 2026): the headline, its line and the arrow on the field colour, edge to edge, the photo tiles below with small captions. */
.site-levels-band { padding: 0; }
.site-levels-band-head { position: relative; padding: 48px var(--gutter) 64px; background: var(--field); color: var(--on-field); text-align: center; }
.site-levels-band-head h2 { margin: 0 0 12px; font-size: clamp(30px, 4.5vw, 48px); font-weight: 400; color: inherit; }
.site-levels-band-head p { margin: 0 auto; max-width: 60ch; }
.site-levels-band-head .site-scroll { bottom: 8px; background: transparent; color: inherit; }
.site-main > .site-levels-band > .site-levels-band-head { max-width: none; padding-left: var(--gutter); padding-right: var(--gutter); }
.site-levels-band .site-levels-photos { margin: 0; gap: 8px; }
.site-levels-band .site-levels-photos li { border-radius: 0; aspect-ratio: 4 / 7; }
.site-levels-band .site-levels-photos h3 { background: rgba(26, 26, 26, .55); color: #FFFFFF; font-size: 15px; }
/* The tiles level page and the reward page (13 Nov 2026). */
.site-level-band { margin: 0; padding: 40px var(--gutter) 32px; background: var(--field); color: var(--on-field); text-align: center; }
.site-level-band h1 { margin: 0; font-size: clamp(30px, 4.5vw, 48px); font-weight: 400; color: inherit; }
.site-level-band p { margin: 8px auto 0; max-width: 60ch; }
/* The level switcher inside the band (14 Nov 2026): small outline pills on the field, the current one solid. */
.site-level-tabs-band { justify-content: center; margin: 20px 0 0; gap: 6px; }
.site-level-tabs-band a { padding: 6px 12px; border-color: currentColor; color: inherit; font-size: 14px; min-height: 36px; display: inline-flex; align-items: center; opacity: .85; }
.site-level-tabs-band a:hover, .site-level-tabs-band a:focus-visible { opacity: 1; }
.site-level-tabs-band a[aria-current="page"] { background: var(--on-field); color: var(--field); border-color: var(--on-field); opacity: 1; }
.site-main > .site-level-band { max-width: none; }
.site-levels-photos.site-reward-tiles { margin: 0 !important; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.site-main > .site-bleed-edge.site-reward-tiles > li { padding: 0; max-width: none; aspect-ratio: 2 / 3; border-radius: 0; }
.site-levels-photos.site-reward-tiles h3 { background: rgba(26, 26, 26, .55); color: #FFFFFF; font-size: 15px; }
@media (max-width: 500px) { .site-levels-photos.site-reward-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } } /* ten rewards is five rows, not ten screens */
.site-main > .site-reward-hero { margin-top: 0; }
.site-main > .site-reward-hero > * { max-width: none; padding-left: 0; padding-right: 0; }
.site-main > .site-reward-hero > .site-plate { padding: 56px var(--gutter); }
.site-reward-hero .site-plate h1 { font-weight: 400; }
.site-reward-band { margin: 0; padding: 40px var(--gutter); background: var(--field); color: var(--on-field); text-align: center; }
.site-main > .site-reward-band { max-width: none; }
.site-reward-band p { margin: 0 auto 12px; max-width: 60ch; }
.site-reward-band .reward-facts { justify-content: center; font-size: 16px; margin: 0; }
.site-reward-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; margin-top: 0 !important; padding: 0 !important; max-width: none !important; align-items: start; }
.site-reward-detail > div { padding: 48px var(--gutter); max-width: 560px; justify-self: end; width: 100%; box-sizing: border-box; }
.site-reward-detail img { display: block; width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.site-reward-detail h2 { font-size: 18px; margin: 0 0 8px; }
.site-reward-detail .reward-included { list-style: none; padding: 0; }
.site-reward-detail .reward-footnote { font-size: 14px; font-style: italic; }
@media (max-width: 760px) { .site-reward-detail { grid-template-columns: 1fr; } .site-reward-detail img { min-height: 260px; } .site-reward-detail > div { justify-self: stretch; max-width: none; } }
/* Photo tiles: five across, square, the level's name on a band. */
.site-levels-photos { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.site-levels-photos li { position: relative; padding: 0; border: 0; border-radius: var(--site-radius); overflow: hidden; aspect-ratio: 1; display: grid; }
.site-levels-photos img, .site-levels-photos .site-level-tile { grid-area: 1 / 1; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; margin: 0; }
.site-levels-photos h3 { grid-area: 1 / 1; align-self: end; margin: 0; padding: 8px 12px; background: var(--field); color: var(--on-field); font-size: 16px; }
.site-levels-photos p { display: none; }
.site-levels-photos a { grid-area: 1 / 1; z-index: 1; color: transparent; font-size: 0; }
.site-levels-photos a:focus-visible { outline: 3px solid #FFFFFF; outline-offset: -3px; }
@media (max-width: 900px) { .site-levels-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 500px) { .site-levels-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* More than five levels (a programme may have ten): rows that balance, not five and a remainder. Six sit three and three, seven
   and eight four across, nine and ten five across; the band's tall tiles shorten as they widen, so the band doesn't double in height. */
@media (min-width: 501px) {
  .site-levels-photos:not(.site-reward-tiles):has(> li:nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-levels-photos:not(.site-reward-tiles):has(> li:nth-child(7)):not(:has(> li:nth-child(9))) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-levels-band .site-levels-photos:has(> li:nth-child(6):last-child) li { aspect-ratio: 1; }
  .site-levels-band .site-levels-photos:has(> li:nth-child(7)):not(:has(> li:nth-child(9))) li { aspect-ratio: 4 / 5; }
}
@media (min-width: 501px) and (max-width: 900px) {
  .site-levels-photos:not(.site-reward-tiles):has(> li:nth-child(10)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* Two across on a phone: an odd one out takes the full width instead of leaving a gap beside it. */
@media (max-width: 500px) {
  .site-levels-photos:not(.site-reward-tiles) > li:last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: 2 / 1; }
  .site-levels-band .site-levels-photos > li:last-child:nth-child(odd) { aspect-ratio: 8 / 7; }
}
/* Level page: one reward after another. */
.reward-stacked { grid-template-columns: 1fr; max-width: 760px; }
.reward-stacked > li { padding-bottom: 24px; border-bottom: 1px solid var(--line-soft); }
.site-page-head { margin-top: 32px; }
.site-page-head h1 { font: 700 clamp(28px, 4vw, 40px)/1.1 var(--font-display); margin: 0 0 8px; }
@media (max-width: 700px) {
  .site-deco { width: clamp(48px, 14%, 90px); }
  .site-hero-cover .site-plate h1, .site-hero-tinted .site-plate h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .site-hero-media video { display: none; } }
/* The builder's App preview (S21, ADR-032): the app's Home opening and Programme tab, drawn from the draft with the brochure's styles. */
.site-app .site-app-screen { padding: 0 0 32px; }
.site-app .site-app-screen > * { max-width: none; padding-left: 0; padding-right: 0; }
.site-app-note { margin: 0; padding: 6px 12px; font-size: 12px; background: var(--mist); color: var(--ink-muted); text-align: center; }
.site-app-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--field); color: var(--on-field); font: 700 17px var(--font-display); }
.site-app-hero { position: relative; min-height: 200px; display: flex; align-items: flex-end; overflow: hidden; }
.site-app-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.site-app-scrim { position: relative; width: 100%; padding: 20px; background-color: rgba(26, 26, 26, .6); color: #FFFFFF; min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end; }
.site-app-hero-tinted .site-app-scrim { background-color: var(--field-scrim); color: var(--on-field); }
.site-app-scrim h1, .site-app-hero-logo h1 { margin: 0 0 4px; font: 700 28px/1.1 var(--font-display); }
.site-app-scrim p, .site-app-hero-logo p { margin: 0; font-size: 14px; }
.site-app-hero-logo { background: var(--field); color: var(--on-field); padding: 28px 24px; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.site-app-hero-logo img { position: static; max-height: 72px; max-width: 70%; width: auto; height: auto; }
.site-app-band { padding: 18px 20px 60px; background: var(--field); color: var(--on-field); }
.site-app-band p { margin: 0; }
.site-app-figure { font: 700 24px/1.2 var(--font-display); margin-bottom: 8px !important; }
.site-app-card { margin: -48px 16px 0; padding: 16px; background: var(--paper); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-card); position: relative; }
.site-app-card p { margin: 0 0 4px; }
.site-app-tabs { display: flex; justify-content: space-around; padding: 10px 0 14px; margin: 16px 0 0; border-top: 1px solid var(--line-soft); font-size: 11px; font-weight: 600; color: var(--ink-muted); }
.site-app-tabs [aria-current] { color: var(--ink); }
.site-app-tab-title { margin: 20px 16px 8px; font: 700 20px var(--font-display); }
.site-app-opens { font: 400 12px var(--font-ui); color: var(--ink-muted); margin-left: 6px; }
.site-app .site-block { margin: 12px 16px; padding: 14px; border-radius: var(--site-radius); max-width: none; }
.site-app .site-block.site-bleed-band, .site-app .site-block.site-bleed-edge { margin-left: 0; margin-right: 0; border-radius: 0; }
.site-app .site-steps { margin: 0 16px; }

/* Organisation page as V7-Organisation draws it (S25, D69): levels as a chain and one field each, add links on tree rows, disclosures for move and deactivate. */
.org-step { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6); }
/* S27 (V8-OrganisationTree): levels as one strip above the tree, forms inline under the rows they belong to. */
.levels-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 40px; font-size: 14px; }
.levels-strip .subtle-label { margin: 0; }
.levels-strip .levels-name { font-weight: 600; color: var(--ink); min-height: 32px; display: inline-flex; align-items: center; }
.levels-strip .levels-sep { color: var(--ink-muted); }
.level-edit { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 10px 14px; border: 1px solid var(--line-soft); background: var(--mist); }
.level-edit .field { flex: 1 1 200px; margin: 0; }
.level-edit .quiet { flex: 1 1 100%; font-size: 13px; }
.node-panel { display: flex; flex-direction: column; gap: var(--space-3); max-width: 640px; margin: 6px 0 12px 10px; }
.node-panel h3 .quiet { font: 400 13px var(--font-figure); }
.tree-foot { margin: 6px 0 0; min-height: 32px; padding: 4px 8px; border-radius: var(--radius); }
/* S28 (V9-OrganisationTreeControl): drag, rename and collapse, shown only once org-tree.js runs. */
.tree-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.button-small { min-height: 32px; padding: 0 12px; font-size: 13px; }
.tree-status { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ok-fg); }
.tree li[draggable="true"] > .node { cursor: grab; }
.tree li.is-dragging > .node { opacity: .5; }
.tree .node.drop, .tree-foot.drop { outline: 2px dashed var(--teal-text); outline-offset: -2px; background: var(--selected); }
.grip { width: 14px; height: 20px; display: inline-flex; flex-direction: column; justify-content: center; gap: 3px; color: var(--ink-muted); flex: 0 0 auto; }
.grip i { display: block; height: 2px; background: currentColor; border-radius: 1px; }
.tog { width: 28px; height: 28px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-muted); cursor: pointer; border-radius: var(--radius); flex: 0 0 auto; transition: transform .15s; }
.tog:hover { background: var(--mist); color: var(--ink); }
.node-off { width: 28px; height: 28px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--teal-text); cursor: pointer; border-radius: var(--radius); flex: 0 0 auto; }
.node-off:hover:not(:disabled) { background: var(--mist); color: var(--ink); }
.node-off:disabled { color: var(--line-control); cursor: not-allowed; }
.node .code { text-decoration: none; }
.node a.code:hover { text-decoration: underline; }
/* Rows show the add link as an icon once the script runs; the foot's "+ Board at the top" keeps its words, on one line. */
.js .node > .node-add .add-text { display: none; }
.node-add .add-icon { display: none; }
.js .node > .node-add { width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.js .node > .node-add .add-icon { display: inline; }
.tree-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.tree-foot .node-add { white-space: nowrap; }
.tree-find { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.tree-find input { min-height: 32px; border: 2px solid var(--line-control); border-radius: var(--radius); padding: 0 8px; font: 13px var(--font-ui); width: 180px; }
.tree-keys { flex: 1 1 100%; }
.tree-keys kbd { display: inline-block; padding: 0 5px; border: 1px solid var(--line-control); border-radius: 4px; font: 12px var(--font-figure); color: var(--ink); }
.node .node-edit { min-height: 32px; border: 2px solid var(--ink); border-radius: var(--radius); padding: 0 8px; font: 600 14px var(--font-ui); color: var(--ink); min-width: 160px; }
.disclosure { border: 1px solid var(--line-soft); }
.disclosure > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 48px; padding: 8px 18px; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::before { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); flex: 0 0 auto; }
.disclosure[open] > summary::before { transform: rotate(45deg); }
.disclosure > summary .disclosure-title { font-weight: 700; font-size: 14px; }
.disclosure > summary .quiet { margin-left: auto; font-size: 13px; }
.disclosure > .form { padding: 0 18px 18px; }
.node { min-height: 44px; }
.node.selected { background: var(--selected); box-shadow: inset 3px 0 0 var(--ink); }
.node a { font-weight: 600; color: var(--ink); text-decoration: none; }
.node a:hover { text-decoration: underline; }
.node .count { white-space: nowrap; }
.node .node-add { margin-left: 0; font-weight: 400; color: var(--teal-text); white-space: nowrap; padding: 4px 8px; border-radius: var(--radius); }
.node .node-add:hover { background: var(--paper); text-decoration: underline; }
.field-row { display: flex; flex-wrap: wrap; gap: 12px; }
.field-row .field { flex: 1 1 140px; margin: 0; }
.admin-main .box h3 { font: 700 14px/1.3 var(--font-ui); }
.admin-nav .menu-action { color: var(--teal-text); }
@media (max-width: 600px) {
  .node { flex-wrap: wrap; gap: 4px 8px; padding: 6px 8px; }
  .node .level { flex: 0 0 100%; min-width: 0; line-height: 1; }
  .disclosure > summary .quiet { flex: 0 0 100%; margin-left: 0; padding-left: 19px; }
}

/* The brochure editor (S32, ADR-038; V12-Editor, V12-EditorStates): the whole window. A charcoal bar in the XSEM brand (ADR-034), a
   rail of panels, the draft brochure as the canvas, and an inspector. Selection is teal. Below 1000px the form stands in. */
.ed { height: 100dvh; min-height: 560px; display: flex; flex-direction: column; background: var(--mist); color: var(--ink); font: 14px/1.45 var(--font-ui); }
.ed :focus-visible { outline: 3px solid var(--teal-text); outline-offset: 2px; }
.ed h2 { margin: 0; font: 600 15px/1.2 var(--font-display); }
.ed p { max-width: none; margin: 0; }
.ed-bar { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px 16px; background: var(--brand-charcoal); color: #FFFFFF; }
.ed-bar :focus-visible { outline-color: #FFFFFF; }
.ed-bar-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.ed-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ed-title strong { font: 600 14px/1.2 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.ed-bar-group > img { display: none; }
@media (min-width: 1500px) { .ed-bar-group > img { display: block; } }
.ed-title span { font-size: 12px; color: var(--brand-on-charcoal-muted); }
.ed-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 2px solid #FFFFFF; border-radius: 999px; background: transparent; color: #FFFFFF; font: 600 13px/1 var(--font-ui); text-decoration: none; white-space: nowrap; cursor: pointer; }
.ed-btn:hover { background: rgba(255, 255, 255, .14); color: #FFFFFF; }
.ed-btn.ed-solid { background: #FFFFFF; color: var(--brand-charcoal); }
.ed-btn.ed-icon { min-width: 44px; min-height: 44px; padding: 0; justify-content: center; border-color: transparent; }
.ed-btn[disabled] { opacity: .45; cursor: default; }
.ed-page { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.ed-page select { min-height: 36px; padding: 0 12px; border: 2px solid #FFFFFF; border-radius: 999px; background: var(--brand-charcoal); color: #FFFFFF; font: 600 13px var(--font-ui); }
.ed-seg { display: inline-flex; flex-wrap: wrap; border: 2px solid #FFFFFF; border-radius: 999px; overflow: hidden; }
.ed-seg button { min-height: 36px; padding: 0 12px; border: 0; background: transparent; color: #FFFFFF; font: 600 13px var(--font-ui); cursor: pointer; }
.ed-seg button[aria-pressed="true"] { background: #FFFFFF; color: var(--brand-charcoal); }
.ed-seg.ed-seg-ink { border-color: var(--ink); border-radius: 10px; }
.ed-seg.ed-seg-ink button { color: var(--ink); flex: 1 1 auto; }
.ed-seg.ed-seg-ink button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.ed-zoom { font-size: 12px; color: var(--brand-on-charcoal-muted); }
.ed-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 76px 264px minmax(0, 1fr) 312px; }
.ed-rail { display: flex; flex-direction: column; gap: 4px; padding: 10px 6px; background: var(--paper); border-right: 1px solid var(--line-soft); }
.ed-rail button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 64px; min-height: 60px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: 600 11px var(--font-ui); cursor: pointer; }
.ed-rail button:hover { background: var(--mist); }
.ed-rail button[aria-pressed="true"] { background: var(--brand-charcoal); color: #FFFFFF; }
.ed-panel, .ed-inspector { min-height: 0; overflow-y: auto; background: var(--paper); }
.ed-panel { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; border-right: 1px solid var(--line-soft); }
.ed-panel h2:not(:first-child) { margin-top: 10px; }
.ed-inspector { border-left: 1px solid var(--line-soft); }
.ed-pad { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; }
.ed-fields { gap: 14px; }
.ed-note, .ed-hint { font-size: 12px; font-weight: 400; color: var(--ink-muted); }
.ed-tabs { display: flex; border-bottom: 1px solid var(--line-soft); }
.ed-tabs button { flex: 1; min-height: 44px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--ink-muted); font: 600 14px var(--font-ui); cursor: pointer; }
.ed-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.ed-f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.ed-f input[type="text"], .ed-f textarea, .ed-f select { width: 100%; min-height: 40px; padding: 6px 10px; border: 2px solid var(--line-control); border-radius: 8px; background: var(--paper); color: var(--ink); font: 500 14px/1.45 var(--font-ui); }
.ed-f textarea { resize: vertical; }
.ed-group { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 10px; border: 1px solid var(--line-soft); border-radius: 8px; min-width: 0; }
.ed-group legend { margin: 0; padding: 0 4px; font-size: 12px; }
.ed-check { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 13px; }
.ed-check input { width: 18px; height: 18px; margin: 0; }
.ed-btn2 { align-self: flex-start; min-height: 36px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 13px var(--font-ui); cursor: pointer; }
.ed-link { align-self: flex-start; min-height: 32px; padding: 0; border: 0; background: transparent; color: var(--teal-text); font: 600 13px var(--font-ui); text-decoration: underline; cursor: pointer; }
.ed-lays { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ed-lays button { min-height: 44px; padding: 6px 8px; border: 2px solid var(--line-soft); border-radius: 10px; background: var(--paper); color: var(--ink); font: 600 12px/1.25 var(--font-ui); text-align: left; cursor: pointer; }
.ed-lays button[aria-pressed="true"] { border-color: var(--ink); background: var(--mist); }
.ed-pics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ed-pics button { padding: 0; border: 2px solid transparent; border-radius: 6px; background: var(--mist); cursor: pointer; overflow: hidden; }
.ed-pics button[aria-pressed="true"] { border-color: var(--ink); }
.ed-pics img, .ed-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ed-upload { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; border: 2px dashed var(--line-control); border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; }
.ed-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ed-upload:focus-within { outline: 3px solid var(--teal-text); outline-offset: 2px; }
.ed-upload-wide { min-height: 48px; font-size: 13px; }
.ed-media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ed-media img { border-radius: 6px; background: var(--mist); }
.ed-pg, .ed-ol { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; padding: 0 10px; border: 2px solid transparent; border-radius: 8px; background: transparent; color: var(--ink); font: 500 14px var(--font-ui); text-align: left; cursor: pointer; }
.ed-pg:hover, .ed-ol:hover { background: var(--mist); }
.ed-pg[aria-current="page"] { background: var(--mist); font-weight: 700; box-shadow: inset 3px 0 0 var(--ink); }
.ed-pg small, .ed-ol small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-muted); }
.ed-ol { font-size: 13px; }
.ed-ol[data-on="true"] { border-color: var(--teal-text); background: var(--selected); }
.ed-ol[draggable="true"] { cursor: grab; }
.ed-ol[data-drop="before"] { box-shadow: 0 -3px 0 var(--teal-text); }
.ed-ol[data-drop="after"] { box-shadow: 0 3px 0 var(--teal-text); }
.ed-state { font-size: 11px; color: var(--ink-muted); white-space: nowrap; }
.ed-thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ed-th { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--paper); color: var(--ink); font: 600 12px var(--font-ui); text-align: left; cursor: pointer; }
.ed-th:hover { border-color: var(--ink); }
.ed-th span { display: grid; gap: 3px; height: 52px; padding: 6px; background: var(--mist); border-radius: 6px; }
.ed-th i { background: #BDBDBD; border-radius: 3px; }
main.ed-canvas { max-width: none; margin: 0; padding: 20px; min-width: 0; min-height: 0; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; }
.ed-stage { position: relative; box-shadow: 0 2px 16px rgba(26, 26, 26, .18); background: var(--paper); }
.ed-scale { overflow: hidden; }
.ed-scale iframe { display: block; border: 0; transform-origin: 0 0; background: var(--paper); }
.ed-overlay { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ed-hover, .ed-sel { position: absolute; box-sizing: border-box; }
.ed-hover { outline: 2px solid rgba(12, 117, 117, .55); outline-offset: -2px; }
.ed-sel { outline: 3px solid var(--teal-text); outline-offset: -3px; }
.ed-tag { position: absolute; left: 8px; top: calc(var(--pin, 0px) + 8px); max-width: 55%; padding: 4px 10px; border-radius: 6px; background: var(--teal-text); color: #FFFFFF; font: 600 12px/1.3 var(--font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-tools { position: absolute; right: 8px; top: calc(var(--pin, 0px) + 8px); display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--paper); box-shadow: 0 2px 10px rgba(26, 26, 26, .28); pointer-events: auto; }
.ed-tools button { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; }
.ed-tools button:hover { background: var(--mist); }
.ed-tools button[disabled] { opacity: .3; cursor: default; }
.ed-sel.ed-out .ed-tag { top: -28px; left: 0; border-radius: 6px 6px 0 0; }
.ed-sel.ed-out .ed-tools { top: -46px; right: 0; }
.ed-plus { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); width: 28px; height: 28px; padding: 0; border: 2px solid #FFFFFF; border-radius: 50%; background: var(--teal-text); color: #FFFFFF; font: 700 16px/1 var(--font-ui); cursor: pointer; pointer-events: auto; box-shadow: 0 1px 6px rgba(26, 26, 26, .3); }
/* Starting from a site (S34 part E, V14-Phase3). */
.ed-starters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0; padding: 0; border: 0; }
.ed-starters legend { padding: 0 0 6px; font: 600 13px var(--font-ui); }
.ed-starters .ed-start small { color: var(--ink-muted); font-weight: 600; }
.ed-mini { display: flex; flex-direction: column; gap: 3px; height: 72px; }
.ed-mini i { flex: 1; border-radius: 3px; background: var(--line-soft); }
.ed-mini i[data-kind="hero"] { flex: 3; background: var(--ink-muted); }
.ed-mini i[data-kind="band"] { flex: 2; background: var(--ink); }
.ed-mini i[data-kind="block"] { background: var(--line-control); }
/* Preview links for the client (ADR-039, V14-Phase3). */
.ed-newlink { margin: 8px 0; padding: 12px; border: 2px solid var(--teal-text); border-radius: 10px; background: var(--selected); font-size: 13px; font-weight: 600; }
.ed-newlink div { display: flex; gap: 8px; margin: 6px 0; }
.ed-newlink .ed-note { margin: 0; font-weight: 500; }
/* How a shared link looks (S34 part C, V14-Phase3). */
.ed-card { border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; background: var(--paper); font-weight: 500; }
.ed-card img, .ed-card-none { display: block; width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; background: var(--mist); }
.ed-card-none { display: flex; align-items: center; justify-content: center; color: var(--ink-muted); font-size: 12px; }
.ed-card div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; }
.ed-card small { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-muted); }
.ed-card strong { font-size: 14px; }
.ed-card span { font-size: 12px; color: var(--ink-muted); }
/* The publish checklist (V12-EditorStates 5). */
.ed-ok { color: #1A6B3C; }
.ed-stop { color: #A32A2A; }
.ed-look { color: #8A4B00; }
.ed-h3 { margin: 16px 0 4px; font: 600 14px var(--font-display); }
.ed-changes { margin: 0; padding-left: 18px; font-size: 13px; }
.ed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.ed-dialog a.ed-btn2 { display: inline-flex; align-items: center; text-decoration: none; }
/* The theme and rewards in the editor (V13-Theme). */
.ed-sel.ed-narrow .ed-tools, .ed-sel.ed-narrow.ed-out .ed-tools { left: 0; right: auto; top: auto; bottom: -50px; }
.ed-sel.ed-narrow .ed-tag { max-width: none; }
.ed-in[type=date]:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; } /* D60: Chrome keeps :focus-visible on the date's segments */
.ed-colour { display: flex; align-items: center; gap: 10px; }
.ed-colour input { width: 56px; height: 40px; padding: 2px; border: 2px solid var(--line-control); border-radius: 8px; background: var(--paper); cursor: pointer; }
.ed-colour code { font: 600 13px var(--font-mono, ui-monospace, monospace); }
.ed-role { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; }
.ed-role small { display: block; font-weight: 500; color: var(--ink-muted); }
.ed-swatch { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-soft); border-radius: 8px; font: 700 15px var(--font-display); }
.ed-thumb { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--mist); }
.ed-links { display: flex; gap: 14px; }
/* The media library (V13-Media). */
.ed-media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ed-media button { position: relative; padding: 0; border: 2px solid transparent; border-radius: 6px; background: var(--mist); cursor: pointer; overflow: hidden; }
.ed-media button[aria-pressed="true"] { border-color: var(--teal-text); }
.ed-media small, .ed-dot { width: 12px; height: 12px; border: 2px solid #FFFFFF; border-radius: 50%; background: #8A4B00; }
.ed-media small { position: absolute; top: 4px; right: 4px; }
.ed-dot { display: inline-block; vertical-align: -1px; margin-right: 4px; }
.ed-panel[data-over="true"] .ed-upload { border-color: var(--teal-text); background: var(--selected); }
.ed-focus { position: relative; display: block; width: 100%; padding: 0; border: 2px solid var(--line-control); border-radius: 8px; background: var(--mist); overflow: hidden; cursor: crosshair; }
.ed-focus img { display: block; width: 100%; height: auto; }
.ed-focus i { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 3px solid #FFFFFF; border-radius: 50%; background: var(--teal-text); box-shadow: 0 0 0 2px rgba(26, 26, 26, .6); pointer-events: none; }
.ed-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-f-small input { width: 100%; min-height: 40px; padding: 6px 10px; border: 2px solid var(--line-control); border-radius: 8px; background: var(--paper); color: var(--ink); font: 500 14px var(--font-ui); }
.ed-used { margin: 0; padding-left: 18px; font-weight: 500; }
.ed-more { border-top: 1px solid var(--line-soft); padding: 6px 0; }
.ed-more summary { min-height: 32px; display: flex; align-items: center; font: 600 13px var(--font-ui); cursor: pointer; }
/* Pages and the menu (V13-Pages). */
.ed-in { width: 100%; min-height: 40px; padding: 6px 10px; border: 2px solid var(--line-control); border-radius: 8px; background: var(--paper); color: var(--ink); font: 500 14px/1.45 var(--font-ui); }
.ed-pg-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.ed-btn2[disabled] { opacity: .45; cursor: default; }
.ed-btn2.ed-primary { background: var(--ink); color: var(--paper); }
.ed-btn2.ed-danger { border-color: var(--danger, #A32A2A); color: var(--danger, #A32A2A); }
.ed-error { margin: 0; color: var(--danger, #A32A2A); font-weight: 600; }
.ed-starts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0; border: 0; }
.ed-starts legend { padding: 0 0 6px; font: 600 13px var(--font-ui); }
.ed-start { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 2px solid var(--line-soft); border-radius: 10px; font-size: 13px; cursor: pointer; }
.ed-start:has(input:checked) { border-color: var(--teal-text); background: var(--selected); }
.ed-start:has(input:disabled) { opacity: .55; cursor: default; }
.ed-start span { color: var(--ink-muted); }
.ed-menu { list-style: none; margin: 8px 0; padding: 0; }
.ed-menu li { display: grid; grid-template-columns: 20px 150px 1fr auto auto auto; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.ed-menu li[data-drop="before"] { box-shadow: 0 -3px 0 var(--teal-text); }
.ed-menu li[data-drop="after"] { box-shadow: 0 3px 0 var(--teal-text); }
.ed-menu .ed-note { margin: 0; }
.ed-menu .ed-btn2 { align-self: center; padding: 0 10px; }
.ed-menu [data-menu-hide] { min-width: 76px; }
.ed-menu [data-menu-hide][aria-pressed="false"] { border-color: var(--ink-muted); color: var(--ink-muted); }
.ed-grip { color: var(--ink-muted); cursor: grab; letter-spacing: -2px; font-weight: 700; }
.ed-rich { position: absolute; left: 0; bottom: -50px; display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: var(--paper); box-shadow: 0 2px 10px rgba(26, 26, 26, .28); pointer-events: auto; font: 600 13px/1 var(--font-ui); }
.ed-rich button { min-width: 36px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.ed-rich button:hover { background: var(--mist); }
.ed-rich-link { display: flex; align-items: center; gap: 4px; padding-left: 6px; border-left: 1px solid var(--line-soft); }
.ed-rich-link input { width: 220px; min-height: 36px; padding: 0 8px; border: 2px solid var(--ink); border-radius: 8px; font: 500 13px var(--font-ui); }
.ed-dialog { width: min(640px, calc(100vw - 32px)); padding: 18px 20px; border: 0; border-radius: 12px; box-shadow: 0 6px 30px rgba(26, 26, 26, .35); color: var(--ink); font: 14px/1.45 var(--font-ui); }
/* The app preview in the editor: a phone-wide frame of the approximation page. */
.ed-app { display: block; width: 390px; max-width: 100%; height: min(70vh, 720px); margin: 8px auto 0; border: 1px solid var(--line-soft); border-radius: 12px; }
.ed-dialog::backdrop { background: rgba(26, 26, 26, .45); }
.ed-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ed-dialog h2 { margin: 0; font: 600 18px/1.2 var(--font-display); }
.ed-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 13px; }
.ed-small, .ed-noscript { display: none; max-width: 520px; margin: 48px auto; padding: 0 var(--gutter); }
.ed-small h1, .ed-noscript h1 { font-size: 28px; letter-spacing: -.01em; }
.ed-noscript { display: block; }
@media (max-width: 999px) {
  .ed { height: auto; }
  .ed-body, .ed-bar-group:nth-child(n+2) { display: none; }
  .ed-small { display: block; }
}

/* Preparing a photo before it uploads (S38, ADR-025 note): one dialog on every photo upload, dressed as the editor's dialogs are
   (V12-EditorStates). Scoped to the dialog, so a page's own field rules never reach its controls. */
.photo-prepare { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 18px 20px; border: 0; border-radius: 12px; box-shadow: 0 6px 30px rgba(26, 26, 26, .35); background: var(--paper); color: var(--ink); font: 14px/1.45 var(--font-ui); overflow: auto; }
.photo-prepare::backdrop { background: rgba(26, 26, 26, .45); }
.photo-prepare form { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; }
.photo-prepare h2 { margin: 0; font: 600 18px/1.2 var(--font-display); }
.photo-prepare .photo-prepare-note { margin: 0; color: var(--ink-muted); }
.photo-prepare canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: 50vh; margin: 0 auto; border-radius: var(--radius); background: var(--mist); cursor: grab; touch-action: none; }
.photo-prepare canvas:active { cursor: grabbing; }
.photo-prepare-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-4); }
.photo-prepare .photo-prepare-controls label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.photo-prepare .photo-prepare-controls input[type="range"] { display: block; width: 100%; min-height: 28px; margin: 0; padding: 0; border: 0; accent-color: var(--ink); }
.photo-prepare .photo-prepare-controls select { display: block; width: 100%; min-height: 40px; padding: 6px 10px; border: 2px solid var(--line-control); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; }
.photo-prepare-actions { display: flex; justify-content: flex-end; gap: var(--space-2); }
.photo-prepare .photo-prepare-actions .button { width: auto; min-height: 44px; padding: 0 20px; font-size: 15px; align-self: auto; }
@media (max-width: 480px) { .photo-prepare-controls { grid-template-columns: 1fr; } }

/* The client's typeface on Branding (S41, ADR-040): each cut with a sample set in it, and the cut each kind of text takes. */
.font-cuts { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.font-cuts li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2) var(--space-4); align-items: end; padding-bottom: var(--space-3); border-bottom: 1px solid var(--line-soft); }
.font-cuts .font-sample, .font-cuts .error-message { grid-column: 1 / -1; margin: 0; }
.font-cuts .font-sample { font-size: 20px; overflow-wrap: anywhere; }
.font-uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3) var(--space-4); margin-bottom: var(--space-4); }
@media (max-width: 560px) { .font-cuts li { grid-template-columns: 1fr; } }

