/* The public website's look: the "Polished" redesign Peter approved on 2026-10-01 (.superpowers/website-looks/looks/polished.html, design-review.md).
   Navy, the crest, a woven tartan strip under the header and above the footer, the warm paper background, and one typeface, Source Sans 3
   (Cormorant Garamond dropped, Peter 2026-10-01). Real breakpoints at 600, 700, 960 and 1080 px instead of the old page zoom. */
/* The typeface, served from this site (Peter, 2026-09-28: no trip to Google's font servers over a phone hotspot); OFL, licence in /fonts/. A Latin and a Latin Extended file; a browser fetches the second only for a name that needs it. */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/source-sans-3-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/source-sans-3-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens (design-review.md, section 3) ---------- */
:root {
  --navy: #0f1f3d; --navy-2: #182c52; --tint: #f4f6fb; --paper: #f7f6f2; --card: #ffffff;
  --ink: #1b2130; --muted: #5b6475; --line: #e3e6ea; --field: #7a8394;
  --gd: #1d4d36; --mint: #a8d5a0; --silver: #c9cdd2;
  --green: #3f7d3a; --green-soft: #e7f0e4; --ok: #2f6a2b; --ok-bg: #e7f0e4;
  --warn: #8a5a00; --warn-bg: #fff5de; --danger: #b3261e;
  --sh1: 0 1px 2px rgba(15,31,61,.06), 0 4px 12px rgba(15,31,61,.04);
  --sh2: 0 8px 24px rgba(15,31,61,.10);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 17px/1.55 "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif; font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
main { flex: 1 0 auto; padding-bottom: 56px; }
:is(h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote) { margin: 0; }
:is(h1, h2, h3) { color: var(--navy); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; text-wrap: balance; }
h1 { font-size: 28px; line-height: 1.15; }
h2 { font-size: 22px; margin-bottom: 12px; }
h3 { font-size: 18px; line-height: 1.25; }
img { display: block; max-width: 100%; height: auto; }
:is(button, input, select, textarea) { font: inherit; color: inherit; }
a { color: var(--navy); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gd); outline-offset: 2px; }
.hidden, [hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[id] { scroll-margin-top: 16px; }

/* ---------- Layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.read { max-width: 760px; margin-left: auto; margin-right: auto; }
.readl { max-width: 760px; }
.sec { padding-top: 48px; }
.sec.top32 { padding-top: 32px; }
.gap32 { margin-top: 32px; }
.mt10 { margin-top: 10px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gd); margin-bottom: 6px; }
.lede { font-size: 18px; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 15px; line-height: 1.45; }
.sec-head { margin-bottom: 20px; }
.sec-head p:not(.eyebrow) { color: var(--muted); }
.page-head { padding: 32px 0 8px; }
.page-head h1 { font-size: 28px; line-height: 1.15; }
.page-head .lede { margin-top: 10px; }
.page-head + * { margin-top: 16px; }

/* ---------- Brand bar (R1) ---------- */
.bar { background: var(--navy); color: #fff; }
.bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-top: 10px; padding-bottom: 4px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-height: 48px; border-radius: 8px; }
.brand img { height: 48px; width: auto; filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
.brand span { display: flex; flex-direction: column; }
.brand small { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--silver); line-height: 1.2; }
.brand b { font-size: 20px; font-weight: 700; line-height: 1.1; }
.nav { display: flex; width: calc(100% + 16px); margin: 0 -8px; justify-content: space-between; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 16px; font-weight: 600; color: #fff; text-decoration: none; border-radius: 8px 8px 0 0; white-space: nowrap; }
.nav a:hover { background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--mint); }
:is(.bar, .foot, .cta, .stickybar, .honour) :focus-visible { outline-color: var(--mint); }
.bar .basket { order: 1; margin-left: auto; position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px; color: #fff; border-radius: 8px; }
.bar .basket[hidden] { display: none; }
.bar .basket:hover { background: rgba(255,255,255,.08); }
.nav { order: 2; }
.basket-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; background: var(--green); color: #fff; }
.basket-count[hidden] { display: none; }
@media (max-width: 359px) { .brand img { height: 40px; } .nav a { font-size: 15px; padding: 0 6px; } }

/* ---------- Tartan strip (R9): crossing semi-transparent bands. .stripe is the same strip (Our story's page keeps that name). ---------- */
.tartan, .stripe { height: 12px; background-color: var(--navy);
  background-image:
    repeating-linear-gradient(45deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, transparent 0 4px, rgba(168,213,160,.42) 4px 16px, transparent 16px 21px, rgba(255,255,255,.5) 21px 22px, transparent 22px 32px),
    linear-gradient(0deg, transparent 0 3px, rgba(168,213,160,.42) 3px 9px, transparent 9px 12px),
    linear-gradient(0deg, transparent 0 5.5px, rgba(255,255,255,.3) 5.5px 6.5px, transparent 6.5px 12px);
  background-size: auto, 32px 12px, 32px 12px, 32px 12px; }

/* ---------- Buttons. .card-btn and .eft-btn are the older names of .btn and .btn.alt (thanks.js, the twin prompt). ---------- */
.btn, .card-btn, .eft-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px 10px; min-height: 56px; padding: 14px 22px; border-radius: 10px; border: 2px solid var(--navy); background: var(--navy); color: #fff; font-weight: 700; font-size: 18px; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover, .card-btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn:active, .card-btn:active, .eft-btn:active { transform: translateY(1px); }
.btn.alt, .eft-btn { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn.alt:hover, .eft-btn:hover { background: var(--tint); border-color: var(--navy); }
.btn:disabled, .card-btn:disabled { background: #c9cfd9; border-color: #c9cfd9; color: #3d4657; cursor: not-allowed; transform: none; }
.btn.alt:disabled, .eft-btn:disabled { background: #fff; border-color: #c9cfd9; color: #5b6475; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btns .btn { flex: 1 1 200px; }
.panel > .btn, form.panel .btn { display: flex; width: 100%; margin-top: 16px; }
/* The pay buttons: label over price, stacked inside the order summary, side by side elsewhere (thanks page). */
.pay { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.pay.one { grid-template-columns: 1fr; }
.pay :is(.btn, .card-btn, .eft-btn) { min-height: 64px; width: 100%; flex-direction: column; gap: 2px; padding: 10px 20px; }
.pay small { display: block; font-size: 15px; font-weight: 600; opacity: .9; font-variant-numeric: tabular-nums; }
.pay small:empty { display: none; }
@media (min-width: 600px) { .pay { grid-template-columns: 1fr 1fr; } .summary .pay, .pay.one { grid-template-columns: 1fr; } }

/* ---------- Progress (Home hero, Our story's call to action, Donate). meterHtml() in donate-lib.js writes it. ---------- */
.prog-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gd); margin: 0 0 2px; }
.cta .prog-label { color: var(--mint); }
.prog-fig { font-size: 17px; color: var(--muted); }
.prog-fig b { font-size: 26px; color: var(--navy); font-weight: 700; margin-right: 4px; font-variant-numeric: tabular-nums; }
.meter { height: 12px; background: #e3e9f2; border-radius: 99px; overflow: hidden; margin-top: 10px; }
.meter span { display: block; height: 100%; min-width: 12px; background: var(--gd); border-radius: 99px; box-shadow: 3px 0 0 #fff; }
.meter span[style="width:0%"] { min-width: 0; box-shadow: none; }

/* The stacked chart of donations and profit on sales (chartHtml in donate-lib.js), under the meter. Two distinct colours, on white and on the navy call to action. */
.chart { --seg-gifts: #9a5b00; --seg-sales: var(--gd); margin-top: 14px; }
.cta .chart { --seg-gifts: #f2c14e; --seg-sales: #6a9be0; } /* gold and blue: clearly different in lightness, each over 3:1 against the track */
.chart-bar { display: flex; height: 16px; background: #e3e9f2; border-radius: 99px; overflow: hidden; }
.cta .chart-bar { background: rgba(255,255,255,.16); }
.chart .seg { display: block; height: 100%; }
.chart .seg.gifts, .chart .sw.gifts { background: var(--seg-gifts); }
.chart .seg.sales, .chart .sw.sales { background: var(--seg-sales); }
.chart .seg.sep { box-shadow: -2px 0 0 #fff; }
.cta .chart .seg.sep { box-shadow: -2px 0 0 var(--navy); }
.chart-key { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--muted); }
.cta .chart-key { color: #c9d3e6; }
.chart-key .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- Home hero (R3) ---------- */
.hero .wrap { padding: 0; }
.hero-photo { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; object-position: center 60%; background: #d9dde4; }
.hero-card { position: relative; background: #fff; padding: 22px 16px 26px; border-bottom: 1px solid var(--line); display: grid; gap: 20px; }
.hero-card .motto { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gd); margin-bottom: 8px; }
.hero-card h1 { font-size: 30px; line-height: 1.1; letter-spacing: -.015em; }
.hero-card .lede { margin-top: 10px; }
.hero-card .btns { margin-top: 18px; }
/* Space kept for the raised-so-far line and bar, so the buttons do not jump when it arrives (and simply stays empty if it cannot be had). */
.hero-prog { min-height: 150px; }

/* ---------- Product grid and cards (R4, R5) ---------- */
.products { display: grid; grid-template-columns: 1fr; gap: 20px; }
.prod { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--sh1); transition: box-shadow .15s, border-color .15s; }
.prod.is-chosen { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy), var(--sh1); }
.photo { position: relative; aspect-ratio: 4/5; min-height: 0; overflow: hidden; background: #e9ebef; flex: none; }
/* Safari before 15 has no aspect-ratio: the padding trick keeps the 4:5 box, else every photo is 0 px high. */
@supports not (aspect-ratio: 1) { .photo { height: 0; padding-bottom: 125%; } }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 10px; left: 10px; font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .04em; text-transform: uppercase; padding: 7px 10px; border-radius: 99px; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.low { background: var(--warn-bg); color: var(--warn); }
.badge.pre { background: var(--navy); color: #fff; }
.sides { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0 8px; }
.sides button { min-height: 44px; padding: 10px 14px; border-radius: 99px; border: 0; background: rgba(255,255,255,.92); color: var(--navy); font-size: 14px; white-space: nowrap; font-weight: 600; line-height: 1.2; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.sides button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.sides button:focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px var(--navy); }
.prod .body { flex: 1; display: flex; flex-direction: column; padding: 16px 16px 18px; }
.price { font-size: 22px; font-weight: 700; color: var(--navy); margin: 2px 0; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stock { font-size: 15px; font-weight: 600; color: var(--ok); line-height: 1.35; }
.stock.low, .stock.back, .stock.pre { color: var(--warn); }
.desc { font-size: 15px; line-height: 1.45; color: var(--ink); margin-top: 10px; }
.desc ul, .spec { list-style: none; padding: 0; margin: 8px 0 0; font-size: 15px; line-height: 1.4; color: var(--muted); display: grid; gap: 4px; }
.desc li, .spec li { position: relative; padding-left: 14px; }
.desc li::before, .spec li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 1px; background: var(--gd); }
.qty { margin-top: auto; padding-top: 16px; }
.qty .fine { margin-top: 6px; }
.qlabel { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.qlabel .on { display: none; color: var(--navy); }
.qlabel svg { width: 14px; height: 14px; }
.prod.is-chosen .qlabel .off { display: none; }
.prod.is-chosen .qlabel .on { display: inline-flex; align-items: center; gap: 6px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--field); border-radius: 10px; background: #fff; overflow: hidden; }
.prod.is-chosen .stepper { border-color: var(--navy); background: var(--tint); }
.stepper button { width: 52px; height: 48px; flex: none; border: 0; background: transparent; color: var(--navy); font-size: 26px; font-weight: 600; line-height: 1; cursor: pointer; }
.stepper button:hover:not(:disabled) { background: rgba(15,31,61,.06); }
.stepper button:disabled { color: #a4abb8; cursor: not-allowed; }
.stepper button:focus-visible { outline-offset: -3px; }
.stepper output { flex: 1; text-align: center; font-size: 19px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; border-left: 1px solid var(--line); border-right: 1px solid var(--line); line-height: 48px; }
.prod.is-chosen .stepper output { border-color: #d5dbe6; }
/* The quiet line under the products (R2): what Sold out and Pre-order mean. */
.aside-note { margin-top: 24px; max-width: 760px; padding: 2px 0 2px 14px; font-size: 15px; line-height: 1.5; border-left: 3px solid var(--gd); color: var(--ink); }

/* ---------- School events ("Find us at school") ---------- */
.event { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--gd); border-radius: 12px; padding: 14px 16px; margin-top: 12px; box-shadow: var(--sh1); }
.event .when { flex: 0 0 auto; text-align: center; background: var(--navy); color: #fff; border-radius: 10px; padding: 6px 10px; min-width: 64px; max-width: 120px; line-height: 1.1; }
.event .when b { display: block; font-size: 22px; }
.event .when span { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.event h3 { margin: 0 0 2px; font-size: 18px; color: var(--navy); }
.event p { margin: 0; color: var(--muted); }
.pays { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pays span { font-size: 13px; font-weight: 700; color: var(--ok); background: var(--ok-bg); border-radius: 99px; padding: 2px 10px; }

/* ---------- Panels, fields, choices (R10) ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 16px; box-shadow: var(--sh1); margin: 0; }
.panel + .panel, .panel + .status, .status + .panel, .note + .panel { margin-top: 20px; }
p.panel { margin: 16px 0; }
.panel h3 { margin-bottom: 4px; }
.panel-sub { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fields { display: grid; gap: 16px; }
.fields > :is(.wide, .full) { grid-column: 1 / -1; }
/* Two fields side by side never step down: labels in a grid carry no margin of their own (the old label.f + label.f rule did). */
.panel > :is(label.f, .tick) + :is(label.f, .fields, .tick), .panel > .fields + :is(label.f, .tick), .other { margin-top: 16px; }
label.f, .f { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.f .hint { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 1px; }
.f :is(input, select, textarea) { display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 11px 14px; border: 1px solid var(--field); border-radius: 10px; background: #fff; font-size: 17px; font-weight: 400; color: var(--ink); }
.f :is(input, textarea)::placeholder { color: #6b7385; opacity: 1; }
.f textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.f select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.f :is(input, select, textarea):hover { border-color: var(--muted); }
.f :is(input, select, textarea):focus-visible { outline: 3px solid var(--gd); outline-offset: 1px; border-color: var(--navy); }
:is(input, select, textarea)[aria-invalid="true"] { border-color: var(--danger); }
.reassure, .popia { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.reassure svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--gd); }
.choices { display: grid; gap: 10px; }
.choice { display: grid; grid-template-columns: 24px 1fr auto; gap: 4px 12px; align-items: start; min-height: 64px; padding: 14px 16px; border: 1px solid #c9cfd9; border-radius: 10px; background: #fff; cursor: pointer; }
.choice:hover { border-color: var(--field); }
.choice.on { border-color: var(--navy); background: var(--tint); box-shadow: inset 0 0 0 1px var(--navy); }
/* Its own rule: a browser without :has() drops a whole selector list that contains it (sweep 3: EDGE-3). */
.choice:has(input:checked) { border-color: var(--navy); background: var(--tint); box-shadow: inset 0 0 0 1px var(--navy); }
.choice:focus-within, .panel.proof label.btn:focus-within { outline: 3px solid var(--gd); outline-offset: 2px; }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); cursor: pointer; }
.choice input:focus-visible { outline: none; }
.choice b { display: block; font-size: 17px; color: var(--ink); line-height: 1.3; }
.choice :is(.why, small) { display: block; font-size: 15px; line-height: 1.4; color: var(--muted); margin-top: 2px; }
.choice .fee { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
#address { margin-top: 16px; }
.tick { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; font-weight: 600; cursor: pointer; min-height: 44px; padding-top: 2px; }
.tick input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--navy); }
.roundup { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-weight: 600; font-size: 15px; min-height: 44px; cursor: pointer; }
.roundup input { width: 22px; height: 22px; margin: 0; flex: 0 0 auto; accent-color: var(--navy); }

/* ---------- Checkout and the order summary (R4, R6, R8) ---------- */
.checkout { display: grid; gap: 20px; align-items: start; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 16px; box-shadow: var(--sh2); }
.summary h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; font-size: 19px; }
.summary h3 small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.line > :last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.line.total { border-bottom: 0; padding-top: 12px; align-items: baseline; font-size: 22px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.line.total > :first-child { font-size: 17px; color: var(--ink); }
.line.total small { font-weight: 400; font-size: 15px; color: var(--muted); }
.empty { padding: 14px 16px; border: 1px dashed #c9cfd9; border-radius: 10px; color: var(--muted); font-size: 15px; background: #fafaf8; }
.trust { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 15px; line-height: 1.4; color: var(--ink); }
.trust li { display: flex; gap: 10px; align-items: flex-start; }
.trust svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--gd); }
.hintline { margin-top: 16px; padding: 10px 12px; font-size: 15px; line-height: 1.4; color: var(--ink); background: var(--tint); border-radius: 8px; }
.hintline:empty { display: none; }
.hintline + .hintline { margin-top: 8px; }
.after { margin-top: 14px; font-size: 15px; line-height: 1.45; color: var(--muted); display: grid; gap: 6px; }
#twin { margin-top: 12px; }
#twin p { font-size: 16px; }

/* Phone-only basket bar, once something is chosen (store.js shows it while the summary is off screen). */
.stickybar { position: sticky; bottom: 0; z-index: 5; margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--navy); color: #fff; box-shadow: 0 -6px 18px rgba(15,31,61,.18); }
.stickybar .sum { font-weight: 600; font-variant-numeric: tabular-nums; }
.stickybar .sum b { font-weight: 700; }
.stickybar a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 10px; background: #fff; color: var(--navy); font-weight: 700; text-decoration: none; }

/* ---------- Messages and fine print ---------- */
.fine { font-size: 15px; line-height: 1.45; color: var(--muted); margin-top: 12px; }
.fine:empty { display: none; }
.error { color: var(--danger); margin: 8px 0; font-weight: 600; }
.error:empty { display: none; }
span.error { display: block; font-weight: 400; font-size: 15px; margin: 4px 0 0; }
.note { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 10px 12px; font-size: 15px; line-height: 1.45; margin: 12px 0 0; }
.notices p.panel:first-child { margin-top: 20px; }
.test-mode { background: #ffe8a3; color: #5c3d00; border-bottom: 3px solid #e0a100; text-align: center; font-weight: 700; padding: 10px 16px; }

/* ---------- An order's status: the confirmation, the thank-you page and Check an order (shop-lib.js renderOrder) ---------- */
.status { text-align: center; padding: 20px; border-radius: 12px; margin: 16px 0; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh1); }
.status.good { background: var(--green); border-color: var(--green); color: #fff; }
.status .ref { font-variant-numeric: lining-nums tabular-nums; font-size: 32px; font-weight: 700; letter-spacing: .04em; line-height: 1.2; }
.panel.summary { box-shadow: var(--sh1); }
dl.bank { margin: 12px 0 0; }
dl.bank dt { color: var(--muted); font-size: 14px; }
dl.bank dd { margin: 0 0 8px; font-size: 19px; font-variant-numeric: tabular-nums; }
.copy { display: flex; justify-content: space-between; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.copy button { flex: 0 0 auto; min-height: 44px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--field); background: #fff; color: var(--navy); font-size: 15px; font-weight: 600; cursor: pointer; }
.copy button:hover { background: var(--tint); }
#placed > h1, #placed > h2 { margin-bottom: 4px; }

/* ---------- Footer (R7) ---------- */
.foot { background: var(--navy); color: #dfe6f3; font-size: 15px; }
.foot .wrap { padding-top: 32px; padding-bottom: 24px; }
.foot-cols { display: grid; gap: 24px; }
.foot-about { display: flex; gap: 14px; align-items: flex-start; line-height: 1.5; }
.foot-about img { width: 40px; height: auto; flex: none; }
.foot-about b { display: block; color: #fff; font-size: 17px; }
.foot-about .motto { display: block; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--silver); margin: 2px 0 8px; }
.foot h2 { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); margin-bottom: 4px; }
.foot ul { list-style: none; padding: 0; }
.foot li > :is(a, span) { display: inline-block; padding: 6px 0; color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #b6c0d4; }
.foot-meta a { color: #b6c0d4; display: inline-block; padding: 8px 0; }
.foot-meta .version:empty { display: none; }
.foot-meta .last { margin-left: auto; }

/* ---------- Inner page heads: the photo banner with the title over it (Our story) ---------- */
.banner { position: relative; overflow: hidden; background: var(--navy); margin: 0; }
.banner img { width: 100%; aspect-ratio: 2/1; object-fit: cover; object-position: center 38%; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,31,61,0) 30%, rgba(15,31,61,.82)); }
.banner-text { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; color: #fff; }
.banner-text .motto { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--mint); margin-bottom: 4px; }
.banner-text h1 { color: #fff; font-size: 30px; }

/* ---------- Our story (R11): the mock-up's pieces ---------- */
.prose p + p { margin-top: 14px; }
.prose p { text-wrap: pretty; }
.fig { margin: 24px 0; }
.fig img { width: 100%; border-radius: 12px; object-fit: cover; }
.fig figcaption { margin-top: 8px; font-size: 15px; color: var(--muted); }
.fig.campus img { aspect-ratio: 3.5/1; object-position: center 60%; }
.fig.band img { aspect-ratio: 1337/527; }
.spread { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; grid-template-areas: "h1 h1" "h2 h2" "p1 p2"; }
.spread .ph { max-width: 300px; width: 100%; border-radius: 12px; overflow: hidden; background: #e9ebef; }
.spread .ph img { width: 100%; height: 100%; aspect-ratio: 4/5; object-fit: cover; }
.spread .p1 { grid-area: p1; justify-self: end; }
.spread .p2 { grid-area: p2; }
.spread .hc1 { grid-area: h1; }
.spread .hc2 { grid-area: h2; }
.honour { background: var(--navy); color: #dfe6f3; border-radius: 12px; padding: 20px; font-size: 15px; line-height: 1.5; display: flex; flex-direction: column; }
.honour .lbl { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); }
.honour h3 { color: #fff; font-size: 20px; margin: 6px 0 10px; }
.honour :is(.tartan, .stripe) { height: 8px; margin: auto -20px -20px; border-radius: 0 0 12px 12px; }
.honour p { margin-bottom: 18px; }
.results { list-style: none; padding: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.results li { display: grid; gap: 2px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.results b { color: var(--navy); }
.results b span { display: block; font-weight: 600; font-size: 15px; color: var(--muted); }
.stats { display: grid; gap: 12px; margin: 24px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat b { display: block; font-size: 26px; line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat span { font-size: 15px; color: var(--muted); line-height: 1.4; }
.reasons { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.reasons li { position: relative; padding-left: 22px; }
.reasons li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--gd); }
/* The navy call-to-action panel ("Help us get there"): progress and two buttons, the second one outlined in white. */
.cta { background: var(--navy); color: #dfe6f3; border-radius: 12px; padding: 24px 20px; display: grid; gap: 20px; box-shadow: var(--sh2); }
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta .prog-fig { color: #c9d3e6; }
.cta .prog-fig b { color: #fff; }
.cta .meter { background: rgba(255,255,255,.16); }
.cta .meter span { background: var(--mint); box-shadow: 3px 0 0 var(--navy); }
.cta .btn { background: #fff; color: var(--navy); border-color: #fff; }
.cta .btn:hover { background: var(--tint); }
.cta .btn.alt { background: transparent; color: #fff; border-color: #fff; }
.cta .btn.alt:hover { background: rgba(255,255,255,.08); }
/* The honour roll with no names yet. */
.roll-empty { display: flex; gap: 14px; align-items: center; padding: 18px 20px; background: #fff; border: 1px dashed #b9c0cc; border-radius: 12px; }
.roll-empty svg { flex: none; width: 28px; height: 28px; color: var(--gd); }
.roll-empty p { font-size: 16px; color: var(--ink); }
.roll-empty a { font-weight: 700; }
/* The honour roll with names (rollHtml in donate-lib.js): every line in italics (Peter, 2026-10-02). The site has no italic font file,
   so the browser slants Source Sans 3 itself rather than the page loading another font. */
.roll { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 10px; }
.roll li { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--navy); border-radius: 12px; padding: 12px 16px; font-style: italic; }
.roll b { color: var(--navy); }
.roll i { font-style: italic; font-weight: 700; color: var(--gd); margin-left: 6px; font-variant-numeric: tabular-nums; }
.roll span { display: block; color: var(--muted); font-size: 15px; }
.roll q { display: block; font-style: italic; font-size: 15px; color: var(--muted); margin-top: 4px; }

/* ---------- Donate (R12): the mock-up's pieces ---------- */
.don-head { display: grid; gap: 20px; }
.bigprog { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: var(--sh1); }
.bigprog .fig-big { font-size: 34px; font-weight: 700; color: var(--navy); line-height: 1.05; font-variant-numeric: tabular-nums; }
.bigprog .of { font-size: 17px; color: var(--muted); margin-top: 4px; }
.bigprog .of b { color: var(--gd); }
.bigprog .small { margin-top: 10px; }
.amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.amounts button { position: relative; min-height: 56px; border: 2px solid var(--navy); border-radius: 10px; background: #fff; color: var(--navy); font-size: 19px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.amounts button:hover { background: var(--tint); }
.amounts button[data-amount="other"] { font-size: 18px; grid-column: 1 / -1; }
.amounts button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.amounts button[aria-pressed="true"]::before { content: "\2713"; margin-right: 6px; color: var(--mint); }
.money { position: relative; display: block; }
.money i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); margin-top: 3px; font-style: normal; font-weight: 700; color: var(--navy); font-size: 17px; }
.money input { padding-left: 34px; font-variant-numeric: tabular-nums; }
.facts { margin-top: 16px; display: grid; gap: 8px; font-size: 15px; line-height: 1.45; }
.facts p { display: flex; gap: 10px; align-items: flex-start; }
.facts svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--gd); }
.gift-big { font-size: 40px; font-weight: 700; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.gift-none { font-size: 17px; color: var(--muted); padding: 14px 16px; border: 1px dashed #c9cfd9; border-radius: 10px; background: #fafaf8; }
.gift-lbl { font-size: 15px; font-weight: 600; color: var(--muted); }
.fs { margin: 0; min-width: 0; }

/* ---------- The coming-soon page and the not-found page ---------- */
.held { padding: 48px 0 24px; text-align: center; }
.held .eyebrow { margin-bottom: 8px; }
.held h1 { font-size: 30px; }
.held .lede { margin: 12px auto 0; max-width: 640px; }
.held .panel { max-width: 560px; margin: 24px auto 0; }

/* ---------- Wider screens ---------- */
@media (min-width: 600px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields { grid-template-columns: 1fr 1fr; }
  .fields.one { grid-template-columns: 1fr; }
  .amounts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .amounts:has(> button:nth-child(5):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .results li { grid-template-columns: 220px 1fr; }
  .banner img { aspect-ratio: 3/1; }
}
@media (min-width: 700px) {
  .wrap { padding: 0 24px; }
  .bar .wrap { flex-wrap: nowrap; padding-top: 8px; padding-bottom: 8px; }
  .nav { width: auto; margin: 0 -12px 0 0; gap: 4px; }
  .nav { order: 0; margin-left: auto; }
  .bar .basket { order: 1; margin-left: 8px; }
  .nav a { padding: 0 12px; border-radius: 8px; }
  .nav a[aria-current="page"] { border-radius: 8px 8px 0 0; }
  .hero { padding-top: 24px; }
  .hero .wrap { padding: 0 24px; }
  .hero-photo { aspect-ratio: 2/1; max-height: 540px; object-position: center 82%; border-radius: 12px; }
  .hero-card { margin: -32px 32px 0; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh2); padding: 28px 28px 30px; }
  .panel, .summary { padding: 24px; }
  .foot-cols { grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
  .banner { margin: 24px auto 0; max-width: 1072px; border-radius: 12px; }
  .banner-wrap { padding: 0 24px; }
  .banner-text { left: 32px; bottom: 26px; }
  .banner-text h1 { font-size: 40px; }
  .spread { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "p1 p2" "h1 h2"; }
  .spread .p1 { justify-self: end; }
  .cta { padding: 32px; }
}
@media (min-width: 960px) {
  .sec { padding-top: 64px; }
  h2 { font-size: 26px; }
  h3 { font-size: 19px; }
  h1, .page-head h1 { font-size: 34px; }
  .held h1 { font-size: 40px; }
  .hero-card { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
  .hero-card h1 { font-size: 40px; }
  .checkout { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; }
  .checkout > .summary { position: sticky; top: 16px; }
  .stickybar { display: none; }
  .don-head { grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: end; }
  .spread { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "p1 h1 h2 p2"; gap: 20px; }
  .spread .ph { justify-self: stretch; }
  .cta { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 40px; }
  .cta .btns { flex-direction: column; }
  .cta .btns .btn { flex: none; }
}
@media (min-width: 1080px) {
  .products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  /* Three, five, six or nine items: three to a row, so no card is left alone on a row of four. */
  .products:has(> :last-child:nth-child(3)), .products:has(> :last-child:nth-child(5)), .products:has(> :last-child:nth-child(6)), .products:has(> :last-child:nth-child(9)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Stage 2A: Our story and Donate */
/* Donate's panels and summary are titled with h2 (no section heading sits above them), drawn as the mock-up's panel h3. */
.panel > h2 { font-size: 18px; line-height: 1.25; margin-bottom: 4px; }
.summary > h2 { font-size: 19px; line-height: 1.25; margin-bottom: 12px; }
/* Space kept for the raised-so-far figure (Our story's call to action; Donate's big figure), so nothing jumps when it arrives. */
.cta-prog { min-height: 150px; }
.prog-slot { min-height: 200px; }
/* The summary's gift block, and the message under the chosen amount. */
#giftSome { padding: 2px 0 4px; }
.summary .error { margin-top: 12px; }
/* Donate: the notices under the page head (pending gift, closed, a load error) add no gap of their own while they are all hidden. */
.page-head + .notices { margin-top: 0; }
/* Our story: the page's opening line under the banner, then the first section closer to it. */
.story-lede { font-size: 19px; line-height: 1.5; }
.story-intro + .sec { padding-top: 40px; }
@media (min-width: 960px) {
  .panel > h2 { font-size: 19px; }
  .story-lede { font-size: 21px; }
  .story-intro + .sec { padding-top: 48px; }
}


/* Stage 2B: order, terms, thank-you, 404, coming soon */
/* One centred column under the page head: 760 px for reading (Terms, the thank-you page), 560 px for Check an order's form and answer. */
.col { max-width: 760px; margin: 0 auto; }
.col.narrow { max-width: 560px; }
.col > .page-head { padding-top: 32px; }
.col > * + :is(.panel, .order-view, .pay, .trust, .btns) { margin-top: 20px; }
.col > .error { margin-top: 16px; padding: 12px 16px; border-left: 4px solid var(--danger); border-radius: 8px; background: #fdeeec; }
/* "Pay by card instead" while an EFT is awaited: a second way, so outlined; the bank details stay the main thing on the page. */
#toCard .card-btn:not(:disabled) { background: #fff; color: var(--navy); }
#toCard .card-btn:not(:disabled):hover { background: var(--tint); }
/* Check an order: the two fields share a row on a computer with their boxes level, whatever their labels wrap to. */
.lookup .fields > label.f { display: flex; flex-direction: column; }
.lookup .fields > label.f .hint { margin-bottom: 6px; }
.lookup .fields > label.f input { margin-top: auto; }
/* A thank-you page's message (confirming, cancelled, lapsed, at the stand): navy on the tint, a bar down its side. */
.notice { margin: 4px 0 0; padding: 12px 16px; border-left: 4px solid var(--navy); border-radius: 8px; background: var(--tint); color: var(--ink); font-size: 16px; line-height: 1.5; }
.notice:empty { display: none; }
/* An order as renderOrder draws it, on the thank-you page, Check an order and Home's confirmation: the status block first (the
   reference large, green once paid), then the bank details with their Copy buttons, then the lines and total under "Summary". */
:is(.order-view, #placed) .status { margin: 0; padding: 24px 20px; display: grid; gap: 6px; justify-items: center; }
:is(.order-view, #placed) .status > div:first-child { font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
:is(.order-view, #placed) .status:not(.good) > div:first-child { color: var(--navy); }
:is(.order-view, #placed) .status .ref { font-size: 34px; color: var(--navy); }
:is(.order-view, #placed) .status.good .ref { color: #fff; }
:is(.order-view, #placed) .status > div:nth-child(3) { font-size: 16px; color: var(--muted); }
:is(.order-view, #placed) .status.good > div:nth-child(3) { color: #fff; opacity: .92; }
:is(.order-view, #placed) .status + * { margin-top: 20px; }
:is(.order-view, #placed) .note { margin-top: 16px; }
:is(.order-view, #placed) .panel > p:first-child { font-weight: 600; }
:is(.order-view, #placed) dl.bank { margin-top: 14px; border-top: 1px solid var(--line); }
:is(.order-view, #placed) dl.bank dt { padding-top: 10px; }
:is(.order-view, #placed) dl.bank dd { margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
:is(.order-view, #placed) .panel.summary::before { content: "Summary"; display: block; margin-bottom: 4px; font-size: 18px; font-weight: 700; color: var(--navy); }
/* The thank-you page's foot: the reference to keep and who runs it, then the way back. */
.trust.next { border-top: 0; padding-top: 0; font-size: 16px; }
.next-btns .btn { flex: 1 1 220px; }
/* Terms: the reading column, sections spaced by the type scale, the contact people in a small card. */
.legal > h2 { margin-top: 40px; }
.legal > p + p, .legal > ul + p, .legal > p + ul { margin-top: 12px; }
.legal > ul { padding-left: 22px; display: grid; gap: 8px; }
.legal li::marker { color: var(--gd); }
.legal .contact-card { margin-top: 32px; }
.contact-card > h2 { margin-top: 0; }
.contact-card ul { list-style: none; padding: 0; margin-top: 8px; }
.contact-card li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-card li:not(.addr) a { display: inline-block; padding: 4px 0; font-weight: 600; }
.contact-card li.addr { font-size: 15px; color: var(--muted); }
.contact-card .fine { margin-top: 10px; }
.legal .updated { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); }
/* The coming-soon and not-found pages: one white card in the middle, the crest over the title, the woven strip along its foot. */
.held-card { max-width: 640px; margin: 0 auto; padding: 32px 20px 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh2); }
.held-crest { width: 96px; height: auto; margin: 0 auto 16px; filter: drop-shadow(0 2px 4px rgba(15,31,61,.18)); }
.held .held-card .lede { max-width: none; }
.held-note { margin-top: 16px; color: var(--muted); font-size: 16px; }
.held-strip { margin: 32px -20px 0; }
.lost .held-card { padding-bottom: 32px; }
.lost .btns { margin-top: 24px; justify-content: center; }
.lost .btns .btn { flex: 0 1 220px; }
@media (min-width: 700px) {
  .held-card { padding: 40px 48px 0; }
  .held-strip { margin: 40px -48px 0; }
  .lost .held-card { padding-bottom: 40px; }
}
@media (min-width: 960px) {
  :is(.order-view, #placed) .status .ref { font-size: 40px; }
}

/* A buyer cancels their own unpaid order (Version 70): the button under an open order, and the small one in the "order waiting" line. */
.cancel { margin-top: 16px; }
.cancel .btn { width: 100%; min-height: 48px; font-size: 16px; }
.cancel .fine { margin-top: 8px; color: var(--danger); }
.linkish { display: inline; min-height: 0; padding: 10px 0; border: 0; background: none; color: var(--navy); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.linkish:disabled { color: var(--muted); cursor: default; }
.linkish:focus-visible { outline: 3px solid var(--focus, #1d4d36); outline-offset: 2px; border-radius: 4px; }
[data-cancel-note]:not(:empty) { color: var(--danger); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.proof h3 { margin: 0 0 6px; font-size: 1.05rem; }
.proof label.btn { display: inline-block; cursor: pointer; }
