/* 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); }

/* Your account as a summary (S68, V21-Account): the ways in as cards, the sign-in details as rows that each open one form.
   Everything sits under .account so the rules for fields and panels elsewhere are left alone. */
.account { max-width: 880px; margin: 0 auto; }
.account-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4) var(--space-6); }
.account-head h1 { margin-bottom: var(--space-3); font-size: clamp(28px, 6vw, 40px); line-height: 1.1; letter-spacing: -.01em; }
.account-head .lede { margin: 0; overflow-wrap: anywhere; }
.account .panel { margin-top: 40px; }
.account .panel > h2 { font-size: 24px; }
.account h3 { margin: 0; font: 600 16px/1.5 var(--font-ui); }
.account-cards { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-4); }
.account-card { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); padding: var(--space-6); background: var(--mist); border-radius: 8px; }
.account-card:only-child { flex-grow: 0; flex-basis: 432px; } /* one card keeps the width it has beside another */
.account-card-text { flex-grow: 1; min-width: 0; }
.account-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--space-3); font: 600 20px/1.3 var(--font-display); overflow-wrap: anywhere; }
.account-card p { margin: var(--space-2) 0 0; }
.account-card .button { max-width: 100%; white-space: normal; }
.account .chip-pending { padding: 2px 10px; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 600; }
.account-row { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--line-soft); }
.account-row-text { flex: 1 1 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--space-6); }
.account-row-text h3 { flex: 0 1 200px; overflow-wrap: anywhere; }
.account-row-text p { flex: 1 1 260px; min-width: 0; max-width: none; margin: 0; overflow-wrap: anywhere; }
.account-row-name { align-items: center; gap: 6px var(--space-3); }
.account-row-name h3 { flex: 0 1 auto; }
.account-row .button { flex: none; padding: 0 18px; font-size: 15px; }
.account-switch .button { min-width: 100px; }
.account-row-told { flex-wrap: wrap; }
.account-row-told h3 { flex: 1 1 0; min-width: 0; }
.account-row-told p { flex: 0 0 100%; max-width: 720px; margin: 0; }
.account-open { margin: var(--space-4) 0; padding: var(--space-6); background: var(--mist); border-radius: 8px; scroll-margin-top: var(--space-4); }
.account-open h3 { font: 600 20px/1.3 var(--font-display); }
.account-open .form { margin-top: var(--space-6); }
.account-open .form > .button { margin: 0 var(--space-2) var(--space-6) 0; }
.account-open .form > .button:last-child { margin-bottom: 0; }
.account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.account h2[id] { scroll-margin-top: var(--space-4); }
.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-attention { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); border-top: 3px solid var(--behind-fg); background: var(--behind-bg); }
.box-attention h2, .box-attention p { margin: 0; }
.box-problems a { display: inline-block; vertical-align: top; min-height: 24px; line-height: 24px; color: var(--error-fg); font-weight: 600; } /* S24: a 24px target (WCAG 2.5.8). Top-aligned (S73) so the bullet of a line that wraps sits beside its first line, not its last. */
.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); }
/* S71: a few short columns that have to be read side by side (what is stored beside what it becomes): the table fits the page at any width instead of scrolling. */
.table-fit { min-width: 0; table-layout: fixed; }
.table-fit th { white-space: normal; }
.table-fit td { overflow-wrap: anywhere; }
.table-fit th:first-child { width: 34%; }
/* 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; }
/* S118: a staff file's tick and its hint sit above the Commit button, each on a row of its own. */
.commit-row .commit-choice { flex-basis: 100%; }
.commit-row .choice { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; }

/* 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; }
/* S136 (V34-StaffPages): the programme's staff pages listed under the team bar, with the line that says who can read them; on a
   phone (V34-StaffPagesPhone) the list is one page a row. */
.team-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--space-6); padding: 0 var(--gutter); border-bottom: 1px solid var(--line-soft); background: var(--paper); color: var(--ink); }
.team-sub nav { display: flex; flex-wrap: wrap; gap: 0 26px; }
.team-sub a { display: inline-flex; align-items: center; min-height: 52px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; overflow-wrap: anywhere; }
.team-sub a[aria-current=page] { color: var(--field-text, var(--ink)); border-bottom-color: currentColor; }
.team-sub-note { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; max-width: none; margin: 0; font-size: 14px; color: var(--ink-muted); }
.team-sub-note strong { color: var(--ink); }
.team-sub-note svg { flex: none; }
@media (max-width: 699px) {
  .team-sub { display: block; padding: 0; }
  .team-sub nav { display: block; }
  .team-sub a { display: flex; min-height: 48px; padding: 0 var(--gutter); font-size: 16px; border-bottom: 0; border-top: 1px solid var(--line-soft); }
  .team-sub a:first-child { border-top: 0; }
  .team-sub a[aria-current=page] { box-shadow: inset 4px 0 0 currentColor; }
  .team-sub-note { display: flex; min-height: 0; padding: 10px var(--gutter); background: var(--mist); }
}
.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; }
/* S76: the levels form holds every section, and the ticked choices say which show, so a choice shows its fields before it is saved.
   Each rule only hides, and a part with two classes needs both to hold. Where :has isn't understood every part shows; saving reads
   only what the ticked choices need either way. */
