/* Sovereign site style (v7), for every public page: the homepage (index.php) and the pages built on lib/layout.php.
   Ported on 2026-11-09 from the homepage mock-up mockups/redesign-v7/css/v7.css, which stays as the design reference:
   the explainer videos' branding, the red end card's strike, a graded NZ photo behind each section that keeps half its
   colour at the bottom, points of light in the photos, and a light theme switched with the toggle in the nav.
   Documents (principles, policies, constitution, terms) and forms sit on OIA-style paper cards over the backdrop.
   Admin pages keep Bootstrap and css/style.css.
   Values taken from explainer/explainer.html and endcard/endcard.html: brand red rgb(255,2,92), charcoal radial
   rgb(30,30,37) -> rgb(13,13,17) -> rgb(4,4,6), a 72px drafting grid at 4.5% white, Lato Black, silver rgb(200,200,206),
   paper #f3f1ec with ink #17171a, red highlight marks, red stamps, red chapter numerals. */

:root {
  --red: rgb(255, 2, 92);
  --red-d: rgb(214, 0, 74);
  --red-glow: rgba(255, 2, 92, .55);
  /* small red text: the brand red is too dark to read small on the backdrop and the photos (5:1 on the backdrop,
     down to 2.2:1 over a photo's lighter parts; measured 2026-11-09), so small text uses a lighter tint of it (6.3:1),
     and red text on paper a deeper one (5.5:1). Headlines, numerals, stamps, buttons and bars keep the brand red. */
  --red-text: rgb(255, 84, 136);
  --red-ink: rgb(196, 0, 68);
  --pink: rgb(255, 196, 214);
  --bg: #07070a;
  --c1: rgb(30, 30, 37);
  --c2: rgb(13, 13, 17);
  --c3: rgb(4, 4, 6);
  --white: #fff;
  --silver: rgb(200, 200, 206);
  --grey: rgb(140, 140, 148);
  --line: rgba(255, 255, 255, .1);
  /* everything below changes with the theme (dark is the default; [data-theme=light] further down) */
  --grid-line: rgba(255, 255, 255, .045);
  --glow-a: .1; --glow-b: .16;
  --bd-vig: rgba(0, 0, 0, .7);
  --fg-3: rgba(225, 225, 230, .66);
  --surface: rgba(0, 0, 0, .35);
  --field-bg: rgba(0, 0, 0, .45); --field-line: rgba(255, 255, 255, .16);
  --nav-bg: rgba(7, 7, 10, .88); --menu-bg: rgba(7, 7, 10, .97);
  --ghost-bg: rgba(255, 255, 255, .03); --ghost-line: rgba(255, 255, 255, .35); --ghost-bg-h: rgba(255, 255, 255, .08);
  --word-dim: rgba(255, 255, 255, .14);
  --motto: rgb(232, 232, 238);
  --num-glow: 0 0 50px rgba(255, 2, 92, .55), 0 0 120px rgba(255, 2, 92, .3);
  --stat-glow: 0 0 60px rgba(255, 255, 255, .12);
  --doc-bg: #f3f1ec; --doc-shadow: 0 30px 90px rgba(0, 0, 0, .65); --doc-shadow-h: 0 40px 100px rgba(0, 0, 0, .75);
  --tile-line: rgb(200, 200, 206);
  --ph-c: 1.15; --ph-k: 1; --ph-op: 1; --ph-vig: rgba(4, 4, 6, .85);
  --land-vig: rgba(4, 4, 6, .8);
  --lights-op: 1;
  --paper: #f3f1ec;
  --ink: #17171a;
  --lato: "Lato", "Segoe UI", system-ui, sans-serif;
  --ubuntu: "Ubuntu", "Segoe UI", system-ui, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4.5vw, 64px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --slam: cubic-bezier(.5, 0, .7, 1.4);
  color-scheme: dark;
}

/* ---------- the light theme: paper and ink, the same red; the footer stays the black end card ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --red-text: rgb(196, 0, 68);
  --bg: #f4f2ed; --c1: #ffffff; --c2: #f4f2ed; --c3: #e3dfd6;
  --white: #17171a; --silver: #4b4b53; --line: rgba(23, 23, 26, .12);
  --grid-line: rgba(23, 23, 26, .055); --glow-a: .05; --glow-b: .09; --bd-vig: rgba(150, 140, 125, .2);
  --fg-3: rgba(23, 23, 26, .62); --surface: rgba(255, 255, 255, .75);
  --field-bg: #fff; --field-line: rgba(23, 23, 26, .22);
  --nav-bg: rgba(244, 242, 237, .9); --menu-bg: rgba(244, 242, 237, .98);
  --ghost-bg: rgba(23, 23, 26, .03); --ghost-line: rgba(23, 23, 26, .35); --ghost-bg-h: rgba(23, 23, 26, .07);
  --word-dim: rgba(23, 23, 26, .14); --motto: #2b2b31;
  --num-glow: 0 0 40px rgba(255, 2, 92, .22);
  --stat-glow: none;
  --doc-bg: #fff; --doc-shadow: 0 24px 60px rgba(23, 23, 26, .16), 0 0 0 1px rgba(23, 23, 26, .06); --doc-shadow-h: 0 30px 70px rgba(23, 23, 26, .22);
  --tile-line: rgba(23, 23, 26, .22);
  --ph-c: .92; --ph-k: 2.6; --ph-op: .38; --ph-vig: rgba(244, 242, 237, .92);
  --land-vig: rgba(244, 242, 237, .85);
  --lights-op: .6;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--white); font: 400 18px/1.55 var(--lato); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
/* headings focused by the in-page links (for screen readers) don't need a ring */
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.red { color: var(--red); }
.muted { color: #5b5b63; }

/* ---------- the backdrop (fixed): as in every explainer frame ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 45%, var(--c1) 0%, var(--c2) 55%, var(--c3) 100%); overflow: hidden; }
.backdrop__grid {
  position: absolute; inset: -72px;
  background-image: linear-gradient(var(--grid-line) 1.5px, transparent 1.5px), linear-gradient(90deg, var(--grid-line) 1.5px, transparent 1.5px);
  background-size: 72px 72px; animation: drift 24s linear infinite;
}
@keyframes drift { to { transform: translate(72px, 72px); } }
.backdrop__glow { position: absolute; left: 50%; top: 45%; width: 110vw; height: 90vh; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 2, 92, .55), rgba(255, 2, 92, 0)); opacity: var(--glow-a); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: var(--glow-b); } }
.backdrop::after { content: ""; position: absolute; inset: 0; background: radial-gradient(72% 72% at 50% 50%, transparent 60%, var(--bd-vig)); }
.prog { position: fixed; left: 0; top: 0; z-index: 60; height: 6px; width: 0; background: var(--red); box-shadow: 0 0 14px var(--red-glow); }

/* ---------- type: kickers, marks, source lines, stamps ---------- */
.kicker { display: flex; align-items: center; gap: .7em; margin: 0 0 22px; font: 900 14px/1 var(--lato); letter-spacing: .22em; text-transform: uppercase; color: var(--red-text); white-space: nowrap; }
.kicker i { display: block; width: 1.6em; height: .22em; background: var(--red); flex: none; }
.kicker--sm { font-size: 11.5px; margin: 0 0 10px; white-space: normal; }
.mk { border-radius: 4px; background: linear-gradient(var(--red), var(--red)) 0 0 / 0% 100% no-repeat; padding: 0 .12em; margin: 0 -.12em; color: inherit;
      -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .55s var(--ease) var(--md, .35s); }
.is-in .mk, .mk.is-in { background-size: 100% 100%; }
.source { margin: 30px 0 0; font: 400 15px/1.4 var(--ubuntu); color: var(--fg-3); }
.source b { font: 900 .78em var(--lato); color: var(--red-text); letter-spacing: .2em; text-transform: uppercase; margin-right: .9em; }
.stamp {
  display: inline-block; font: 900 26px/1 var(--lato); color: var(--red); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap;
  padding: .28em .5em .22em; border: .12em solid var(--red); border-radius: .18em; outline: .05em solid rgba(255, 2, 92, .9); outline-offset: .08em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: 14px 24px; border-radius: 5px; border: 2px solid transparent;
  font: 900 14px/1 var(--lato); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 0 0 0 var(--red-glow), 0 10px 30px -10px var(--red-glow); }
.btn--red:hover { background: var(--red-d); box-shadow: 0 0 0 4px rgba(255, 2, 92, .2), 0 14px 40px -10px var(--red-glow); }
.btn--line { background: var(--ghost-bg); border-color: var(--ghost-line); color: var(--white); }
.btn--line:hover { border-color: var(--white); background: var(--ghost-bg-h); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--sm { padding: 11px 16px; font-size: 12px; }
.btn--lg { padding: 18px 30px; font-size: 15px; }
.btn--block { width: 100%; }

/* ---------- nav ---------- */
.nav { position: fixed; left: 0; right: 0; top: 0; z-index: 50; height: 74px; display: flex; align-items: center; gap: 28px; padding: 6px var(--gutter) 0; transition: background .35s, border-color .35s; border-bottom: 1px solid transparent; }
.nav.is-solid { background: var(--nav-bg); backdrop-filter: blur(12px); border-color: var(--line); }
.nav__logo { margin-right: auto; opacity: 0; transform: translateY(-6px); transition: opacity .5s, transform .5s var(--ease); }
.nav.is-solid .nav__logo { opacity: 1; transform: none; }
.nav__logo svg { height: 24px; width: auto; display: block; overflow: visible; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { position: relative; padding: 10px 11px; font: 900 12px/1 var(--lato); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--silver); transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--white); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 5px; background: var(--ghost-bg); cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 3px; background: var(--white); transition: transform .3s var(--ease); }
.nav__burger span:first-child { top: 16px; } .nav__burger span:last-child { top: 25px; }
.menu-open .nav__burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-open .nav__burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.menu { position: fixed; inset: 74px 0 0; z-index: 49; display: flex; flex-direction: column; gap: 4px; padding: 24px var(--gutter); background: var(--menu-bg); }
.menu a { font: 900 34px/1.25 var(--lato); text-transform: uppercase; text-decoration: none; letter-spacing: -.01em; padding: 6px 0; border-bottom: 1px solid var(--line); }
.menu a:hover { color: var(--red); }
.menu .btn { margin-top: 22px; align-self: flex-start; }

/* ---------- v7: the theme toggle (a sun in the dark theme, a moon in the light one) ---------- */
.theme { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: var(--ghost-bg); color: var(--white); cursor: pointer; transition: background .2s, border-color .2s; }
.theme:hover { border-color: var(--ghost-line); background: var(--ghost-bg-h); }
.theme svg { width: 20px; height: 20px; }
.theme .i-moon, :root[data-theme="light"] .theme .i-sun { display: none; }
:root[data-theme="light"] .theme .i-moon { display: block; }

/* ---------- hero ---------- */
/* the strike covers the whole hero (as the end card covers its frame); the text sits under the logo */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; padding: calc(var(--logo-bottom, 52vh) + 8px) var(--gutter) 0; overflow: hidden; }
.hero > * { position: relative; z-index: 2; }
.hero > .sr-only { position: absolute; }
.hero > .hero__strike { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; display: block; }

