/* ==========================================================================
   Rostrum Club 18 — site stylesheet (every page)
   Navy and cream, amber and brass accents.
   Young Serif for headings, Karla for text, IBM Plex Mono for small labels.

    1. Tokens
    2. Base
    3. Layout: shell, sections, kickers, section headings
    4. Header and navigation
    5. Buttons and text links
    6. Home: hero, next-meeting card, dot band
    7. Home: practise tiles, photo band, evening steps, SA events, CTA
    8. Footer
    9. Interior pages: page hero, program, about, people, visit
   10. Utilities
   11. Responsive
   12. Reduced motion
   ========================================================================== */


/* 1. Tokens --------------------------------------------------------------- */

:root {
  /* Palette. Same hues as before; two helpers added (navy-hover, ink-muted). */
  --navy: #16233f;
  --navy-deep: #101a30;
  --navy-band: #111d38;
  --navy-hover: #22345c;
  --cream: #f4edd9;
  --cream-alt: #eee4c9;
  --cream-bright: #f6efe0;
  --cream-tile: #fbf6e9;
  --amber: #d99a3d;
  --amber-light: #e5b566;
  --brass-dark: #7a5e28;   /* text: >= 4.7:1 on every cream */
  --brass-icon: #b07e2e;   /* icons only: >= 3:1 on every cream */
  --ink-body: #4a4c55;
  --ink-muted: #625b47;    /* captions and fine print: >= 5.3:1 on every cream */
  --blue-mist: #c9d2e6;
  --blue-faint: #8b93a8;

  /* Lines and shadows */
  --line: rgba(122, 94, 40, .3);
  --line-dotted: rgba(122, 94, 40, .42);
  --line-card: rgba(122, 94, 40, .15);
  --line-card-hover: rgba(122, 94, 40, .3);
  --line-navy: rgba(246, 239, 224, .13);
  --shadow-card: 0 1px 2px rgba(22, 35, 63, .05);
  --shadow-lift: 0 12px 28px rgba(22, 35, 63, .13);
  --shadow-photo: 0 20px 40px -14px rgba(22, 35, 63, .4);

  /* Type */
  --font-display: "Young Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Karla", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --fs-h1: clamp(36px, 4.6vw, 58px);
  --fs-h1-page: clamp(30px, 4.2vw, 50px);
  --fs-h2: clamp(27px, 2.8vw, 34px);
  --fs-h3: 19px;
  --fs-body: 16px;
  --fs-sm: 15px;
  --fs-xs: 13.5px;
  --fs-label: 11.5px;

  /* Space */
  --gutter: 44px;
  --section-y: clamp(52px, 6.4vw, 76px);
  --stack-head: 26px;        /* section h2 to the content below it */
  --radius: 12px;
  --radius-lg: 14px;
}


/* 2. Base ----------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body.home {
  margin: 0;
  background: var(--navy);
  color: var(--ink-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; }

h2, h3 { text-wrap: balance; }
/* h1s carry hand-placed <br>s; `pretty` keeps a lone word off the last line when they wrap. */
h1 { text-wrap: pretty; }
p, li { text-wrap: pretty; }

::selection { background: var(--amber-light); color: var(--navy); }

/* Keyboard focus: navy ring on light surfaces, amber ring on navy ones. */
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.site-header :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible,
.roll :focus-visible { outline-color: var(--amber-light); }
.hero .next-panel :focus-visible { outline-color: var(--navy); }

/* `hidden` must win over any display rule below (home.js toggles it on the
   countdown pills and the SA events list). */
[hidden] { display: none !important; }


/* 3. Layout --------------------------------------------------------------- */

/* Side padding only, so sections that add their own top/bottom padding to a
   .shell (hero-grid, cta-inner, footer-grid) keep it. */
.shell {
  max-width: 1160px; margin: 0 auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
}

.practise,
.section-cream { background: var(--cream); padding: var(--section-y) 0; }
.evening-runs,
.section-cream-alt { background: var(--cream-alt); padding: var(--section-y) 0; }

.kicker {
  margin: 0 0 14px; font-size: 13px; font-weight: 700; line-height: 1.4;
  letter-spacing: .2em; color: var(--amber-light); text-transform: uppercase;
}
.kicker-brass { color: var(--brass-dark); margin-bottom: 10px; }

.practise h2,
.evening-runs h2,
.section-cream h2,
.section-cream-alt h2 {
  margin: 0 0 var(--stack-head); font-family: var(--font-display); font-weight: 400;
  font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -.005em; color: var(--navy);
}

.section-foot { margin: 28px 0 0; }


/* 4. Header and navigation ------------------------------------------------ */

.site-header { position: relative; z-index: 30; background: var(--navy); }

.header-row {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 76px; padding-top: 14px; padding-bottom: 14px;
}