.levels-form:not(:has([name="Form.Mechanic"]:is([value="selectableLevel"], [value="dualTargetLevel"], [value="progressiveLadder"]):checked)) .lv-baselined,
.levels-form:not(:has([name="Form.Targets"][value="own"]:checked)) .lv-own,
.levels-form:has([name="Form.Targets"][value="own"]:checked) .lv-uplift,
.levels-form:has([name="Form.Mechanic"]:is([value="fixedTarget"], [value="teamLeaderboard"]):checked) .lv-levels,
.levels-form:has([name="Form.Targets"][value="own"]:checked):not(:has([name="Form.Mechanic"][value="retentionPot"]:checked)) .lv-levels,
.levels-form:not(:has([name="Form.Mechanic"][value="dualTargetLevel"]:checked)) .lv-dual,
.levels-form:has([name="Form.Mechanic"][value="dualTargetLevel"]:checked) .lv-not-dual,
.levels-form:not(:has([name="Form.Mechanic"][value="retentionPot"]:checked)) .lv-pot,
.levels-form:has([name="Form.Mechanic"][value="retentionPot"]:checked) .lv-not-pot,
.levels-form:not(:has([name="Form.Mechanic"][value="teamLeaderboard"]:checked)) .lv-points,
.levels-form:not(:has([name="Form.Mechanic"]:is([value="progressiveLadder"], [value="retentionPot"]):checked)) .lv-cashout { display: none; }
.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); }
/* S80 (D130): the strip over a participant's dashboard when staff are shown it. Ink on every programme's theme, so it never reads as part of the page beneath. */
.staff-view { padding: 10px var(--gutter); background: var(--ink); color: var(--paper); font-size: 15px; }
.staff-view p { max-width: none; margin: 0; }
.staff-view a { color: inherit; font-weight: 600; }
.staff-view :focus-visible { outline-color: var(--paper); }
.uat-strip { max-width: none; 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; }
/* S132: on a phone the tiles are two across, so an odd one out takes its whole row instead of leaving a gap beside it. */
@media (max-width: 500px) { .team-tiles > div:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.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. S128 (ADR-058): the
   page background may be a colour XSEM chose, --site-ground with its computed text --site-on-ground, set by the page's own style
   rule; a dark one takes the dark page's rules below with its own tints, and without one every rule here falls back to what it was. */
.site { --site-radius: 12px; background: var(--site-ground, var(--paper)); color: var(--site-on-ground, 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: var(--site-ground, #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: var(--site-ground-card, #262626); border-color: var(--site-ground-line, #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; }
/* S82: a button's words may be XSEM's own, up to thirty characters, so in a narrow place they take a second line and never run off the
   page. On one line a button is as it was: its height still comes from the 44px minimum. */
.site .button { max-width: 100%; padding-block: 8px; line-height: 1.2; text-align: center; white-space: normal; font-size: calc(16px * var(--fs-button, 1)); }
.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. */
/* S128: the notice keeps its own pale ground on any page, so on a dark page its words stay in ink and its link in the link teal. They took the page's white. */
.site-dark .site-preview { color: var(--ink); }
.site-dark .site-preview a:not(.button) { color: var(--teal-text); }
.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 calc(clamp(28px, 4vw, 44px) * var(--fs-h, 1))/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: calc(clamp(36px, 6vw, 64px) * var(--fs-h, 1)); 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: calc(clamp(32px, 6vw, 60px) * var(--fs-h, 1)); 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: calc(14px * var(--fs-n, 1)); }
/* 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; }
/* S128: the same on a light colour XSEM chose, where a brand colour is within 3:1 of it, in the page's own ink. Only what sits on
   the page takes it: a button on the brand band or a number in a white card is seen without. Outline buttons have their own edge. */
.site-edged:not(.site-buttons-outline) .site-section .site-register, .site-edged.site-head-plain:not(.site-buttons-outline) .site-head .site-register,
.site-edged:not(.site-buttons-outline) .site-section:not(.site-tone-soft, .site-tone-field, .site-tone-accent, .site-tone-dark) .site-block-action,
.site-edged .site-steps-timeline li::before { box-shadow: 0 0 0 2px var(--site-on-ground); }
.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; }
/* S95 (V23-Steps): any number of steps. On a wide page a line holds --across of them (SiteText.Across), so the last line is not one
   step alone where that can be helped; narrower, they wrap as they always have. */
@container (min-width: 900px) { .site-steps:not(.site-steps-list) { grid-template-columns: repeat(var(--across, 3), minmax(0, 1fr)); } }
/* Timeline: the numbers on a line that runs on to the next step, and down the side on a phone. */
.site-steps-timeline { gap: 28px 0; }
.site-steps-timeline li { position: relative; padding: 0 24px 0 0; border: 0; border-radius: 0; background: transparent; }
.site-steps-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 32px; right: 0; top: 15px; height: 2px; background: var(--field); }
@container (max-width: 520px) {
  .site-steps-timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .site-steps-timeline li { padding: 4px 0 24px 46px; }
  .site-steps-timeline li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .site-steps-timeline li:not(:last-child)::after { left: 15px; right: auto; top: 32px; bottom: 0; width: 2px; height: auto; }
}
/* List: numbered rows for many steps or longer words, as the levels' numbered list. */
.site-steps-list { display: block; max-width: 760px; }
.site-steps-list li { position: relative; padding: 18px 0 18px 56px; border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; background: transparent; }
.site-steps-list li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 18px; display: block; width: auto; height: auto; margin: 0; border-radius: 0; background: none; color: var(--field-text, var(--teal-text)); font: 500 20px var(--font-figure); }
/* 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: max(12px, calc(12px * var(--fs-ih, 1))); 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: var(--site-ground-line, #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; align-items: center; gap: 8px 20px; padding: 16px var(--gutter); border-top: 1px solid var(--line-soft); font-size: calc(14px * var(--fs-foot, 1)); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; } /* S94: the links are the footer's navigation; the logo and the copyright line stand either side */
/* 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, .site-level-gallery):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, .site-level-gallery):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)); }
/* S95: a timeline or a list has no cards, so in a toned row or on the dark ground its words take the row's ink and its numbers a ring of it. */
:is(.site-tone-field, .site-tone-accent, .site-tone-dark, .site-dark) .site-steps:is(.site-steps-timeline, .site-steps-list) li { background: transparent; color: inherit; } /* over the cards' rule above, which names its lists as specifically */
:is(.site-tone-field, .site-tone-accent, .site-tone-dark, .site-dark) .site-steps-timeline li::before { box-shadow: 0 0 0 2px currentColor; }
:is(.site-tone-field, .site-tone-accent, .site-tone-dark, .site-dark) .site-steps-timeline li:not(:last-child)::after { background: currentColor; }
:is(.site-tone-field, .site-tone-accent, .site-tone-dark, .site-dark) .site-steps-list li::before { color: inherit; box-shadow: none; }
:is(.site-tone-field, .site-tone-accent, .site-tone-dark) .site-steps-list li { border-color: currentColor; }
: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; }
/* The levels band keeps its own ground, so it takes no padding: padding would show as a strip of the page outside the band, even under "None above". */
.site-section:is(.site-pad-compact, .site-pad-roomy):not(.site-tone-soft, .site-tone-field, .site-tone-accent, .site-tone-dark, .site-levels-band) { 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; max-width: 46%; } /* long words wrap in the button; the brand keeps its room (S82) */
  .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 calc(14px * var(--fs-menu, 1)) 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 calc(18px * var(--fs-menu, 1)) var(--font-display); text-decoration: none; }
  .site-menu-panel > a[aria-current="page"] { color: var(--field-text, var(--field)); }
  /* S128: the panel is white whatever the page, so on a dark page its links stay in ink. They took the page's white and could not be seen. */
  .site-dark .site-menu-panel a:not(.button) { color: var(--ink); }
  .site-dark .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: calc(14px * var(--fs-menu, 1)); }
  .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; } }
/* The phone header in three rows (S111, D158; V28-HeaderPhone option D): up to 500px the logo, Register and Menu each take a row of
   their own, because in one row a wide logo ran under Register. From 501px the row above has the room and stays. */
@media (max-width: 500px) {
  .site-head { flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .site-brand { flex: 0 0 auto; justify-content: center; min-height: 44px; }
  .site-actions { max-width: none; }
  .site-actions:not(:has(.site-register)) { display: none; } /* registration closed: no empty row between the logo and Menu */
  .site-actions .site-register { flex: 1 1 auto; }
  .site-menu-mobile summary { display: flex; justify-content: center; }
}
.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-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; V30-RewardsForm, S119): each reward a bordered block, its number and order buttons above, its photo
   beside one column of fields. Every box is that column's width or one of a pair, so the form keeps two vertical edges. */
