/* Design tokens. Every colour, size and timing used by the site lives here.
   Values follow SPEC.md section 3; hex values are taken from OakMUN's CSS. */

:root {
  /* Blue ramp, darkest to lightest */
  --blue-950: #03080f;
  --blue-940: #020c1a;
  --blue-900: #001223;
  --blue-850: #001a35;
  --blue-800: #001e3c;
  --blue-750: #002548;
  --blue-700: #003057; /* main navy */
  --blue-650: #003566;
  --blue-660: #002d52; /* middle stop of the Secretariat card back */
  --blue-600: #003d6e;
  --blue-500: #1a5a90;
  --navy: var(--blue-700);

  /* Teal light */
  --teal: #30cdd7;
  --teal-dark: #1e96a5;
  --teal-light: #b4ebf5;
  --teal-marquee: #27b0bd;

  /* Text: warm white, used at fixed opacity steps */
  --ink: #faf5ed;
  --white: #ffffff; /* countdown digits only */
  --paper: #ffffff; /* placard faces */

  /* Accents from OakMUN, used sparingly (sand on Resources, yellow and peach on New to MUN) */
  --gold: #e1aa28;
  /* The 2026 poster's gold (7 October): thin lines, frame corners, small labels and card
     edges. Teal stays the highlight colour for buttons and links. */
  --gilt: #d6b25e;
  --gilt-light: #f2dfa6;
  /* The poster's blue laurels */
  --laurel: #3482c4;
  --sand: #bc9a6e;
  --yellow: #ffcb00;
  --peach: #f0b4a0;
  --red: #ff3750;

  /* Social Night */
  --sn-brown-1: #2e1400;
  --sn-brown-2: #1c0a00;
  --sn-brown-3: #0f0500;
  --sn-gold: #ffd700;
  --sn-amber: #e8a020;
  --sn-cream: #fff0a0;
  --sn-pumpkin: #ff7a1a;

  /* Doomsday's green (its committee page opening, PLAN.md F28) */
  --doom: #3ee58a;
  --doom-soft: #a6f7cb;
  --doom-deep: #04170c;

  /* Channel triplets, so components can use rgb(var(--x-rgb) / alpha) instead of raw values */
  --ink-rgb: 250 245 237;
  --teal-rgb: 48 205 215;
  --teal-dark-rgb: 30 150 165;
  --teal-light-rgb: 180 235 245;
  --navy-rgb: 0 48 87;
  --sand-rgb: 188 154 110;
  --gold-rgb: 225 170 40;
  --gilt-rgb: 214 178 94;
  --night-rgb: 1 3 8; /* nav pill and mobile sheet */
  --drop-rgb: 3 10 22; /* nav dropdown */
  --shadow-rgb: 0 0 0;
  --white-rgb: 255 255 255;
  --wash-rgb: 0 18 35; /* navy wash over photos */
  --orb-navy-rgb: 0 60 110; /* OakMUN's deep-blue orb */
  --card-rgb: 0 30 60; /* item card fill */
  --sn-gold-rgb: 255 200 0;
  --sn-amber-rgb: 232 120 10;
  --sn-glow-rgb: 255 180 0;
  --doom-rgb: 62 229 138;
  --doom-deep-rgb: 4 23 12;

  /* TV colour bars, for the 404 page only (8 October) */
  --tv-white: #f2f2f2;
  --tv-yellow: #f0ef00;
  --tv-cyan: #00eef0;
  --tv-green: #00e000;
  --tv-magenta: #ee00ee;
  --tv-red: #f00000;
  --tv-blue: #0010ee;
  --tv-black: #060606;
  --tv-cyan-rgb: 0 238 240;
  --tv-magenta-rgb: 238 0 238;

  /* Ink opacity steps */
  --ink-100: var(--ink);
  --ink-85: rgb(var(--ink-rgb) / 0.85); /* lead text */
  --ink-75: rgb(var(--ink-rgb) / 0.75); /* body */
  --ink-60: rgb(var(--ink-rgb) / 0.6); /* secondary */
  --ink-55: rgb(var(--ink-rgb) / 0.55); /* nav links at rest */
  --ink-50: rgb(var(--ink-rgb) / 0.5); /* captions; nothing readable goes lower */

  /* Gradients (the only ones allowed, SPEC 3.1) */
  --grad-primary: linear-gradient(180deg, var(--teal) 0%, var(--teal-dark) 100%);
  --grad-number: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 55%, var(--teal) 100%);
  --grad-overlay: linear-gradient(
    135deg,
    rgb(var(--navy-rgb) / 0.72) 0%,
    rgb(var(--teal-dark-rgb) / 0.45) 50%,
    rgb(0 20 40 / 0.78) 100%
  );
  --grad-strip: linear-gradient(90deg, var(--teal-dark) 0%, var(--teal) 50%, var(--teal-dark) 100%);
  --grad-stat: linear-gradient(145deg, #0a2040 0%, #061628 60%, #030e1a 100%);
  --grad-hairline: linear-gradient(90deg, transparent, rgb(var(--gilt-rgb) / 0.45), transparent);
  --grad-bar: linear-gradient(90deg, var(--gilt), transparent);
  --grad-word: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 60%); /* highlighted theme word */
  --grad-number-gold: linear-gradient(135deg, var(--gilt) 0%, var(--gilt-light) 55%, var(--gilt) 100%);
  --grad-night: linear-gradient(150deg, var(--sn-brown-1) 0%, var(--sn-brown-2) 50%, var(--sn-brown-3) 100%);
  --grad-sky: linear-gradient(180deg, var(--blue-900) 0%, var(--blue-900) 35%, var(--sn-brown-3) 100%); /* Social Night hero (SPEC 9.8) */

  /* Borders */
  --border-glass: 1px solid rgb(var(--ink-rgb) / 0.07);
  --border-card: 1px solid rgb(var(--gilt-rgb) / 0.16);
  --border-card-hover: 1px solid rgb(var(--gilt-rgb) / 0.42);
  --border-ghost: 1px solid rgb(var(--ink-rgb) / 0.14);

  /* Radii */
  --radius-pill: 999px;
  --radius-card: 16px;
  --radius-tile: 24px;
  --radius-control: 12px; /* nav buttons, timeline events */
  --radius-count: 9px;

  /* Shadows */
  --shadow-btn: 0 8px 24px rgb(var(--teal-rgb) / 0.25);
  --shadow-btn-hover: 0 14px 32px rgb(var(--teal-rgb) / 0.45);
  --shadow-nav: 0 8px 40px rgb(var(--shadow-rgb) / 0.4), inset 0 1px 0 rgb(var(--ink-rgb) / 0.04);
  --shadow-card-hover: 0 16px 48px rgb(var(--shadow-rgb) / 0.4);

  /* Type */
  --font-sans: "Montserrat", "Montserrat Fallback", system-ui, sans-serif;
  --fs-hero: clamp(2.6rem, 5.5vw, 5.5rem);
  --fs-page: clamp(3rem, 9vw, 7.5rem);
  --fs-section: clamp(2.2rem, 4vw, 3.6rem);
  --fs-card: clamp(1.05rem, 1.8vw, 1.3rem);
  --fs-body: 1rem;
  --fs-lead: 1.125rem;
  --fs-label: 0.72rem;
  --fs-nav: 0.7rem;
  --fs-button: 0.78rem;
  --track-label: 0.2em;
  --track-nav: 0.1em;
  --track-button: 0.08em;
  --measure: 68ch;

  /* Motion */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-snap: cubic-bezier(0.2, 0.9, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-hover: 0.2s;
  --dur-snap: 0.18s;
  --dur-open: 0.3s;
  --dur-enter: 0.6s;
  --dur-reveal: 1s; /* entrances as things come on screen (reveal.js) */
  --dur-page: 0.42s; /* the fade between pages */

  /* Layout */
  --content-max: 1200px;
  --text-max: 680px;
  --gutter: 56px;
  --section-pad: 120px;
  --nav-top: 16px;

  /* Layers */
  --z-strip: 60;
  --z-sheet: 90;
  --z-nav: 100;
  --z-skip: 200;
  --z-loader: 250; /* the loading screen, over everything while it shows */
}