.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; border-radius: 10px; }
.brand-tile {
  display: flex; flex: none; background: var(--cream-bright);
  border-radius: 9px; padding: 5px 7px;
}
.brand-tile img { height: 30px; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-kicker {
  font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: .18em;
  color: var(--amber-light); text-transform: uppercase;
}
.brand-name { font-family: var(--font-display); font-size: 20px; line-height: 1.15; color: var(--cream-bright); }

.site-nav { display: flex; gap: 24px; align-items: center; }
.nav-link {
  font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--blue-mist);
  text-decoration: none; padding: 10px 2px; white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--cream-bright); }
.nav-link.is-active { color: var(--cream-bright); box-shadow: 0 2px 0 var(--amber); }
.nav-cta {
  margin-left: 4px; padding: 11px 20px; border-radius: 999px;
  font-weight: 700; color: var(--navy); background: var(--amber);
}
.nav-cta:hover, .nav-cta:focus-visible { color: var(--navy); background: var(--amber-light); }
/* On the visit page the pill is the current page. Keep navy text (cream on
   amber is only 2.1:1) and mark it with the lighter amber instead of the
   underline. */
.nav-cta.is-active { color: var(--navy); background: var(--amber-light); box-shadow: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; margin: -6px -10px -6px 0;
  background: none; border: 0; border-radius: 8px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle-bar {
  display: block; width: 24px; height: 2px; border-radius: 2px;
  background: var(--cream-bright); transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(3.5px) rotate(45deg); }
/* The button's last child is the sr-only label, not a bar, so the second bar
   is matched with a sibling selector (`:last-child` never matched it). */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar + .nav-toggle-bar { transform: translateY(-3.5px) rotate(-45deg); }


/* 5. Buttons and text links ----------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-body); font-size: 16px; font-weight: 700; line-height: 1.2;
  text-align: center; text-decoration: none; border-radius: 999px; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-amber { min-height: 48px; padding: 13px 26px; border: 0; color: var(--navy); background: var(--amber); }
.btn-amber:hover, .btn-amber:focus-visible { background: var(--amber-light); }
.btn-ghost {
  min-height: 48px; padding: 11px 24px;
  color: var(--cream-bright); border: 2px solid rgba(246, 239, 224, .4);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: rgba(246, 239, 224, .8); background: rgba(246, 239, 224, .06);
}
.btn-navy {
  min-height: 40px; padding: 10px 18px; border: 0; font-size: 14px;
  color: var(--cream-bright); background: var(--navy);
}
.btn-navy:hover, .btn-navy:focus-visible { background: var(--navy-hover); }
.btn-outline {
  min-height: 40px; padding: 8px 16px; font-size: 14px;
  color: var(--navy); border: 2px solid rgba(22, 35, 63, .3);
}
.btn-outline:hover, .btn-outline:focus-visible {
  border-color: rgba(22, 35, 63, .65); background: rgba(22, 35, 63, .04);
}
.btn-cream { flex: none; min-height: 48px; padding: 13px 26px; color: var(--navy); background: var(--cream-bright); }
.btn-cream:hover, .btn-cream:focus-visible { background: #fff; }

.text-link {
  display: inline-flex; align-items: center; min-height: 32px;
  font-size: 15px; font-weight: 700; color: var(--brass-dark);
  text-decoration: none; text-underline-offset: 3px;
}
.text-link:hover, .text-link:focus-visible { text-decoration: underline; }


/* 6. Home: hero, next-meeting card, dot band ------------------------------ */

.hero { position: relative; overflow: hidden; }
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
  filter: saturate(.9) brightness(.72);
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,35,63,.8) 0%, rgba(22,35,63,.42) 50%, var(--navy) 100%);
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; cursor: pointer;
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 96px;
  pointer-events: none;
}
.hero-actions, .next-panel { pointer-events: auto; }
.hero-copy { pointer-events: none; }
/* Let visitors select and copy the hero text; gaps still pass through to the canvas. */
.hero-copy h1, .hero-copy .lede, .hero-copy .kicker { pointer-events: auto; user-select: text; }
.hero-copy h1 {
  margin: 0 0 20px; font-family: var(--font-display); font-weight: 400;
  font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -.01em; color: var(--cream-bright);
}
.lede {
  margin: 0 0 32px; max-width: 29em;
  font-size: 18px; line-height: 1.6; color: #d5dcec;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.canvas-hint {
  position: absolute; right: var(--gutter); bottom: 14px; margin: 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--blue-faint); pointer-events: none;
}