.row-current { background: var(--mist); }
.reward-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.reward-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px var(--space-6); align-items: start; padding: var(--space-4) var(--space-6) var(--space-6); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.reward-head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 44px; }
.reward-head h3 { margin: 0; font: 700 12px/1.3 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.reward-row .reward-thumb { width: 104px; height: 78px; object-fit: cover; border-radius: var(--radius); }
.reward-fields { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
/* The rule above a group is the legend's own: a fieldset's border would be broken by its legend. */
.reward-details fieldset.group { margin-top: 10px; }
.reward-details fieldset.group > legend { width: 100%; margin: 0 0 10px; padding: 14px 0 0; border-top: 1px solid var(--line-soft); }
/* A pair's labels start level and its boxes sit level, whichever of the two has a hint: the box is pushed to the foot of its field. */
.reward-row .pair { gap: 14px var(--space-6); }
.reward-row .pair > .field { display: flex; flex-direction: column; min-width: 0; }
/* As in the editor (S98): Safari counts a select's chosen words as overflow where they are longer than its box, which pushed a phone
   sideways by 42px. Clipped in the select itself they end in an ellipsis; the focus ring is outside the box and is not clipped. */
.reward-row select { overflow: hidden; text-overflow: ellipsis; }
.reward-row .pair > .field > :last-child { margin-top: auto; }
.reward-half { max-width: calc(50% - var(--space-3)); }
/* A new photo and the tile photo: two matching panels, each a file or a choice from the library. */
.reward-add { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; padding: var(--space-4); border-radius: var(--radius); background: var(--mist); }
.reward-add .hint { margin: 0; }
.reward-move { display: flex; gap: 8px; }
.button-icon { min-width: 44px; padding: 0; }
.button-icon[disabled] { opacity: .4; cursor: default; }
.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: 14px; }
@media (max-width: 760px) {
  .reward-row { grid-template-columns: minmax(0, 1fr); padding: var(--space-3) var(--space-4) var(--space-4); }
  .reward-half { max-width: none; }
}
/* 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 (S85): each reward a row from edge to edge in thirds, its photos either side at the row's height and its words
   centred between them. A short reward still gets tall photos (the least height follows the page's width), and several photos on one
   side share that side's height. A reward with one photo keeps it on the left; one with none is its words alone. */
.site-level-gallery > p { text-align: center; }
.reward-gallery { grid-template-columns: 1fr; }
.reward-gallery .reward-sides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: min(40cqw, 640px); }
.reward-gallery .reward-sides-one { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.reward-gallery .reward-sides-none { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.reward-side { display: flex; flex-direction: column; gap: 4px; }
/* A photo's height comes from its side, not its own shape: without the zero least height its 4:3 shape would set the row's. */
.reward-side img { flex: 1 1 0; min-height: 0; aspect-ratio: auto; }
.reward-sides .reward-copy { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px clamp(20px, 4cqw, 72px); text-align: center; }
.reward-sides .reward-copy > * { max-width: 44ch; }
.reward-sides h2 { margin: 0 0 12px; font-size: clamp(24px, 2.6cqw, 32px); color: var(--field-text, inherit); }
.site-dark .reward-sides h2 { color: inherit; }
.reward-sides .reward-included { padding-left: 0; list-style: none; }
/* Nights and people close the words, larger and in the programme's colour; the register button stays last. */
.reward-sides .reward-facts { order: 1; justify-content: center; gap: 8px 24px; margin: 12px 0 0; font-size: 16px; color: var(--field-text, inherit); }
.site-dark .reward-sides .reward-facts { color: inherit; }
.reward-sides .reward-facts svg { width: 28px; height: 28px; }
.reward-sides .reward-copy > p:has(> .button) { order: 2; margin: 20px 0 0; }
@media (max-width: 899px) {
  .reward-gallery .reward-sides, .reward-gallery .reward-sides-one { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .reward-side { flex-direction: row; align-items: flex-start; }
  .reward-side img { aspect-ratio: 4 / 3; min-width: 0; }
  .reward-sides .reward-copy { padding: 32px var(--gutter); }
}
/* The admin's photo list: the photo, its description and its buttons in a row that wraps when narrow. */
.reward-photo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.reward-photo-list li { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.reward-photo-list .field { flex: 999 1 200px; min-width: 0; }
.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; }
/* S74, S119: a new photo, its description and the tile photo are chosen in the reward's own details, in two panels (.reward-add). */
/* S88: a photo from the media library in place of a file: the button, the photo chosen and what happens to it. */
.reward-library, .branding-library { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.reward-library .button, .branding-library .button { width: auto; max-width: 100%; white-space: normal; padding-block: 8px; line-height: 1.25; text-align: left; } /* the words wrap on a phone rather than push the page sideways */
.reward-library, .branding-library { min-width: 0; }
.reward-library .reward-thumb { width: 104px; height: 78px; object-fit: cover; border-radius: var(--radius); }
.reward-library .hint, .branding-library .hint { margin: 0; }
@media (max-width: 560px) { .reward-tile-photo { grid-template-columns: 104px minmax(0, 1fr); } }
.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); }
/* S80, S81: a button shown switched off on the staff address reads as switched off where a programme's or the area's own colours
   would otherwise win over .button:disabled (the reward step on a light top, the team area's download). */
.dash-cta:disabled, .dash-field-light .dash-cta:disabled, .dash-field-light .dash-cta:disabled:hover, .team-main .team-csv:disabled, .team-main .team-csv:disabled:hover { background: var(--mist); color: var(--disabled-fg); border-color: var(--mist); cursor: not-allowed; }
.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; } }
/* The Brochure site page (S99, V24-Site; ADR-054): the draft in a frame beside what is known of the site, and no form. The frame's
   box and its width buttons are what the form's preview had (S19, and true to scale since the editor plan's phase 0). */
.site-overview { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-items: start; margin-top: var(--space-4); }
@media (min-width: 1100px) { .site-overview { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); } }
.site-overview-site { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.site-overview-site .section-head { flex-wrap: wrap; align-items: center; }
.site-overview-cards { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.site-overview-cards .box { border-radius: var(--radius-card); gap: var(--space-2); }
.site-overview-cards .box h2 { font-size: 18px; }
.site-overview-cards .box p { margin: 0; }
.site-overview-cards .quiet { color: var(--ink-muted); }
.site-overview-next { border-color: var(--mist); background: var(--mist); }
.site-overview-versions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0; }
.site-overview-versions dt { font-weight: 600; }
.site-overview-versions dd { margin: 0; }
/* The editor needs 1,000 pixels: under that its buttons give way to a note saying so. */
.site-overview-narrow { display: none; margin-top: var(--space-3); }
@media (max-width: 999px) { .site-overview-wide { display: none; } .site-overview-narrow { display: block; } }
.site-overview-views { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-overview-widths { display: flex; flex-wrap: wrap; gap: 6px; }
.site-overview-widths .button { min-height: 40px; padding: 0 14px; font-size: 14px; }
.site-overview-widths .button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.site-overview-frame { padding: 12px; background: var(--mist); border-radius: var(--radius); overflow: auto; }
.site-overview-none { display: grid; align-content: center; gap: 12px; min-height: 240px; padding: 24px; }
/* True to scale: the script sizes the frame to the device and scales it into this box. */
.site-overview-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); }
.site-overview-scale.is-scaled { margin: 0 auto; overflow: hidden; }
.site-overview-scale.is-scaled iframe { margin: 0; transform-origin: 0 0; }
.site-overview-frame:has(.is-scaled) { overflow: hidden; }
.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: calc(clamp(34px, 6vw, 64px) * var(--fs-h, 1)); }
.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: .875em; }
/* S89: where the menu sits between the brand and the buttons. Right is against the buttons. Centre is the middle of the page: the
   two side columns are equal, each as wide as the wider of the brand and the buttons, and never narrower than their own words, so a
   long menu wraps in what is left between them. A phone has no row of links, so neither applies under 701px. */