@media (max-width: 980px) {
  :root {
    --gutter: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --fs-label: 0.75rem; /* 12 px on phones: Lighthouse's floor for legible text */
    --gutter: 20px;
    --section-pad: 72px;
    --nav-top: 10px;
  }
}

/* Fonts: Montserrat variable, Latin subset, self-hosted. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-wght-normal.06b16db7.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-wght-italic.0eb22e3d.woff2") format("woff2");
}

/* Arial resized to Montserrat's metrics, so text doesn't jump when the web font arrives. */
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial");
  size-adjust: 112.83%;
  ascent-override: 85.79%;
  descent-override: 22.25%;
  line-gap-override: 0%;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 110px;
  background: var(--blue-700);
}

/* PLAN.md decision D1: OakMUN zooms desktop pages to 110%. We scale the type instead. */
@media (min-width: 769px) {
  html {
    font-size: 110%;
  }
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-75);
  background: var(--blue-700);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

/* eleventy-img wraps each <img> in a <picture>; let layouts treat the <img> as the child.
   <source> is only read when choosing a file, so it never needs a box of its own. */
picture {
  display: contents;
}

source {
  display: none;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink-100);
  font-weight: 800;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Focus: 2 px teal ring, 3 px offset, keyboard only */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: var(--z-skip);
  padding: 12px 20px;
  border-radius: var(--radius-control);
  background: var(--teal);
  color: var(--navy);
  font-size: var(--fs-button);
  font-weight: 800;
  letter-spacing: var(--track-button);
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform var(--dur-hover) var(--ease-standard);
}

.skip-link:focus-visible {
  transform: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Layout */
.container {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-pad);
}

/* Type scale (SPEC 3.2) */
.t-hero {
  font-size: var(--fs-hero);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.88;
  text-transform: uppercase;
}

.t-page {
  font-size: var(--fs-page);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.t-section {
  font-size: var(--fs-section);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* Optional short teal bar under a section title */
.t-section--bar::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: var(--grad-bar);
}

.t-card {
  font-size: var(--fs-card);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.t-label {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--track-label);
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--gilt);
}

.t-lead {
  font-size: var(--fs-lead);
  color: var(--ink-85);
  max-width: var(--measure);
}

.t-body {
  max-width: var(--measure);
}

.t-teal {
  color: var(--teal);
}

/* Lenis (from lenis/dist/lenis.css) */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* ---------- Motion between pages and as things come on screen (PLAN.md F11) ---------- */

/* Page to page: a short crossfade. The announcement strip and the nav pill are carried
   across, so they stay put while the page under them changes. Browsers without
   cross-document view transitions simply load the next page. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: page-out calc(var(--dur-page) * 0.55) var(--ease-standard) both;
}

::view-transition-new(root) {
  animation: page-in var(--dur-page) var(--ease-standard) both;
}

@keyframes page-out {
  to {
    opacity: 0;
  }
}

@keyframes page-in {
  from {
    opacity: 0;
  }
}

/* Entrances (reveal.js). html.reveal-on is set in <head> only when motion is fine. */
.reveal-on [data-reveal]:not([data-reveal="mask"]) {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity calc(var(--dur-reveal) * 0.7) var(--ease-standard) var(--reveal-delay, 0s),
    transform var(--dur-reveal) var(--ease-out-expo) var(--reveal-delay, 0s);
}