/* Next-meeting card */
.next-panel {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px; border-radius: var(--radius-lg); background: var(--cream-bright);
  box-shadow: 0 24px 60px rgba(10, 18, 38, .5), 0 0 0 1px rgba(246, 239, 224, .08);
}
.next-panel p, .next-panel ul { margin: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.panel-kicker {
  font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .18em;
  color: var(--brass-dark); text-transform: uppercase;
}
.panel-no-chip {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  color: var(--brass-dark); white-space: nowrap;
}
.panel-theme { font-family: var(--font-display); font-size: 26px; line-height: 1.15; color: var(--navy); }
.panel-date {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 16px; font-weight: 700; color: var(--navy);
}
.panel-countdown-row { display: flex; margin: 2px 0 4px; }
.panel-countdown {
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  font-size: 14px; font-weight: 700; line-height: 1.2; letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  color: var(--navy); background: var(--amber);
  box-shadow: 0 3px 10px rgba(217, 154, 61, .35);
}
.panel-venue { font-size: 15px; line-height: 1.55; color: var(--ink-body); }
.panel-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.panel-meta li { display: flex; gap: 10px; align-items: flex-start; }
.panel-meta svg { flex: none; width: 17px; height: 17px; stroke: var(--brass-icon); margin-top: 1px; }
.panel-meta .m-main { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--navy); }
.panel-meta .m-sub {
  display: block; margin-top: 3px;
  font-size: 13px; font-weight: 400; line-height: 1.45; color: var(--ink-body);
}
.panel-meta .m-sub a { color: var(--brass-dark); font-weight: 700; text-underline-offset: 2px; }
.panel-divider { border: 0; border-top: 1px dotted var(--line-dotted); margin: 6px 0 2px; }
.panel-speeches {
  list-style: none; padding: 10px 0 2px; display: flex; flex-direction: column; gap: 7px;
  border-top: 1px dotted var(--line-dotted);
}
/* The divider already draws this line; don't draw it twice. */
.panel-divider + .panel-speeches { border-top: 0; padding-top: 2px; }
.panel-speeches li {
  position: relative; padding-left: 16px;
  font-size: 15px; font-style: italic; line-height: 1.45; color: var(--navy);
}
.panel-speeches li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
}
.panel-note { font-size: 14px; font-style: italic; line-height: 1.5; color: var(--brass-dark); }
.panel-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.panel-actions .btn { flex: 1 1 auto; }

/* Interactive dot band */
.dot-band { position: relative; height: clamp(168px, 18vw, 220px); background: var(--navy-band); overflow: hidden; }
.dot-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }
.dot-band-copy {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  padding: 0 var(--gutter); text-align: center; pointer-events: none;
}
.dot-band-copy p { margin: 0; }
.dot-count {
  font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2; color: var(--cream-bright); text-wrap: balance;
}
.dot-hint { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; color: var(--blue-faint); }


/* 7. Home: tiles, photo band, steps, SA events, CTA ----------------------- */

/* Tiles (also the roles grid and link tiles on About) */
.tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tile {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px 22px 26px; border-radius: var(--radius);
  background: var(--cream-tile); border: 1px solid var(--line-card); box-shadow: var(--shadow-card);
}
.tile svg { flex: none; width: 26px; height: 26px; stroke: var(--brass-icon); margin-bottom: 2px; }
.tile h3 {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: var(--fs-h3); line-height: 1.25; color: var(--navy);
}
.tile p { margin: 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--ink-body); }

/* Photo band. A breather between sections that takes the colour of the
   section it sits beside. Where it touches a section of the same colour, the
   two paddings would stack into one big hole, so one side is dropped. Where
   the colour changes, both sides keep their padding. */
.photo-band { background: var(--cream); padding: 0 0 var(--section-y); }
.photo-band.is-inset { padding: var(--section-y) 0; }
.photo-band.on-alt { background: var(--cream-alt); }
.practise + .photo-band.is-inset:not(.on-alt),
.section-cream + .photo-band.is-inset:not(.on-alt),
.evening-runs + .photo-band.is-inset.on-alt,
.section-cream-alt + .photo-band.is-inset.on-alt { padding-top: 0; }
.photo-band:not(.on-alt) + .practise,
.photo-band:not(.on-alt) + .section-cream,
.photo-band.on-alt + .evening-runs,
.photo-band.on-alt + .section-cream-alt { padding-top: 0; }

.photo-figure { margin: 0; }
.photo-figure img {
  display: block; width: 100%; height: clamp(240px, 34vw, 400px); object-fit: cover;
  border-radius: var(--radius); background: var(--cream-alt); box-shadow: var(--shadow-photo);
}
.photo-figure figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 12px 2px 0;
}
.photo-caption { font-size: 14.5px; font-style: italic; line-height: 1.5; color: var(--ink-muted); }
.photo-credit { font-size: 12.5px; line-height: 1.5; color: var(--ink-muted); white-space: nowrap; }
.photo-credit a { color: inherit; text-underline-offset: 2px; }

/* How an evening runs */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px 56px;
}
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-n {
  flex: none; width: 40px; height: 40px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 17px; line-height: 1;
  background: var(--navy); color: var(--amber-light);
}
.step h3 {
  margin: 8px 0 6px; font-family: var(--font-display); font-weight: 400;
  font-size: var(--fs-h3); line-height: 1.25; color: var(--navy);
}
.step p { margin: 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--ink-body); }