/* ---------- the lighthouse: the old banner photo as graded footage under the strike ---------- */
.hero { --bandh: calc(100vw * 526 / 1415); }
.hero__spacer { flex: 1 0 0; }
/* the tower's top is 38% down the photo: overlap the photo's (masked) sky with the space above, so the tower
   stands 40px below the buttons */
.hero > .hero__land { z-index: 0; width: 100vw; height: var(--bandh); margin: calc(40px - .38 * var(--bandh)) 0 0; flex: none; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .35) 22%, #000 46%, #000 86%, rgba(0, 0, 0, .55) 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .35) 22%, #000 46%, #000 86%, rgba(0, 0, 0, .55) 100%);
  opacity: 0; transition: opacity 1.6s var(--ease); }
.is-struck .hero__land { opacity: 1; }
.hero__land img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 48.2% 50%;
  filter: grayscale(1) contrast(1.18) brightness(.5); transform-origin: 48.2% 45.6%; animation: push 40s ease-in-out infinite alternate; }
.hero__land img.tint { filter: grayscale(.5) contrast(1.18) brightness(.5);
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 12%, transparent 62%); mask-image: linear-gradient(to top, #000 0%, #000 12%, transparent 62%); }
:root[data-theme="light"] .hero__land img { filter: grayscale(1) contrast(.95) brightness(1.08); }
:root[data-theme="light"] .hero__land img.tint { filter: grayscale(.5) contrast(.95) brightness(1.08); }
:root[data-theme="light"] .is-struck .hero__land { opacity: .6; }
@keyframes push { from { transform: scale(1); } to { transform: scale(1.06); } }
/* the videos' red glow and vignette over the footage */
.hero__land::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(40% 70% at 48.2% 46%, rgba(255, 2, 92, .14), transparent 70%), radial-gradient(85% 120% at 50% 40%, transparent 45%, var(--land-vig) 100%);
  mix-blend-mode: normal; }
/* the lamp: a dim, steady glow */
.lamp { position: absolute; left: 48.2%; top: 45.4%; width: 0; height: 0; z-index: 1; }
.is-struck .lamp { animation: lampin 2s 1.4s both; }
@keyframes lampin { from { opacity: 0; } }
.lamp__glow { position: absolute; left: -46px; top: -46px; width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 246, 236, .75), rgba(255, 214, 200, .28) 30%, rgba(255, 2, 92, .08) 62%, transparent);
  mix-blend-mode: screen; }
/* the motto is the logo's own tagline; on phones, where that would be too small, it is set as text instead */
.hero__motto { display: none; margin: 4px 0 0; font: 900 19px/1.2 var(--lato); letter-spacing: .34em; text-transform: uppercase; color: var(--motto); padding-left: .34em; opacity: 0; transition: opacity 1s 1.5s; }
.is-struck .hero__motto { opacity: 1; }
.hero__values { display: flex; justify-content: center; align-items: center; gap: 16px; margin: clamp(30px, 5vh, 54px) 0 0; font: 900 clamp(12px, 1.05vw, 14px)/1 var(--lato); letter-spacing: .32em; text-transform: uppercase; color: var(--silver); opacity: 0; transition: opacity .9s 2.1s; }
.hero__values i { width: 18px; height: 3px; background: var(--red); }
.is-struck .hero__values { opacity: 1; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: clamp(28px, 4.5vh, 46px); opacity: 0; transform: translateY(12px); transition: opacity .9s 2.4s, transform .9s var(--ease) 2.4s; }
.is-struck .hero__cta { opacity: 1; transform: none; }
.hero__rule { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, rgba(255, 2, 92, 0), var(--red) 20%, var(--pink) 50%, var(--red) 80%, rgba(255, 2, 92, 0)); box-shadow: 0 0 20px var(--red-glow); transform: scaleX(0); transition: transform 1.4s var(--ease) 1.2s; }
.is-struck .hero__rule { transform: scaleX(1); }

/* ---------- mission (the words lit as if narrated) ---------- */
/* v7: one screen; the words fill in by themselves once the sentence is in view (js/v7.js), no longer tied to the scroll */
.mission__panel { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; width: min(100% - 2 * var(--gutter), 1180px); margin-inline: auto; }
.mission__q { margin: 0; font: 900 clamp(30px, 4.6vw, 66px)/1.16 var(--lato); letter-spacing: -.01em; }
.mission__q .w { color: var(--word-dim); transition: color .2s linear; }
.mission__q .w.on { color: var(--white); }
.mission__q .mk { transition-delay: 0s; }

/* ---------- the photo behind each section: NZ landscape graded like the explainer's chapter footage ----------
   monochrome and dark, filling the lower part of the section, faded in from the top and out at the bottom so sections
   run into each other; the content sits over it */