.reveal-on [data-reveal="art"] {
  transform: scale(1.06);
}

.reveal-on [data-reveal].is-in:not([data-reveal="mask"]) {
  opacity: 1;
  transform: none;
}

/* Headings rise out of a mask. They stay hidden until reveal.js has wrapped them. */
.reveal-on [data-reveal="mask"]:not(.is-masked) {
  opacity: 0;
}

reveal-mask {
  display: block;
  overflow: hidden;
  padding-block: 0.12em;
  margin-block: -0.12em;
}

reveal-line {
  display: block;
  transform: translate3d(0, 112%, 0);
  transition: transform calc(var(--dur-reveal) * 1.1) var(--ease-out-expo) var(--reveal-delay, 0s);
}

.is-in > reveal-mask > reveal-line {
  transform: none;
}

/* Once risen, the mask comes off, so glows and descenders aren't clipped */
.is-done > reveal-mask {
  overflow: visible;
}

/* The short bar under some titles draws in after the words */
.reveal-on .t-section--bar[data-reveal="mask"]::after {
  transform-origin: left center;
  transition: transform 0.8s var(--ease-out-expo) calc(var(--reveal-delay, 0s) + 0.35s);
}

.reveal-on .t-section--bar[data-reveal="mask"]:not(.is-in)::after {
  transform: scaleX(0);
}

/* Pictures still downloading fade in when they arrive, instead of popping in */
.reveal-on img.img-fade:not(.is-loaded) {
  opacity: 0;
}

.reveal-on img.img-fade.is-loaded {
  animation: img-in 0.6s var(--ease-standard) both;
}

@keyframes img-in {
  from {
    opacity: 0;
  }
}

/* Reduced motion: no movement anywhere */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  @view-transition {
    navigation: none;
  }
}

/* Shared components: buttons, announcement strip, nav, mobile sheet, footer.
   Colour changes on small text and buttons use short transitions; everything that
   moves uses transform or opacity only (SPEC 3.4). */

/* ---------- Buttons (SPEC 8.3) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--fs-button);
  font-weight: 800;
  letter-spacing: var(--track-button);
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    transform var(--dur-snap) var(--ease-snap),
    box-shadow var(--dur-snap) var(--ease-snap),
    filter var(--dur-snap) var(--ease-snap),
    color var(--dur-hover) var(--ease-standard),
    border-color var(--dur-hover) var(--ease-standard);
}

.btn--primary {
  background: var(--grad-primary);
  border-color: rgb(var(--ink-rgb) / 0.06);
  color: var(--navy);
  box-shadow: var(--shadow-btn);
}

.btn--ghost {
  background: transparent;
  border: var(--border-ghost);
  color: rgb(var(--ink-rgb) / 0.8);
}

.btn--outline {
  background: transparent;
  border: 1px solid rgb(var(--teal-rgb) / 0.35);
  color: var(--ink-100);
}

@media (hover: hover) {
  .btn--primary:not(.is-disabled):hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-btn-hover);
    filter: brightness(1.05);
  }

  .btn--ghost:hover,
  .btn--outline:hover {
    border-color: var(--teal);
    color: var(--teal);
  }
}

.btn:active:not(.is-disabled) {
  transform: translateY(-1px);
}

/* A button whose link is still TBC: looks like the real thing, does nothing. */
.btn.is-disabled {
  cursor: not-allowed;
}

/* Smaller, squarer buttons inside the nav pill */
.btn--nav {
  padding: 10px 18px;
  border-radius: var(--radius-control);
  font-size: var(--fs-label);
  box-shadow: none;
}

/* Get QR, between More and Register (4 October), and on top of Register in the phone menu */
.nav__qr svg,
.nav-sheet__qr svg {
  width: 16px;
  height: 16px;
}

.nav__qr[aria-current="page"],
.nav-sheet__qr[aria-current="page"] {
  color: var(--teal-light);
}

.btn--block {
  width: 100%;
}

/* Shiny button (6 October; after 21st.dev's "shiny-button", in the site's colours): a navy pill
   with a teal-to-white streak running round its border; on hover or keyboard focus an inner
   glow breathes and a shimmer sweeps across. The original animates a conic-gradient angle,
   which repaints every frame; here the streak is a larger conic layer turning behind the pill
   (rotate only, composited), clipped to a 1 px ring by the fill on top. Layers, back to front:
   ::before the turning streak, ::after the navy fill, .btn__fx glow and shimmer, then the
   label. Markup: add btn--shiny and {{ shine() }} (buttons.njk) inside the button. */
.btn.btn--shiny {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  padding: 14px 27px; /* the 1 px ring replaces the border */
  background: rgb(var(--teal-rgb) / 0.12);
  color: var(--ink-100);
  box-shadow: 0 6px 18px rgb(var(--teal-rgb) / 0.08);
}

.btn--nav.btn--shiny {
  padding: 11px 19px;
}

.btn--shiny::before,
.btn--shiny::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

/* The streak: a square wider than the button's diagonal, turning round its centre. */
.btn--shiny::before {
  top: 50%;
  left: 50%;
  z-index: -3;
  width: 150%;
  aspect-ratio: 1;
  /* Kept low-key (6 October): a soft streak, once round every 6 s. */
  background: conic-gradient(
    transparent 0%,
    rgb(var(--teal-rgb) / 0.3) 5%,
    rgb(var(--teal-light-rgb) / 0.5) 10%,
    rgb(var(--teal-rgb) / 0.3) 15%,
    transparent 20%
  );
  translate: -50% -50%;
  animation: shine-turn 6s linear infinite;
}