/* SA Rostrum events */
.sa-events {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.sa-event a {
  display: flex; gap: 16px; align-items: center; height: 100%; min-height: 88px;
  padding: 14px 18px 14px 14px; border-radius: var(--radius); text-decoration: none;
  background: var(--cream-tile); border: 1px solid var(--line-card); box-shadow: var(--shadow-card);
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.sa-event a:hover, .sa-event a:focus-visible {
  box-shadow: var(--shadow-lift); border-color: var(--line-card-hover); transform: translateY(-2px);
}
.sa-event-date {
  flex: none; width: 56px; height: 60px; border-radius: 10px; background: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.sa-event-day { font-family: var(--font-display); font-size: 22px; line-height: 1; color: var(--cream-bright); }
.sa-event-mon {
  margin-top: 5px; font-family: var(--font-mono); font-size: 10.5px; line-height: 1;
  letter-spacing: .12em; text-transform: uppercase; color: var(--amber-light);
}
.sa-event-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sa-event-title { font-family: var(--font-display); font-size: 17px; line-height: 1.3; color: var(--navy); }
.sa-event-place { font-size: var(--fs-xs); line-height: 1.4; color: var(--ink-body); }

/* Closing CTA */
.cta-band { position: relative; background: var(--navy); overflow: hidden; }
.cta-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; cursor: pointer;
}
.cta-inner {
  position: relative; z-index: 1; pointer-events: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px 48px; padding-top: 60px; padding-bottom: 60px;
}
.cta-heading {
  margin: 0 0 10px; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(25px, 2.6vw, 31px); line-height: 1.2; color: var(--cream-bright);
}
.cta-sub { margin: 0; max-width: 560px; font-size: 16px; line-height: 1.6; color: var(--blue-mist); }
.cta-inner .btn { pointer-events: auto; }


/* 8. Footer --------------------------------------------------------------- */

.site-footer { background: var(--navy-deep); border-top: 1px solid rgba(246, 239, 224, .1); }
.footer-grid {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px 48px; padding-top: 48px; padding-bottom: 52px;
}
.footer-brand { display: flex; align-items: flex-start; gap: 16px; }
.footer-logo { width: 40px; height: auto; display: block; flex: none; }
.footer-name {
  margin: 0 0 6px; font-family: var(--font-display); font-size: 18px;
  line-height: 1.2; color: var(--cream-bright);
}
.footer-line { margin: 0; font-size: var(--fs-xs); line-height: 1.6; color: var(--blue-faint); }
/* Two short columns instead of one long one: site pages, then the rest. */
.footer-links {
  display: grid; grid-template-rows: repeat(4, auto); grid-auto-flow: column;
  grid-auto-columns: max-content; gap: 9px 40px;
}
.footer-links a {
  font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--blue-mist);
  text-decoration: none; text-underline-offset: 3px; transition: color .15s ease;
}
.footer-links a:hover, .footer-links a:focus-visible { color: var(--cream-bright); text-decoration: underline; }
.footer-meta { text-align: right; }
.footer-next { margin: 0 0 6px; font-size: var(--fs-xs); line-height: 1.5; color: var(--blue-mist); }
.footer-next strong { color: var(--amber-light); }
.footer-social { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--blue-faint); }
.footer-social a { color: var(--blue-mist); text-decoration: none; white-space: nowrap; }
.footer-social a:hover, .footer-social a:focus-visible { color: var(--cream-bright); text-decoration: underline; }
.footer-colophon { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--blue-faint); }


/* 9. Interior pages ------------------------------------------------------- */

/* Page hero (program / about / people / visit) */
.page-hero { position: relative; background: var(--navy); overflow: hidden; }
.page-hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; cursor: pointer;
}
.page-hero-inner { position: relative; padding-top: 72px; padding-bottom: 80px; pointer-events: none; }
/* Same as the home hero: text stays selectable, gaps pass through to the canvas. */
.page-hero-inner h1, .page-hero-inner .lede, .page-hero-inner .kicker { pointer-events: auto; user-select: text; }
.page-hero-inner h1 {
  margin: 0 0 18px; font-family: var(--font-display); font-weight: 400;
  font-size: var(--fs-h1-page); line-height: 1.1; letter-spacing: -.01em; color: var(--cream-bright);
}
.page-hero-inner .lede { margin-bottom: 0; }

/* Shared intro paragraph under a section heading */
.archive-note { margin: 22px 0 0; max-width: 640px; font-size: var(--fs-sm); line-height: 1.6; color: var(--ink-body); }
.agenda-intro { margin: 0 0 28px; }
.archive-note a, .prose a, .journey-note a, .coming-empty a { color: var(--brass-dark); font-weight: 700; text-underline-offset: 2px; }