.sec { position: relative; }
.sec > *, .mission__panel > * { position: relative; z-index: 1; }
.sec > .bg, .mission__panel > .bg {
  position: absolute; z-index: 0; left: 50%; bottom: 0; width: 100vw; height: min(100%, max(72vh, 50vw)); margin: 0; transform: translateX(-50%); pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .3) 28%, #000 60%, #000 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .3) 28%, #000 60%, #000 82%, transparent 100%);
}
.sec > .bg, .mission__panel > .bg { opacity: var(--ph-op); }
.bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); filter: grayscale(1) contrast(var(--ph-c)) brightness(calc(var(--b, .42) * var(--ph-k))); }
/* v7: half the photo's colour at the bottom, grading to black and white: a copy at 50% saturation, masked */
.bg img.tint { position: absolute; inset: 0; filter: grayscale(.5) contrast(var(--ph-c)) brightness(calc(var(--b, .42) * var(--ph-k)));
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 12%, transparent 62%); mask-image: linear-gradient(to top, #000 0%, #000 12%, transparent 62%); }
.bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 110% at 50% 45%, transparent 35%, var(--ph-vig) 100%); }

/* ---------- v7: points of light, pinned to spots in the photos (positions set by js/v7.js) ----------
   a layer of its own over each photo, with a gentler fade than the photo's (light sources stay brighter than the scene),
   reaching 35% above the photo so stars can carry on into the night above it */