/* The fill, 1 px in from the edge, so only a ring of the streak shows. */
.btn--shiny::after {
  inset: 1px;
  z-index: -2;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 120%, var(--blue-750) 0%, var(--blue-950) 70%);
  box-shadow: inset 0 0 0 1px rgb(var(--teal-rgb) / 0.12);
}

.btn__fx {
  position: absolute;
  inset: 1px;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.btn__fx::before,
.btn__fx::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out-expo);
}

/* Inner glow, breathing while it shows */
.btn__fx::before {
  width: calc(100% + 1rem);
  height: calc(100% + 1rem);
  box-shadow: inset 0 -1ex 2rem 4px rgb(var(--teal-rgb) / 0.35);
  animation: shine-breathe 4.5s linear infinite paused;
}

/* Shimmer, sweeping round while it shows */
.btn__fx::after {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(-50deg, transparent, rgb(var(--teal-rgb) / 0.3), transparent);
  -webkit-mask-image: radial-gradient(circle at bottom, transparent 40%, rgb(var(--shadow-rgb)));
  mask-image: radial-gradient(circle at bottom, transparent 40%, rgb(var(--shadow-rgb)));
  animation: shine-turn 3s linear infinite paused;
}

.btn--shiny:is(:hover, :focus-visible) .btn__fx::before {
  opacity: 1;
  animation-play-state: running;
}

.btn--shiny:is(:hover, :focus-visible) .btn__fx::after {
  opacity: 0.6;
  animation-play-state: running;
}

@media (hover: hover) {
  .btn--shiny:not(.is-disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgb(var(--teal-rgb) / 0.2);
    color: var(--ink-100);
  }
}

@keyframes shine-turn {
  to {
    rotate: 360deg;
  }
}

@keyframes shine-breathe {
  0%,
  100% {
    scale: 1;
  }

  50% {
    scale: 1.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn--shiny::before,
  .btn__fx::before,
  .btn__fx::after {
    animation: none;
  }
}

/* ---------- Ambient glows ---------- */

/* At most two per section; circles are the Oakridge connecting shape (SPEC 3.3). They drift
   slowly (4 October), moving with translate only. They hold still while the page scrolls
   (html.is-scrolling, from nav.js), so scrolling never pays for them, and under reduced motion. */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: orb-drift 26s ease-in-out infinite alternate;
}

.orb:nth-of-type(2n) {
  animation-duration: 33s;
  animation-delay: -12s;
  animation-direction: alternate-reverse;
}

.is-scrolling .orb {
  animation-play-state: paused;
}

@keyframes orb-drift {
  0% {
    translate: 0 0;
  }

  50% {
    translate: 6% 5%;
  }

  100% {
    translate: -5% 8%;
  }
}

/* ---------- Wordmark and crest ---------- */

.wordmark {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-100);
}

.wordmark span {
  color: var(--teal);
}

/* Placeholder until the OakJMUN crest arrives (PLAN.md D7): a teal ring with the chapter. */
.crest-mark {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1.5px solid rgb(var(--teal-rgb) / 0.7);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--ink-100);
}

.crest-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- Loading screen (PLAN.md F12) ---------- */
/* Only exists while html.is-loading is set (from <head>), and only shows once html.is-slow is
   added, 0.6 s in. On a quick connection nobody sees it. */
.loader {
  display: none;
}

.is-loading .loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background:
    radial-gradient(ellipse at 50% 40%, rgb(var(--teal-rgb) / 0.08), transparent 60%),
    var(--blue-900);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.45s var(--ease-standard),
    visibility 0s linear 0.45s;
}

.is-slow .loader {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s var(--ease-standard);
}

.loader__mark {
  display: block;
  width: 48px;
  height: 48px;
  animation: loader-breathe 2.4s var(--ease-standard) infinite;
}

.loader__mark .crest-mark {
  font-size: 1rem;
}

.loader__name {
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-85);
}

.loader__name span {
  color: var(--teal);
}

/* An open-ended bar: the page can't know how much is left, so a short fill sweeps across */
.loader__bar {
  position: relative;
  width: 140px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgb(var(--ink-rgb) / 0.12);
}

.loader__fill {
  position: absolute;
  inset: 0;
  width: 40%;
  border-radius: inherit;
  background: var(--teal);
  animation: loader-sweep 1.2s var(--ease-standard) infinite;
}

@keyframes loader-breathe {
  50% {
    opacity: 0.55;
    transform: scale(0.94);
  }
}

@keyframes loader-sweep {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(250%);
  }
}

/* ---------- Announcement strip (SPEC 8.1) ---------- */

.strip {
  position: relative;
  z-index: var(--z-strip);
  view-transition-name: site-strip;
  background: var(--grad-strip);
  color: var(--navy);
}

.strip-off .strip {
  display: none;
}

.strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 56px;
}

.strip__text {
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.strip__text a {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.strip__close {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--navy);
  font-size: 1.1rem;
  opacity: 0.6;
  transform: translateY(-50%);
  transition: opacity var(--dur-hover) var(--ease-standard);
}

.strip__close:hover {
  opacity: 1;
}

.strip :focus-visible {
  outline-color: var(--navy);
}

@media (max-width: 768px) {
  .strip__inner {
    padding: 9px 48px 9px 20px;
  }

  .strip__text {
    letter-spacing: 0.14em;
  }
}

/* ---------- Nav (SPEC 8.2) ---------- */

/* Sticky, zero-height anchor: the pill sits 16 px below the strip, then 16 px below the
   top of the window once the strip has scrolled away. */
.nav-anchor {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: 0;
}

.nav {
  position: absolute;
  top: var(--nav-top);
  view-transition-name: site-nav;
  left: 50%;
  z-index: 2;
  width: max-content;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%);
}