.site-nav-right .site-nav { justify-content: flex-end; }
@media (min-width: 701px) {
  .site-nav-centre .site-head { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); }
  .site-nav-centre .site-brand { justify-self: start; }
  .site-nav-centre .site-nav { justify-content: center; }
  .site-nav-centre .site-actions { justify-self: end; }
}
.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: max(12px, calc(12px * var(--fs-n, 1))); 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; }
/* S104: where XSEM switched it on, a band tile lists its level's rewards when it is pointed at or tabbed to. The list is always in
   the page, so a screen reader reads the titles under the level's name; it is drawn from 1,000px wide, where the smallest tile
   holds five titles of two lines, and on hover only where there is something to point with, so a tap opens the level's page first
   time. Its text keeps this size whatever the section's sizes say (S91): a larger step would not fit the tile.
   Since 2 Dec 2026 the list is headed by the level's name, so where the list can be drawn the tile's own name at the foot is not: at rest
   the tile is its photo. The name stays in the page for a screen reader, and stays drawn on a phone or a tablet, which never
   draw the list, and on a tile whose level has no rewards to list. */
.site-level-rewards { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow: hidden; box-sizing: border-box; padding: 16px 14px; background: rgba(26, 26, 26, .86); color: #FFFFFF; font-size: 14px; line-height: 18px; text-align: left; opacity: 0; transition: opacity .15s ease; }
.site-level-rewards > span:first-child { margin-bottom: 4px; font: 12px/1.3 var(--font-figure); letter-spacing: .06em; text-transform: uppercase; }
.site-level-rewards > [role="list"] { display: flex; flex-direction: column; gap: 6px; }
.site-level-rewards [role="listitem"] { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.site-level-rewards-centre { text-align: center; }
.site-level-rewards-middle { justify-content: center; }
@media (min-width: 1000px) { .site-levels-photos li:focus-within > .site-level-rewards { opacity: 1; } .site-levels-band .site-levels-photos li.site-level-listed:focus-within > h3 { opacity: 0; } }
@media (min-width: 1000px) and (hover: hover) { .site-levels-photos li:hover > .site-level-rewards { opacity: 1; } .site-levels-band .site-levels-photos li.site-level-listed > h3 { opacity: 0; } }
/* 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; }
/* At full strength (S85): faded to 85%, the other levels' names fell under 4.5:1 on a main colour that only just carries its text. */
.site-level-tabs-band a { padding: 6px 12px; border-color: currentColor; color: inherit; font-size: .875em; min-height: 36px; display: inline-flex; align-items: center; }
.site-level-tabs-band a:hover, .site-level-tabs-band a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.site-level-tabs-band a[aria-current="page"] { background: var(--on-field); color: var(--field); border-color: var(--on-field); }
.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; }
/* The heading over the list is the client's words (S122): in the text face, where bold thickens, and bold only where they marked it. Two classes, so no template's heading weight or size reaches it. */
.site-section.site-reward-detail h2 { font: 400 18px/1.3 var(--font-ui); 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; }
.site-reward-detail .site-reward-register { margin-top: 32px; } /* the button stands clear of the terms above it (S112) */
.site-reward-detail .site-reward-centre { text-align: center; } /* a reward's own choice (S114); the list has no bullets to strand */
@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; }
/* The tile's one row is the tile's own height (S105): left to its content, a tile wider than its 4:3 photo is tall (an odd one out
   across two columns) grew the row to the photo's height and pushed the level's name out of sight under the tile's edge. */
.site-levels-photos li { position: relative; padding: 0; border: 0; border-radius: var(--site-radius); overflow: hidden; aspect-ratio: 1; display: grid; grid-template-rows: minmax(0, 1fr); }
.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; }
}
/* S105: where XSEM chose it, the levels' photos sit one to a row on a phone and two to a row on a tablet, in the three layouts
   that show photos (the grid's cards, the photo tiles and the band). XSEM's choice outranks the rows the rules above balance by the
   number of levels, hence !important. One to a row, a tile is 4:3, the shape photos are uploaded in, so it shows the whole photo.
   Two to a row, tiles are square and an odd one out takes the full width at its row's height, so no row has a gap; a grid card
   that does so keeps its photo to the height of the others'. */