.sec > .lights, .mission__panel > .lights, .phead > .lights { position: absolute; z-index: 0; left: 50%; bottom: 0; width: 100vw; transform: translateX(-50%); pointer-events: none; overflow: hidden; opacity: var(--lights-op);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .85) 26%, #000 36%, #000 86%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .85) 26%, #000 36%, #000 86%, transparent 100%); }
.lt { position: absolute; width: 0; height: 0; }
.lt::before { content: ""; position: absolute; left: calc(var(--s) / -2); top: calc(var(--s) / -2); width: var(--s); height: var(--s); border-radius: 50%; background: var(--halo); }
.lt::after { content: ""; position: absolute; left: calc(var(--c, 3px) / -2); top: calc(var(--c, 3px) / -2); width: var(--c, 3px); height: var(--c, 3px); border-radius: 50%; background: var(--core, #fff); }
/* a lamp: a warm white headlight with a faint flicker */
.lt--lamp { --halo: radial-gradient(closest-side, rgba(255, 251, 240, .95), rgba(255, 232, 200, .45) 30%, rgba(255, 210, 160, .12) 62%, transparent); --core: #fffaf0; --c: 4px; }
.lt--lamp::before { animation: flicker 5s infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 46% { opacity: 1; } 48% { opacity: .82; } 50% { opacity: 1; } 71% { opacity: .9; } 73% { opacity: 1; } }
/* small steady lamps: white, red, warm */
.lt--dot { --halo: radial-gradient(closest-side, rgba(255, 255, 255, .8), rgba(255, 255, 255, .15) 45%, transparent); --c: 2px; }
.lt--red { --halo: radial-gradient(closest-side, rgba(255, 70, 90, .85), rgba(255, 2, 40, .2) 45%, transparent); --core: #ff6070; --c: 2px; }
.lt--warm { --halo: radial-gradient(closest-side, rgba(255, 236, 200, .85), rgba(255, 190, 120, .3) 38%, transparent); --core: #fff2d8; --c: 2.5px; }
.lt--warm::before { animation: breathe-l 7s ease-in-out infinite; }
@keyframes breathe-l { 50% { opacity: .75; } }
/* aviation warning lights: red, blinking out of step */
.lt--blink { --halo: radial-gradient(closest-side, rgba(255, 60, 80, .95), rgba(255, 2, 40, .3) 40%, transparent); --core: #ff8090; --c: 3px; animation: blink 2.6s infinite var(--dl, 0s); }
@keyframes blink { 0%, 100% { opacity: .12; } 6% { opacity: 1; } 34% { opacity: 1; } 52% { opacity: .12; } }
/* stars: night only */
.lt--star { --halo: none; --core: #fff; animation: twinkle var(--tw, 4s) ease-in-out infinite var(--dl, 0s); opacity: var(--o, .8); }
.lt--star::before { display: none; }
@keyframes twinkle { 50% { opacity: calc(var(--o, .8) * .25); } }
:root[data-theme="light"] .lt--star { display: none; }
/* a ferry crossing the harbour: a warm light and its reflection, gliding across over a minute and a half */
.lt--ferry { --core: #fff4dc; --c: 3px; animation: ferry 90s linear infinite; }
.lt--ferry::before { top: calc(var(--s) * -.35); height: calc(var(--s) * 2.2);
  background: radial-gradient(50% 22% at 50% 16%, rgba(255, 240, 210, .9), rgba(255, 210, 150, .25) 60%, transparent), radial-gradient(18% 50% at 50% 55%, rgba(255, 214, 160, .35), transparent); }
@keyframes ferry { 0% { transform: translateX(0); opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { transform: translateX(var(--run, 0px)); opacity: 0; } }

/* Leadership: an airfield at night behind the content (bg/airport.jpg, 2026-11-09; it replaced the Auckland skyline)
   and its lights (js/site.js LIGHTS.airport): bright runway lights; steady pinpoints for the touchdown zones, PAPI,
   approach bars and taxiway; sequenced strobes on 23R's approach; aircraft beacons and strobes; the airport beacon */
/* the photo is max(78vh, 56vw) tall, bottom-aligned; the content stops 42% of it above the bottom, so the runways'
   near ends and the approach lights stay in view below the photo strip */
#about { --bgh: max(78vh, 56vw); padding-bottom: calc(var(--bgh) * .42); }
#about > .bg { height: min(100%, var(--bgh)); }
/* runway lights: edge, centreline, threshold (the runway end uses .lt--red) */
.lt--rwy { --halo: radial-gradient(closest-side, rgba(255, 248, 228, .9), rgba(255, 236, 200, .25) 45%, transparent); --core: #fffaf0; }
.lt--cl { --halo: radial-gradient(closest-side, rgba(255, 255, 255, .5), transparent); --core: rgba(255, 255, 255, .8); }
.lt--grn { --halo: radial-gradient(closest-side, rgba(70, 255, 150, .9), rgba(20, 220, 110, .25) 45%, transparent); --core: #c8ffe0; }
/* pinpoints: touchdown-zone bars, PAPI, approach bars and side bars, taxiway centreline */
.lt--pw { --halo: radial-gradient(closest-side, rgba(255, 248, 230, .5), transparent); --core: #fffaf0; }
.lt--pg { --halo: radial-gradient(closest-side, rgba(70, 255, 150, .5), transparent); --core: #9dffc4; }
.lt--pr { --halo: radial-gradient(closest-side, rgba(255, 50, 70, .5), transparent); --core: #ff5c6c; }
/* the sequenced approach strobes: a flash running along the line to the threshold, twice a second */
.lt--rabbit { --halo: radial-gradient(closest-side, #fff, rgba(225, 235, 255, .45) 40%, transparent); --core: #fff; opacity: 0; animation: rabbit .5s infinite var(--dl, 0s); }
@keyframes rabbit { 0%, 16%, 100% { opacity: 0; } 2%, 12% { opacity: 1; } }
.lt--strobe { --halo: radial-gradient(closest-side, rgba(255, 255, 255, .7), transparent); --core: #fff; opacity: 0; animation: strobe 2.2s infinite var(--dl, 0s); }
@keyframes strobe { 0%, 9%, 100% { opacity: 0; } 1%, 2.5% { opacity: 1; } 3.5%, 5.5% { opacity: 0; } 6.5%, 8% { opacity: 1; } }
.lt--acbcn { --halo: radial-gradient(closest-side, rgba(255, 50, 60, .6), transparent); --core: #ff6070; animation: acbcn 1.6s infinite var(--dl, 0s); }
@keyframes acbcn { 0%, 100% { opacity: .1; } 6%, 18% { opacity: 1; } 30% { opacity: .1; } }
.lt--apw, .lt--apg { opacity: 0; animation: apbcn 4s infinite; }
.lt--apw { --halo: radial-gradient(closest-side, rgba(255, 255, 255, .6), transparent); --core: #fff; }
.lt--apg { --halo: radial-gradient(closest-side, rgba(80, 255, 140, .6), transparent); --core: #a8ffc8; animation-delay: 2s; }
@keyframes apbcn { 0%, 22%, 100% { opacity: 0; } 4%, 12% { opacity: 1; } }

/* ---------- sections and chapter headers ---------- */
.sec { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding: clamp(90px, 12vw, 170px) 0 clamp(170px, 19vw, 290px); }
.chapter { display: grid; grid-template-columns: auto auto 1fr; align-items: end; column-gap: 14px; margin-bottom: clamp(26px, 4vw, 48px); padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.chapter__n { font: 900 clamp(110px, 14vw, 200px)/.78 var(--lato); color: var(--red); text-shadow: var(--num-glow); transform-origin: 50% 80%; }
.chapter__of { font: 900 clamp(28px, 3vw, 44px)/1 var(--lato); color: var(--white); margin-bottom: .1em; }
.chapter h2 { margin: 0 0 .12em 18px; font: 900 clamp(30px, 4vw, 58px)/1 var(--lato); text-transform: uppercase; letter-spacing: -.005em; }
.chapter.is-in .chapter__n { animation: slam .55s var(--slam) both; }
@keyframes slam { 0% { transform: scale(1.9); opacity: 0; filter: blur(8px); } 70% { transform: scale(.94); opacity: 1; filter: none; } 100% { transform: none; } }
.lead { margin: 0 0 34px; font: 700 clamp(19px, 1.7vw, 23px)/1.45 var(--lato); color: var(--silver); max-width: 52ch; }

/* ---------- principles: OIA-style paper documents ---------- */
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 34px); }
.doc {
  position: relative; display: flex; flex-direction: column; padding: 1.4em 1.5em 1.6em; background: var(--doc-bg); color: var(--ink); border-radius: 6px; text-decoration: none;
  font: 400 19px/1.42 "Liberation Sans", Arial, sans-serif; box-shadow: var(--doc-shadow), 0 2px 0 rgba(255, 255, 255, .5) inset;
  transform: rotate(var(--r, 0deg)); transition: transform .45s var(--ease), box-shadow .45s; overflow: hidden;
}
.doc[data-reveal] { transform: rotate(var(--r, 0deg)) translateY(30px); }
.doc[data-reveal].is-in { transform: rotate(var(--r, 0deg)); }
.doc:hover { transform: rotate(0deg) translateY(-8px) !important; box-shadow: var(--doc-shadow-h), 0 0 0 2px var(--red); }
.doc__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .9em; }
/* the icon in a stamp ring: red line drawing, a double outline like the red stamps */
.doc__icon { display: grid; place-items: center; width: 62px; height: 62px; border: 2.5px solid var(--red); border-radius: 50%; outline: 1px solid rgba(255, 2, 92, .85); outline-offset: 2px; color: var(--red); transform: rotate(-8deg); transition: transform .45s var(--slam); }
.doc__icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.doc__icon .fill { fill: currentColor; }
.doc:hover .doc__icon { transform: rotate(0deg) scale(1.06); }
.doc__no { font: 900 46px/.8 var(--lato); letter-spacing: -.02em; color: var(--red); }
.doc__title { margin: 0; padding-bottom: .3em; border-bottom: 2px solid var(--ink); font: 900 clamp(24px, 2.2vw, 30px)/1.08 var(--lato); color: var(--ink); }
.doc__kind { margin: .55em 0 .8em; font: 900 11px/1.2 var(--lato); letter-spacing: .18em; text-transform: uppercase; color: #6b6b73; }
.doc__desc { flex: 1; margin: 0; font-size: .9em; }
.doc .mk { color: #fff; }
.doc.is-in .mk { transition-delay: .7s; }
.doc__go { margin-top: 1.4em; font: 900 13px/1 var(--lato); letter-spacing: .16em; text-transform: uppercase; color: var(--red-ink); }
.doc__stamp { position: absolute; right: 18px; bottom: 16px; font-size: 20px; background: rgba(243, 241, 236, .6); transform: rotate(-9deg) scale(1.9); opacity: 0; pointer-events: none; transition: transform .28s var(--slam), opacity .2s; }
.doc:hover .doc__stamp { transform: rotate(-9deg) scale(1); opacity: .95; }

/* ---------- investigations ---------- */
.films { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 44px); margin-bottom: 34px; }
.film { display: block; text-decoration: none; }
/* the videos play in their frames: a button over the poster starts one (js/home.js), then the native controls */
.film__frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; transition: transform 1s var(--ease); }
.film:not(.is-playing):hover .film__frame video { transform: scale(1.04); }
.film.is-playing .film__frame video { object-fit: contain; }
.film__start { position: absolute; inset: 0; z-index: 1; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.film__start:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.film.is-playing .film__start { display: none; }
.film__more { display: inline-block; margin-top: 12px; font: 900 12px/1.3 var(--lato); letter-spacing: .14em; text-transform: uppercase; color: var(--silver); text-decoration: none; }
.film__more:hover { color: var(--red); }
.film__frame { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px var(--line); }
.film__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.film:hover .film__frame img { transform: scale(1.04); }
.film__bar { position: absolute; left: 0; top: 0; height: 5px; width: 8%; background: var(--red); box-shadow: 0 0 12px var(--red-glow); transition: width 1.6s var(--ease); }
.film:hover .film__bar { width: 100%; }
.film:hover .film__play { transform: scale(1.08); }
.film__play { position: absolute; left: 14px; bottom: 14px; padding: 9px 13px; border-radius: 5px; background: var(--red); color: #fff; font: 900 14px/1 var(--lato); letter-spacing: .08em; transform-origin: 0 100%; transition: transform .25s var(--ease); box-shadow: 0 8px 24px -8px var(--red-glow); }
.film h3 { margin: 0 0 8px; font: 900 clamp(26px, 2.8vw, 40px)/1 var(--lato); text-transform: uppercase; transition: color .2s; }
.film:not(.is-playing):hover h3 { color: var(--red); }
.film__sub { margin: 0; font: 700 17px/1.45 var(--lato); color: var(--silver); max-width: 46ch; }

/* ---------- membership ---------- */
.member__grid { overflow-x: clip; }
.member__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(30px, 6vw, 100px); align-items: center; }
.member__t { margin: 0 0 34px; font: 700 clamp(19px, 1.7vw, 23px)/1.45 var(--lato); color: var(--silver); max-width: 40ch; }
.member__stamp { font-size: clamp(20px, 2.2vw, 30px); transform: rotate(-6deg); }
.member__stamp[data-reveal] { opacity: 0; transform: rotate(-6deg) scale(2.2); transition: none; }
.member__stamp.is-in { animation: stampin .5s var(--slam) .9s both; }
@keyframes stampin { from { opacity: 0; transform: rotate(-6deg) scale(2.2); filter: blur(4px); } to { opacity: 1; transform: rotate(-6deg) scale(1); filter: none; } }
.bigstat { text-align: center; padding: clamp(26px, 3vw, 40px); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.bigstat__k { margin: 0; font: 900 18px/1 var(--lato); letter-spacing: .3em; text-transform: uppercase; color: var(--silver); }
.bigstat__v { margin: 8px 0 0; font: 900 clamp(130px, 15vw, 220px)/.86 var(--lato); letter-spacing: -.03em; text-shadow: var(--stat-glow); }
.bigstat__v .red { font-size: .48em; vertical-align: .62em; margin-right: .04em; text-shadow: 0 0 30px var(--red-glow); }
.bigstat__bar { display: block; height: 7px; margin: 18px auto 16px; width: 80%; background: var(--red); border-radius: 2px; box-shadow: 0 0 18px var(--red-glow); transform: scaleX(0); transition: transform 1s var(--ease) .5s; }
.bigstat.is-in .bigstat__bar { transform: scaleX(1); }
.bigstat__l { margin: 0 0 26px; font: 900 clamp(20px, 2vw, 28px)/1.1 var(--lato); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); margin-top: clamp(50px, 7vw, 90px); }
.tile { border-top: 7px solid var(--tile-line); padding-top: 16px; }
.tile--red { border-color: var(--red); }
.tile b { display: block; font: 900 clamp(26px, 2.8vw, 40px)/1 var(--lato); text-transform: uppercase; margin-bottom: 10px; }
.tile p { margin: 0; font: 700 16.5px/1.45 var(--lato); color: var(--silver); }

/* ---------- leadership: the footage frame with corner brackets and a lower third ---------- */
.leader { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.clip { position: relative; margin: 0; padding: 14px; }
.clip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(.35) contrast(1.05); }
.clip__c { position: absolute; width: 34px; height: 34px; border: 0 solid var(--white); }
.clip__c--tl { left: 0; top: 0; border-width: 3px 0 0 3px; } .clip__c--tr { right: 0; top: 0; border-width: 3px 3px 0 0; }
.clip__c--bl { left: 0; bottom: 0; border-width: 0 0 3px 3px; } .clip__c--br { right: 0; bottom: 0; border-width: 0 3px 3px 0; }
.clip__tag { position: absolute; left: 30px; top: 28px; font: 900 11px/1 var(--lato); letter-spacing: .2em; text-transform: uppercase; padding: 6px 9px; background: rgba(0, 0, 0, .55); color: #fff; }
.clip__lower { position: absolute; left: 30px; bottom: 30px; display: flex; flex-direction: column; padding: 10px 16px 11px 14px; background: rgba(7, 7, 10, .82); border-left: 5px solid var(--red); color: #fff; }
.clip__lower b { font: 900 22px/1.1 var(--lato); }
.clip__lower span { font: 400 13px var(--ubuntu); color: rgb(200, 200, 206); }
.leader__q { margin: 0 0 32px; font: 900 clamp(24px, 2.5vw, 36px)/1.25 var(--lato); }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 3.4vw, 48px); margin-top: clamp(40px, 6vw, 70px); }
.strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; filter: grayscale(1) contrast(1.1) brightness(.85); transition: filter .4s, box-shadow .3s; }
.strip img:hover { filter: none; box-shadow: 0 0 0 3px var(--red); }
:root[data-theme="light"] .film__frame { box-shadow: 0 20px 50px rgba(23, 23, 26, .2), 0 0 0 1px var(--line); }
:root[data-theme="light"] .strip img { filter: grayscale(1) contrast(1.05); }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: start; padding-top: 30px; border-top: 1px solid var(--line); }
.contact__h { margin: 0 0 26px; font: 900 clamp(38px, 4.8vw, 70px)/1.02 var(--lato); }
.contact__mail { display: inline-block; font: 900 clamp(24px, 2.6vw, 36px)/1.1 var(--lato); text-decoration: none; border-bottom: 5px solid var(--red); padding-bottom: 4px; margin-bottom: 18px; }
.contact__x { display: block; font: 900 14px/1 var(--lato); letter-spacing: .14em; text-transform: uppercase; color: var(--silver); text-decoration: none; }
.contact__x:hover { color: var(--red); }
.contact__x + .contact__x { margin-top: 14px; }
.form { display: grid; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 7px; }
.form label span { font: 900 11.5px/1 var(--lato); letter-spacing: .2em; text-transform: uppercase; color: var(--red-text); }
.form input, .form textarea { width: 100%; padding: 15px 16px; border: 1.5px solid var(--field-line); border-radius: 5px; background: var(--field-bg); color: var(--white); font: 700 17px var(--lato); outline: none; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(255, 2, 92, .18); }
.form .btn { justify-self: start; }
.form__done { margin: 0; color: var(--white); font-weight: 900; }

/* ---------- footer: the end card ---------- */
.foot { --white: #fff; --silver: rgb(200, 200, 206); --line: rgba(255, 255, 255, .1); color: #fff; margin-top: 0; padding: clamp(60px, 8vw, 110px) var(--gutter) 70px; background: radial-gradient(60% 80% at 50% 40%, rgba(255, 2, 92, .08), transparent 70%), #000; text-align: center; border-top: 1px solid var(--line); }
.foot__logo { width: min(100%, 980px); height: auto; overflow: visible; display: block; margin: 0 auto; }
.foot__rule { height: 3px; width: min(70%, 700px); margin: clamp(30px, 4vw, 50px) auto 26px; background: linear-gradient(90deg, rgba(255, 2, 92, 0), var(--red) 20%, var(--pink) 50%, var(--red) 80%, rgba(255, 2, 92, 0)); box-shadow: 0 0 18px var(--red-glow); }
.promoter { margin: 0 0 10px; font: 500 17px/1.4 var(--ubuntu); color: #fff; }
.foot__row { margin: 0; font: 400 14px/1.6 var(--ubuntu); color: rgba(225, 225, 230, .6); }
.foot__row a { margin-left: 16px; text-decoration: none; }
.foot__row a:hover { color: var(--red); }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }


/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__logo { opacity: 1; transform: none; }
  .docs { grid-template-columns: 1fr; max-width: 620px; }
  .member__grid, .leader, .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav { gap: 10px; height: 66px; }
  .nav > .btn { display: none; }
  .theme { width: 42px; height: 42px; }
  .nav__logo { margin-right: auto; }
  .menu { inset: 66px 0 0; }
  .films, .tiles { grid-template-columns: 1fr; }
  .chapter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 10px; }
  .chapter h2 { flex-basis: 100%; margin: 14px 0 0; }
  .hero__cta .btn { width: 100%; }
  .hero__strike .ec-tagline { display: none; }
  .hero { --bandh: 64vw; }
  .lamp__glow { left: -28px; top: -28px; width: 56px; height: 56px; }
  .hero__motto { display: block; }
  .hero__values { gap: 10px; letter-spacing: .22em; }
  .hero__values i { width: 10px; }
  .clip__lower b { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}

/* ---------- membership (rebuilt 2026-11-08): stand up and be counted ----------
   left: the headline, the case, the button and price, the members-only donations note; right: the membership form as
   an OIA-style paper card that is signed, ticked and stamped COUNTED as it comes into view; then the 500-member
   threshold (party registration) and three tiles. (Comes after the reveal rules so the card keeps its tilt.) */
.mem { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(30px, 6vw, 100px); align-items: center; }
.mem__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.mem__price { margin: 0; font: 700 15px/1.3 var(--lato); color: var(--silver); }
.mem__price b { display: block; font: 900 30px/1 var(--lato); color: var(--white); }
.mem__note { display: flex; align-items: center; gap: 12px; margin: 26px 0 0; font: 400 15.5px/1.4 var(--ubuntu); color: var(--fg-3); }
.mem__note i { width: 20px; height: 3px; background: var(--red); flex: none; }
.mem__form { margin: 0; }
.mem__cap { margin: 26px 0 0 4px; }

.form-card { position: relative; padding: 1.3em 1.5em 1.45em; background: var(--doc-bg); color: var(--ink); border-radius: 6px;
  box-shadow: var(--doc-shadow), 0 2px 0 rgba(255, 255, 255, .5) inset; font: 400 17px/1.4 "Liberation Sans", Arial, sans-serif; transform: rotate(1.6deg); }
.form-card[data-reveal] { transform: rotate(1.6deg) translateY(30px); }
.form-card.is-in { transform: rotate(1.6deg); }
.form-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 1.1em; padding-bottom: .45em; border-bottom: 2px solid var(--ink); font-weight: 700; font-size: 1.05em; }
.form-card__head span { font-weight: 400; font-size: .76em; color: #6b6b73; }
.form-card__f { display: grid; grid-template-columns: 10.5em 1fr; align-items: end; gap: 10px; margin: 0 0 1em; font-size: .86em; }
.form-card__f i { display: block; height: 1.25em; border-bottom: 1.5px solid rgba(23, 23, 26, .4); }
.form-card__tick { display: flex; align-items: center; gap: 11px; margin: 1.15em 0 1.1em; font-size: .86em; }
.form-card__tick b { position: relative; width: 20px; height: 20px; flex: none; border: 1.5px solid var(--ink); border-radius: 3px; }
.form-card__tick b::after { content: ""; position: absolute; left: 5px; top: 0; width: 6px; height: 12px; border: solid var(--red); border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--slam) .5s; }
.form-card.is-in .form-card__tick b::after { transform: rotate(45deg) scale(1); }
.form-card__sig { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; }
.form-card__sig svg { display: block; width: 100%; height: 66px; overflow: visible; }
.form-card__sig path { fill: none; stroke: #1c2a6e; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.5s cubic-bezier(.45, .05, .35, 1) 1s; }
.form-card__sig path + path { transition-duration: .5s; transition-delay: 2.5s; }
.form-card.is-in .form-card__sig path { stroke-dashoffset: 0; }
.form-card__line { margin: 0; padding-top: 6px; border-top: 1.5px solid var(--ink); font: 900 10px/1 var(--lato); letter-spacing: .18em; text-transform: uppercase; color: #77777f; }
.form-card__date span { display: block; padding: 0 2px 7px; font-size: .95em; letter-spacing: .12em; color: #55555d; white-space: nowrap; }
.form-card__stamp { position: absolute; right: 20px; top: 52px; font-size: 34px; background: rgba(243, 241, 236, .55); opacity: 0; transform: rotate(-11deg) scale(2.2); pointer-events: none; }
.form-card.is-in .form-card__stamp { animation: memstamp .45s var(--slam) 3.1s both; }
@keyframes memstamp { from { opacity: 0; transform: rotate(-11deg) scale(2.2); filter: blur(4px); } to { opacity: .95; transform: rotate(-11deg) scale(1); filter: none; } }

.mem__tiles { margin-top: clamp(44px, 6vw, 80px); }
.mem__tiles .tile em { display: block; margin-bottom: 10px; font: 900 13px/1 var(--lato); font-style: normal; letter-spacing: .24em; color: var(--red-text); }

@media (max-width: 1080px) {
  .mem { grid-template-columns: 1fr; }
  .mem__form { max-width: 560px; }
}
@media (max-width: 720px) {
  .form-card { font-size: 15px; padding: 1.1em 1.1em 1.25em; }
  .form-card__f { grid-template-columns: 8.8em 1fr; }
  .form-card__stamp { font-size: 26px; right: 12px; top: 44px; }
}

/* ====================================================================================================================
   Added for the live site (2026-11-09): the join modal's real steps, page headers, paper documents, the member area,
   the video pages. Everything below follows the tokens above, so both themes work.
   ==================================================================================================================== */

/* ---------- join: the membership form on an OIA paper card with the dark header bar (index.php, js/scripts.js) ----------
   js/scripts.js shows one step at a time (inline display) and marks the step list; this only styles them */
.join { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 14px; }
.join__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .75); backdrop-filter: blur(5px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.join__card { position: relative; width: min(100%, 720px); max-height: calc(100svh - 28px); overflow: auto; overscroll-behavior: contain; background: var(--paper); color: var(--ink); border-radius: 6px; box-shadow: 0 30px 90px rgba(0, 0, 0, .8); animation: up .4s var(--ease); font: 400 16px/1.5 "Liberation Sans", Arial, sans-serif; }
@keyframes up { from { opacity: 0; transform: translateY(24px); } }
.join__mh { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; background: #1b1d22; color: #fff; font: 900 14px/1 var(--lato); letter-spacing: .2em; text-transform: uppercase; }
.join__x { width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 4px; background: transparent; color: #fff; cursor: pointer; }
.join__x:hover { border-color: var(--red); color: var(--red); }
.join__steps { list-style: none; margin: 22px 26px 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.join__steps li { padding-top: 9px; border-top: 5px solid rgba(23, 23, 26, .15); font: 900 10.5px/1.3 var(--lato); letter-spacing: .12em; text-transform: uppercase; color: #77777f; transition: border-color .3s, color .3s; }
.join__steps li.is-on { border-color: var(--red); color: var(--ink); }
.join__steps li.is-past { border-color: var(--ink); }
.join__step { padding: 22px 26px 26px; }
.join__step h3 { margin: 0 0 6px; padding-bottom: .4em; border-bottom: 2px solid var(--ink); font: 900 28px/1.1 var(--lato); }
.join__note { margin: 0 0 18px; font-size: 14px; color: #5b5b63; }
.join__step p { margin: 0 0 14px; }
.join__step a { color: var(--red-d); }
.join__warn { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: #c1003f; }
.join__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.join__nav .btn { min-width: 120px; }
.join__step .btn:disabled { opacity: .55; cursor: wait; transform: none; }
.fgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.fgrid .fld { grid-column: span 3; }
.fgrid .fld--third { grid-column: span 2; }
.fld, .other { display: flex; flex-direction: column; gap: 6px; }
.fld > span, .other > span { font: 900 10.5px/1.25 var(--lato); letter-spacing: .16em; text-transform: uppercase; color: #66666e; }
.fld input, .fld select, .other input { width: 100%; padding: 12px 13px; border: 1.5px solid rgba(23, 23, 26, .25); border-radius: 4px; background: #fff; color: var(--ink); font: 400 16px "Liberation Sans", Arial, sans-serif; outline: none; }
.fld input:focus, .fld select:focus, .other input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 2, 92, .15); }
.fld--date input { max-width: 240px; }
.tick { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 15px; line-height: 1.45; cursor: pointer; }
.tick input { width: 20px; height: 20px; accent-color: var(--red); margin: 1px 0 0; flex: none; cursor: pointer; }
.tick small { display: block; margin-top: 5px; font-size: 13px; color: #5b5b63; }
.fees { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 4px 0 14px; }
.fees button { padding: 13px 0; border: 1.5px solid rgba(23, 23, 26, .25); border-radius: 4px; background: #fff; color: var(--ink); font: 900 18px/1 var(--lato); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.fees button:hover { border-color: var(--red); }
.fees button.active { background: var(--red); border-color: var(--red); color: #fff; }
.other { margin-bottom: 14px; max-width: 280px; }
.fee-total { margin: 16px 0 0; }
.fee-total b { font: 900 26px var(--lato); color: var(--red); }
.decl { margin: 4px 0 12px; padding: 16px 18px; border: 1.5px solid rgba(23, 23, 26, .2); border-left: 5px solid var(--ink); border-radius: 4px; background: #fff; white-space: pre-wrap; font-size: 14.5px; line-height: 1.55; }
.sigpad { position: relative; margin-top: 8px; border: 1.5px dashed rgba(23, 23, 26, .3); border-radius: 4px; background: #fff; touch-action: none; }
.sigpad canvas { display: block; width: 100%; height: auto; aspect-ratio: 800 / 250; cursor: crosshair; touch-action: none; }
.sigpad__line { position: absolute; left: 22px; right: 22px; bottom: 34px; border-top: 1.5px solid var(--ink); padding-top: 6px; font: 900 10px var(--lato); letter-spacing: .18em; text-transform: uppercase; color: #77777f; pointer-events: none; }
.sigpad__clear { position: absolute; right: 10px; top: 10px; border: 0; border-radius: 4px; padding: 6px 10px; background: var(--ink); color: #fff; font: 900 11px var(--lato); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.sigpad__clear:hover { background: var(--red); }
.rules { border: 1.5px solid rgba(23, 23, 26, .2); border-radius: 4px; background: #fff; padding: 12px 15px; margin: 0 0 18px; font-size: 14px; }
.rules strong { display: block; margin-bottom: 6px; font: 900 11px/1.2 var(--lato); letter-spacing: .16em; text-transform: uppercase; }
.rules ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.cardel { padding: 14px; border: 1.5px solid rgba(23, 23, 26, .25); border-radius: 4px; background: #fff; }
.card-errors { margin-top: 10px; color: #c1003f; font-weight: 700; font-size: 14.5px; }
.join__load { position: absolute; inset: 0; z-index: 4; background: rgba(243, 241, 236, .88); }
.join__load > div { position: sticky; top: 40%; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 30vh; font-weight: 700; text-align: center; }
.spin { width: 44px; height: 44px; border-radius: 50%; border: 5px solid rgba(23, 23, 26, .15); border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.join__stamp { transform: rotate(-7deg); margin: 6px 0 18px; animation: stampin2 .45s var(--slam) both; background: rgba(243, 241, 236, .55); }
@keyframes stampin2 { from { opacity: 0; transform: rotate(-7deg) scale(2.2); } }
.join table, .paper table, .member-card table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 15px; }
.join th, .join td, .paper th, .paper td, .member-card th, .member-card td { padding: 8px 10px; border-bottom: 1px solid rgba(23, 23, 26, .14); text-align: left; vertical-align: top; }
.join th, .paper th, .member-card th { font: 900 11px/1.3 var(--lato); letter-spacing: .14em; text-transform: uppercase; color: #5b5b63; }
.join td { word-break: break-word; }
@media (max-width: 720px) {
  .join { padding: 0; }
  .join__card { max-height: 100svh; height: 100svh; border-radius: 0; }
  .join__steps { margin: 18px 16px 0; }
  .join__step { padding: 20px 16px 24px; }
  .fgrid .fld, .fgrid .fld--third { grid-column: 1 / -1; }
  .fees { grid-template-columns: repeat(3, 1fr); }
  .join__nav .btn { flex: 1; min-width: 0; padding-inline: 12px; white-space: normal; line-height: 1.2; text-align: center; letter-spacing: .1em; }
}

/* ---------- contact form: the thank-you line after sending (contact.php returns to /#mailsent) ---------- */
.form__done { padding: 12px 14px; border-left: 5px solid var(--red); background: var(--surface); }

/* ---------- pages: a header over a graded photo, then the content (lib/layout.php) ---------- */
.page { position: relative; }
.phead { position: relative; display: flex; align-items: flex-end; min-height: min(64vh, 600px); padding: 130px 0 clamp(34px, 5vw, 60px); }
.phead--short { min-height: min(46vh, 420px); }
.phead__in { position: relative; z-index: 1; width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.phead .chapter { margin-bottom: 0; }
.phead__h { margin: 0; font: 900 clamp(40px, 6.4vw, 96px)/.96 var(--lato); text-transform: uppercase; letter-spacing: -.01em; max-width: 15ch; }
.phead .chapter h1 { margin: 0 0 .12em 18px; font: 900 clamp(30px, 4.4vw, 64px)/1 var(--lato); text-transform: uppercase; letter-spacing: -.005em; }
.phead__sub { margin: 20px 0 0; font: 700 clamp(18px, 1.6vw, 22px)/1.45 var(--lato); color: var(--silver); max-width: 54ch; }
.phead__sub b { color: var(--white); }
.phead > .bg { position: absolute; z-index: 0; left: 0; right: 0; top: 0; bottom: 0; width: 100%; height: 100%; margin: 0; pointer-events: none; opacity: var(--ph-op);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .55) 16%, #000 42%, #000 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .55) 16%, #000 42%, #000 70%, transparent 100%); }
.pbody { position: relative; z-index: 1; width: min(100% - 2 * var(--gutter), 940px); margin: 0 auto; padding: 0 0 clamp(90px, 10vw, 150px); }
.pbody--wide { width: min(100% - 2 * var(--gutter), var(--wrap)); }
.pbody > .lead { margin-bottom: 30px; }
@media (max-width: 720px) {
  .phead { min-height: 0; padding-top: 110px; }
  .phead .chapter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 10px; }
  .phead .chapter h1 { flex-basis: 100%; margin: 14px 0 0; }
}

/* ---------- contents: an index on the backdrop, linking into the paper ---------- */
.toc { margin: 0 0 clamp(26px, 3.5vw, 44px); }
.toc > p { margin: 0 0 12px; }
.toc ol, .toc ul { list-style: none; margin: 0; padding: 0; columns: 2 300px; column-gap: 40px; }
.toc li { break-inside: avoid; }
.toc a { display: flex; gap: .9em; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 700 16.5px/1.35 var(--lato); color: var(--silver); transition: color .2s; }
.toc a:hover { color: var(--white); }
.toc a b { flex: none; min-width: 1.8em; font-weight: 900; color: var(--red-text); }

/* ---------- paper: a document as the OIA exhibits are shown in the videos (dark ink on paper in both themes) ---------- */
.paper { position: relative; margin: 0 0 clamp(22px, 3vw, 34px); padding: clamp(24px, 4.6vw, 58px) clamp(20px, 5.4vw, 66px) clamp(26px, 4.6vw, 56px); background: var(--doc-bg); color: var(--ink); border-radius: 6px;
  box-shadow: var(--doc-shadow), 0 2px 0 rgba(255, 255, 255, .5) inset; font: 400 18px/1.62 "Liberation Sans", Arial, sans-serif; scroll-margin-top: 96px; }
.paper[data-reveal] { transform: translateY(30px); }
.paper[data-reveal].is-in { transform: none; }
.paper__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 1.3em; padding-bottom: .5em; border-bottom: 2px solid var(--ink); font-weight: 700; font-size: 1.02em; }
.paper__head span { font-weight: 400; font-size: .8em; color: #6b6b73; }
.paper h2 { margin: 1.5em 0 .55em; font: 900 clamp(25px, 2.6vw, 33px)/1.15 var(--lato); }
.paper h3, .paper h4 { margin: 1.45em 0 .5em; font: 900 clamp(19px, 1.8vw, 23px)/1.25 var(--lato); }
.paper h5 { margin: 1.3em 0 .35em; font: 700 1em/1.35 "Liberation Sans", Arial, sans-serif; }
.paper h6 { margin: 1.1em 0 .3em; font: 700 .95em/1.35 "Liberation Sans", Arial, sans-serif; color: #44444b; }
.paper__head + *, .paper > :first-child { margin-top: 0; }
.paper p { margin: 0 0 1em; }
.paper ul, .paper ol { margin: 0 0 1em; padding-left: 1.4em; }
.paper li { margin: .3em 0; }
.paper li::marker { color: var(--red); }
.paper a { color: #c1003f; text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
.paper a:hover { color: var(--ink); }
.paper strong, .paper b { font-weight: 700; }
.paper code { font-size: .9em; padding: .05em .3em; border-radius: 3px; background: rgba(23, 23, 26, .07); }
.paper > :last-child { margin-bottom: 0; }
.paper ::selection { background: var(--red); color: #fff; }
@media (max-width: 720px) { .paper { font-size: 16.5px; } }

/* policies (sovereign-policies): each category is a sheet that folds open */
.pol-tools { display: flex; justify-content: flex-end; margin: 0 0 16px; }
.category { margin: 0 0 18px; background: var(--doc-bg); color: var(--ink); border-radius: 6px; box-shadow: var(--doc-shadow); overflow: hidden; font: 400 17px/1.6 "Liberation Sans", Arial, sans-serif; }
.category-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 20px clamp(18px, 4vw, 34px); border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; font: 900 clamp(20px, 2.2vw, 27px)/1.15 var(--lato); text-transform: uppercase; }
.category-header:hover { color: #c1003f; }
.toggle-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; background: var(--ink); color: #fff; font: 900 22px/1 var(--lato); }
.category-header:hover .toggle-icon { background: var(--red); }
.policies { padding: 0 clamp(18px, 4vw, 34px) 10px; border-top: 2px solid var(--ink); }
.policy { padding: 18px 0; border-bottom: 1px solid rgba(23, 23, 26, .14); }
.policy:last-child { border-bottom: 0; }
.policy-title { margin-bottom: 6px; font: 900 19px/1.3 var(--lato); }
.policy-description { white-space: pre-line; }

/* ---------- member area (lib/member.php): each block is a paper card; the Bootstrap classes its pages use ---------- */
.mwrap { position: relative; z-index: 1; width: min(100% - 2 * var(--gutter), 780px); margin: 0 auto; padding: 0 0 clamp(80px, 9vw, 130px); }
.member-card { position: relative; margin: 0 0 22px; padding: clamp(20px, 3.6vw, 34px) clamp(18px, 4vw, 38px); background: var(--doc-bg); color: var(--ink); border-radius: 6px;
  box-shadow: var(--doc-shadow), 0 2px 0 rgba(255, 255, 255, .5) inset; font: 400 16.5px/1.55 "Liberation Sans", Arial, sans-serif; }
.member-card h2 { margin: 0 0 16px; padding-bottom: .4em; border-bottom: 2px solid var(--ink); font: 900 24px/1.15 var(--lato); }
.member-card h3, .member-card .h3 { margin: 0 0 12px; font: 900 21px/1.2 var(--lato); }
.member-card p { margin: 0 0 12px; }
.member-card a { color: #c1003f; }
.member-card label, .member-card .form-label { display: block; margin: 0 0 6px; font: 900 10.5px/1.25 var(--lato); letter-spacing: .16em; text-transform: uppercase; color: #66666e; }
.member-card .form-check-label { display: inline; font: 400 15px/1.45 "Liberation Sans", Arial, sans-serif; letter-spacing: 0; text-transform: none; color: var(--ink); }
.kv { display: grid; grid-template-columns: 190px 1fr; gap: 8px 16px; margin: 0; }
.kv dt { font: 900 11px/1.6 var(--lato); letter-spacing: .14em; text-transform: uppercase; color: #66666e; }
.kv dd { margin: 0; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; } }
.form-control, .stripe-field { display: block; width: 100%; padding: 11px 13px; border: 1.5px solid rgba(23, 23, 26, .25); border-radius: 4px; background: #fff; color: var(--ink); font: 400 16px "Liberation Sans", Arial, sans-serif; outline: none; }
.form-control:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 2, 92, .15); }
.input-group { display: flex; align-items: stretch; }
.input-group-text { display: flex; align-items: center; padding: 0 12px; border: 1.5px solid rgba(23, 23, 26, .25); border-right: 0; border-radius: 4px 0 0 4px; background: rgba(23, 23, 26, .06); font-weight: 700; }
.input-group > .form-control { border-radius: 0 4px 4px 0; flex: 1; min-width: 0; }
.form-check { display: flex; gap: 10px; align-items: flex-start; }
.form-check-input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.alert { margin: 0 0 16px; padding: 12px 16px; border-radius: 4px; border-left: 5px solid var(--ink); background: rgba(23, 23, 26, .06); color: var(--ink); font: 400 15.5px/1.5 "Liberation Sans", Arial, sans-serif; }
.alert-success { border-color: #1f8a4c; background: #e8f5ec; }
.alert-danger { border-color: #c1003f; background: #fde8ee; }
.alert-warning { border-color: #c98a00; background: #fdf5e1; }
.alert-info { border-color: #2a4fbf; background: #eaf0fc; }
.page--member > .mwrap > .alert { box-shadow: var(--doc-shadow); }
.btn-red, .btn-outline-secondary, .btn-outline-danger { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: 12px 20px; border-radius: 5px; border: 2px solid transparent; font: 900 13px/1 var(--lato); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s; }
.btn-red { background: var(--red); color: #fff !important; box-shadow: 0 10px 30px -12px var(--red-glow); }
.btn-red:hover { background: var(--red-d); transform: translateY(-2px); }
.btn-outline-secondary { background: var(--ghost-bg); border-color: var(--ghost-line); color: var(--white) !important; }
.btn-outline-secondary:hover { border-color: var(--white); background: var(--ghost-bg-h); }
.member-card .btn-outline-secondary { background: transparent; border-color: rgba(23, 23, 26, .4); color: var(--ink) !important; }
.member-card .btn-outline-secondary:hover { border-color: var(--ink); background: rgba(23, 23, 26, .05); }
.btn-outline-danger { background: transparent; border-color: #c1003f; color: #c1003f !important; }
.btn-outline-danger:hover { background: #c1003f; color: #fff !important; }
.btn-sm { padding: 9px 14px; font-size: 11.5px; }
.btn-red:disabled, .btn-outline-secondary:disabled, .btn-outline-danger:disabled { opacity: .55; cursor: wait; transform: none; }
.table-responsive { overflow-x: auto; }
.table-sm th, .table-sm td { padding: 6px 8px; }
.history td, .history th { white-space: nowrap; } .history td.desc { white-space: normal; }
/* the utility classes the member pages use */
.small, .member-card small { font-size: .875em; }
.text-muted { color: var(--fg-3) !important; }
.text-danger { color: #ff4d84 !important; }
.member-card .text-muted, .paper .text-muted { color: #5b5b63 !important; }
.member-card .text-danger, .paper .text-danger { color: #c1003f !important; }
/* the heading row above the cards (on the backdrop): "Kia ora, …" and Sign out */
.mwrap > .d-flex .h3, .mwrap > .h3 { margin: 0; font: 900 clamp(26px, 3vw, 38px)/1.1 var(--lato); }
.text-end { text-align: right; }
.d-none { display: none !important; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: 8px !important; } .mb-3 { margin-bottom: 16px !important; }
.mt-3 { margin-top: 16px !important; } .mt-4 { margin-top: 24px !important; } .my-2 { margin-top: 8px !important; margin-bottom: 8px !important; }
.ms-4 { margin-left: 24px !important; } .ps-3 { padding-left: 16px !important; }

/* ---------- video pages (assets/videos/*): players on the backdrop ---------- */
.vid { position: relative; padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.vid__h { margin: 0 0 8px; font: 900 clamp(30px, 4vw, 56px)/1 var(--lato); text-transform: uppercase; }
.vid__sub { margin: 0 0 6px; font: 700 clamp(18px, 1.6vw, 21px)/1.45 var(--lato); color: var(--silver); max-width: 60ch; }
.vid__meta { margin: 0 0 28px; font: 400 15px/1.4 var(--ubuntu); color: var(--fg-3); }
.players { display: grid; gap: 28px; }
@media (min-width: 992px) { .players { grid-template-columns: minmax(0, 16fr) minmax(0, 5.0625fr); gap: 24px; align-items: start; } }
@media (max-width: 991.98px) { .player.vert { max-width: 340px; margin: 0 auto; } .player.vert video { max-height: 80vh; } }
.player video { display: block; width: 100%; background: #000; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px var(--line); }
.player.land video { aspect-ratio: 16 / 9; }
.player.vert video { aspect-ratio: 9 / 16; }
.player .format { margin: 14px 0 2px; font: 900 13px/1.2 var(--lato); letter-spacing: .14em; text-transform: uppercase; }
.player .use { margin: 0 0 12px; font: 400 15px/1.4 var(--ubuntu); color: var(--fg-3); }
.player .btn .size { font-weight: 700; opacity: .85; letter-spacing: .06em; }
.vid__srt { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 28px 0 18px; font: 400 15px/1.4 var(--ubuntu); color: var(--fg-3); }
.credits { margin: 0; padding: 14px 18px; border-left: 4px solid var(--red); background: var(--surface); font: 400 14px/1.55 var(--ubuntu); color: var(--fg-3); }
.credits strong { color: var(--white); }
.credits a { color: var(--white); }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px var(--line); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* document pages: the version line, the closing note, a constitution article's title as the sheet's head */
.pmeta { margin: 0 0 22px; font: 700 15px/1.45 var(--ubuntu); color: var(--fg-3); }
.pnote { margin: 8px 0 0; font: 400 14.5px/1.55 var(--ubuntu); color: var(--fg-3); max-width: 80ch; }
.paper h4.article { margin: 0 0 1em; padding-bottom: .45em; border-bottom: 2px solid var(--ink); font: 900 clamp(23px, 2.5vw, 31px)/1.15 var(--lato); }

/* paper is light in both themes: its native controls (radios, checkboxes, date pickers, scrollbars) are drawn light */
.paper, .member-card, .join__card, .category, .doc, .form-card, .privacy-modal, .fta-step, .fta-download, .fta-why, .fta-faq, .fta-sources,
.timeline-card, .incidents-card, .info-card { color-scheme: light; }

/* the contact form's spam checks: the honeypot field is off screen; the ALTCHA box in the form's colours */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
altcha-widget { display: block;
  --altcha-max-width: 100%; --altcha-border-width: 1.5px; --altcha-border-radius: 5px;
  --altcha-color-base: var(--field-bg); --altcha-color-border: var(--field-line); --altcha-color-border-focus: var(--red);
  --altcha-color-text: var(--white); --altcha-color-error-text: #ff4d84; --altcha-color-footer-bg: transparent;
  font: 700 15px var(--lato); }
.form__fail { border-left-color: #ff4d84; color: var(--white); font-weight: 700; }
.form__fail a { color: var(--white); }

altcha-widget input[type=checkbox] { accent-color: var(--red); }


/* members sign in from the nav (beside Join), the phone menu and the membership section */
.nav__signin { margin-right: -14px; }
/* the nav needs ~1290 px as spaced above (1350 with "My membership"): tighter between 1201 and 1365 px, and the phone
   menu from 1200 px down (measured, 2026-11-09); its links never wrap */
.nav__links a { white-space: nowrap; }
@media (min-width: 1201px) and (max-width: 1365px) {
  .nav { gap: 14px; }
  .nav__links { gap: 0; }
  .nav__links a { padding: 10px 8px; letter-spacing: .12em; }
  .nav__links a::after { left: 8px; right: 8px; }
  .nav > .btn--sm { padding: 11px 13px; letter-spacing: .12em; }
  .nav__signin { margin-right: -4px; }
}
@media (max-width: 1200px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__logo { opacity: 1; transform: none; }
}
.menu a.menu__signin { color: var(--red); }
.mem__signin { margin: 20px 0 0; font: 700 16px/1.45 var(--lato); color: var(--silver); }
.mem__signin a { color: var(--white); text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.mem__signin a:hover { color: var(--red); }

