/* JNVCKM Alumni Association — site styles (design prototype).
   Colours come from the association's mark: Navodaya green and saffron,
   on a warm paper ground. Display type: Fraunces; text and numbers: Inter. */

:root {
  --paper: #fbf8f2;
  --surface: #ffffff;
  --sand: #f4eee3;
  --sand-2: #ece3d3;
  --line: #e4dacb;
  --ink: #16241c;
  --ink-2: #3b4840;
  --muted: #5f6a63;
  --green: #0e5a33;
  --green-2: #0a4426;
  --green-3: #08311c;
  --green-soft: #e4efe7;
  --saffron: #e2560e;
  --saffron-2: #b9450a;
  --saffron-soft: #fdebdf;
  --gold: #f2b544;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(22 36 28 / 0.06), 0 10px 30px rgb(22 36 28 / 0.08);
  --shadow-lg: 0 2px 8px rgb(22 36 28 / 0.08), 0 28px 60px rgb(22 36 28 / 0.16);
  --container: 1360px;
  --gutter: clamp(20px, 4vw, 40px);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--green-2); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--ink); }

h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
h1, h2, .display {
  font-family: var(--display);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(40px, 6vw, 74px); line-height: 1.02; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--green); }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 64ch; }
.page-hero .lead, .hero .lead { text-wrap: balance; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--saffron-2); margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums lining-nums; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(44px, 5.5vw, 76px); }
.section-tight { padding-block: clamp(28px, 3.5vw, 48px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(22px, 3vw, 34px); flex-wrap: wrap; }
.section-head p { margin: 10px 0 0; color: var(--muted); max-width: 72ch; }
.band-sand { background: var(--sand); }
/* a sand band keeps the same 48 px rhythm as the sections around it */
.band-sand.section { padding-block: clamp(28px, 3.5vw, 48px); }

/* Skip link */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; color: #fff; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15.5px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgb(14 90 51 / 0.22); }
.btn-primary:hover { background: var(--green-2); color: #fff; }
.btn-accent { background: var(--saffron); color: #fff; box-shadow: 0 6px 18px rgb(226 86 14 / 0.25); }
.btn-accent:hover { background: var(--saffron-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--sand-2); }
.btn-light { background: #fff; color: var(--green-3); }
.btn-light:hover { background: var(--gold); color: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--green); }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow[target="_blank"]::after { content: "↗"; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 248 242 / 0.88);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgb(228 218 203 / 0.8);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: block; padding: 10px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 550; color: var(--ink-2); text-decoration: none;
}
.site-nav ul a:hover { background: var(--sand); color: var(--ink); }
.site-nav ul a[aria-current="page"] { color: var(--green); background: var(--green-soft); }
.menu-toggle { display: none; }

/* Images: each photo sits on its own colour until it has loaded, then fades in */
.ph { background: var(--ph, var(--sand-2)); overflow: hidden; }
.js img.fade { opacity: 0; transition: opacity .6s var(--ease); }
.js img.fade.is-loaded { opacity: 1; }
.cover { width: 100%; height: 100%; object-fit: cover; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Home: hero */
.hero { position: relative; padding-block: clamp(18px, 1.8vw, 28px) clamp(52px, 6vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle at center, rgb(242 181 68 / 0.22), transparent 62%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 34px; }
.hero-note { margin-top: 26px; font-size: 14.5px; color: var(--muted); }
/* Every photo keeps its own shape: the top one spans the width, the two below share
   a row sized by their proportions (flex grows by aspect ratio), so nothing is cropped */
.collage { position: relative; display: grid; gap: 14px; }
.collage figure { position: relative; margin: 0; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.collage .row { display: flex; gap: 14px; }
.collage .row figure { flex: var(--r) 1 0%; min-width: 0; }
.collage figcaption {
  position: absolute; left: 14px; bottom: 14px; background: rgb(22 36 28 / 0.72); color: #fff;
  font-size: 12.5px; padding: 6px 12px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.stamp {
  position: absolute; right: -12px; top: -16px; z-index: 2; width: 112px; height: 112px; border-radius: 50%;
  background: var(--saffron); color: #fff; display: grid; place-content: center; text-align: center;
  box-shadow: var(--shadow-lg); transform: rotate(-8deg);
}
.stamp b { font: 600 30px/1 var(--display); display: block; }
.stamp span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; }

/* Home: next gathering */
.spotlight {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 3vw, 40px); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-lg);
}
.datetile {
  width: 104px; border-radius: 16px; overflow: hidden; text-align: center; background: var(--saffron-soft);
  border: 1px solid #f6cfb5;
}
.datetile .m { display: block; background: var(--saffron); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .16em; padding: 6px 0; text-transform: uppercase; }
.datetile .d { display: block; font: 600 46px/1 var(--display); padding: 10px 0 2px; color: var(--ink); }
.datetile .y { display: block; font-size: 13px; color: var(--muted); padding-bottom: 10px; font-weight: 600; }
.spotlight h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 6px 0 8px; }
.spotlight .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-2); font-size: 15.5px; margin: 0; }
.spotlight .meta span { display: inline-flex; align-items: center; gap: 7px; }
.spotlight .meta svg { width: 17px; height: 17px; color: var(--green); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 650;
}
.pill.saffron { background: var(--saffron-soft); color: var(--saffron-2); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.hero + section .spotlight { margin-top: calc(-1 * clamp(40px, 5vw, 64px)); }

/* Home: figures */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 22px clamp(12px, 2vw, 28px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font: 700 clamp(30px, 3.4vw, 44px)/1.05 var(--text); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.stat span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--muted); }