@media (max-width: 500px) {
  .site-levels-phone-one { grid-template-columns: minmax(0, 1fr) !important; }
  .site-levels-photos.site-levels-phone-one > li { grid-column: auto !important; aspect-ratio: 4 / 3 !important; }
}
@media (min-width: 501px) and (max-width: 900px) {
  .site-levels-tablet-two { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .site-levels-tablet-two > li:last-child:nth-child(odd) { grid-column: span 2; }
  .site-levels-photos.site-levels-tablet-two > li { aspect-ratio: 1 !important; }
  .site-levels-photos.site-levels-tablet-two > li:last-child:nth-child(odd) { aspect-ratio: 2 / 1 !important; }
  .site-levels-grid.site-levels-tablet-two > li:last-child:nth-child(odd) > :is(img, .site-level-tile) { aspect-ratio: 8 / 3; }
}
/* S120 (D167): where XSEM ticked the list (S104), a phone, a tablet and any window under 1,000px draw it all the time, as a computer
   draws it while a tile is pointed at: nothing there can point, and the client asked that the list not be lost. A touch screen
   does the same however wide. The name at the foot goes, as it does on hover, and a tile whose level has no rewards keeps it.
   A tile is as tall as its shape or its list, whichever is more, and its row with it, so no title is cut off: the photo
   leaves the flow (left in, it sets the row's height, the fault S105 cured) and the list, no longer clipped, sets the least
   height. The list is raised over the photo, which as a placed box would otherwise be drawn on top of it.
   A level with no photo has its number on its tile: under a list that is always there it would show through the words, so it is not drawn.
   On a tablet a band with the list has no more than three tiles in a row, square from six levels up: four or five across leaves
   a title nine letters to a line. XSEM's own two per row (S105) still outranks that. */
@media (max-width: 999px), (hover: none) {
  .site-levels-band .site-levels-photos:has(> li.site-level-listed) > li { place-self: stretch; }
  .site-levels-band .site-levels-photos li.site-level-listed { overflow: visible; grid-template-rows: auto; }
  .site-levels-band .site-levels-photos li.site-level-listed > :is(img, .site-level-tile) { position: absolute; inset: 0; }
  .site-levels-band .site-levels-photos li.site-level-listed > h3 { opacity: 0; }
  .site-levels-band .site-levels-photos li.site-level-listed > .site-level-tile { color: transparent; }
  .site-levels-band .site-levels-photos li.site-level-listed > .site-level-rewards { z-index: 0; min-height: auto; overflow: visible; opacity: 1; }
}
@media (min-width: 501px) and (max-width: 900px) {
  .site-levels-band .site-levels-photos:has(> li.site-level-listed):has(> li:nth-child(6)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-levels-band .site-levels-photos:has(> li.site-level-listed):has(> li:nth-child(6)) li { aspect-ratio: 1; }
}
/* 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; }
/* Text sizes (S91, D141). XSEM chooses a step for a text; SiteText.Sizes writes it on the text's row, and on the page for the texts no
   row owns, as a number these rules multiply by. Words take it as zoom, which scales whatever size the layout's own rule gives them,
   fluid sizes and a phone's included, so no size is written twice. The menu, the buttons and the footer are pressed, so they take it
   as a font size and keep their height; so do the two texts at the design's smallest size, 12px (a contact label, a showcase's
   level line), with that size as their floor, so Small never takes a text under it. The lists below name every text: one left
   out keeps the design's size whatever is chosen.
   A hero's words take theirs as a font size too (28 Nov 2026, in their own rules above and the three below). A photo hero holds its
   words to 56rem; zoomed, Chrome shrinks that limit with the words and Safari does not, so the two broke a headline's lines
   differently and a smaller headline never fitted on one line in Chrome. As a font size the limit stays where the design put it. */
.site-plate > p:not(.site-dates):not(.site-cta):not(.site-window) { font-size: calc(1em * var(--fs-t, 1)); }
.site-plate .site-dates { font-size: calc(14px * var(--fs-n, 1)); }
/* A reward's own page opens on the same hero: its heading is a page heading and the level over it one of the reward's details. */
.site-reward-hero { --fs-h: var(--fs-ph, 1); --fs-n: var(--fs-rt, 1); }
.site-section h2 { zoom: var(--fs-h, 1); }
.site-section > .site-lede, .site-levels-band-head > p, .site-rich, .site-banner-words > p,
.site-block-cta > div > p, .site-block-quote blockquote, .site-status > p, .site-featured > div > p:not(.site-dates), .site-featured > div > a { zoom: var(--fs-t, 1); }
.site-levels h3, .site-steps h3, .site-cards h3, .site-stats dd, .site-faq dt, .site-faq summary, .site-showcase h3 { zoom: var(--fs-ih, 1); }
.site-levels li > p, .site-levels:not(.site-levels-photos) li > a, .site-steps li > p, .site-steps ~ p, .site-cards li > p, .site-stats dt, .site-faq dd, .site-faq details > p,
.site-contact dd { zoom: var(--fs-it, 1); }
.site-block-quote figcaption, .site-featured .site-dates, .site-block-rewards > .site-dates { zoom: var(--fs-n, 1); }
.site-brand > span:not(.logo-plate):not(.logo-bare) { zoom: var(--fs-name, 1); }
.site-nav, .site-level-tabs { font-size: calc(1em * var(--fs-menu, 1)); }
.site-page-head h1, .site-level-band h1, .site-section > h1 { zoom: var(--fs-ph, 1); }
.site-main .site-page-text, .site-level-band > p { zoom: var(--fs-pt, 1); }
.site .reward-cards h2, .site .reward-cards h3, .site-levels.site-reward-tiles h3 { zoom: var(--fs-rn, 1); }
.site .reward-copy > p:not(:has(.button)), .site .reward-copy > ul, .site .reward-copy > details:not(.reward-terms), .site-reward-band > p, .site .site-reward-detail h2,
.site-reward-detail > div > ul, .site-reward-detail > div > p:not(:has(.button)):not(.reward-footnote) { zoom: var(--fs-rt, 1); }
/* A reward's own terms have a size of their own (S115); until one is chosen they keep the size the reward's details have. */
.site .reward-copy > details.reward-terms, .site-reward-detail > div > .reward-footnote { zoom: var(--fs-rm, var(--fs-rt, 1)); }
@media (max-width: 700px) {
  .site-deco { width: clamp(48px, 14%, 90px); }
  .site-deco-no-phone { display: none; } /* S93: a graphic XSEM left out on a phone, where each is drawn this small */
  .site-hero-cover .site-plate h1, .site-hero-tinted .site-plate h1 { font-size: calc(30px * var(--fs-h, 1)); }
}
@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); }
.levels-strip .levels-add { min-height: 32px; display: inline-flex; align-items: center; color: var(--teal-text); white-space: nowrap; }
/* S84 (V21-OrganisationSetUp): a new client's two steps, the levels and then the units. */
.org-setup, .org-next { margin-bottom: var(--space-4); }
.org-setup .level-rows { display: flex; flex-direction: column; gap: var(--space-3); max-width: 620px; }
.org-setup .level-row { display: flex; align-items: flex-end; gap: 10px; }
.org-setup .level-row .field { flex: 1 1 auto; min-width: 0; margin: 0; }
.org-setup .level-row > .button { align-self: flex-end; }
.levels-preview { display: flex; flex-direction: column; gap: 4px; max-width: 760px; padding: var(--space-3) 14px; border: 1px solid var(--line-soft); background: var(--paper); }
.levels-preview strong, .levels-done strong { font: 600 16px/1.4 var(--font-display); overflow-wrap: anywhere; }
.org-next { padding: var(--space-4); border: 1px dashed var(--line-control); }
.org-next h2 { margin: 0 0 4px; color: var(--ink-muted); }
.org-next p { margin: 0; }
.levels-done { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: var(--space-4); padding: var(--space-3) 14px; border: 1px solid var(--line-soft); }
.levels-done .subtle-label { margin-right: 8px; }
.setup-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-4); align-items: start; }
.file-columns { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.file-columns span { padding: 4px 10px; border: 1px solid var(--line-control); border-radius: 4px; background: var(--paper); font-size: 13px; }
.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: 200px; }
.ed-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
@media (min-width: 1500px) { .ed-title strong, .ed-title span { max-width: 360px; } }
.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); }
/* S98 (V24-Editor): the zoom is said under the page, not in the bar, and More holds what is used less than Preview and Publish. */
.ed-zoom { position: absolute; left: 20px; bottom: 2px; font-size: 12px; color: var(--ink-muted); }
.ed-more-menu { position: fixed; inset: auto; margin: 0; padding: 6px; min-width: 240px; border: 0; border-radius: 12px; background: var(--paper); box-shadow: 0 6px 24px rgba(26, 26, 26, .3); }
.ed-more-menu:popover-open { display: flex; flex-direction: column; }
.ed-more-menu button { min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 600 14px var(--font-ui); text-align: left; cursor: pointer; }
.ed-more-menu button:hover { background: var(--mist); }
.ed-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 76px 280px 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); }
/* S98: Theme's four tabs run the width of its panel. */
.ed-panel .ed-tabs { margin: 0 -12px 4px; }
.ed-panel .ed-tabs button { padding: 0 2px; font-size: 13px; }
/* S98 (V24-Editor): a group of settings. Closed, it is one row of 52px that says what is chosen; open, its row is mist and its
   fields are under it. One of a kind is open at a time. */
.ed-grps { border-bottom: 1px solid var(--line-soft); }
.ed-grp { border-top: 1px solid var(--line-soft); }
.ed-grps > .ed-grp:first-child { border-top: 0; }
.ed-grp > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 8px; min-height: 52px; padding: 8px 16px; box-sizing: border-box; font: 600 14px var(--font-ui); cursor: pointer; list-style: none; }
.ed-grp > summary::-webkit-details-marker { display: none; }
.ed-grp > summary::after { content: ""; grid-column: 2; grid-row: 1 / span 2; width: 8px; height: 8px; margin: 0 4px 4px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.ed-grp[open] > summary::after { margin: 4px 4px 0; transform: rotate(-135deg); }
.ed-grp > summary small { grid-column: 1; font: 400 12px var(--font-ui); color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-grp > summary small:empty { display: none; }
.ed-grp[open] > summary { background: var(--mist); }
.ed-grp[open] > summary small { display: none; }
.ed-grp-body { display: flex; flex-direction: column; gap: 14px; padding: 12px 16px 16px; }
.ed-graphics { display: flex; flex-direction: column; gap: 8px; }
/* The backgrounds as five swatches on one line, each with its name under it. */
.ed-tones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ed-tones button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 44px; padding: 4px 0; border: 0; background: transparent; color: var(--ink); font: 600 11px/1.2 var(--font-ui); text-align: center; cursor: pointer; }
.ed-tones i { display: block; width: 100%; height: 30px; border: 2px solid var(--line-control); border-radius: 8px; box-sizing: border-box; }
.ed-tones button[aria-pressed="true"] i { border-color: var(--ink); box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px 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; }
/* S98: Safari counts a list's chosen words as overflow where they are longer than its box (a long Level pages choice made the Theme
   panel scroll sideways by up to 263px). Clipped in the list itself, they end in an ellipsis and nothing leaks; a focus ring is outside the box and is not clipped. */
.ed select { overflow: hidden; text-overflow: ellipsis; }
.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; }
/* S97: a hero graphic's place, its picture and its two ticks, one under another with a rule between places. */
.ed-graphic { display: flex; flex-direction: column; gap: 4px; }
/* S102 (V24-Inspector): the hero's places as tiles, two across as the corners and edges sit on the hero, each with its graphic on
   mid-grey or an empty dashed box; and the templates as tiles, three across, each a drawing of its hero over its levels. */