.nav__pill {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px 10px;
}

/* The pill's surface. When the nav collapses it shrinks towards the crest and fades, with
   transform and opacity only, so nothing reflows or repaints mid-way (OakMUN animates
   max-width; a clip-path version repainted the pill every frame). The crest's own compact
   surface fades in as it goes. */
.nav__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  border: var(--border-glass);
  border-radius: var(--radius-pill);
  /* 97% opaque, so no background blur: a blur would be redrawn every frame while the ring,
     the glows or the hero move under the pill, which is what made scrolling stutter. */
  background: rgb(var(--night-rgb) / 0.97);
  box-shadow: var(--shadow-nav);
  transition:
    transform 0.42s var(--ease-standard),
    opacity 0.3s var(--ease-standard) 0.08s;
}

.nav__side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 2.4vw, 44px);
  min-width: 0;
  transition:
    opacity 0.26s var(--ease-standard) 0.12s,
    transform 0.36s var(--ease-standard),
    visibility 0s;
}

.nav__side--left {
  padding-left: 12px;
}

.nav__wordmark {
  padding-block: 10px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.6vw, 26px);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-block: 10px;
  font-size: var(--fs-nav);
  font-weight: 700;
  letter-spacing: var(--track-nav);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-55);
  transition: color var(--dur-hover) var(--ease-standard);
}

.nav__link:hover,
.nav__link[aria-current="page"],
.nav__more.is-open .nav__more-btn {
  color: var(--ink-100);
}

/* Centre crest slot */
.nav__crest {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-inline: clamp(14px, 1.6vw, 26px);
  border-radius: 50%;
  cursor: default;
}

.nav__crest .crest-img {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 8px rgb(var(--teal-rgb) / 0.35));
  transition: filter var(--dur-hover) var(--ease-standard);
}

.nav__crest:hover .crest-img {
  filter: drop-shadow(0 0 14px rgb(var(--teal-rgb) / 0.65));
}

/* The compact pill's own surface, so it keeps a border and shadow once collapsed */
.nav__crest::before {
  content: "";
  position: absolute;
  inset: -8px -20px;
  z-index: -1;
  border: var(--border-glass);
  border-radius: 16px;
  background: rgb(var(--night-rgb) / 0.97);
  box-shadow: var(--shadow-nav);
  opacity: 0;
  transition: opacity 0.18s var(--ease-standard);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Collapsed: only the crest remains (reference/03) */
.nav.is-collapsed .nav__bg {
  opacity: 0;
  transform: scaleX(0.12);
}

.nav.is-collapsed .nav__side {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.14s var(--ease-standard),
    transform 0.36s var(--ease-standard),
    visibility 0s linear 0.36s;
}

.nav.is-collapsed .nav__side--left {
  transform: translateX(16px);
}

.nav.is-collapsed .nav__side--right {
  transform: translateX(-16px);
}

.nav.is-collapsed .nav__crest {
  cursor: pointer;
}

.nav.is-collapsed .nav__crest::before {
  opacity: 1;
  transition-delay: 0.28s;
}

/* "More" dropdown */
.nav__more {
  position: relative;
}

.nav__more-btn .icon {
  font-size: 0.95rem;
  transition: transform var(--dur-open) var(--ease-standard);
}

.nav__more.is-open .nav__more-btn .icon {
  transform: rotate(180deg);
}

.nav__drop {
  position: absolute;
  top: calc(100% + 18px);
  right: -16px;
  width: 224px;
  padding: 10px;
  list-style: none;
  border-radius: var(--radius-card);
  background: rgb(var(--drop-rgb) / 0.97);
  box-shadow:
    0 24px 60px rgb(var(--shadow-rgb) / 0.6),
    0 0 28px rgb(var(--teal-rgb) / 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity var(--dur-open) var(--ease-standard),
    transform var(--dur-open) var(--ease-standard),
    visibility 0s linear var(--dur-open);
}

/* Invisible bridge across the gap, so the pointer can reach the menu */
.nav__drop::before {
  content: "";
  position: absolute;
  inset: -20px 0 100%;
}

.nav__more.is-open .nav__drop {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity var(--dur-open) var(--ease-standard),
    transform var(--dur-open) var(--ease-standard),
    visibility 0s;
}

.nav__drop a {
  position: relative;
  isolation: isolate;
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: var(--fs-nav);
  font-weight: 700;
  letter-spacing: var(--track-nav);
  text-transform: uppercase;
  color: var(--ink-75);
  transition:
    color var(--dur-hover) var(--ease-standard),
    background-color var(--dur-hover) var(--ease-standard);
}

/* No side line (8 October): a soft teal glow fades in behind the item instead. */
.nav__drop a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(120% 160% at 20% 50%, rgb(var(--teal-rgb) / 0.2), rgb(var(--teal-rgb) / 0.04) 60%, transparent 80%);
  box-shadow: 0 0 18px rgb(var(--teal-rgb) / 0.12);
  opacity: 0;
  transition: opacity var(--dur-hover) var(--ease-standard);
}

.nav__drop a:hover,
.nav__drop a:focus-visible,
.nav__drop a[aria-current="page"] {
  color: var(--teal);
  text-shadow: 0 0 12px rgb(var(--teal-rgb) / 0.45);
}

.nav__drop a:hover::before,
.nav__drop a:focus-visible::before,
.nav__drop a[aria-current="page"]::before {
  opacity: 1;
}

.nav__drop a:focus-visible {
  outline-offset: -2px;
}

/* Menu button (tablet and phone) */
.nav__menu {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink-100);
}