/* Program: meeting cards */
.meeting-list { display: flex; flex-direction: column; gap: 16px; }
.meeting-card {
  display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 10px 32px;
  padding: 24px 28px; border-radius: var(--radius);
  background: var(--cream-tile); border: 1px solid var(--line-card); box-shadow: var(--shadow-card);
}
.meeting-when { display: flex; flex-direction: column; gap: 4px; }
.meeting-no {
  font-family: var(--font-mono); font-size: 12px; line-height: 1.4; letter-spacing: .12em;
  color: var(--brass-dark);
}
.meeting-date { font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--navy); }
.meeting-venue { font-size: 13px; line-height: 1.45; color: var(--ink-body); }
.meeting-venue-note { font-size: 12.5px; line-height: 1.45; color: var(--ink-muted); }
.meeting-when .panel-countdown { align-self: flex-start; margin-top: 8px; }
.meeting-main h3 {
  margin: 0 0 6px; font-family: var(--font-display); font-weight: 400;
  font-size: 21px; line-height: 1.25; color: var(--navy);
}
.meeting-chair { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--ink-body); }
.meeting-topics { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.meeting-topics li {
  position: relative; padding-left: 16px;
  font-size: var(--fs-sm); font-style: italic; line-height: 1.45; color: var(--navy);
}
.meeting-topics li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
}
.meeting-note { margin: 12px 0 0; font-size: 14px; font-style: italic; line-height: 1.55; color: var(--brass-dark); }
.meeting-agenda { margin: 10px 0 0; font-size: 14px; }
.meeting-agenda a { font-weight: 700; color: var(--brass-dark); text-underline-offset: 2px; }
.meeting-card.is-highlight {
  background: linear-gradient(135deg, var(--cream-tile) 0%, #f8efd8 100%);
  border-color: rgba(217, 154, 61, .55);
  box-shadow: 0 8px 24px rgba(22, 35, 63, .08);
}
/* The next meeting gets a 2px amber ring (border + shadow, so the card
   doesn't shift by a pixel). */
.meeting-card.is-next {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), 0 10px 26px rgba(22, 35, 63, .08);
}

/* Badges sit inside the meeting h3, so they reset the heading font. */
.badge-hot,
.badge-next {
  display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 999px;
  font-family: var(--font-body); font-size: 11px; font-weight: 700; line-height: 1.5;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; vertical-align: 3px;
}
.badge-hot { color: var(--brass-dark); background: rgba(217, 154, 61, .14); border: 1px solid rgba(122, 94, 40, .45); }
.badge-next { color: var(--navy); background: var(--amber); border: 1px solid var(--amber); }

.month-rule {
  display: flex; align-items: center; gap: 14px; margin: 18px 0 0;
  font-family: var(--font-mono); font-size: var(--fs-label); line-height: 1.4;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brass-dark);
}
.month-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.meeting-list > .month-rule:first-child { margin-top: 0; }

.coming-empty { margin: 0; max-width: 620px; font-size: var(--fs-body); line-height: 1.6; color: var(--ink-body); }

/* Program: theme chips and highlight card (not emitted right now; kept for the generator) */
.theme-row { display: flex; flex-wrap: wrap; gap: 10px; }
.theme-chip {
  padding: 7px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--navy);
  background: var(--cream-tile); border: 1px solid rgba(122, 94, 40, .3);
}
.theme-chip-hot { background: var(--navy); color: var(--cream-bright); border-color: var(--navy); }
.highlight-card {
  margin-top: 22px; max-width: 640px; padding: 20px 24px; border-radius: var(--radius);
  background: var(--cream-tile); border: 1px solid rgba(217, 154, 61, .55);
  box-shadow: 0 8px 24px rgba(22, 35, 63, .08);
}
.highlight-kicker {
  margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  color: var(--brass-dark); text-transform: uppercase;
}
.highlight-body { margin: 0; font-size: var(--fs-sm); line-height: 1.65; color: var(--ink-body); }
.highlight-body em { color: var(--navy); }

/* Program: past agendas (a compact list, one row per meeting) */
.agenda-library { max-width: 820px; }
.agenda-year {
  margin: 36px 0 10px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  line-height: 1.4; letter-spacing: .14em; color: var(--brass-dark);
}
.agenda-year:first-child { margin-top: 0; }
.past-list { list-style: none; margin: 0; padding: 0; max-width: 760px; border-top: 1px solid var(--line); }
.agenda-library .past-list { max-width: none; }
.past-row {
  display: grid; grid-template-columns: 96px 170px minmax(0, 1fr) auto; gap: 16px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px dotted var(--line-dotted);
}
.past-no { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--brass-dark); }
.past-date { font-size: 14.5px; color: var(--ink-body); }
.past-theme { font-family: var(--font-display); font-size: 17px; line-height: 1.3; color: var(--navy); }
.past-pdf {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px;
  font-size: 14px; font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap;
  text-underline-offset: 3px;
}
.past-pdf:hover, .past-pdf:focus-visible { color: var(--brass-dark); text-decoration: underline; }
.past-pdf-tag {
  padding: 2px 5px; border-radius: 4px; border: 1px solid rgba(122, 94, 40, .45);
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; line-height: 1.3;
  letter-spacing: .08em; color: var(--brass-dark);
}

/* Program: speech videos (not emitted right now; kept for the generator) */
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.video-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.video-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9;
  border-radius: 10px; overflow: hidden; background: var(--navy);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-radius: 999px; background: rgba(22, 35, 63, .82); transition: background-color .15s ease;
}
.video-play::after {
  content: ""; position: absolute; left: 22px; top: 17px;
  border-left: 16px solid var(--cream-bright); border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}
.video-card:hover .video-play, .video-card:focus-visible .video-play { background: var(--brass-dark); }
.video-title { font-family: var(--font-display); font-size: 17px; line-height: 1.3; color: var(--navy); }
.video-meta { font-size: var(--fs-xs); color: var(--ink-body); }