/* S103: a layout's drawing on its tile, a few grey shapes in a 40px box (site-editor.js names what goes where). The brand's teal
   stands for the client's colour; nothing here is the site itself. */
.ed-lays button:has(.ed-art) { display: flex; flex-direction: column; gap: 6px; }
.ed-art { display: grid; grid-auto-rows: minmax(0, 1fr); grid-auto-columns: minmax(0, 1fr); gap: 3px; flex: none; height: 40px; padding: 4px; box-sizing: border-box; border: 1px solid var(--line-soft); border-radius: 6px; background: var(--paper); overflow: hidden; }
.ed-art[data-behind="p"] { background: #9A9A9A; }
.ed-art[data-behind="c"] { background: var(--teal-text); }
.ed-art[data-behind="k"] { background: color-mix(in srgb, var(--teal-text) 65%, #9A9A9A); }
.ed-art[data-behind="s"] { background: var(--mist); }
.ed-art > i { min-width: 0; min-height: 0; border-radius: 2px; }
.ed-art > [data-k="p"] { background: #9A9A9A; }
.ed-art > [data-k="s"] { background: #D6D6D6; }
.ed-art > [data-k="d"] { background: var(--ink); }
.ed-art > [data-k="c"] { background: var(--teal-text); }
.ed-art > [data-k="w"] { background: var(--paper); }
.ed-art > [data-k="o"] { border: 1.5px solid #9A9A9A; }
.ed-art > [data-k="t"] { border-radius: 0; background: repeating-linear-gradient(#BDBDBD 0 2px, transparent 2px 5px); }
.ed-art > [data-k="l"] { border-radius: 0; background: repeating-linear-gradient(#FFFFFF 0 2px, transparent 2px 5px); }
.ed-art > [data-k="h"] { align-self: center; height: 4px; background: var(--ink); }
.ed-art > [data-k="n"] { place-self: center; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-text); }
.ed-place-art { display: block; height: 40px; border-radius: 6px; background: var(--line-control); overflow: hidden; }
.ed-place-art img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.ed-place-art.ed-place-empty { background: transparent; border: 2px dashed var(--line-control); box-sizing: border-box; }
.ed-places button { display: flex; flex-direction: column; gap: 6px; }
.ed-tpls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ed-tpl { display: flex; flex-direction: column; gap: 6px; min-height: 44px; padding: 6px; 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-tpl[aria-pressed="true"] { border-color: var(--ink); background: var(--mist); }
.ed-tpl-art { display: grid; grid-template-rows: 22px 16px; gap: 3px; padding: 4px; border: 1px solid var(--line-soft); border-radius: 6px; background: var(--paper); }
.ed-tpl-art > i { border-radius: 3px; background: #9A9A9A; }
.ed-tpl-art > b { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; align-items: stretch; }
.ed-tpl-art > b > i { border-radius: 2px; background: #BDBDBD; }
.ed-tpl-art[data-hero="split"] > i { background: linear-gradient(90deg, #9A9A9A 0 46%, var(--paper) 46% 54%, var(--line-soft) 54%); }
.ed-tpl-art[data-hero="dark"] > i { background: var(--ink); }
.ed-tpl-art[data-hero="block"] > i { background: var(--teal-text); }
.ed-tpl-art[data-hero="band"] > i { background: linear-gradient(var(--ink-muted) 0 34%, var(--paper) 34% 46%, var(--line-soft) 46%); }
.ed-tpl-art[data-levels="cards"] > b > i { background: transparent; border: 1.5px solid #9A9A9A; }
.ed-tpl-art[data-levels="list"] > b { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 2px; }
.ed-tpl-art[data-levels="tiles"] > b > i { border-radius: 5px; background: var(--ink-muted); }
.ed-tpl-art[data-levels="ladder"] > b { align-items: end; }
.ed-tpl-art[data-levels="ladder"] > b > i:nth-child(1) { height: 40%; }
.ed-tpl-art[data-levels="ladder"] > b > i:nth-child(2) { height: 70%; }
.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.ed-lays-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.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); }
/* S87: what is chosen now, beside the button that opens the media library and the upload. The library itself is the pop-up below. */
.ed-pick { display: flex; align-items: flex-start; gap: 10px; }
.ed-pick img { flex: none; width: 104px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--mist); }
.ed-pick img.ed-pick-logo, .ed-pick img.ed-pick-graphic { object-fit: contain; padding: 6px; box-sizing: border-box; }
/* S97: a hero graphic is often white, to sit on a photo, so its picture has a mid-grey ground; an empty place keeps its two buttons on one line. */
.ed-pick img.ed-pick-graphic { background: var(--line-control); }
.ed-graphic .ed-pick:not(:has(img)) .ed-pick-acts { flex-direction: row; }
.ed-graphic .ed-pick:not(:has(img)) .ed-pick-acts > * { flex: 1 1 0; min-width: 0; }
.ed-pick-acts { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ed-pick-acts .ed-btn2 { align-self: stretch; min-height: 44px; }
.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; padding: 4px 10px; font-size: 13px; text-align: center; } /* a folder's name can take it to two lines (S107) */
/* Folders in the Media panel (S107, V27-MediaFolders, V27-MediaFoldersStates): a row to open and to drop a photo on; the open one is
   ink reversed and carries its two actions behind one button. */
.ed-folders { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.ed-folder { position: relative; display: flex; align-items: center; gap: 4px; border-radius: 8px; }
.ed-folder:nth-child(3) { margin-top: 6px; }
.ed-folder > button { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 600 13px var(--font-ui); text-align: left; cursor: pointer; }
/* The folder mark takes the row's text colour, so it reverses with the open row. */
.ed-folder > button::before, .media-library-folders button::before { content: ""; flex: 0 0 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ed-folder > button:hover { background: var(--mist); }
.ed-folder > button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.ed-folder > button span { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ed-folder > button small { font: 500 12px var(--font-figure); }
.ed-folder[data-over] { outline: 3px dashed var(--teal-text); outline-offset: -3px; background: var(--selected); }
.ed-folder[data-over] > button { background: transparent; color: var(--ink); }
.ed-folder-more > summary { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; box-sizing: border-box; border: 2px solid var(--line-control); border-radius: 8px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232A2A2A'%3E%3Ccircle cx='5' cy='12' r='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='19' cy='12' r='2'/%3E%3C/svg%3E") center / 18px no-repeat; cursor: pointer; list-style: none; }
.ed-folder-more > summary::-webkit-details-marker { display: none; }
.ed-folder-more > div { position: absolute; z-index: 2; top: 44px; right: 0; display: flex; flex-direction: column; width: 170px; padding: 6px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--paper); box-shadow: 0 6px 24px rgba(26, 26, 26, .2); }
.ed-folder-more > div button { min-height: 40px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font: 600 13px var(--font-ui); text-align: left; cursor: pointer; }
.ed-folder-more > div button:hover { background: var(--mist); }
.ed-folder-more > div button[data-folder-delete] { color: var(--error-fg); }
.ed-folder-name { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.ed-folder-name .ed-links { align-items: center; }
.ed-media button[draggable] { cursor: grab; }
.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 small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } /* a reward's description may be a paragraph (S113) */
.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 { position: relative; 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); }
/* S98: Safari stops on the framed page itself where it has nothing to tab to (the App view) and matches no :focus on the frame, so the
   script marks it when Tab brought the focus there. The ring is inside, since the frame is clipped at its edge. */
.ed-scale iframe.ed-in { outline: 3px solid var(--teal-text); outline-offset: -3px; }
.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-waiting { padding: 8px 10px; border-top: 3px solid var(--behind-fg); background: var(--behind-bg); color: var(--ink); } /* S124: the admin pages' box-attention at the editor's size */
.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; }
/* Reposition (S129): the focal point under the photo it belongs to, where the photo is chosen. */
.ed-reposition { display: flex; flex-direction: column; gap: 8px; }
.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; }
/* S95: a row of a list with no limit (steps, questions). Closed it is one line with its first words. */
.ed-list-row { border: 1px solid var(--line-soft); border-radius: 8px; }
.ed-list-row > summary { min-height: 44px; padding: 0 10px; display: flex; align-items: center; gap: 8px; font: 600 13px var(--font-ui); cursor: pointer; }
.ed-list-row > summary > span:first-child { flex: none; }
.ed-list-head { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; color: var(--ink-muted); }
.ed-list-row > .ed-group { border: 0; padding: 0 10px 10px; }
.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; }
/* S136 (V34-StaffPagesEditor): staff pages under their own heading in the Pages panel, who can see a page, and the warning when a
   staff page is about to become public. */
.ed-pg-staff { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 2px; padding: 10px 10px 0; border-top: 1px solid var(--line-soft); font: 600 11px/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.ed-lock { padding: 4px 8px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 11px/1 var(--font-ui); letter-spacing: 0; text-transform: none; white-space: nowrap; }
.ed-starts.ed-who { grid-template-columns: repeat(2, 1fr); }
.ed-alert { margin: 0; padding: 10px 12px; border: 1px solid var(--behind-fg); border-radius: 8px; background: var(--behind-bg); color: var(--ink); font-size: 13px; line-height: 1.45; }
.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-foot-remove], .ed-menu .ed-state { min-width: 76px; text-align: center; } /* S94: the footer's rows end as the menu's do */
/* S89: the header's three choices side by side under the entries, one under another where the dialog is narrow. */
.ed-menu-url { margin-top: 12px; }
.ed-menu-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 12px; margin: 8px 0; }
.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-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. */
/* The media library as a pop-up (S87, D137; media-library.js): every upload a place takes, large enough to tell apart. The head and
   the foot stay put and the pictures scroll between them. The list is a plain block that scrolls with the grid inside it, never a
   grid with a height of its own: Safari squeezes such a grid's rows to fit rather than scroll (S86's fault). */
.media-library { width: min(1040px, calc(100vw - 32px)); height: min(760px, calc(100vh - 32px)); max-height: none; padding: 0; 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: hidden; }
.media-library[open] { display: flex; flex-direction: column; }
.media-library::backdrop { background: rgba(26, 26, 26, .45); }
.media-library-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding: 18px 20px 12px; }
.media-library h2 { margin: 0; font: 600 20px/1.2 var(--font-display); }
.media-library .media-library-find { display: flex; flex-direction: column; gap: 4px; margin: 0; width: min(320px, 100%); font-size: 13px; font-weight: 600; color: var(--ink); }
.media-library .media-library-find input { display: block; width: 100%; min-height: 44px; padding: 6px 12px; border: 2px solid var(--line-control); border-radius: 8px; background: var(--paper); color: var(--ink); font: 400 15px var(--font-ui); box-sizing: border-box; }
.media-library-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 0 20px 12px; border-bottom: 1px solid var(--line-soft); }
.media-library-tools p { margin: 0; color: var(--ink-muted); font-size: 13px; }
.media-library-kinds { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.media-library-kinds button { min-height: 36px; padding: 0 14px; border: 2px solid var(--line-control); border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 13px var(--font-ui); cursor: pointer; }
.media-library-kinds button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.media-library-scroll { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 16px 20px; background: var(--mist); }
.media-library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 520px) { .media-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .media-library-scroll { padding: 12px; } }
.media-library-grid button { position: relative; display: block; width: 100%; padding: 0; border: 3px solid transparent; border-radius: 10px; background: var(--paper); color: var(--ink); font: 400 13px/1.35 var(--font-ui); text-align: left; cursor: pointer; overflow: hidden; }
.media-library-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--mist); }
.media-library-grid .media-library-logo img, .media-library-grid .media-library-decoration img { object-fit: contain; padding: 12px; box-sizing: border-box; }
.media-library-grid span { display: block; padding: 6px 8px 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.media-library-grid span i { color: var(--ink-muted); }
.media-library-grid button:hover { border-color: var(--line-control); }
.media-library-grid button[aria-pressed="true"] { border-color: var(--ink); }
/* The tick is a drawing, not a character: a character would be read out as part of the photo's name. */
.media-library-grid button[aria-pressed="true"]::after { content: ""; position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 2px solid var(--paper); border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat; }
.media-library :focus-visible { outline: 3px solid var(--teal-text); outline-offset: 2px; }
.media-library-none { margin: 24px 0; text-align: center; color: var(--ink-muted); }
.media-library-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line-soft); }
.media-library-foot p { flex: 1 1 120px; margin: 0; color: var(--ink-muted); }
.media-library .media-library-foot .button { width: auto; min-height: 44px; padding: 0 20px; font-size: 15px; align-self: auto; }
.media-library .media-library-upload { position: relative; display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0 18px; border: 2px dashed var(--line-control); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.media-library-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.media-library-upload:focus-within { outline: 3px solid var(--teal-text); outline-offset: 2px; }
/* Folders in the pop-up (S107, V27-MediaFoldersLibrary, V27-MediaFoldersPhone): a column to look in beside the list, and one list
   above it on a phone. Without folders the body is the one column it always was. */
.media-library-body { flex: 1 1 0; min-height: 0; display: flex; }
.media-library-main { flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.media-library-filed .media-library-body { border-top: 1px solid var(--line-soft); }
.media-library-filed .media-library-tools { padding-top: 12px; }
.media-library-folders { flex: 0 0 228px; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--line-soft); box-sizing: border-box; }
.media-library-folders button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 600 14px var(--font-ui); text-align: left; cursor: pointer; }
.media-library-folders button:nth-of-type(3) { margin-top: 8px; }
.media-library-folders button:hover { background: var(--mist); }
.media-library-folders button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.media-library-folders span { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.media-library-folders small { font: 500 12px var(--font-figure); }
.media-library-folders p { margin: 12px 12px 0; font-size: 12px; color: var(--ink-muted); }
.media-library .media-library-folder { display: none; flex-direction: column; gap: 4px; margin: 0; padding: 12px 12px 0; }
.media-library .media-library-folder label { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.media-library .media-library-folder select { width: 100%; min-height: 44px; padding: 6px 12px; border: 2px solid var(--line-control); border-radius: 8px; background: var(--paper); color: var(--ink); font: 400 15px var(--font-ui); box-sizing: border-box; }
@media (max-width: 700px) { .media-library-folders { display: none; } .media-library .media-library-folder { display: flex; } }
.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; } }

/* Staff help (S60, V17-Help, ADR-046): in the admin shell, an article in the screens' own words, as wide as the page beside the menu
   (the product owner, 20 Nov 2026; the board draws a 680px column). */
.help-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.help-paths .box { border-radius: var(--radius); padding: 18px 20px; gap: 10px; }
.help-paths .figure { margin: 0; font-size: 12px; color: var(--ink-muted); }
.admin-main .help-paths h2 { font: 600 18px/1.25 var(--font-display); }
.help-paths ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.help-paths p { margin: 0; font-size: 13px; }
.admin-main .help-first { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px var(--space-6); }
.help-first div { display: flex; flex-direction: column; gap: 6px; max-width: 620px; }
.help-first p { margin: 0; }
.help-article { font-size: 15px; line-height: 1.6; }
.help-article > * { margin: 0 0 var(--space-4); }
.admin-main .help-article h2 { margin: var(--space-6) 0 var(--space-3); font: 600 20px/1.25 var(--font-display); }
.admin-main .help-article h3 { margin: var(--space-4) 0 var(--space-2); font: 700 15px/1.3 var(--font-ui); }
.help-article ol, .help-article ul { padding-left: 22px; }
.help-article li { margin-bottom: var(--space-2); }
.help-article li > ul, .help-article li > ol { margin-top: var(--space-2); }
/* What to type, shown as typed (S72): wraps in its own box, never widens the page. */
.help-article pre { padding: var(--space-3); border-radius: var(--radius); background: var(--mist); white-space: pre-wrap; overflow-wrap: anywhere; }
/* A file's columns or a list of statuses: scrolls in its own box on a phone, never the page. */
.help-article table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
.help-article th { padding: 8px 10px; border-bottom: 2px solid var(--ink); font-size: 12px; text-align: left; white-space: nowrap; }
.help-article td { padding: 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.help-where { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px var(--space-4); padding: var(--space-3) var(--space-4); background: var(--mist); border-radius: var(--radius); font-size: 14px; }
/* The pictures are 1280 wide: shown no larger, so a wide screen doesn't blur them. */
.help-picture { max-width: 1280px; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.help-picture img { display: block; width: 100%; height: auto; }
.help-picture figcaption { padding: var(--space-2) var(--space-3); border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--ink-muted); }
.help-pager { display: flex; justify-content: flex-end; margin-top: var(--space-6); padding-top: 14px; border-top: 2px solid var(--ink); font-size: 14px; }
.help-in-path { padding-top: var(--space-4); border-top: 1px solid var(--line-soft); }
@media (max-width: 560px) { .help-where .button { width: 100%; min-height: 44px; } .help-paths a, .help-pager a { display: inline-flex; align-items: center; min-height: 44px; } }
/* A path printed is a handout: the words, without the shell or anything to press. */
@media print {
  body:has(.help-article) :is(.admin-bar, .admin-strip, .admin-nav, .admin-footer, .breadcrumb, .uat-strip, .skip, .help-screen-only, .help-where .button, .help-pager) { display: none; }
  body:has(.help-article) .admin-main { padding: 0; font-size: 12pt; }
  .help-article { font-size: 12pt; }
  .help-in-path { break-inside: auto; }
  .help-article h2, .help-article h3 { break-after: avoid; }
  .help-article a { color: inherit; text-decoration: none; }
}

/* Guided tours (S61, V17-Tour, ADR-046). The dimming is the ring's own shadow, so nothing lies over the page and every control
   still works; the step is a dialog beside the lit control, and across the foot of a phone. */
.tour-layer { position: fixed; inset: 0; z-index: 1000; overflow: hidden; pointer-events: none; }
.tour-ring { position: absolute; border-radius: 8px; box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--brand-teal), 0 0 0 200vmax rgba(26, 26, 26, .55); }
.tour-dim { position: fixed; inset: 0; z-index: 1000; background: rgba(26, 26, 26, .55); pointer-events: none; }
.tour-step { position: absolute; z-index: 1001; box-sizing: border-box; width: min(380px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border: 2px solid var(--brand-charcoal); border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font: 400 14px/1.5 var(--font-ui); }
.tour-step.tour-centred { position: fixed; top: 22vh; left: 50%; transform: translateX(-50%); width: min(440px, calc(100vw - 32px)); }
.tour-step:focus-visible { outline-offset: 4px; outline-color: var(--paper); }
.tour-step > * { margin: 0; }
.tour-step h2 { font: 600 18px/1.25 var(--font-display); }
.tour-step h2::after { content: "." / ""; color: var(--brand-orange); }
.tour-step h2[data-asks]::after { content: none; }
.tour-count { font: 400 12px/1.4 var(--font-figure); color: var(--ink-muted); }
.tour-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.tour-actions .button { min-height: 40px; padding: 0 18px; font-size: 14px; }
.tour-end { margin-left: auto; min-height: 40px; padding: 0 4px; border: 0; background: none; color: var(--brand-link); font: inherit; text-decoration: underline; cursor: pointer; }
.tour-end:hover { color: var(--ink); }
.tour-paused { position: fixed; right: 16px; bottom: 16px; z-index: 1001; display: flex; align-items: center; gap: 12px; margin: 0; padding: 6px 8px 6px 18px; border-radius: 999px; background: var(--brand-charcoal); color: var(--paper); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font: 400 13px/1.4 var(--font-ui); }
.tour-paused a { display: inline-flex; align-items: center; min-height: 32px; color: var(--paper); font-weight: 700; }
.tour-paused :focus-visible { outline-color: var(--paper); }
@media (prefers-reduced-motion: no-preference) { .tour-ring.tour-moving { transition: top .2s ease, left .2s ease, width .2s ease, height .2s ease; } }
@media (max-width: 640px) {
  .tour-step, .tour-step.tour-centred { position: fixed; top: auto; left: 0; right: 0; bottom: 0; transform: none; width: auto; border-width: 2px 0 0; border-radius: 0; padding: 18px 16px 22px; }
  .tour-actions .button, .tour-end { min-height: 44px; }
}
@media print { .tour-layer, .tour-dim, .tour-step, .tour-paused { display: none; } }

/* Emails (S62, V18-Emails): the look's form beside its preview; the preview is the email itself, in a frame of its own. */
.admin-main .emails-columns { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-4); }
.admin-main .emails-columns > .box { flex: 1 1 420px; min-width: 0; }
.admin-main .emails-thumb { display: block; width: 180px; max-width: 100%; height: auto; border: 1px solid var(--line-soft); border-radius: 4px; }
.admin-main .emails-preview { display: block; width: 100%; height: 760px; border: 1px solid var(--line-soft); border-radius: 4px; background: var(--mist); }
.admin-main .emails-text { margin: 0; padding: var(--space-3); border: 1px solid var(--line-soft); border-radius: 4px; background: var(--paper); font: 13px/1.6 var(--font-figure); white-space: pre-wrap; overflow-wrap: anywhere; }
/* The formatting bar over an email composer's box (S64, ADR-048): the brochure editor's four buttons, at the admin controls' height. */
.admin-main .format-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 6px; }
.admin-main .format-bar button { min-width: 40px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-control); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: 600 14px/1 var(--font-ui); cursor: pointer; }
.admin-main .format-bar button:hover { background: var(--mist); }
.admin-main .format-bar .format-link { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.admin-main .format-bar .format-link input { width: 260px; max-width: 100%; min-height: 40px; padding: 0 10px; font-size: 14px; }
.admin-main .format-bar .format-said { font-size: 13px; color: var(--ink-muted); }
.admin-main .format-bar [hidden] { display: none; }