.nav__menu-bars {
  display: grid;
  gap: 5px;
  width: 20px;
}

.nav__menu-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform var(--dur-open) var(--ease-standard),
    opacity var(--dur-hover) var(--ease-standard);
}

.nav__menu[aria-expanded="true"] .nav__menu-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__menu[aria-expanded="true"] .nav__menu-bars span:nth-child(2) {
  opacity: 0;
}

.nav__menu[aria-expanded="true"] .nav__menu-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Tablet, 769 to 1249 px (PLAN.md D5): wordmark, crest, Register and the menu button */
@media (max-width: 1249px) {
  .nav__links,
  .nav__actions .btn--outline {
    display: none;
  }

  .nav__menu {
    display: grid;
  }

  .nav__side {
    gap: 8px;
  }
}

/* Phone: wordmark and menu button only */
@media (max-width: 768px) {
  .nav {
    width: calc(100vw - 2 * var(--gutter));
  }

  .nav__pill {
    grid-template-columns: 1fr auto;
    padding: 6px 6px 6px 10px;
  }

  .nav__bg {
    background: rgb(var(--night-rgb) / 0.99);
  }

  /* Get QR moves into the menu sheet on phones (7 October), so the wordmark has room */
  .nav__crest,
  .nav__register,
  .nav__qr {
    display: none;
  }
}

/* ---------- Mobile sheet ---------- */

.nav-sheet {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-top) + 96px) var(--gutter) 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgb(var(--night-rgb) / 0.99);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur-open) var(--ease-standard),
    visibility 0s linear var(--dur-open);
}

.nav-sheet.is-open {
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--dur-open) var(--ease-standard),
    visibility 0s;
}

.nav-sheet__inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  transform: translateY(-10px);
  transition: transform 0.4s var(--ease-out-expo);
}

.nav-sheet.is-open .nav-sheet__inner {
  transform: none;
}

.nav-sheet__link {
  display: block;
  padding-block: 12px;
  border-bottom: var(--border-glass);
  font-size: clamp(1.45rem, 6.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink-100);
  transition: color var(--dur-hover) var(--ease-standard);
}

.nav-sheet__link:hover,
.nav-sheet__link[aria-current="page"] {
  color: var(--teal);
}

.nav-sheet__actions {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 32px;
}

.nav-sheet__actions .btn {
  padding-block: 16px;
}

html.is-locked {
  overflow: hidden;
}

/* ---------- Footer (SPEC 9.1, item 13) ---------- */

.footer {
  position: relative;
  padding-top: 72px;
  background: var(--blue-900);
  font-size: 0.9rem;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad-hairline);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 300px) 1px repeat(3, minmax(0, 1fr));
  gap: 40px 48px;
  padding-bottom: 64px;
}

.footer__divider {
  background: rgb(var(--ink-rgb) / 0.08);
}

.footer__crest {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
}

.footer__wordmark {
  margin-bottom: 16px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ink-100);
}

.footer__wordmark span {
  display: block;
}

.footer__desc {
  color: var(--ink-60);
  line-height: 1.75;
}

.footer__heading {
  margin-bottom: 20px;
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: var(--track-label);
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--gilt);
}

.footer__links {
  display: grid;
  gap: 12px;
}

.footer__links a {
  color: var(--ink-60);
  transition: color var(--dur-hover) var(--ease-standard);
}

.footer__links a:hover,
.footer__details a:hover {
  color: var(--teal);
}

.footer__details {
  display: grid;
  gap: 18px;
}

.footer__details dt {
  font-weight: 700;
  color: var(--ink-100);
}

.footer__details dd {
  margin: 2px 0 0;
  color: var(--ink-60);
}

.footer__details a {
  color: var(--teal);
  transition: color var(--dur-hover) var(--ease-standard);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 24px;
  border-top: 1px solid rgb(var(--ink-rgb) / 0.06);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-50);
}

@media (max-width: 980px) {
  .footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: 480px;
  }

  .footer__divider {
    display: none;
  }
}

@media (max-width: 768px) {
  .footer {
    padding-top: 56px;
    font-size: 1rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 48px;
  }

  .footer__bottom {
    flex-direction: column;
  }
}

/* ---------- Item card (SPEC 8.6): More than debate, guides, documents ---------- */

.card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px;
  border: var(--border-card);
  border-radius: var(--radius-card);
  background: rgb(var(--card-rgb) / 0.65);
  transition: transform var(--dur-hover) var(--ease-standard);
}

/* The hover shadow lives on a layer that fades in, so box-shadow itself never animates. */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: var(--shadow-card-hover);
  opacity: 0;
  transition: opacity 0.25s var(--ease-standard);
  pointer-events: none;
}

.card__bar {
  width: 44px;
  height: 2px;
  margin-bottom: 8px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--gilt), rgb(var(--gilt-rgb) / 0.2));
  transform: scaleX(0.636); /* 28 px at rest, 44 px on hover */
  transform-origin: left center;
  transition: transform 0.25s var(--ease-standard);
}

.card__tag {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gilt);
}

.card__title {
  font-size: var(--fs-card);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink-100);
}

.card__text {
  color: var(--ink-75);
  line-height: 1.65;
}