/* About / Visit / People: running text */
.prose { max-width: 660px; }
.prose p { margin: 0 0 16px; font-size: var(--fs-body); line-height: 1.7; color: var(--ink-body); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--navy); }

/* About: the Frontiers journey */
.journey-note { margin: 0 0 28px; max-width: 660px; font-size: var(--fs-body); line-height: 1.65; color: var(--ink-body); }
.journey-note strong { color: var(--navy); }
.journey { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.stage {
  position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px 32px;
  padding: 24px 28px; border-radius: var(--radius);
  background: var(--cream-tile); border: 1px solid var(--line-card); box-shadow: var(--shadow-card);
}
.stage-mark { display: flex; flex-direction: column; gap: 4px; }
.stage-no { font-family: var(--font-mono); font-size: 11px; line-height: 1.4; letter-spacing: .12em; color: var(--brass-dark); }
.stage-name { font-family: var(--font-display); font-size: 22px; line-height: 1.1; color: var(--navy); }
.stage-tag { font-size: 12.5px; font-weight: 700; line-height: 1.4; color: var(--ink-body); }
.stage-body p { margin: 0 0 14px; font-size: var(--fs-sm); line-height: 1.6; color: var(--ink-body); }
.stage-body p:last-child { margin-bottom: 0; }
.stage-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.act-chip {
  padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; line-height: 1.4; color: var(--navy);
  background: var(--cream); border: 1px solid rgba(122, 94, 40, .28);
}
.journey-src { margin: 22px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-muted); }

/* About: link tiles (Part of SA Rostrum) */
.link-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; }
.tile-link {
  text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.tile-link:hover, .tile-link:focus-visible {
  box-shadow: var(--shadow-lift); border-color: var(--line-card-hover); transform: translateY(-2px);
}
.tile-link h3 { color: var(--navy); }

/* People: the committee roll. One navy panel, five hairline-divided cells;
   a fixed cell count never leaves an orphan row. */
.roll {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--navy); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 18px 44px rgba(12, 20, 36, .28);
}
.roll-cell { display: flex; flex-direction: column; padding: 28px 22px 30px; }
.roll-cell + .roll-cell { border-left: 1px solid var(--line-navy); }
/* Roles get two lines of room and sit on the lower one, so every name lines
   up even when a role ("President & Treasurer") wraps. */
.roll-role {
  margin: 0; min-height: 2.8em; display: flex; align-items: flex-end;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; line-height: 1.4;
  letter-spacing: .12em; text-transform: uppercase; color: var(--amber-light);
}
.roll-cell h3 {
  margin: 8px 0 0; font-family: var(--font-display); font-weight: 400;
  font-size: var(--fs-h3); line-height: 1.2; color: var(--cream-bright);
}
.roll-rule { display: block; width: 26px; height: 2px; margin: 14px 0; background: var(--amber); }
.roll-bio { margin: 0; font-size: 14px; line-height: 1.65; color: var(--blue-mist); text-wrap: pretty; }

/* People: the speaking members, a two-column typographic list */
.roster {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px;
  margin: 32px 0 0; border-top: 1px solid var(--line);
}
.roster-item { padding: 18px 0; border-bottom: 1px dotted var(--line-dotted); }
.roster-item h3 {
  margin: 0 0 5px; font-family: var(--font-display); font-weight: 400;
  font-size: var(--fs-h3); line-height: 1.25; color: var(--navy);
}
.roster-item p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-body); text-wrap: pretty; }
.roster + .prose { margin-top: 32px; }

/* Visit: FAQ + details card */
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }

.detail-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px 26px 24px; border-radius: var(--radius);
  background: var(--cream-tile); border: 1px solid var(--line-card); box-shadow: var(--shadow-card);
}
.detail-card h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.2; color: var(--navy); }
.detail-row { display: flex; gap: 12px; align-items: flex-start; }
.detail-row svg { flex: none; width: 20px; height: 20px; stroke: var(--brass-icon); margin-top: 1px; }
.detail-row p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-body); }
.detail-row strong { color: var(--navy); }
.venue-alt { color: var(--ink-muted); }
.welcome-link { display: block; width: fit-content; margin-top: 6px; font-weight: 700; color: var(--brass-dark); text-underline-offset: 2px; }
.detail-cta { margin-top: 6px; min-height: 46px; font-size: 15px; text-align: center; }
.detail-email-alt { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-muted); }
.detail-email-alt a { color: var(--brass-dark); text-underline-offset: 2px; overflow-wrap: anywhere; }

