/* IEPD prototype: public site styles
   Tokens first; every component below reads from them. */
@font-face { font-family: 'Libre Caslon Display'; src: url('../fonts/libre-caslon-display-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('../fonts/jost-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url('../fonts/public-sans-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --navy-950: #0E1840;
  --navy-900: #15225C;
  --navy: #1A2A6C;
  --navy-600: #2B3C88;
  --navy-100: #E5E9F5;
  --gold: #D6A33B;
  --gold-300: #E6BE6A;
  --gold-200: #F4E6C2;
  --gold-ink: #7E5C0E;
  --ground: #F2F3F6;
  --surface: #FFFFFF;
  --tone: #E7E9F0;
  --ink: #151B34;
  --ink-2: #464D6C;
  --ink-3: #5F6584;
  --line: #CDD1DE;
  --ok: #1D6640; --ok-bg: #E1F0E7;
  --warn: #77560B; --warn-bg: #F6EACB;
  --bad: #9A2B21; --bad-bg: #F6E0DC;
  --on-navy: rgba(255, 255, 255, 0.84);
  --on-navy-2: rgba(255, 255, 255, 0.66);

  --font-display: 'Libre Caslon Display', 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --font-sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --radius: 2px;
  --radius-surface: 4px;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 10vw, 152px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 var(--font-sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0; color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.on-navy :focus-visible, .bg-navy-2 :focus-visible, .hero :focus-visible, .page-head :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-300); }
::selection { background: var(--gold-200); color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------- type ---------- */
.display, .h1, .h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.012em; text-wrap: balance; }
.h1 { font-size: clamp(38px, 5.4vw, 72px); line-height: 1.02; }
.h2 { font-size: clamp(32px, 3.9vw, 52px); line-height: 1.06; }
.h3 { font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -0.005em; }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 64ch; text-wrap: pretty; }
.small { font-size: 14px; line-height: 1.5; }
.muted { color: var(--ink-3); }
.prose p + p { margin-top: 1em; }
.prose { max-width: 68ch; text-wrap: pretty; }
.statement { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; text-wrap: balance; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--snug { padding-block: clamp(64px, 7vw, 104px); }
.bg-white { background: var(--surface); }
.bg-ground { background: var(--ground); }
.bg-navy { background: var(--navy-950); color: #fff; }
.bg-navy-2 { background: var(--navy-900); color: #fff; }
.bg-navy .lead, .bg-navy .muted, .bg-navy-2 .lead { color: var(--on-navy); }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 48px; align-items: start; }
.split > .col-5 { grid-column: span 5; }
.split > .col-6 { grid-column: span 6; }
.split > .col-7 { grid-column: span 7; }
.split > .col-4 { grid-column: span 4; }
.split > .col-8 { grid-column: span 8; }
.split > .col-off-1 { grid-column-start: auto; }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.stack-s > * + * { margin-top: 12px; }
.stack > * + * { margin-top: 24px; }
.stack-l > * + * { margin-top: 40px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--radius); font: 600 15px/1.2 var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--gold { background: var(--gold); color: var(--navy-950); }
.btn--light { background: #fff; color: var(--navy-950); }
.btn--line-light { border-color: rgba(255, 255, 255, 0.5); color: #fff; background: transparent; }
.btn--quiet { background: var(--tone); color: var(--ink); }
.btn--danger { background: var(--bad); color: #fff; }
.btn--wa { background: #17663F; color: #fff; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--navy-600); }
  .btn--gold:hover { background: var(--gold-300); }
  .btn--light:hover { background: var(--gold-200); }
  .btn--line-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
  .btn--quiet:hover { background: #DCDFE9; }
  .btn--danger:hover { background: #82231b; }
  .btn--wa:hover { background: #12532F; }
}
.textlink { font-weight: 600; color: var(--navy); }
.bg-navy .textlink, .bg-navy-2 .textlink, .hero .textlink { color: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--surface); }
.site-header__in { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand__name { display: grid; line-height: 1.15; }
.brand__abbr { font-family: var(--font-display); font-size: 26px; letter-spacing: 0.01em; color: var(--navy-950); }
.brand__full { font-size: 12.5px; color: var(--ink-3); max-width: 250px; }
@media (min-width: 1081px) and (max-width: 1320px) { .brand__full { display: none; } }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 12px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; border-radius: var(--radius); position: relative; }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--gold); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: var(--ground); } }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .member-link { font-size: 15px; font-weight: 600; text-decoration: none; padding: 10px 12px; white-space: nowrap; }
.nav a { white-space: nowrap; }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: var(--tone); border: 0; border-radius: var(--radius); font-weight: 600; cursor: pointer; }
.site-header { transition: transform 260ms var(--ease-out); }
.site-header.is-hidden { transform: translateY(-100%); }
html.menu-open { overflow: hidden; }
.mnav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 39; display: flex; flex-direction: column; gap: 28px; padding: 24px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; background: var(--navy-950); color: #fff; opacity: 0; visibility: hidden; transition: opacity 220ms var(--ease-out), visibility 0s linear 220ms; }
.mnav.is-open { opacity: 1; visibility: visible; transition: opacity 220ms var(--ease-out), visibility 0s; }
.mnav__main { display: grid; }
.mnav__main a { font-family: var(--font-display); font-size: clamp(30px, 8.6vw, 40px); line-height: 1.15; padding: 7px 0; color: #fff; text-decoration: none; opacity: 0; transform: translateY(10px); transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); transition-delay: calc(var(--i, 0) * 35ms); }
.mnav.is-open .mnav__main a { opacity: 1; transform: none; }
.mnav__main a[aria-current="page"] { color: var(--gold-300); }
.mnav__sub { display: grid; padding-top: 4px; }
.mnav__sub a { padding: 11px 0; font-size: 17px; font-weight: 500; color: var(--on-navy); text-decoration: none; }
.mnav__sub a[aria-current="page"] { color: var(--gold-300); }
.mnav__foot { margin-top: auto; display: grid; gap: 14px; }
.mnav__motto { color: var(--gold-300); font-weight: 600; font-size: 14px; }
.menu-btn { transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.menu-btn:active { transform: scale(0.96); }
.menu-btn[aria-expanded="true"] { background: var(--navy); color: #fff; }
@media (max-width: 1080px) {
  .nav, .header-actions { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 420px) { .brand__full { display: none; } }

/* ---------- hero ---------- */
.hero { background: var(--navy-950); color: #fff; overflow: hidden; }
.hero__stage { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(560px, calc(100svh - var(--header-h) - 96px), 820px); background: var(--navy-950); touch-action: pan-y; }
.slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.slides__track, .slide { position: absolute; inset: 0; margin: 0; }
.slide { opacity: 0; transition: opacity 1100ms var(--ease-in-out); }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 8000ms cubic-bezier(0.25, 0.1, 0.25, 1); }
.slide.is-active img { transform: scale(1); }
.hero__stage.is-paused .slide.is-active img { transition-duration: 0ms; }
.hero__scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(14, 24, 64, 0.94) 0%, rgba(14, 24, 64, 0.72) 30%, rgba(14, 24, 64, 0.28) 62%, rgba(14, 24, 64, 0.1) 100%),
              linear-gradient(to right, rgba(14, 24, 64, 0.62) 0%, rgba(14, 24, 64, 0) 62%); }
.hero__stage--plain .hero__scrim { display: none; }
.hero__grid { position: relative; width: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: end; padding-block: clamp(96px, 12vw, 160px) clamp(40px, 5vw, 64px); }
.hero__text { grid-column: 1 / span 8; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.hero__title, .hero__lead { text-shadow: 0 1px 24px rgba(14, 24, 64, 0.35); }
.slides__ui { grid-column: 9 / -1; justify-self: end; display: flex; align-items: center; gap: 20px; }
.slides__dots { display: flex; gap: 6px; }
.slides__dot { position: relative; width: 28px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.slides__dot span { position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: rgba(255, 255, 255, 0.32); overflow: hidden; transition: background-color 200ms ease; }
.slides__dot span::after { content: ""; position: absolute; inset: 0; background: var(--gold-300); transform: scaleX(0); transform-origin: left; }
.slides__dot[aria-current="true"] span::after { transform: scaleX(1); }
.slides__dot.is-run span::after { animation: slide-progress var(--interval, 6500ms) linear both; }
.hero__stage.is-paused .slides__dot.is-run span::after { animation-play-state: paused; }
@keyframes slide-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.slides__btns { display: flex; gap: 6px; }
.slides__btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.36); background: rgba(14, 24, 64, 0.32); color: #fff; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out); }
.slides__btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .slides__btn:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; } .slides__dot:hover span { background: rgba(255, 255, 255, 0.6); } }
.slides__btn .i-play { display: none; }
.slides__btn.is-play .i-play { display: inline; }
.slides__btn.is-play .i-pause { display: none; }
.hero__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(50px, 7.4vw, 108px); line-height: 0.98; letter-spacing: -0.02em; }
.hero__title span { display: block; }
.hero__lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--on-navy); max-width: 46ch; text-wrap: pretty; }
.next { background: var(--navy-900); }
.next__in { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 40px; align-items: center; padding-block: 28px; }
.next__count { display: flex; align-items: baseline; gap: 10px; }
.next__num { font-family: var(--font-display); font-size: clamp(52px, 5vw, 72px); line-height: 1; color: var(--gold-300); font-variant-numeric: lining-nums tabular-nums; }
.next__unit { font-size: 15px; color: var(--on-navy); max-width: 9ch; line-height: 1.3; }
.next__what { display: grid; gap: 4px; }
.next__what strong { font-size: 18px; font-weight: 600; }
.next__what span { color: var(--on-navy); font-size: 15px; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .hero__text { grid-column: 1 / -1; }
  .slides__ui { grid-column: 1 / -1; justify-self: stretch; justify-content: space-between; margin-top: 12px; }
  .next__in { grid-template-columns: auto 1fr; }
  .next__in .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 600px) { .next__in { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 24px 28px; } }

/* load sequence: one orchestrated moment on the home page */
.js .seq > * { animation: rise 720ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 80ms + 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .slide { transition-duration: 200ms; }
  .slide img, .slide.is-active img { transform: none; transition: none; }
  .site-header, .mbar { transition: none; }
  .mnav__main a { transform: none; transition: opacity 160ms ease; transition-delay: 0ms; }
  .feature:active, .prow:active { transform: none; }
  .js .seq > * { animation: fade 200ms ease both; animation-delay: 0ms; }
  .js .reveal { transform: none; transition: opacity 200ms ease; transition-delay: 0ms; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  .btn:active { transform: none; }
}

/* ---------- page head (inner pages) ---------- */
.page-head { background: var(--navy-950); color: #fff; padding-block: clamp(56px, 7vw, 104px) clamp(48px, 6vw, 80px); }
.page-head__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.page-head__in > * { min-width: 0; }
.page-head__in > * { max-width: 760px; }
.page-head__in > .h1 { max-width: 1040px; }
.page-head__in > .facts { max-width: 1040px; }
.page-head .lead { color: var(--on-navy); }
.crumb { font-size: 14px; color: var(--on-navy-2); }
.crumb a { color: var(--on-navy); }

/* ---------- home: about ---------- */
.mv { display: grid; gap: 40px; }
.mv__item { display: grid; gap: 10px; }
.mv__item h3 { font-size: 15px; font-weight: 600; color: var(--gold-ink); }
.values { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.values li { padding: 8px 14px; background: var(--surface); border-radius: var(--radius); font-weight: 500; font-size: 15px; }
.bg-white .values li { background: var(--ground); }

/* ---------- programme index ---------- */
.pindex { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.pindex li a { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: baseline; padding: 16px 0; text-decoration: none; color: var(--ink); }
.pindex abbr { text-decoration: none; font-weight: 700; font-size: 14px; color: var(--gold-ink); letter-spacing: 0.02em; }
.pindex__name { font-size: 18px; line-height: 1.35; }
.pindex__next { display: none; }
@media (hover: hover) and (pointer: fine) { .pindex li a:hover .pindex__name { text-decoration: underline; text-underline-offset: 4px; } }
@media (max-width: 760px) { .pindex { grid-template-columns: 1fr; } }

.feature { display: grid; align-content: start; background: var(--surface); border-radius: var(--radius-surface); overflow: hidden; }
.feature__body { display: grid; gap: 20px; padding: clamp(28px, 3vw, 40px); }
.feature__img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; background: var(--navy-900); }
.bg-white .feature { background: var(--ground); }
.feature__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--ink-2); }
.feature__title { font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 32px); line-height: 1.15; text-wrap: balance; }
.feature__title a { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .feature__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; } }

/* ---------- designatory letters ---------- */
.letters { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.letters li { display: grid; gap: 12px; align-content: start; }
.letters__code { font-family: var(--font-display); font-size: clamp(44px, 5.6vw, 84px); line-height: 1; letter-spacing: -0.02em; color: #fff; }
.letters__name { font-weight: 600; font-size: 17px; color: #fff; }
.letters__desc { color: var(--on-navy); font-size: 15px; line-height: 1.5; }
@media (max-width: 900px) { .letters { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } }
@media (max-width: 480px) { .letters { grid-template-columns: 1fr; } }
.coe { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; margin-top: 64px; padding-top: 0; }
.coe__code { font-family: var(--font-display); font-size: 40px; color: var(--gold-300); line-height: 1; }

/* ---------- benefits ---------- */
.benefits { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.benefits li { display: grid; gap: 6px; }
.benefits strong { font-size: 18px; font-weight: 600; }
.benefits span { color: var(--ink-2); }
@media (max-width: 760px) { .benefits { grid-template-columns: 1fr; } }

/* ---------- partners ---------- */
.partners { list-style: none; display: grid; gap: 16px; }
.partner { display: grid; grid-template-columns: 220px 1fr auto; gap: 16px 40px; align-items: start; padding: 32px; background: var(--surface); border-radius: var(--radius-surface); }
.bg-white .partner { background: var(--ground); }
.partner__short { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--navy-950); }
.partner__name { font-weight: 600; font-size: 18px; margin-bottom: 6px; }
.partner__mark { display: grid; justify-items: start; gap: 10px; }
.partner__logo { width: 104px; height: 104px; object-fit: contain; }
.partner__abbr { font-family: var(--font-display); font-size: 24px; line-height: 1; color: var(--navy-950); }
.collabs { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.collabs li { display: flex; align-items: center; gap: 12px; font-weight: 500; max-width: 340px; }
.collabs img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.verify { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 8px; }
.verify__name { font-size: 19px; font-weight: 600; line-height: 1.35; }
.verify .letters-inline, .tile__name .letters-inline { color: var(--gold-ink); }
.end { justify-self: end; }
@media (max-width: 760px) { .end { justify-self: start; } }
@media (max-width: 900px) { .partner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- announcements ---------- */
.news { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.news li { display: grid; gap: 10px; align-content: start; }
.news time, .news .news__date { font-size: 14px; color: var(--ink-3); }
.news h3 { font-size: 19px; font-weight: 600; line-height: 1.35; }
.news p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 900px) { .news { grid-template-columns: 1fr; } }

/* ---------- contact band + footer ---------- */
.band { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }
.site-footer { background: var(--navy-950); color: #fff; padding-block: 80px 40px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__name { font-family: var(--font-display); font-size: clamp(30px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -0.015em; max-width: 18ch; margin-bottom: 56px; }
.footer__cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer__cols h2 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 14px; }
.footer__cols ul { list-style: none; display: grid; gap: 10px; font-size: 15px; }
.footer__motto { color: var(--gold-300); font-weight: 600; margin-bottom: 12px; }
.footer__base { margin-top: 64px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--on-navy-2); background: none; }
@media (max-width: 900px) { .footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__cols { grid-template-columns: 1fr; } }

/* ---------- facts, badges, placeholders, notices ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px 32px; }
:where(dl.facts) { margin: 0; }
.facts dt { font-size: 14px; color: var(--ink-3); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 17px; font-weight: 500; }
.bg-navy .facts dt, .page-head .facts dt { color: var(--on-navy-2); }
.facts--pay { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 20px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap; background: var(--tone); color: var(--ink-2); }
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--bad { background: var(--bad-bg); color: var(--bad); }
.badge--navy { background: var(--navy-100); color: var(--navy); }
.badge--gold { background: var(--gold-200); color: var(--gold-ink); }
.placeholder { display: inline; padding: 1px 6px; border-radius: var(--radius); background: var(--gold-200); color: var(--gold-ink); font-weight: 500; font-size: 0.94em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.notice { padding: 16px 20px; border-radius: var(--radius-surface); background: var(--tone); font-size: 15px; }
.notice--setup { background: var(--gold-200); color: #4D3906; }
.notice--demo { background: var(--navy-100); color: var(--navy-950); }
.notice--ok { background: var(--ok-bg); color: #123F28; }
.notice--bad { background: var(--bad-bg); color: #5E1912; }
.notice strong { font-weight: 700; }

/* ---------- forms ---------- */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.form > *, .form-grid > * { min-width: 0; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 20px; min-width: 0; }
.form legend { font-size: 22px; font-weight: 600; padding: 0; margin-bottom: 4px; letter-spacing: -0.005em; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; align-content: start; }
.field > label, .field > .label { font-size: 15px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--ink-3); }
.hint { font-size: 14px; color: var(--ink-3); }
.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"], .field input[type="number"], .field input[type="date"], .field input[type="search"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); font: 400 16px/1.4 var(--font-sans); transition: border-color 160ms ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23464D6C' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 2px solid var(--navy); outline-offset: -1px; }
[aria-invalid="true"] { border-color: var(--bad) !important; }
.field-error { color: var(--bad); font-size: 14px; font-weight: 500; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .choices { grid-template-columns: minmax(0, 1fr); } }
.choice { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-surface); cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease; }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.choice:has(input:checked) { border-color: var(--navy); background: var(--navy-100); }
.choice__code { font-family: var(--font-display); font-size: 26px; line-height: 1; color: var(--navy-950); display: block; margin-bottom: 6px; }
.choice__name { font-weight: 600; display: block; }
.choice__desc { font-size: 14px; color: var(--ink-2); display: block; margin-top: 4px; }
.form-summary { padding: 16px 20px; background: var(--bad-bg); color: #5E1912; border-radius: var(--radius-surface); }
.form-summary ul { margin: 8px 0 0 18px; }
.photo-field { display: flex; align-items: center; gap: 16px; }
.photo-field > :last-child { min-width: 0; flex: 1 1 auto; }
.photo-field input[type="file"] { width: 100%; }
input[type="file"] { max-width: 100%; font: 400 14px/1.4 var(--font-sans); color: var(--ink-2); }
input[type="file"]::file-selector-button { margin-right: 12px; min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius); background: var(--tone); color: var(--ink); font: 600 14px/1 var(--font-sans); cursor: pointer; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
input[type="file"]::file-selector-button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { input[type="file"]::file-selector-button:hover { background: #DCDFE9; } }
.panel { background: var(--surface); border-radius: var(--radius-surface); padding: clamp(24px, 3.4vw, 48px); }
.bg-white .panel { background: var(--ground); }

/* ---------- tiers ---------- */
.tiers { list-style: none; display: grid; gap: 16px; }
.tier { display: grid; grid-template-columns: 240px minmax(0, 1fr) 260px; gap: 24px 48px; padding: clamp(28px, 3.4vw, 48px); background: var(--surface); border-radius: var(--radius-surface); }
.tier__code { font-family: var(--font-display); font-size: clamp(48px, 5vw, 72px); line-height: 0.95; color: var(--navy-950); letter-spacing: -0.02em; }
.tier__name { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.tier__side { display: grid; gap: 16px; align-content: start; }
.tier dl { margin: 0; display: grid; gap: 14px; }
.tier dt { font-size: 14px; color: var(--ink-3); }
.tier dd { margin: 2px 0 0; }
.tier ul { padding-left: 18px; }
@media (max-width: 1000px) { .tier { grid-template-columns: minmax(0, 1fr); } }

/* membership card: ID-1 proportions; every size is a share of the card's width (cqw) */
.mcard-set { display: grid; gap: 16px; }
.mcard-wrap { container-type: inline-size; width: 100%; max-width: 520px; }
.mcard { position: relative; isolation: isolate; aspect-ratio: 1012 / 638; border-radius: 3.75cqw; overflow: hidden; font-family: 'Jost', 'Public Sans', Arial, sans-serif; box-shadow: 0 2cqw 6cqw rgba(14, 24, 64, 0.22); }
.mcard--front { background: #0B1433; color: #F4F1EA; }
.mcard__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 95% at 88% 100%, rgba(214, 163, 59, 0.26) 0%, rgba(214, 163, 59, 0.06) 42%, rgba(11, 20, 51, 0) 68%); }
.mcard__soft { position: absolute; z-index: -1; width: 77cqw; right: -31.6cqw; bottom: -31.6cqw; filter: blur(0.9cqw) saturate(1.15); opacity: 0.4; transform: rotate(-10deg); pointer-events: none; }
.mcard__in { position: absolute; inset: 0; padding: 5.53cqw 6.32cqw 5.34cqw; display: flex; flex-direction: column; justify-content: space-between; }
.mcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2.4cqw; }
.mcard__brand { display: flex; align-items: center; gap: 1.8cqw; }
.mcard__brand img { width: 6.5cqw; height: auto; }
.mcard__brand b { display: block; font-size: 2.37cqw; font-weight: 500; letter-spacing: 0.34em; line-height: 1; }
.mcard__brand span { display: block; margin-top: 0.6cqw; font-size: 1.28cqw; letter-spacing: 0.04em; color: rgba(244, 241, 234, 0.72); line-height: 1.2; }
.mcard__tier { display: grid; justify-items: end; gap: 1cqw; padding-top: 1cqw; }
.mcard__tier > span { font-size: 1.19cqw; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: #D6A33B; white-space: nowrap; }
.mcard__status { font-style: normal; font-size: 1.28cqw; font-weight: 600; padding: 0.5cqw 1.3cqw; border-radius: 99px; background: #F4E6C2; color: #7E5C0E; white-space: nowrap; }
.mcard__status--suspended { background: #F6E0DC; color: #9A2B21; }
.mcard__title { display: grid; gap: 1.38cqw; margin-top: 1.8cqw; }
.mcard__word { font-size: 6.13cqw; font-weight: 300; letter-spacing: 0.3em; line-height: 1; text-transform: uppercase; }
.mcard__sub { display: flex; align-items: center; gap: 1.58cqw; font-size: 1.38cqw; font-weight: 500; letter-spacing: 0.42em; text-transform: uppercase; color: #D6A33B; }
.mcard__sub i { display: block; width: 4.35cqw; height: 1px; background: #D6A33B; }
.mcard__foot { display: grid; gap: 2.96cqw; }
.mcard__name { margin: 0; display: grid; gap: 0.6cqw; font-family: var(--font-display); font-size: 4.74cqw; line-height: 1.04; overflow-wrap: anywhere; }
.mcard__name--long { font-size: 3.9cqw; }
.mcard__given { font-size: 0.67em; color: rgba(244, 241, 234, 0.84); line-height: 1.1; }
.mcard__facts { display: flex; flex-wrap: wrap; gap: 0 5.53cqw; margin: 0; }
.mcard__facts dt { font-size: 1.09cqw; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(244, 241, 234, 0.62); }
.mcard__facts dd { margin: 0.8cqw 0 0; font-size: 1.88cqw; font-weight: 500; letter-spacing: 0.05em; font-variant-numeric: tabular-nums; }
.mcard__band { position: absolute; left: 0; right: 0; bottom: 0; height: 1cqw; background: #D6A33B; }
.mcard--back { background: #F3EFE6; color: #0B1433; }
.mcard__stripe { position: absolute; left: 0; right: 0; top: 5.34cqw; height: 9.49cqw; background: #0B1433; }
.mcard__hair { position: absolute; left: 0; right: 0; top: 14.82cqw; height: 0.3cqw; background: #D6A33B; }
.mcard__code { position: absolute; left: 6.32cqw; top: 20.36cqw; display: grid; gap: 1.4cqw; }
.mcard__code svg { display: block; width: 62.5cqw; height: 11.07cqw; }
.mcard__code span { font-size: 1.68cqw; font-weight: 500; letter-spacing: 0.34em; font-variant-numeric: tabular-nums; }
.mcard__nocode { margin: 4cqw 0 0; max-width: 56cqw; font-size: 1.7cqw; color: #39405A; }
.mcard__pic { position: absolute; right: 6.32cqw; top: 20cqw; width: 11.66cqw; display: grid; justify-items: end; }
.mcard__pic img { width: 100%; height: auto; }
.mcard__pic--photo { width: 13.04cqw; aspect-ratio: 4 / 5; border-radius: 1.4cqw; overflow: hidden; box-shadow: 0 0 0 0.2cqw #D6A33B; }
.mcard__pic--photo img { height: 100%; object-fit: cover; object-position: 50% 30%; }
.mcard__note { position: absolute; left: 6.32cqw; bottom: 5.53cqw; max-width: 51.4cqw; display: grid; gap: 0.8cqw; }
.mcard__note small, .mcard__contact small { font-size: 1.09cqw; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: #5A6178; }
.mcard__note p { margin: 0; font-size: 1.48cqw; line-height: 1.5; color: #39405A; }
.mcard__contact { position: absolute; right: 6.32cqw; bottom: 5.53cqw; display: grid; gap: 0.8cqw; justify-items: end; }
.mcard__contact b { font-size: 1.98cqw; font-weight: 500; letter-spacing: 0.02em; }
.partner .muted + .muted { margin-top: 10px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (max-width: 560px) { .card-actions { display: grid; grid-template-columns: minmax(0, 1fr); } .card-actions .btn { width: 100%; justify-content: center; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.offline-bar { background: var(--gold-200); color: #4D3906; font-size: 14px; padding: 8px var(--gutter); text-align: center; }
.apply-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.apply-aside .mcard-wrap { max-width: none; }

/* ---------- directory ---------- */
.toolbar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 32px; }
@media (max-width: 760px) { .toolbar { grid-template-columns: 1fr; } }
.result-count { font-size: 15px; color: var(--ink-3); margin-bottom: 16px; }
.tiles { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tile { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; width: 100%; padding: 18px; background: var(--surface); border: 0; border-radius: var(--radius-surface); text-align: left; cursor: pointer; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.tile:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) { .tile:hover { background: var(--navy-100); } }
.tile__name { font-weight: 600; font-size: 16px; line-height: 1.3; }
.tile__name .letters-inline { color: var(--gold-ink); font-weight: 600; }
.tile__meta { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.avatar { border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; font-weight: 700; letter-spacing: 0.02em; flex: none; font-family: var(--font-sans); }
.empty { padding: 48px 32px; background: var(--surface); border-radius: var(--radius-surface); display: grid; gap: 12px; justify-items: start; }
.empty h2, .empty h3 { font-size: 20px; font-weight: 600; }

/* ---------- programme listing ---------- */
.plist { list-style: none; display: grid; gap: 12px; }
.prow { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 16px 40px; align-items: start; padding: 28px 32px; background: var(--surface); border-radius: var(--radius-surface); }
.prow__date { font-weight: 600; color: var(--navy-950); }
.prow__date span { display: block; font-weight: 400; font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.prow__title { font-size: 20px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
.prow__title a { color: inherit; text-decoration: none; }
.prow__title a:hover { text-decoration: underline; }
.prow__cat { font-size: 14px; color: var(--gold-ink); font-weight: 600; margin-bottom: 6px; }
@media (max-width: 900px) { .prow { grid-template-columns: minmax(0, 1fr); } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-2); transition: background-color 160ms ease, color 160ms ease; }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; }
@media (hover: hover) and (pointer: fine) { .chip:not([aria-pressed="true"]):hover { background: var(--tone); } }

/* programme detail */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: start; }
.detail__side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
@media (max-width: 1000px) { .detail { grid-template-columns: minmax(0, 1fr); } .detail__side { position: static; } }
.detail > * { min-width: 0; }
.theme-quote { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.22; color: var(--navy-950); text-wrap: balance; margin: 0; }
.flyer-btn { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 12px; background: var(--surface); border-radius: var(--radius-surface); border: 0; text-align: left; cursor: pointer; width: 100%; }
.flyer-btn img { width: 72px; height: 100px; object-fit: cover; border-radius: 2px; }
.schedule { list-style: none; display: grid; gap: 28px; }
.schedule h3 { font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.schedule ul { padding-left: 18px; display: grid; gap: 4px; color: var(--ink-2); }
.people { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
.people strong { display: block; font-weight: 600; }
.people span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 700px) { .people { grid-template-columns: 1fr; } }

/* payment steps */
.pay { list-style: none; counter-reset: pay; display: grid; gap: 32px; }
.pay__step { counter-increment: pay; display: grid; gap: 10px; padding-left: 56px; position: relative; }
.pay__step::before { content: counter(pay); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.pay__step h3 { font-size: 19px; font-weight: 600; }
.pay__msg { margin: 6px 0 4px; padding: 14px 18px; background: var(--ground); border-radius: var(--radius-surface); font-size: 15px; color: var(--ink-2); }
.bg-ground .pay__msg, .panel .pay__msg { background: var(--tone); }
.ref { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; color: var(--navy-950); letter-spacing: 0.01em; overflow-wrap: anywhere; }

/* gate */
.gate { max-width: 620px; grid-template-columns: minmax(0, 1fr); margin-inline: auto; text-align: center; display: grid; gap: 20px; justify-items: center; padding-block: clamp(72px, 10vw, 140px); }
.gate img { width: 120px; }

/* member dashboard */
.dash { display: grid; grid-template-columns: 460px minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 1080px) { .dash { grid-template-columns: minmax(0, 1fr); } }
.dash > * { min-width: 0; }
@media (max-width: 480px) { .dash .facts.panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 20px 16px; } }
.quick { list-style: none; display: grid; gap: 8px; }
.quick a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; background: var(--surface); border-radius: var(--radius-surface); text-decoration: none; color: var(--ink); font-weight: 600; }
.quick a span { font-weight: 400; color: var(--ink-3); font-size: 14px; }
@media (hover: hover) and (pointer: fine) { .quick a:hover { background: var(--navy-100); } }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--tone); vertical-align: top; }

/* auth */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100dvh - var(--header-h)); }
.auth__aside { background: var(--navy-950); color: #fff; padding: clamp(40px, 6vw, 88px); display: grid; align-content: space-between; gap: 40px; }
.auth__aside img { width: 140px; }
.auth__main { display: grid; align-content: center; padding: clamp(40px, 6vw, 88px) var(--gutter); }
.auth__form { width: 100%; max-width: 440px; display: grid; gap: 20px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth__aside { order: 2; } }

/* ---------- dialogs ---------- */
.dlg { border: 0; padding: 0; width: calc(100% - 32px); max-width: 560px; max-height: calc(100dvh - 48px); border-radius: 8px; background: #fff; color: var(--ink); opacity: 0; transform: scale(0.97); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); box-shadow: 0 24px 64px rgba(14, 24, 64, 0.28); }
.dlg--wide { max-width: 860px; }
.dlg[open] { display: flex; flex-direction: column; }
.dlg.is-open { opacity: 1; transform: none; }
.dlg::backdrop { background: rgba(14, 24, 64, 0.5); opacity: 0; transition: opacity 200ms ease; }
.dlg.is-open::backdrop { opacity: 1; }
.dlg--drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(640px, 100vw); max-width: none; border-radius: 0; transform: translateX(100%); transition: transform 340ms var(--ease-drawer); }
.dlg--drawer.is-open { transform: none; }
.dlg__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; }
.dlg__title { font-size: 20px; font-weight: 600; line-height: 1.3; }
.dlg__close { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: var(--tone); border-radius: var(--radius); cursor: pointer; flex: none; transition: transform 160ms var(--ease-out); }
.dlg__close:active { transform: scale(0.94); }
.dlg__body { padding: 4px 24px 24px; overflow: auto; flex: 1; }
.dlg__text { color: var(--ink-2); }
.dlg__foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 16px 24px; background: var(--ground); }
.flyer-full { width: 100%; height: auto; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { .dlg, .dlg--drawer { transform: none; transition: opacity 160ms ease; } }

/* ---------- toast ---------- */
.toast-host { position: fixed; left: 50%; bottom: 24px; z-index: 100; display: grid; gap: 8px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { background: var(--navy-950); color: #fff; padding: 14px 20px; border-radius: 6px; font-size: 15px; font-weight: 500; opacity: 0; transform: translateY(12px); transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); box-shadow: 0 12px 32px rgba(14, 24, 64, 0.3); }
.toast.is-in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > [class*="col-"] { grid-column: 1 / -1; }
  body { font-size: 16px; }
}
@media print { .site-header, .site-footer, .mnav { display: none; } }

/* ---------- tappable cards: the whole card opens the programme ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.feature, .prow { position: relative; transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.feature__title a::after, .prow__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.feature:active, .prow:active { transform: scale(0.985); }
.prow .actions { position: relative; z-index: 1; }

/* ---------- phones: swipe rails, short lists, calmer spacing ---------- */
.rail-dots, .more-btn, .mbar { display: none; }
@media (max-width: 760px) {
  :root { --section: 72px; }
  .section--snug { padding-block: 56px; }
  .section-head { margin-bottom: 28px; gap: 12px; }
  .page-head { padding-block: 44px 40px; }
  .hero__stage { min-height: calc(100svh - var(--header-h) - 64px); }
  .hero__grid { padding-block: 160px 28px; row-gap: 20px; }
  .slides__dot { width: 20px; }
  .hero__title { font-size: 58px; line-height: 0.96; }
  .hero .actions .btn, .band .actions .btn { flex: 1 1 100%; }
  .next__num { font-size: 56px; }

  .rail { display: grid !important; grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px !important; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; min-width: 0; }
  .rail-dots { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
  .rail-dots button { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; transition: transform 200ms var(--ease-out), background-color 200ms ease; }
  .rail-dots button::after { content: ""; position: absolute; inset: -10px; }
  .rail-dots button[aria-current="true"] { background: var(--navy); transform: scale(1.4); }
  .on-navy .rail-dots button { background: rgba(255, 255, 255, 0.28); }
  .on-navy .rail-dots button[aria-current="true"] { background: var(--gold-300); }
  .letters.rail > li { background: var(--navy-900); padding: 28px 24px; border-radius: var(--radius-surface); }
  .news.rail > li { background: var(--surface); padding: 24px; border-radius: var(--radius-surface); }
  .partner { padding: 24px; gap: 14px; }
  .coe { margin-top: 40px; }

  .is-collapsed > .is-extra { display: none; }
  .more-btn { display: inline-flex; margin-top: 20px; }

  .tier { padding: 24px; gap: 16px; }
  .tier__code { font-size: 52px; }
  .prow { padding: 22px; gap: 10px; }
  .panel { padding: 22px; }
  .feature__body { padding: 22px; gap: 12px; }

  .site-footer { padding-block: 56px 32px; }
  .footer__name { margin-bottom: 36px; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__cols > :first-child { grid-column: 1 / -1; }
  .footer__base { margin-top: 40px; flex-direction: column; }
}

/* sticky register bar on programme pages, phones and small tablets */
@media (max-width: 1000px) {
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--surface); box-shadow: 0 -10px 30px rgba(14, 24, 64, 0.14); transform: translateY(110%); transition: transform 280ms var(--ease-out); }
  .mbar.is-in { transform: none; }
  .mbar__t { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
  .mbar__d { display: block; font-size: 13px; color: var(--ink-3); }
  .mbar .btn { flex: none; }
}

/* ---------- tap-to-open list (membership benefits on phones) ---------- */
.partner__more { display: none; }
.benefits--acc { grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; }
.acc { background: var(--surface); border-radius: var(--radius-surface); }
.bg-white .acc { background: var(--ground); }
.acc__h { margin: 0; }
.acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 18px 18px 20px; border: 0; background: none; text-align: left; cursor: pointer; font-family: var(--font-sans); font-weight: 600; font-size: 17px; line-height: 1.35; color: var(--navy-950); -webkit-tap-highlight-color: transparent; }
.acc__icon { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--tone); transition: transform 260ms var(--ease-out), background-color 200ms ease; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; border-radius: 1px; background: var(--navy); transform: translate(-50%, -50%); }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc.is-open .acc__icon { transform: rotate(45deg); background: var(--gold-200); }
.acc__btn:active .acc__icon { transform: scale(0.9); }
.acc.is-open .acc__btn:active .acc__icon { transform: rotate(45deg) scale(0.9); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--ease-out); }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear 280ms; }
.acc.is-open .acc__inner { visibility: visible; transition-delay: 0s; }
.acc__inner p { padding: 0 20px 20px; color: var(--ink-2); font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .acc__panel, .acc__icon, .acc__inner { transition: none; } }

@media (max-width: 760px) {
  /* flagship programmes as tiles, abbreviations set like designatory letters */
  .pindex { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; }
  .pindex li a { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 136px; height: 100%; padding: 16px; background: var(--ground); border-radius: var(--radius-surface); transition: transform 160ms var(--ease-out), background-color 160ms ease; -webkit-tap-highlight-color: transparent; }
  .pindex li a:active { transform: scale(0.97); background: var(--navy-100); }
  .pindex abbr { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: -0.01em; color: var(--navy-950); }
  .pindex__name { font-size: 14px; line-height: 1.35; color: var(--ink-2); }
  .pindex__next { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding: 3px 9px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 12px; font-weight: 600; }
  .pindex__next::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

  /* partner previews on the home page */
  .partners.rail .partner { position: relative; align-content: start; }
  .partners.rail .partner .muted { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .partners.rail .partner__more { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 15px; }
  .partners.rail .partner__more::after { content: ""; position: absolute; inset: 0; }
  .partners.rail .partner:active { transform: scale(0.985); }
  .partners.rail .partner { transition: transform 160ms var(--ease-out); }
  .partner__logo { width: 84px; height: 84px; }
  .feature__img { aspect-ratio: 2 / 1; }
}

/* ---------- National Executive Board ---------- */
.person { margin: 0; display: grid; gap: 14px; }
.person__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-surface); background: var(--tone); }
.person__img--none { display: grid; place-items: center; font-family: var(--font-display); font-size: 44px; color: var(--navy); }
.person figcaption { display: grid; gap: 4px; }
.person__role { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.person__role.is-officer { color: var(--gold-ink); }
.person__name { font-size: 17px; font-weight: 600; line-height: 1.35; }
.person .letters-inline { color: var(--gold-ink); font-weight: 600; }
.board { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 24px; }
@media (max-width: 1100px) { .board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.officers { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.officers .person__name { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
.officers .person__role { font-size: 15px; }
.board-more { margin-top: 40px; }
.board-more__link { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; padding: 12px 20px 12px 12px; border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.board-more__link:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .board-more__link:hover { background: var(--navy-100); } }
.faces { display: flex; }
.faces img, .faces span { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 3px solid var(--surface); margin-left: -12px; background: var(--tone); }
.faces > :first-child { margin-left: 0; }
.footer__contact { list-style: none; display: grid; gap: 6px; margin-top: 16px; font-size: 15px; }
.band__link { color: #fff; font-weight: 600; text-decoration-color: rgba(255, 255, 255, 0.4); }
.phone-list { list-style: none; display: grid; gap: 4px; }

/* ---------- offices ---------- */
.offices { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.office { display: grid; align-content: start; gap: 12px; padding: 28px; background: var(--surface); border-radius: var(--radius-surface); }
.office__place { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1; color: var(--navy-950); }
.office address { font-style: normal; color: var(--ink-2); line-height: 1.55; }
.office__map { margin-top: 4px; font-weight: 600; font-size: 15px; }
@media (max-width: 1100px) { .offices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 760px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .person { gap: 10px; }
  .person__name { font-size: 15px; }
  .person__role { font-size: 13px; }
  .officers.rail { grid-auto-columns: 72%; }
  .officers .person__name { font-size: 22px; }
  .board-more__link { border-radius: var(--radius-surface); width: 100%; }
  .offices { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .office { padding: 22px; }
}

/* phones: the photo sits above the words, so neither covers the other */
@media (max-width: 760px) {
  .hero__stage { display: block; min-height: 0; }
  .slides { position: relative; inset: auto; aspect-ratio: 4 / 3; }
  .hero__scrim { bottom: auto; height: 75vw; background: linear-gradient(to top, rgba(14, 24, 64, 0.78) 0%, rgba(14, 24, 64, 0) 38%); z-index: 0; }
  .hero__grid { position: static; padding-block: 28px 32px; }
  .hero__title, .hero__lead { text-shadow: none; }
  .hero__title { font-size: 52px; }
  .slides__ui { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); top: calc(75vw - 58px); margin: 0; }
  .slides__btn { width: 40px; height: 40px; background: rgba(14, 24, 64, 0.45); }
  .hero__stage--plain .slides { display: none; }
}

/* ---------- printable membership form (A4) ---------- */
.form-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 32px; }
.form-tools__hint { margin-top: 8px; margin-bottom: 20px; }
.sheet { max-width: 210mm; margin: 0 auto 64px; background: #fff; color: #111; padding: 16mm 15mm; box-shadow: 0 10px 40px rgba(14, 24, 64, 0.12); font-size: 10.5pt; line-height: 1.45; }
.sheet--loading { min-height: 200px; display: grid; place-items: center; }
.sheet__head { display: grid; grid-template-columns: 22mm 1fr 30mm; gap: 6mm; align-items: start; padding-bottom: 5mm; border-bottom: 2px solid var(--navy-950); }
.sheet__head > img { width: 22mm; height: auto; }
.sheet__org { font-family: var(--font-display); font-size: 17pt; line-height: 1.1; color: var(--navy-950); }
.sheet__sub { font-size: 8.5pt; color: #444; margin-top: 2mm; }
.sheet__photo { width: 30mm; height: 37.5mm; border: 1px solid #999; display: grid; place-items: center; text-align: center; font-size: 7.5pt; color: #666; overflow: hidden; }
.sheet__photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet__title { font-family: var(--font-display); font-size: 20pt; color: var(--navy-950); margin: 6mm 0 4mm; }
.sheet__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #bbb; margin-bottom: 6mm; }
.sheet__meta div { padding: 2.5mm 3mm; }
.sheet__meta div + div { border-left: 1px solid #bbb; }
.sheet__meta dt, .sheet__rows dt { font-size: 8pt; color: #555; }
.sheet__meta dd, .sheet__rows dd { margin: 0.5mm 0 0; font-weight: 600; overflow-wrap: anywhere; }
.sheet h3 { font-size: 10.5pt; font-weight: 700; color: var(--navy-950); margin: 6mm 0 2.5mm; padding-bottom: 1.5mm; border-bottom: 1px solid #ccc; }
.sheet__rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3mm 8mm; margin: 0; }
.sheet__rows .wide { grid-column: 1 / -1; }
.sheet__decl { display: grid; grid-template-columns: 5mm 1fr; gap: 3mm; }
.sheet__tick { width: 4.5mm; height: 4.5mm; border: 1.5px solid #111; display: grid; place-items: center; font-size: 9pt; line-height: 1; }
.sheet__sign { display: grid; grid-template-columns: 2fr 1fr; gap: 10mm; margin-top: 12mm; }
.sheet__line { border-top: 1px solid #111; padding-top: 1.5mm; font-size: 8.5pt; color: #444; }
.sheet__office { margin-top: 8mm; border: 1.5px solid #111; padding: 4mm 5mm 5mm; }
.sheet__office h3 { margin-top: 0; border: 0; }
.sheet__office .sheet__sign { margin-top: 8mm; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sheet__foot { margin-top: 8mm; font-size: 8pt; color: #666; display: flex; justify-content: space-between; gap: 6mm; }
@media (max-width: 760px) {
  .sheet { padding: 18px 16px; font-size: 13px; }
  .sheet__head { grid-template-columns: 52px 1fr 72px; gap: 12px; }
  .sheet__head > img { width: 52px; }
  .sheet__photo { width: 72px; height: 90px; }
  .sheet__org { font-size: 18px; }
  .sheet__meta { grid-template-columns: minmax(0, 1fr); }
  .sheet__meta div + div { border-left: 0; border-top: 1px solid #bbb; }
  .sheet__rows { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  .skip, .form-tools, .form-tools__hint, .offline-bar, .toast-host { display: none !important; }
  #form-root { padding: 0; max-width: none; }
  .sheet { box-shadow: none; padding: 0; margin: 0; max-width: none; }
  .sheet__sec, .sheet__office, .sheet__sign { break-inside: avoid; page-break-inside: avoid; }
  .sheet h3 { break-after: avoid; page-break-after: avoid; }
}