.card__link {
  margin-top: auto;
  padding-top: 12px;
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

/* The whole card is the link's hit area */
.card__link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card__link:focus-visible {
  outline: none;
}

/* A card link drawn as a filled button (New to MUN on the homepage, 8 October) */
.card__link--btn {
  align-self: flex-start;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  background: var(--grad-primary);
  box-shadow: var(--shadow-btn);
  color: var(--navy);
}

.card:has(.card__link:focus-visible) {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    border-color: rgb(var(--teal-rgb) / 0.35);
  }

  .card:hover::after {
    opacity: 1;
  }

  .card:hover .card__bar {
    transform: scaleX(1);
  }
}

/* ---------- FAQ accordion (home and Social Night) ---------- */

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid rgb(var(--ink-rgb) / 0.08);
  border-radius: var(--radius-card);
  background: rgb(var(--ink-rgb) / 0.03);
}

.faq-item:hover {
  border-color: rgb(var(--teal-rgb) / 0.15);
}

.faq-item.is-open {
  border-color: rgb(var(--teal-rgb) / 0.3);
  background: rgb(var(--teal-rgb) / 0.05);
}

.faq-item h3 {
  font: inherit;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 24px 28px;
  border-radius: var(--radius-card);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  color: var(--ink-85);
}

.faq-item.is-open .faq-q {
  color: var(--ink-100);
}

.faq-q:focus-visible {
  outline-offset: -2px;
}

.faq-toggle {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgb(var(--ink-rgb) / 0.15);
  border-radius: 50%;
  font-size: 0.85rem;
  color: var(--ink-60);
  transition:
    transform 0.35s var(--ease-out-expo),
    background-color 0.2s var(--ease-standard),
    border-color 0.2s var(--ease-standard),
    color 0.2s var(--ease-standard);
}

.faq-item.is-open .faq-toggle {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--navy);
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 28px 26px;
}

.faq-a p {
  max-width: var(--measure);
  color: var(--ink-75);
  line-height: 1.8;
}

.faq-a__link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* With JS, closed answers are hidden; without it every answer stays readable.
   Opening is instant and the text fades in (PLAN.md D6). */
.js .faq-item:not(.is-open) .faq-a {
  display: none;
}

.js .faq-item.is-open .faq-a > * {
  animation: faq-in 0.4s var(--ease-out-expo) both;
}

@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@media (max-width: 768px) {
  .faq-q {
    padding: 20px 18px;
  }

  .faq-a {
    padding: 0 18px 22px;
  }
}

/* "Photo TBC" tile for any missing photo (SPEC 4, rule 10) */
.photo-tbc {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--blue-700) 0%, var(--blue-650) 100%);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-60);
}

/* ---------- Placard (SPEC 10): New to MUN? and the 404 ---------- */

/* A raised tent card: white face about 3.2:1, a 4 px teal strip on top, the name in navy,
   and a short handle below. Sized in em so a row can scale it with font-size. */
.placard {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-size: 16px; /* 168 x 52 px face */
}

.placard__face {
  position: relative;
  display: grid;
  place-items: center;
  width: 10.5em;
  height: 3.25em;
  padding: 0.25em 0.5em 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 0.4em 1.2em rgb(var(--shadow-rgb) / 0.35);
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.placard__face::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.25em;
  background: var(--teal);
}

.placard__name {
  font-size: 0.95em;
}

/* Long country names step down a size */
.placard--long .placard__name {
  font-size: 0.78em;
}

.placard--longer .placard__name {
  font-size: 0.64em;
}

.placard__handle {
  width: 0.25em;
  height: 1.125em;
  border-radius: 0 0 0.125em 0.125em;
  background: var(--blue-500);
}

@media (max-width: 768px) {
  .placard {
    font-size: 11.43px; /* 120 x 38 px face */
  }
}

/* A sign rather than a country: the face fits the words (the 404's "Point of order") */
.placard--sign .placard__face {
  width: auto;
  padding-inline: 1.1em;
}

.placard--sign .placard__name {
  font-size: 0.95em;
}

/* Raised once as the page opens (New to MUN? and the 404) */
@keyframes placard-rise {
  from {
    opacity: 0;
    transform: translateY(45%);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.placard--rise {
  animation: placard-rise 0.8s var(--ease-out-expo) 0.15s both;
}

@media (prefers-reduced-motion: reduce) {
  .placard--rise,
  .orb {
    animation: none;
  }
}

/* ---------- Filter band: the committee search (SPEC 8.4) ---------- */

.filters {
  position: relative;
  z-index: 1;
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  margin-bottom: 40px;
}

.js .filters {
  display: flex;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 260px);
}

.search .icon {
  position: absolute;
  left: 16px;
  font-size: 1rem;
  color: var(--ink-60);
  pointer-events: none;
}

.search input {
  width: 100%;
  padding: 10px 18px 10px 42px;
  border: 1px solid var(--blue-500);
  border-radius: var(--radius-pill);
  background: var(--blue-600);
  font-size: 0.85rem;
  color: var(--ink-100);
  transition: border-color var(--dur-hover) var(--ease-standard);
}

.search input::placeholder {
  color: var(--ink-60);
}

.search input:focus {
  border-color: var(--teal);
}

/* The browser's own clear button clashes with the pill */
.search input::-webkit-search-cancel-button {
  filter: grayscale(1) brightness(1.6);
}

.results-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--ink-75);
}

.results-empty button {
  margin-left: 6px;
  font-weight: 700;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 768px) {
  .filters {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .search {
    width: 100%;
  }

  .search input {
    font-size: 16px; /* stops iOS zooming in */
  }
}


/* ---------- Guide card (committee pages and resources) ---------- */

.guide {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 260px;
  padding: 24px 26px;
  overflow: hidden;
  border: 1px solid rgb(var(--teal-rgb) / 0.18);
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, var(--blue-650), var(--blue-900));
  box-shadow: 0 6px 32px rgb(var(--shadow-rgb) / 0.5);
}