/* "Save me a chair": its own section after the FAQ */
#save-a-chair { scroll-margin-top: 72px; }
.chair-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: center; }
.chair-copy h2 { margin-bottom: 14px; }
.chair-lede { max-width: 440px; margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-body); }
.chair-copy .detail-row { max-width: 440px; margin-top: 26px; }
.visit-form {
  display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--radius);
  background: var(--cream-tile); border: 1px solid var(--line-card); box-shadow: var(--shadow-card);
}
.visit-form-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.visit-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--navy); }
.visit-form .optional { font-weight: 400; color: var(--ink-muted); }
.visit-form input, .visit-form select {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 8px;
  font: inherit; font-size: 16px; font-weight: 400; color: var(--navy);
  background: #fff; border: 1px solid var(--line);
}
/* Own arrow, set in from the edge (the browser's sits flush against it) */
.select-wrap { position: relative; display: block; }
.visit-form select { appearance: none; -webkit-appearance: none; padding-right: 46px; text-overflow: ellipsis; }
.select-wrap::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 1.7px solid var(--brass-dark); border-bottom: 1.7px solid var(--brass-dark);
  transform: rotate(45deg); pointer-events: none;
}
.visit-form input:focus-visible, .visit-form select:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.visit-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.visit-submit { min-height: 46px; padding: 12px 24px; font-size: 15px; white-space: nowrap; }
.visit-form-error, .visit-form-note { margin: 0; font-size: 13px; line-height: 1.5; }
.visit-form-error { color: #a3361f; }
.visit-form-note { color: var(--ink-muted); }
.visit-next {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  margin: 2px 0 0; padding-top: 14px; border-top: 1px dotted var(--line-dotted);
  font-size: 13px; line-height: 1.5; color: var(--ink-muted);
}

.faq { max-width: 660px; border-top: 1px solid var(--line); }

/* No-JS fallback: native <details> */
.faq details { border-bottom: 1px dotted var(--line-dotted); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 15px 0; list-style: none; cursor: pointer;
  font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  font-family: var(--font-display); font-size: 18px; line-height: 1; color: var(--brass-dark);
  transition: transform .3s ease;
}
.faq details[open] summary::after,
.faq details.is-open summary::after { content: "\2013"; transform: rotate(180deg); }
.faq details p { margin: 0 0 18px; padding-right: 44px; font-size: var(--fs-sm); line-height: 1.65; color: var(--ink-body); }

/* Smooth accordion: home.js swaps each <details> for a button + body wrapper
   (height tween; native <details> is the no-JS fallback). */
.faq-item { border-bottom: 1px dotted var(--line-dotted); }
.faq-q {
  width: 100%; min-height: 56px; padding: 15px 0; border: 0; border-radius: 4px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; cursor: pointer; text-align: left;
  font-family: var(--font-body); font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--navy);
  transition: color .15s ease;
}
.faq-q:hover { color: var(--brass-dark); }
.faq-q::after {
  content: "+"; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  font-family: var(--font-display); font-size: 18px; line-height: 1; color: var(--brass-dark);
  transition: transform .3s ease, background-color .15s ease, border-color .15s ease;
}
.faq-q:hover::after { border-color: var(--brass-dark); }
.faq-q[aria-expanded="true"]::after { content: "\2013"; transform: rotate(180deg); background: rgba(217, 154, 61, .14); }
.faq-body { overflow: hidden; }
.faq-body.is-anim { transition: height .34s ease; }
.faq-body p { margin: 0 0 18px; padding-right: 44px; font-size: var(--fs-sm); line-height: 1.65; color: var(--ink-body); }


/* 10. Utilities ----------------------------------------------------------- */

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 18px; border-radius: 0 0 8px 0;
  background: var(--amber); color: var(--navy); font-weight: 700;
}
.skip-link:focus { left: 0; }

#agendas { scroll-margin-top: 16px; }


/* 11. Responsive ---------------------------------------------------------- */

/* Tablet and down */
@media (max-width: 1020px) {
  :root { --gutter: 32px; }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 60px; padding-bottom: 72px; }
  .next-panel { max-width: 480px; }

  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Committee roll: one row per person, name on the left, bio on the right */
  .roll { grid-template-columns: 1fr; }
  .roll-cell {
    display: grid; grid-template-columns: 210px minmax(0, 1fr); grid-template-rows: auto auto 1fr;
    column-gap: 32px; padding: 24px 28px;
  }
  .roll-cell + .roll-cell { border-left: 0; border-top: 1px solid var(--line-navy); }
  .roll-role { min-height: 0; }
  .roll-cell > .roll-role, .roll-cell > h3, .roll-cell > .roll-rule { grid-column: 1; }
  .roll-cell > .roll-rule { margin-bottom: 0; }
  .roll-cell > .roll-bio { grid-column: 2; grid-row: 1 / span 3; max-width: 62ch; }

  /* Footer: the meeting line drops under the brand and links */
  .footer-grid { flex-wrap: wrap; }
  .footer-meta {
    flex-basis: 100%; text-align: left;
    padding-top: 20px; border-top: 1px solid var(--line-navy);
  }
}

/* Six menu items no longer fit on one line below ~920px, so the drop-down
   menu starts here, a little before the rest of the phone layout. */