/* Cards */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .media { aspect-ratio: 4 / 3; }
.card .media img { transition: transform .8s var(--ease); }
.card:hover .media img { transform: scale(1.04); }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .body p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .body .link-arrow { margin-top: auto; padding-top: 10px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card .tag { font-size: 12.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--saffron-2); }

/* Giving band (dark) */
.giving-band { background: var(--green-3); color: #e9efe9; position: relative; overflow: hidden; }
.giving-band::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -420px;
  background: radial-gradient(circle, rgb(242 181 68 / 0.16), transparent 60%); pointer-events: none;
}
.giving-band h2, .giving-band h3 { color: #fff; }
.giving-band .eyebrow { color: var(--gold); }
.giving-grid { position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.giving-band .big-total, .big-total { font: 700 clamp(48px, 7vw, 92px)/0.95 var(--text); letter-spacing: -0.04em; color: var(--gold); margin: 18px 0 10px; font-variant-numeric: tabular-nums lining-nums; }
.giving-band p { color: #c9d6cc; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; }
.bars .t { font-weight: 600; color: #fff; }
.bars .t small { display: block; font-weight: 500; color: #a9bdb0; font-size: 13.5px; }
.bars .v { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; align-self: end; }
.bars .track { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: rgb(255 255 255 / 0.1); overflow: hidden; }
.bars .track i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--saffron), var(--gold)); transform-origin: left; }
.js .bars .track i { transform: scaleX(0); transition: transform 1.1s var(--ease); }
.js .in .bars .track i, .js .bars.in .track i { transform: scaleX(1); }

/* Story list */
.story-feature { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 0; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.story-feature .body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.story-feature h2, .story-feature h3.display { font-size: clamp(26px, 3vw, 38px); }
.story-feature p { color: var(--ink-2); margin: 0; }
time, .date { font-size: 13.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: linear-gradient(90deg, var(--green), var(--saffron)); opacity: .35; }
.timeline li { position: relative; padding: 0 18px 0 0; }
.timeline .yr { display: inline-grid; place-items: center; min-width: 70px; height: 48px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 2px solid var(--green); font: 600 20px/1 var(--display); color: var(--green); position: relative; }
.timeline li:nth-child(even) .yr { border-color: var(--saffron); color: var(--saffron-2); }
.timeline h3 { font-size: 17px; margin: 16px 0 6px; }
.timeline p { font-size: 15px; color: var(--muted); margin: 0; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split .media { border-radius: 24px; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.split.flip .media { order: 2; }

/* CTA band */
.cta-band {
  display: grid; grid-template-columns: 1.2fr auto; gap: 28px; align-items: center;
  background: linear-gradient(120deg, var(--saffron) 0%, #ea7a24 100%); color: #fff;
  border-radius: 28px; padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; bottom: -200px; border-radius: 50%; border: 60px solid rgb(255 255 255 / 0.1); }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); }
.cta-band p { margin: 10px 0 0; color: #ffe7d6; max-width: 52ch; }
.cta-band .actions { position: relative; z-index: 1; }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(18px, 1.8vw, 28px) clamp(16px, 2vw, 24px); }
.page-hero .lead { margin-bottom: 0; }
.page-hero-text { display: grid; grid-template-columns: 1fr 1fr; gap: 16px clamp(28px, 5vw, 64px); align-items: end; }
.page-hero-text .lead { margin: 0 0 6px; max-width: 56ch; }
.page-hero-text h1 { margin-bottom: 0; }
.banner { margin-top: clamp(24px, 3vw, 36px); border-radius: 24px; box-shadow: var(--shadow); }
/* a banner that is its own section takes the section gap, not that plus its margin */
.container.section-tight > .banner:first-child { margin-top: 0; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.page-hero h1 { font-size: clamp(40px, 5.4vw, 66px); margin-bottom: 18px; }
.page-hero .media { border-radius: 24px; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
/* a detail page's trail sits on the same line as a list page's label, so the first line of
   text does not jump when moving from a list to one of its pages */
.page-hero .crumbs { margin-top: 8px; }
.crumbs a { color: var(--muted); }

/* Filters and search */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; margin-bottom: 14px; position: sticky; top: 88px; z-index: 5; box-shadow: var(--shadow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 15px; font-size: 14.5px; font-weight: 550; cursor: pointer; color: var(--ink-2); transition: all .2s var(--ease); }
.chip:hover { border-color: var(--sand-2); background: var(--sand); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.search { position: relative; flex: 1 1 200px; max-width: 320px; }
.search input { width: 100%; min-height: 44px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 0 16px 0 42px; font-size: 15px; }
.search input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.search svg { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.sorter { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); }
.sorter select { min-height: 44px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 0 14px; font-weight: 550; color: var(--ink); }
.count { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.empty { display: none; padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 20px; }
.empty.show { display: block; }

/* Events archive */
.year-group { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding-block: 0 24px; }
.year-group[hidden] { display: none; }
.year-group > h2 { font-size: 34px; color: var(--sand-2); -webkit-text-stroke: 1px var(--muted); position: sticky; top: 170px; align-self: start; }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.event {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 14px 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.event[hidden] { display: none; }
.event:hover { border-color: transparent; box-shadow: var(--shadow); }
.event .day { text-align: center; line-height: 1; }
.event .day b { display: block; font: 600 30px/1 var(--display); color: var(--ink); }
.event .day span { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--saffron-2); }
.event h3 { font-size: 18px; margin: 4px 0 2px; }
.event h3 a { color: var(--ink); text-decoration: none; }
.event h3 a:hover { color: var(--green); text-decoration: underline; }
.event p { margin: 0; font-size: 15px; color: var(--muted); }
.event .thumb { height: 80px; width: auto; max-width: 180px; border-radius: 12px; justify-self: end; }
.event.upcoming { border-color: #f3c3a2; background: linear-gradient(90deg, var(--saffron-soft), var(--surface) 60%); }
.type { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.type.t-reunion { color: var(--saffron-2); }
.type.t-sport { color: #1f5f9e; }
.type.t-community { color: #8a5a00; }

/* Giving ledger */
.ledger { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.gift {
  display: grid; grid-template-columns: 244px 1fr auto; gap: 24px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px;
}
.gift[hidden] { display: none; }
.gift .amt { font: 700 30px/1 var(--text); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.gift .share { height: 6px; background: var(--sand); border-radius: 999px; margin: 12px 0 10px; overflow: hidden; }
.gift .share i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--green), #3f9a63); border-radius: inherit; }
.gift .who { display: inline-flex; padding: 4px 11px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 650; }
.gift .when { display: inline-block; margin-left: 10px; font-size: 13.5px; color: var(--muted); font-weight: 550; vertical-align: middle; }
.gift h3 { font-size: 19px; margin: 0 0 6px; }
.gift h3 a { color: var(--ink); text-decoration: none; }
.gift h3 a:hover { color: var(--green); text-decoration: underline; }
.gift p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.gift .thumb { height: 96px; width: auto; max-width: 200px; border-radius: 14px; justify-self: end; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.more { margin-top: 6px; background: none; border: 0; padding: 0; color: var(--green); font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* Facts list */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.facts dt { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-weight: 600; color: var(--ink); line-height: 1.4; }

/* Event page */
.event-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.poster { margin: 0; justify-self: center; width: 100%; max-width: 420px; border-radius: 20px; background: var(--surface); padding: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: rotate(1.5deg); transition: transform .4s var(--ease); }
.poster:hover { transform: rotate(0); }
.poster img { border-radius: 10px; aspect-ratio: 2 / 3; width: 100%; height: auto; object-fit: cover; }
.poster figcaption { text-align: center; font-size: 14px; padding-top: 10px; }
.schedule { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.slot { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; gap: 8px; align-content: start; }
.slot .when { font-weight: 700; color: var(--saffron-2); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.slot h3 { font: 500 26px/1.15 var(--display); }
.slot p { margin: 0; color: var(--ink-2); }
.note { display: flex; gap: 12px; align-items: flex-start; background: var(--saffron-soft); border: 1px solid #f6cfb5; color: #6b2f09; border-radius: 14px; padding: 12px 14px; font-size: 14.5px; }
.note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }

/* Batch finder */
.finder { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-lg); }
.finder label { display: block; font-weight: 650; margin-bottom: 10px; }
.finder select { width: 100%; min-height: 54px; border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; font-size: 17px; background: var(--paper); }
.finder select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.finder .result { margin-top: 22px; padding: 20px; border-radius: 16px; background: var(--green-soft); display: none; }
.finder .result.show { display: block; animation: rise .4s var(--ease); }
.finder .result b.batch { display: block; font: 600 30px/1.1 var(--display); color: var(--green-3); margin: 4px 0 6px; }
.finder .hint { font-size: 14px; color: var(--muted); margin-top: 12px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Programs */
/* a program's photos start level with its heading; programs sit 64 px apart across a hairline */
.program { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; padding-block: clamp(22px, 2.4vw, 32px); border-top: 1px solid var(--line); }
.program:first-of-type { border-top: 0; padding-top: clamp(4px, 1vw, 12px); }
.program:last-of-type { padding-bottom: 0; }
.program .media { border-radius: 24px; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.program:nth-of-type(even) > .media, .program:nth-of-type(even) > .gallery-stage { order: 2; }
.program h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 0 0 14px; }
.program ul { margin: 18px 0 22px; padding: 0; list-style: none; display: grid; gap: 10px; }
.program li { display: flex; gap: 12px; color: var(--ink-2); }
.program li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 10px; border-radius: 50%; background: var(--saffron); }

/* Details from the association's records */
.event .venue { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.event .venue svg { width: 14px; height: 14px; flex: none; color: var(--green); }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ba figure { margin: 0; position: relative; }
.ba .media { border-radius: 20px; box-shadow: var(--shadow); }
.ba figcaption { position: absolute; left: 12px; top: 12px; background: rgb(22 36 28 / 0.78); color: #fff; font-size: 12.5px; font-weight: 650; padding: 5px 11px; border-radius: 999px; }
.ba figure:last-child figcaption { background: var(--saffron); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 6px; }
.gallery figure { margin: 0; border-radius: 12px; aspect-ratio: 3 / 2; }
.press { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 24px; }
.press a { width: 112px; height: 74px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.press a img { width: 100%; height: 100%; object-fit: cover; }
.press span { font-size: 14px; color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.ticks li { display: flex; gap: 12px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.ticks li::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: 8px; border-radius: 50%; background: var(--saffron); }
.footer-bottom .disclaimer { flex-basis: 100%; margin: 0 0 4px; color: #c4d3c8; }

/* A crop shows only part of a photo: --cx/--cy/--cw/--ch are the part's left, top,
   width and height as fractions of the photo; the box takes the part's shape */
.media.crop { position: relative; overflow: hidden; }
.media.crop img { position: absolute; max-width: none; width: calc(100% / var(--cw)); height: calc(100% / var(--ch));
  left: calc(-100% * var(--cx) / var(--cw)); top: calc(-100% * var(--cy) / var(--ch)); }
/* What the association does: six numbered tiles across the page */
.does { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.does li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; display: grid; gap: 6px; align-content: start; }
.does b { font: 600 26px/1 var(--display); color: var(--saffron-2); }
.does h3 { font-size: 18px; margin-top: 6px; }
.does span { color: var(--muted); font-size: 15.5px; }

/* Spacing: consecutive content sections share one gap instead of stacking two
   paddings, and the first block under a page heading sits close to it */
.container.section + .container.section,
.container.section + .container.section-tight,
.container.section-tight + .container.section,
.container.section-tight + .container.section-tight { padding-top: 0; }
.page-hero + .section, .page-hero + .section-tight { padding-top: clamp(4px, 1vw, 12px); }

/* A photo frame with thumbnails: a thumbnail shows its picture in the frame on the same
   screen; the frame opens it larger in an overlay */
.gallery-stage { display: grid; gap: 12px; align-content: start; }
.stage { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: var(--sand); }
.stage img { width: 100%; height: 100%; object-fit: contain; }
/* a frame zoomed in on part of a wide photo (see data-crop in site.js) */
.stage.zoomed { position: relative; }
.stage.zoomed img { position: absolute; max-width: none; width: calc(100% / var(--cw)); height: calc(100% / var(--ch)); left: calc(-100% * var(--cx) / var(--cw)); top: calc(-100% * var(--cy) / var(--ch)); object-fit: cover; }
.thumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.thumb-btn { height: 64px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.thumb-btn:hover { transform: translateY(-2px); }
.thumb-btn[aria-pressed="true"] { border-color: var(--saffron); }
.thumbs-note { font-size: 14px; color: var(--muted); margin-left: 4px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgb(8 18 12 / 0.84); }
.lightbox img { display: block; max-width: min(94vw, 1100px); max-height: 82vh; min-height: min(56vh, 560px); width: auto; height: auto; object-fit: contain; border-radius: 14px; background: #fff; box-shadow: 0 30px 80px rgb(0 0 0 / 0.45); }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-top: 12px; color: #e8efe9; font-size: 14px; }
.lb-bar a { color: #fff; font-weight: 600; }
.lb-close { position: fixed; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }

/* Page-top bands and the before-and-after split */
/* every page's first label sits at the same height under the header */
.giving-band.page-top { padding-block: clamp(18px, 1.8vw, 28px) clamp(24px, 2.4vw, 36px); }
.giving-band.page-top .giving-grid { align-items: start; }
/* the photo's top meets the heading and its foot meets the last line of text */
.giving-band.page-top .giving-grid > figure { align-self: end; }
.giving-band.page-top .giving-grid > div > :last-child { margin-bottom: 0; }
.split.media-lead { grid-template-columns: 1.15fr 0.85fr; }
/* Giving back: the lab's photos sit level with its heading, and its figures run in one row under both */
.split.lab-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }

/* Category colours, the same everywhere: mentoring and IGNITE green, reunions saffron,
   giving and community amber, sport blue */
.tone-green { --tone: var(--green); }
.tone-saffron { --tone: var(--saffron-2); }
.tone-amber { --tone: #8a5a00; }
.tone-blue { --tone: #1f5f9e; }
.card[class*="tone-"] { border-top: 4px solid var(--tone); }
.card[class*="tone-"] .tag, .card[class*="tone-"] h3 a, .card[class*="tone-"] .link-arrow { color: var(--tone); }
.program[class*="tone-"] .eyebrow { color: var(--tone); }
.giving-band h1 em, .giving-band h2 em { color: var(--gold); }

/* Detail pages: events, projects and stories */
.facts-row { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; }
.facts-row:has(> div:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts-row:has(> div:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail { display: grid; gap: clamp(24px, 4vw, 56px); }
.detail.has-media { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
.detail.has-media > .gallery-stage { position: sticky; top: 104px; }
.prose { max-width: 72ch; }
.prose p { margin: 0 0 1em; color: var(--ink-2); line-height: 1.7; }
.prose h3 { font-size: 19px; margin: 1.4em 0 0.5em; }
.prose h3:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; color: var(--ink-2); }
.prose li { margin: 0.3em 0; }
.prose blockquote { margin: 1.2em 0; padding: 14px 20px; border-left: 3px solid var(--saffron); background: var(--surface); border-radius: 0 14px 14px 0; font: italic 400 19px/1.5 var(--display); color: var(--ink); }
.prose .note { margin: 1em 0; }
.gallery-stage .stage-solo { border-radius: 20px; box-shadow: var(--shadow); cursor: zoom-in; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.results { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.results th, .results td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.results thead th { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.results tbody th { font-weight: 650; }
.results tbody tr:last-child th, .results tbody tr:last-child td { border-bottom: 0; }
.results td:nth-child(2) { font-weight: 600; color: var(--green); }
.stats.six { grid-template-columns: repeat(6, 1fr); }
.mini-gifts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mini-gifts a { display: flex; gap: 16px; align-items: baseline; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); font-weight: 600; }
.mini-gifts a:hover { border-color: transparent; box-shadow: var(--shadow); color: var(--green); }
.mini-gifts .amt-sm { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 104px; color: var(--ink); }
.mini-gifts small { display: block; color: var(--muted); font-size: 13.5px; font-weight: 500; margin-top: 2px; }
/* a card whose title links its page keeps its other links clickable */
.card .body a:not(h3 a) { position: relative; z-index: 1; }

/* About: the figures sit on a card over the photo's bottom edge, so the first screen
   shows who the association is and what it has given, without covering anyone */
.stats-card { position: relative; z-index: 2; margin: calc(-1 * clamp(40px, 5vw, 64px)) clamp(16px, 3vw, 40px) 0; padding: 0 clamp(16px, 2.5vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); }
.stats-card .stats { border: 0; }
.stats-card .reveal, .stats-card .stats.reveal { opacity: 1; transform: none; }

/* A page whose only tool is a search keeps it beside the heading, not in a bar */
.page-hero-split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; }
.hero-search { flex: 0 1 320px; display: grid; gap: 8px; justify-items: end; }
.hero-search .search { width: 100%; max-width: none; flex: none; }
.hero-search .search input { background: var(--surface); box-shadow: var(--shadow); }
.hero-search .count { margin: 0; }
[data-list] > .page-hero + .section-tight { padding-top: clamp(4px, 1vw, 12px); }

/* Stories: a blog index. The newest story leads as one wide card and the rest follow as equal
   cards in a row. Every picture sits in the same 3:2 frame, so titles, text and links line up,
   and each card opens its story */
.stories-grid { display: grid; gap: 22px; }
.story-feature.card { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr); align-items: center; }
/* one wide frame for every story picture: these photos are mostly roof and floor above and
   below the people. A document cover stands whole and upright inside the frame instead */
.story-feature .media, .story-card .media { aspect-ratio: 16 / 9; }
/* the photo keeps to its column and takes the card's full height when the text runs taller */
.story-feature .media { width: 100%; align-self: stretch; }
.media.doc { position: relative; background: var(--sand); }
.media.doc img { position: absolute; inset: 8% 0; margin: auto; width: auto; height: 84%; border-radius: 6px; box-shadow: 0 6px 18px rgb(20 30 24 / 0.18); }
.story-feature .body { padding: clamp(24px, 2.8vw, 40px); gap: 12px; }
.story-feature .body p { color: var(--ink-2); font-size: 17px; max-width: 56ch; }
.stories-grid .story-feature h2 { font-size: clamp(28px, 2.8vw, 38px); }
.story-feature h2 a, .story-card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h2 a, .card:hover h3 a { color: var(--green); }
.story-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.story-card h3 { font-size: 19px; }
.story-feature[hidden], .story-card[hidden] { display: none; }
@media (max-width: 920px) { .story-feature.card { grid-template-columns: minmax(0, 1fr); } }
/* tablets: one story per row, photo beside the text; phones: photo above the text */
@media (max-width: 920px) {
  .story-cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .story-card { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); }
  .story-card .media { width: 100%; align-self: stretch; }
}
@media (max-width: 600px) {
  .story-card { display: flex; }
}

/* Footer */
/* the last section's own bottom padding is the gap above the footer, not that plus a margin */
.site-footer { background: var(--green-3); color: #c4d3c8; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; padding-block: 64px 44px; }
.footer-brand img { height: 52px; width: auto; background: #fff; border-radius: 12px; padding: 6px 10px; }
.footer-brand p { margin: 18px 0 0; max-width: 34ch; font-size: 15px; }
.site-footer h3 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #e5ede7; text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer address { font-style: normal; font-size: 15px; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 0.12); padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13.5px; color: #9fb4a6; }
.footer-bottom a { font-size: 13.5px; color: #c4d3c8; }

/* Responsive */
/* Events: the next gathering leads its year in the list, with its countdown and actions,
   instead of a separate card above the list that showed it twice */
.event.upcoming { grid-template-columns: 76px 1fr auto auto; }
.event-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.event-tags .pill { padding: 3px 10px; font-size: 12.5px; }
.event .when-where { flex-wrap: wrap; column-gap: 18px; }
.event .when-where span { display: inline-flex; align-items: center; gap: 6px; }
.event .actions { gap: 10px; }
/* A long note under a section heading runs the width of the page instead of a third line */
.section-head.wide p { max-width: 118ch; }
@media (max-width: 1180px) {
  .event.upcoming { grid-template-columns: 76px 1fr auto; }
  .event.upcoming .actions { grid-column: 2; grid-row: 2; }
  .event.upcoming .thumb { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 600px) {
  .event.upcoming { grid-template-columns: 58px 1fr; }
  .event.upcoming .actions { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 1080px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .timeline::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stories-grid { grid-template-columns: 1fr; }
  .does { grid-template-columns: repeat(2, 1fr); }
  .stats.six { grid-template-columns: repeat(3, 1fr); }
  .stats.six .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .stats.six .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 920px) {
  .menu-toggle {
    display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s var(--ease), background-color .25s; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 12px;
    padding: 12px var(--gutter) 22px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 13px 14px; font-size: 17px; }
  .site-nav .btn { width: 100%; min-height: 50px; }
  .page-hero-text { grid-template-columns: 1fr; }
  .hero-search { flex-basis: 100%; justify-items: start; }
  .detail.has-media, .mini-gifts { grid-template-columns: 1fr; }
  .detail.has-media > .gallery-stage { position: static; }
  .facts-row, .facts-row:has(> div:nth-child(3):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .page-hero-grid, .giving-grid, .split, .event-hero, .program, .story-feature { grid-template-columns: 1fr; }
  .stamp { width: 92px; height: 92px; right: 4px; }
  .stamp b { font-size: 24px; }
  .spotlight { grid-template-columns: auto 1fr; }
  .spotlight .actions { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cards-3 { grid-template-columns: 1fr; }
  .program:nth-of-type(even) > .media, .program:nth-of-type(even) > .gallery-stage, .split.flip > .media { order: 0; }
  .cta-band { grid-template-columns: 1fr; }
  .year-group { grid-template-columns: 1fr; gap: 10px; }
  .year-group > h2 { position: static; font-size: 28px; }
  .gift { grid-template-columns: 1fr; gap: 14px; }
  .gift .thumb { display: none; }
  .schedule { grid-template-columns: 1fr; }
  .poster { max-width: 360px; margin-inline: auto; }
  .toolbar { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .bar { min-height: 66px; }
  .brand img { height: 38px; }
  .cards-4 { grid-template-columns: 1fr; }
  .collage, .collage .row { gap: 10px; }
  .spotlight { grid-template-columns: 1fr; text-align: left; }
  .datetile { width: 88px; }
  .datetile .d { font-size: 38px; }
  .actions .btn { flex: 1 1 auto; }
  .timeline { grid-template-columns: 1fr; }
  .event { grid-template-columns: 58px 1fr; padding: 14px; }
  .event .thumb { display: none; }
  .facts { grid-template-columns: 1fr; }
  .facts.facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .facts.facts-row div { padding: 12px 14px; }
  .ticks, .does { grid-template-columns: 1fr; }
  .ba { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; padding-block: 48px 32px; }
  .stats-card { margin: -20px 10px 0; padding: 0 16px; }
  .toolbar { padding: 12px; border-radius: 16px; }
  .search { max-width: none; }
  /* On phones, a row of cards becomes a sideways swipe instead of a long column */
  .scroller-sm {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px; scrollbar-width: none;
  }
  .scroller-sm::-webkit-scrollbar { display: none; }
  .scroller-sm > * { scroll-snap-align: start; }
  .scroller-sm .card:hover { transform: none; }
}
/* Phones: the milestones run down one line, each year beside its text, instead of a
   screen-high block per year */
@media (max-width: 600px) {
  .timeline { grid-template-columns: 1fr; row-gap: 0; }
  .timeline::before { display: none; }
  .timeline li:not(:last-child)::after { content: ""; position: absolute; left: 31px; top: 32px; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--green), var(--saffron)); opacity: .35; }
  .timeline li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; padding: 0 0 20px; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline .yr { grid-row: 1 / span 2; align-self: start; min-width: 0; width: 64px; height: 32px; padding: 0; font-size: 15px; }
  .timeline h3 { grid-column: 2; margin: 5px 0 2px; font-size: 16px; }
  .timeline p { grid-column: 2; font-size: 14.5px; }
  /* the meet page's details sit two by two and its two smaller buttons share a row, so the
     invitation comes into view sooner */
  .event-hero .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .event-hero .facts div { padding: 12px 14px; }
  .event-hero .actions .btn { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .bars .track i { transform: none; }
}