.guide__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s var(--ease-out-expo);
}

.guide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgb(var(--wash-rgb) / 0.96) 0%,
    rgb(var(--wash-rgb) / 0.78) 30%,
    rgb(var(--wash-rgb) / 0.3) 60%,
    rgb(var(--wash-rgb) / 0.15) 100%
  );
}

.guide__tag {
  position: absolute;
  top: 20px;
  left: 22px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgb(var(--wash-rgb) / 0.8);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-100);
}

.guide__title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.guide__topic {
  font-size: 0.9rem;
  color: var(--ink-85);
}

/* 16 px minimum for running text on phones */
@media (max-width: 768px) {
  .guide__topic {
    font-size: 1rem;
  }
}

.guide__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 8px;
}

.guide__status {
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.guide__status.is-ready {
  color: var(--teal);
}

.guide__link {
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.guide__link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.guide:has(.guide__link:hover) .guide__img {
  transform: scale(1.06);
}


.guide--plain {
  min-height: 220px;
}

.guide__tbc {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-50);
}

.guide[hidden] {
  display: none;
}

/* ---------- Gold accents (PLAN.md F25) ---------- */

/* From the 2026 poster: thin gold frame lines at an angle, and laurel branches (partials/
   gilt.njk). They sit behind the section's content; the section isolates them and clips. */
:has(> .gilt-frame),
:has(> .gilt-cuts),
:has(> .laurel) {
  isolation: isolate;
}

.gilt-frame,
.laurel {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

/* A whole tilted rectangle, like the poster's, with its lines running a little past each
   other at the corners. Its top and bottom leave room for the tilt (--tilt: half the frame's
   width times tan 5 degrees, plus a little), so no corner is cut off by the edge of the
   section, and the top clears the nav. */
.gilt-frame--full {
  --tilt: 4.4vw;
  top: calc(var(--tilt) + 96px);
  right: 6%;
  bottom: calc(var(--tilt) + 28px);
  left: 6%;
  transform: rotate(-5deg);
}

.gilt-frame--full::before,
.gilt-frame--full::after {
  content: "";
  position: absolute;
}

.gilt-frame--full::before {
  inset: 0 -28px;
  border-block: 1px solid rgb(var(--gilt-rgb) / 0.45);
}

.gilt-frame--full::after {
  inset: -28px 0;
  border-inline: 1px solid rgb(var(--gilt-rgb) / 0.45);
}

/* Two straight lines across a section's top corners (partials/gilt.njk, cuts) */
.gilt-cuts {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgb(var(--gilt-rgb) / 0.75);
  stroke-width: 1.5;
  pointer-events: none;
}

.gilt-cuts path {
  vector-effect: non-scaling-stroke;
}

/* A fixed-height band along the top or bottom edge (the schedule's) */
.gilt-cuts--top,
.gilt-cuts--bottom {
  height: var(--band);
}

.gilt-cuts--top {
  inset: 0 0 auto;
}

.gilt-cuts--bottom {
  inset: auto 0 0;
}

/* Softened, on committee pages */
.gilt-cuts--soft {
  filter: blur(1.5px);
  opacity: 0.85;
}

/* The committee page body, so its lines run the full width */
.c-page {
  position: relative;
  overflow: clip;
}

/* One corner, top right, its lines fading out to the left and downwards */
.gilt-frame--corner {
  top: 72px;
  right: 3%;
  width: min(560px, 46%);
  height: min(420px, 78%);
  transform: rotate(-5deg);
  transform-origin: top right;
}

.gilt-frame--corner::before,
.gilt-frame--corner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
}

.gilt-frame--corner::before {
  left: 0;
  height: 1px;
  background: linear-gradient(to left, rgb(var(--gilt-rgb) / 0.85), transparent);
}

.gilt-frame--corner::after {
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgb(var(--gilt-rgb) / 0.85), transparent);
}

/* Laurels: the poster's blue, faint */
.laurel {
  width: clamp(64px, 7vw, 120px);
  height: auto;
  aspect-ratio: 120 / 252;
  color: var(--laurel);
  opacity: 0.4;
  fill: currentColor;
}

.laurel__stem {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

/* Top left, leaning in */
.laurel--tl {
  top: 14%;
  left: 3%;
  transform: rotate(22deg);
}

/* Bottom right, mirrored */
.laurel--br {
  right: 3%;
  bottom: 10%;
  transform: scaleX(-1) rotate(22deg);
}

/* In a page header, low on the right */
.laurel--head {
  right: 6%;
  bottom: 8%;
  transform: scaleX(-1) rotate(18deg);
}

/* The small gold mark: a sprig and two short lines, like the poster's corner */
.gilt-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gilt);
}

.gilt-mark .laurel--sprig {
  position: static;
  z-index: auto;
  width: 12px;
  opacity: 0.9;
  color: var(--gilt);
  transform: rotate(40deg);
}

.gilt-mark__lines {
  display: grid;
  gap: 6px;
}

.gilt-mark__lines::before,
.gilt-mark__lines::after {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  background: rgb(var(--gilt-rgb) / 0.6);
}

.gilt-mark__lines::after {
  width: 40px;
}

@media (max-width: 768px) {
  .gilt-frame--corner {
    top: 56px;
    width: 52%;
    height: 50%;
  }

  .laurel--head {
    display: none;
  }

  .laurel--tl,
  .laurel--br {
    width: 56px;
  }
}

.footer__mark {
  margin-top: 24px;
}