@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px var(--gutter) 18px;
    background: var(--navy-deep); border-top: 1px solid var(--line-navy);
    box-shadow: 0 20px 40px rgba(8, 14, 28, .45);
  }
  .site-nav.is-open { display: flex; }
  .nav-link {
    display: flex; align-items: center; min-height: 50px; padding: 12px 2px;
    font-size: 17px; border-bottom: 1px solid rgba(246, 239, 224, .07);
  }
  .nav-link.is-active { box-shadow: none; }
  .nav-link.is-active::before {
    content: ""; flex: none; width: 6px; height: 6px; margin-right: 12px;
    border-radius: 50%; background: var(--amber);
  }
  /* The header pill would read as a stray button inside a vertical list; in
     the menu it's the last item, in amber so it still stands out. */
  .nav-cta,
  .nav-cta.is-active {
    margin-left: 0; padding: 12px 2px; border-radius: 0; border-bottom: 0;
    background: none; color: var(--amber-light); font-weight: 700;
  }
  .nav-cta:hover, .nav-cta:focus-visible { background: none; color: var(--cream-bright); }
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .visit-grid { grid-template-columns: 1fr; gap: 40px; }
  .detail-card { max-width: 560px; }
  .chair-grid { grid-template-columns: 1fr; gap: 28px; }
  .visit-form { max-width: 620px; }
}

/* Phones */
@media (max-width: 760px) {
  :root { --gutter: 20px; --stack-head: 22px; }

  .canvas-hint { display: none; }

  .hero-grid { gap: 32px; padding-top: 44px; padding-bottom: 56px; }
  .lede { font-size: 17px; }
  .next-panel { padding: 24px 20px; }
  .page-hero-inner { padding-top: 48px; padding-bottom: 56px; }

  /* Tiles: one column, icon beside the heading to save height */
  .tile-grid { grid-template-columns: 1fr; gap: 12px; }
  .tile-grid:not(.link-tiles) > .tile {
    display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center;
    column-gap: 14px; row-gap: 8px; padding: 20px;
  }
  .tile-grid:not(.link-tiles) > .tile > svg { margin: 0; }
  .tile-grid:not(.link-tiles) > .tile > p { grid-column: 1 / -1; }
  .link-tiles { grid-template-columns: 1fr; }
  .link-tiles .tile { padding: 20px; }

  .photo-figure img { height: 240px; }
  .photo-figure figcaption { flex-direction: column; gap: 2px; }

  .sa-events { grid-template-columns: 1fr; gap: 12px; }
  .sa-event a { min-height: 80px; }

  .cta-inner { flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 52px; padding-bottom: 56px; }

  .meeting-card, .stage { padding: 20px; }
  .detail-card { padding: 22px 20px; }
  .visit-form { padding: 22px 20px; }
  .visit-form-pair { grid-template-columns: 1fr; }
  .visit-form-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .roster { grid-template-columns: 1fr; }
  .faq-body p, .faq details p { padding-right: 0; }

  .footer-grid { flex-direction: column; gap: 28px; padding-top: 40px; padding-bottom: 44px; }
  .footer-links { width: 100%; grid-auto-columns: minmax(0, 1fr); gap: 0 20px; }
  .footer-meta { align-self: stretch; text-align: left; }

  /* 44px tap targets for everything that stands on its own line */
  .btn-navy, .btn-outline { min-height: 44px; }
  .text-link,
  .past-pdf,
  .footer-links a { display: flex; align-items: center; min-height: 44px; }
  .text-link, .past-pdf { display: inline-flex; }
  .meeting-agenda { margin-top: 4px; }
  .meeting-agenda a { display: inline-flex; align-items: center; min-height: 44px; }
  .welcome-link { display: flex; align-items: center; min-height: 44px; margin-top: 0; }
  .section-foot { margin-top: 18px; }
}

@media (max-width: 620px) {
  /* Hero buttons stack full width instead of wrapping unevenly */
  .hero-actions .btn { flex: 1 1 100%; }

  .meeting-card { grid-template-columns: 1fr; gap: 12px; }
  /* Badges go on their own line under the title rather than wrapping with an indent */
  .meeting-main h3 .badge-hot,
  .meeting-main h3 .badge-next { display: block; width: fit-content; margin: 8px 0 2px; }

  .stage { grid-template-columns: 1fr; gap: 12px; }
  .stage-mark { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
  .stage-no { flex-basis: 100%; }

  /* Past agendas: number and date on one line, theme under it, link on the right */
  .past-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; }
  .past-no { grid-column: 1; grid-row: 1; }
  .past-date { grid-column: 2; grid-row: 1; font-size: 13.5px; }
  .past-theme { grid-column: 1 / 3; grid-row: 2; }
  .past-pdf { grid-column: 3; grid-row: 1 / span 2; align-self: center; }

  .video-grid { grid-template-columns: 1fr; }

  .roll-cell { display: flex; padding: 22px 20px 24px; }
  .roll-cell > .roll-rule { margin-bottom: 14px; }
}


/* 12. Reduced motion ------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  /* home.js skips the canvases entirely; hide them so they don't catch clicks */
  .hero-canvas, .dot-canvas, .cta-canvas, .page-hero-canvas { display: none; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .tile-link:hover, .tile-link:focus-visible,
  .sa-event a:hover, .sa-event a:focus-visible { transform: none; }
}
