/*
 * AHI website: public stylesheet.
 *
 * Design: keeps the AHI's own colors (deep teal and rust) and gives them a
 * cleaner, more modern setting. Classical serif headings (in the spirit of
 * 18th-century printing), a highly readable serif for reading, and a plain
 * sans-serif for menus and labels. Fine gold rules nod to engraved banknotes.
 *
 * Fonts are the ones already on visitors' computers, so nothing loads from
 * another website. Change colors and sizes here, in one place.
 */

:root {
  /* Colours */
  --ink: #1b2126;          /* main text */
  --ink-soft: #4b555d;     /* secondary text */
  --paper: #ffffff;        /* page background */
  --paper-tint: #f1f5f4;   /* light sections */
  --line: #dce3e1;         /* borders and dividers */
  --teal: #173f42;         /* brand: headings, dark bands */
  --teal-deep: #0f2c2e;    /* footer */
  --teal-mid: #2b5f63;
  --rust: #a23d22;         /* brand: buttons and links */
  --rust-dark: #7f2e18;
  --gold: #c2a067;         /* fine rules and focus rings */
  --on-dark: #edf3f2;      /* text on teal */
  --on-dark-soft: #b8c9c7;

  /* Type */
  --font-display: "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", "P052", Georgia, serif;
  --font-text: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --font-ui: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --size-small: 0.875rem;
  --size-body: 1.0625rem;
  --size-lede: 1.25rem;
  --size-h3: 1.3rem;
  --size-h2: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem);
  --size-h1: clamp(2.1rem, 1.4rem + 2.6vw, 3.3rem);
  --size-hero: clamp(2.4rem, 1.4rem + 3.6vw, 4rem);

  /* Layout */
  --max: 1180px;
  --narrow: 760px;
  --radius: 4px;
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--size-body);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--teal);
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

a { color: var(--rust); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--rust-dark); text-decoration-thickness: 2px; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--teal); color: #fff; padding: 0.6rem 1rem; font-family: var(--font-ui);
}
.skip-link:focus { top: 1rem; color: #fff; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}
.wrap-narrow { max-width: calc(var(--narrow) + 64px); }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.9rem;
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-ui); font-size: 0.98rem; font-weight: 600; line-height: 1.2;
  padding: 0.8rem 1.3rem;
  background: var(--rust); color: #fff;
  border: 2px solid var(--rust); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.button:hover { background: var(--rust-dark); border-color: var(--rust-dark); color: #fff; text-decoration: none; }
.button-ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.button-ghost:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.button-light { background: #fff; color: var(--teal); border-color: #fff; }
.button-light:hover { background: var(--gold); border-color: var(--gold); color: var(--teal-deep); }
.button-large { font-size: 1.08rem; padding: 0.95rem 1.6rem; }

/* ---------- Header and menu ---------- */

.site-header {
  background: var(--paper);
  border-top: 4px solid var(--rust);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding-block: 1rem;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid; place-items: center;
  min-width: 3.4rem; height: 3rem; padding: 0 0.45rem; flex: none; white-space: nowrap;
  background: var(--teal); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.04em;
  border-radius: 3px;
  box-shadow: inset 0 -3px 0 var(--gold);
}
.brand-mark span { color: var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--teal); }
.brand-tagline { font-family: var(--font-ui); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.2rem; }

/* The menu sits on its own row under the name, like the old site's.
   Each section opens a dropdown on hover, keyboard focus or a tap on its arrow. */
.site-nav { display: flex; align-items: center; gap: 0.75rem; flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 0.35rem; }
.nav-list { display: flex; flex-wrap: wrap; gap: 0 0.1rem; list-style: none; margin: 0 auto 0 -0.45rem; padding: 0; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-list a {
  display: block; padding: 0.5rem 0.45rem;
  font-family: var(--font-ui); font-size: 0.93rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: var(--rust); }
.nav-list > .nav-item > a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--rust); }
.nav-item.has-sub > a { padding-right: 0.1rem; }

.nav-sub-toggle {
  width: 1.4rem; height: 2rem; padding: 0; margin-right: 0.15rem; border: 0; background: none; cursor: pointer; color: var(--ink-soft);
  border-radius: var(--radius);
}
.nav-sub-toggle::before {
  content: ""; display: block; width: 0.42rem; height: 0.42rem; margin: -0.2rem auto 0;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
  transition: transform 0.15s;
}
.nav-sub-toggle:hover, .nav-sub-toggle:focus-visible { color: var(--rust); }
.nav-item.open > .nav-sub-toggle::before { transform: rotate(-135deg); margin-top: 0.2rem; }

.nav-sub {
  display: none; position: absolute; top: 100%; left: 0; z-index: 30;
  min-width: 17rem; max-width: 22rem; max-height: 75vh; overflow-y: auto;
  list-style: none; margin: 0; padding: 0.5rem 0;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--rust); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 12px 28px rgba(15, 44, 46, 0.16);
}
.nav-sub-wide { columns: 2 16rem; column-gap: 0.5rem; max-width: 36rem; width: max-content; }
.nav-sub li { break-inside: avoid; }
.nav-sub a { font-size: 0.9rem; font-weight: 600; padding: 0.4rem 1rem; border: 0; line-height: 1.3; }
.nav-sub a:hover { background: var(--paper-tint); }
.nav-sub ul { list-style: none; margin: 0 0 0.3rem; padding: 0; }
.nav-sub ul a { font-weight: 400; font-size: 0.85rem; padding: 0.25rem 1rem 0.25rem 1.9rem; color: var(--ink-soft); }
/* Right-hand sections open towards the left so they stay on screen. */
.nav-item:nth-last-child(-n+3) > .nav-sub { left: auto; right: 0; }

@media (min-width: 1081px) {
  .nav-item.has-sub:hover > .nav-sub,
  .nav-item.has-sub:focus-within > .nav-sub,
  .nav-item.open > .nav-sub { display: block; }
  /* Without JavaScript the arrows do nothing, so hide them. */
  html:not(.js) .nav-sub-toggle { display: none; }
}

.nav-search input {
  width: 11rem; font: inherit; font-family: var(--font-ui); font-size: 0.92rem;
  padding: 0.5rem 0.7rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-tint);
}
.nav-search input:focus { background: #fff; }
.button-donate { padding: 0.55rem 1.1rem; white-space: nowrap; }

.menu-toggle {
  display: none;
  align-items: center; gap: 0.55rem;
  font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem;
  background: none; color: var(--teal);
  border: 1.5px solid var(--teal); border-radius: var(--radius);
  padding: 0.5rem 0.85rem; cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: "";
}
.menu-toggle-bars::before { position: absolute; top: -6px; }
.menu-toggle-bars::after { position: absolute; top: 6px; }

/* Phones and tablets: one list, sections fold open with their arrow. */
@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .nav-search { flex-basis: 100%; order: 3; }
  .site-nav { order: 4; flex-direction: column; align-items: stretch; gap: 0.75rem; padding: 0 0 0.5rem; border-top: 0; }
  .nav-list { flex-direction: column; margin: 0; border-top: 1px solid var(--line); }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-item > a { flex: 1; padding: 0.85rem 0.25rem; font-size: 1.05rem; }
  .nav-list > .nav-item > a[aria-current="page"] { border-bottom-color: transparent; box-shadow: inset 3px 0 0 var(--rust); padding-left: 0.75rem; }
  .nav-sub-toggle { width: 3rem; height: 3rem; }
  .nav-sub, .nav-sub-wide {
    position: static; flex-basis: 100%; max-width: none; max-height: none; width: auto; columns: auto;
    border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 0.3rem 0 0.6rem; background: var(--paper-tint);
  }
  .nav-sub a { padding: 0.55rem 1rem; font-size: 0.98rem; }
  .nav-sub ul a { padding-left: 2rem; font-size: 0.92rem; }
  html:not(.js) .nav-sub { display: block; }
  .nav-item.open > .nav-sub { display: block; }
  .nav-search input { width: 100%; padding: 0.7rem; font-size: 1rem; }
  .button-donate { padding: 0.8rem; text-align: center; }
  /* With JavaScript the menu folds away behind the Menu button. */
  .js .site-nav, .js .nav-search { display: none; }
  .js .nav-open .site-nav, .js .nav-open .nav-search { display: flex; }
}
@media (max-width: 480px) {
  .brand-name { font-size: 1rem; }
  .brand-tagline { font-size: 0.68rem; letter-spacing: 0.08em; }
  .brand-mark { width: 2.6rem; height: 2.6rem; font-size: 0.92rem; }
}

/* ---------- Homepage ---------- */

.hero { background: var(--paper-tint); border-bottom: 1px solid var(--line); }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero-title { font-size: var(--size-hero); line-height: 1.06; letter-spacing: -0.01em; max-width: 16ch; }
.hero-lede { font-size: var(--size-lede); color: var(--ink-soft); margin-top: 1.4rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.hero-figure { position: relative; margin: 0; }
.hero-visual img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  object-position: 62% 50%;   /* the building's main front sits right of centre */
  border-radius: var(--radius); box-shadow: 0 12px 32px rgba(15, 44, 46, 0.18);
}
/* The tagline sits on a band across the foot of the photo, in the brand's teal and gold. */
.hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.25rem 1.05rem; border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(15, 44, 46, 0.86); border-top: 2px solid var(--gold); color: var(--on-dark);
}
.hero-tagline { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.3rem; line-height: 1.3; color: #fff; }
.hero-cite { display: block; margin-top: 0.3rem; font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-soft); }
.hero-plate {
  aspect-ratio: 4 / 5; max-height: 30rem; width: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.5rem;
  padding: 2.5rem;
  color: var(--on-dark); text-align: center;
  background-color: var(--teal);
  /* Fine concentric rules, like the engraving on a banknote. */
  background-image:
    repeating-radial-gradient(circle at 50% 46%, transparent 0 11px, rgba(194, 160, 103, 0.16) 11px 12px),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.18));
  border-radius: var(--radius);
  outline: 1px solid var(--gold); outline-offset: -14px;
}
.hero-plate-mark {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 6vw, 4.6rem); letter-spacing: 0.12em;
  color: #fff; background: var(--teal); padding: 0.1em 0.35em;
}
.hero-plate-text {
  font-family: var(--font-display); font-style: italic; font-size: 1.3rem; line-height: 1.35;
  max-width: 14em; background: var(--teal); padding: 0.4em 0.6em;
}

.band-events { background: var(--teal); color: var(--on-dark); padding-block: 2.75rem; }
.band-events h2 { color: #fff; }
.band-events .more-link { color: var(--gold); }
.band-events .empty-note { color: var(--on-dark-soft); }
.band-events .empty-note a { color: #fff; }

.section { padding-block: clamp(3rem, 6vw, 4.75rem); }
.section-tight { padding-block: 2.75rem 4.5rem; }
.section-tint { background: var(--paper-tint); }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.75rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.section-head h2 { font-size: var(--size-h2); }
.band-events .section-head { border-bottom-color: rgba(255, 255, 255, 0.18); }
.more-link { font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.more-link::after { content: " →"; }
.more-link:hover { text-decoration: underline; }

.empty-note { color: var(--ink-soft); font-style: italic; }

/* Event rows with a calendar-style date */
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .band-events .event-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.event-row { display: flex; gap: 1.1rem; align-items: flex-start; }
.event-date {
  flex: none; width: 4.2rem; text-align: center;
  border: 1px solid var(--gold); border-radius: var(--radius);
  padding: 0.45rem 0 0.35rem;
  font-variant-numeric: tabular-nums;
}
.event-month { display: block; font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rust); }
.event-day { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1.05; color: var(--teal); }
.band-events .event-month { color: var(--gold); }
.band-events .event-day { color: #fff; }
.event-info { min-width: 0; }
.event-title { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.3; color: inherit; text-decoration: none; }
.band-events .event-title { color: #fff; }
.event-title:hover { text-decoration: underline; color: inherit; }
.event-where { font-family: var(--font-ui); font-size: var(--size-small); color: var(--ink-soft); margin-top: 0.3rem; }
.band-events .event-where { color: var(--on-dark-soft); }
.band-events .event-repeats { color: var(--gold); }   /* on the dark band; the plain teal would be invisible */
.event-summary { margin-top: 0.4rem; }
.event-list-large .event-row { padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.event-list-large .event-title { font-size: 1.4rem; }

/* News cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 2.25rem 2rem; }
.card { min-width: 0; }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }
.card-link:hover .card-title { color: var(--rust); text-decoration: underline; text-decoration-thickness: 1px; }
.card-media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--teal); border-radius: var(--radius);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card-link:hover .card-media img { transform: scale(1.03); }
.card-media-empty {
  display: grid; place-items: center;
  background-image: repeating-radial-gradient(circle at 50% 50%, transparent 0 9px, rgba(194, 160, 103, 0.15) 9px 10px);
}
.card-monogram { font-family: var(--font-display); font-weight: 700; font-size: 2rem; letter-spacing: 0.14em; color: #fff; background: var(--teal); padding: 0 0.3em; }
.badge {
  position: absolute; left: 0.75rem; top: 0.75rem;
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: #fff; color: var(--teal); padding: 0.25rem 0.55rem; border-radius: 2px;
}
.badge-event { background: var(--gold); color: var(--teal-deep); }
.badge-video + .badge-event { left: 4.6rem; }
.card-body { padding-top: 1rem; }
.card-meta { font-family: var(--font-ui); font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0.02em; }
.card-title { font-size: var(--size-h3); line-height: 1.28; color: var(--ink); margin-top: 0.35rem; }
.card-summary { color: var(--ink-soft); margin-top: 0.5rem; font-size: 1rem; line-height: 1.55; }

/* Program tiles */
.program-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1.25rem; }
.program-tile {
  display: flex; flex-direction: column; gap: 0.5rem; height: 100%;
  padding: 1.4rem 1.4rem 1.5rem;
  background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--rust); border-radius: 0 0 var(--radius) var(--radius);
  color: var(--ink); text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.program-tile:hover { color: var(--ink); border-top-color: var(--teal); transform: translateY(-2px); }
.program-name { font-family: var(--font-display); font-size: 1.22rem; line-height: 1.25; color: var(--teal); }
.program-summary { font-size: 0.97rem; color: var(--ink-soft); line-height: 1.5; }

/* Student quote */
.quote-band { padding-block: clamp(3.5rem, 7vw, 5.5rem); border-block: 1px solid var(--line); }
.big-quote { margin: 0; max-width: 52rem; position: relative; padding-left: clamp(0rem, 4vw, 3.5rem); }
.big-quote::before {
  content: "“"; position: absolute; left: -0.1em; top: -0.45em;
  font-family: var(--font-display); font-size: clamp(5rem, 10vw, 8rem); line-height: 1; color: var(--gold);
}
.big-quote blockquote { margin: 0; }
.big-quote p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.3; color: var(--teal); }
.big-quote figcaption { margin-top: 1.25rem; font-family: var(--font-ui); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 600px) { .big-quote { padding-top: 2.5rem; } }

.support-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem 4rem; align-items: center; }
.support-text { color: var(--ink-soft); font-size: var(--size-lede); margin-top: 0.75rem; max-width: 38em; }
.support-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Inner pages ---------- */

.page-head { background: var(--paper-tint); border-bottom: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: var(--size-h1); max-width: 22ch; }
.page-lede { font-size: var(--size-lede); color: var(--ink-soft); margin-top: 1rem; max-width: 40em; }

.page-layout { padding-block: 3rem 4.5rem; }
.page-layout.has-aside { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 4rem; align-items: start; }
.page-main { min-width: 0; }
.page-aside { position: sticky; top: 1.5rem; border-left: 1px solid var(--line); padding-left: 1.75rem; }
.aside-title { font-family: var(--font-ui); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.75rem; }
.aside-list { list-style: none; margin: 0; padding: 0; font-family: var(--font-ui); font-size: 0.97rem; }
.aside-list a { display: block; padding: 0.45rem 0; color: var(--ink); text-decoration: none; }
.aside-list a:hover { color: var(--rust); }
.aside-list a[aria-current="page"] { color: var(--rust); font-weight: 600; }
.aside-sub { font-size: 0.9rem; margin: 0 0 0.3rem 0.9rem; padding-left: 0.75rem; border-left: 2px solid var(--line); }
.aside-sub a { padding: 0.3rem 0; color: var(--ink-soft); }
/* A long side menu (many colloquium years) scrolls on its own instead of running off the screen. */
.page-aside { max-height: calc(100vh - 3rem); overflow-y: auto; }

/* Reading text from the admin's simple formatting */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.7rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose ul { padding-left: 1.3em; }
.prose li + li { margin-top: 0.55em; }
.prose li::marker { color: var(--rust); }
.prose blockquote {
  margin-inline: 0; padding: 0.2rem 0 0.2rem 1.5rem; border-left: 3px solid var(--gold);
  font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: var(--teal);
}
.prose-small { font-size: 0.98rem; }

.page-photo { margin: 0 0 2rem; }
.page-photo img { width: 100%; border-radius: var(--radius); }

.donate-box {
  background: var(--paper-tint); border: 1px solid var(--line); border-top: 4px solid var(--rust); border-radius: var(--radius);
  padding: 1.75rem; margin-bottom: 2.5rem; max-width: 68ch;
  display: grid; gap: 0.85rem; justify-items: start;
}
.donate-box-title { font-family: var(--font-display); font-size: 1.6rem; color: var(--teal); }

.article-body { padding-block: 2.5rem 4.5rem; }
.article-body .prose { max-width: none; }
.event-facts {
  display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 0 0 2rem;
  padding: 1.1rem 1.4rem; border: 1px solid var(--gold); border-radius: var(--radius);
}
.event-facts dt { font-family: var(--font-ui); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust); }
.event-facts dd { margin: 0.15rem 0 0; font-size: 1.05rem; }

.tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-family: var(--font-ui); font-size: var(--size-small); color: var(--ink-soft); }
.tag { background: var(--paper-tint); border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.75rem; color: var(--teal); text-decoration: none; }
.tag:hover { border-color: var(--teal); color: var(--teal); }
.back-link { margin-top: 2rem; font-family: var(--font-ui); font-weight: 600; }
.back-link a { text-decoration: none; }

/* Click-to-load video */
.video { margin: 0 0 2rem; }
.video-play {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden;
  border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--teal) repeating-radial-gradient(circle at 50% 50%, transparent 0 11px, rgba(194, 160, 103, 0.15) 11px 12px);
}
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: opacity 0.2s; }
.video-play:hover img { opacity: 1; }
.video-icon {
  position: absolute; left: 50%; top: 50%; width: 4.5rem; height: 4.5rem; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--rust); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, background-color 0.2s;
}
.video-icon::after {
  content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 0.8rem 0 0.8rem 1.3rem; border-color: transparent transparent transparent #fff;
}
.video-play:hover .video-icon { transform: translate(-50%, -50%) scale(1.07); background: var(--rust-dark); }
.video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #000; }
.video-note { margin-top: 0.6rem; font-family: var(--font-ui); font-size: 0.82rem; color: var(--ink-soft); }

/* Photos inside page and update text (one photo, or a grid of several) */
.text-photo { margin: 1.5rem 0; }
.text-photo img { display: block; max-width: 100%; height: auto; border-radius: var(--radius); }
.text-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.75rem; margin: 1.5rem 0; }
.text-gallery .text-photo { margin: 0; }
.text-gallery .text-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prose .video { margin: 1.5rem 0; }

/* People */
.jump-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; font-family: var(--font-ui); font-size: 0.9rem; }
.jump-links a { padding: 0.35rem 0.8rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; color: var(--teal); text-decoration: none; }
.jump-links a:hover { border-color: var(--teal); }
.people-group + .people-group { margin-top: 3rem; }
.list-heading { font-size: var(--size-h2); margin: 0 0 1.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.list-heading:not(:first-child) { margin-top: 3.5rem; }
.people-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 2rem 2.5rem; }
.person { display: flex; gap: 1.1rem; align-items: flex-start; }
.person-photo { flex: none; width: 5.5rem; height: 5.5rem; border-radius: var(--radius); overflow: hidden; background: var(--teal); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-photo-empty { display: grid; place-items: center; font-family: var(--font-display); font-size: 2.1rem; color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
.person-text { min-width: 0; }
.person-name { font-size: 1.25rem; color: var(--ink); }
.person-role { font-family: var(--font-ui); font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.25rem; line-height: 1.45; }
.person-bio { margin-top: 0.6rem; }
.person-bio summary { cursor: pointer; font-family: var(--font-ui); font-size: 0.9rem; font-weight: 600; color: var(--rust); }
.person-bio .prose { margin-top: 0.6rem; }

/* Programs overview */
.program-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; }
.program-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.program-card:hover { color: var(--ink); border-color: var(--teal-mid); box-shadow: 0 8px 24px rgba(23, 63, 66, 0.1); }
.program-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.program-card-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.4rem; border-top: 3px solid var(--rust); }

/* ---------- Forms ---------- */

.form { display: grid; gap: 1.35rem; max-width: 36rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-ui); font-weight: 600; font-size: 0.97rem; }
.field input, .field textarea, .search-form input {
  width: 100%; font: inherit; font-size: 1.02rem; color: var(--ink);
  padding: 0.75rem 0.85rem; background: #fff;
  border: 1.5px solid #b7c3c0; border-radius: var(--radius);
}
.field input:focus, .field textarea:focus, .search-form input:focus { border-color: var(--teal); outline: 3px solid rgba(194, 160, 103, 0.55); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--rust); }
.field-error { font-family: var(--font-ui); font-size: 0.92rem; color: var(--rust); font-weight: 600; }
.form-note { font-family: var(--font-ui); font-size: 0.86rem; color: var(--ink-soft); }
.form .button { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 1.1rem 1.3rem; border-radius: var(--radius); border-left: 4px solid; display: grid; gap: 0.4rem; max-width: 36rem; margin-bottom: 1.5rem; }
.notice-success { background: #e8f2ef; border-color: var(--teal-mid); }
.notice-error { background: #fbecE7; border-color: var(--rust); }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 4rem; }
.contact-details { border-left: 1px solid var(--line); padding-left: 2rem; display: grid; gap: 0.6rem; align-content: start; }
.contact-details address { font-style: normal; }

.search-form { display: flex; gap: 0.6rem; margin-top: 1.5rem; max-width: 36rem; }
.search-form input { flex: 1; min-width: 0; }
.result-count { font-family: var(--font-ui); color: var(--ink-soft); margin-bottom: 1.5rem; }
.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
.result-kind { font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.result-title { font-family: var(--font-display); font-size: 1.35rem; text-decoration: none; }
.result-title:hover { text-decoration: underline; }
.result-text { color: var(--ink-soft); margin-top: 0.3rem; }

.pager { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 3rem; font-family: var(--font-ui); color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer { background: var(--teal-deep); color: var(--on-dark); font-family: var(--font-ui); font-size: 0.95rem; border-top: 4px solid var(--gold); }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.35); }
.site-footer a:hover { color: var(--gold); text-decoration-color: var(--gold); }
/* Buttons in the footer keep their own colours (the white "Donate" button has teal words). */
.site-footer .button-light, .site-footer .button-light:hover { color: var(--teal); text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.footer-name { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.05em; text-transform: uppercase; color: #fff; line-height: 1.3; }
.footer-name span { font-family: var(--font-ui); font-size: 0.68rem; letter-spacing: 0.14em; color: var(--on-dark-soft); }
.footer-about address { font-style: normal; margin-top: 1rem; color: var(--on-dark-soft); line-height: 1.7; }
.footer-heading { font-family: var(--font-ui); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-support p { color: var(--on-dark-soft); margin-bottom: 1rem; line-height: 1.55; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 1.4rem 2rem; display: grid; gap: 0.4rem; font-size: 0.82rem; color: var(--on-dark-soft); }

/* ---------- Smaller screens ---------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 26rem; }
  .hero-plate { aspect-ratio: 16 / 10; }
  .page-layout.has-aside { grid-template-columns: 1fr; gap: 2.5rem; }
  .page-aside { position: static; max-height: none; border-left: 0; border-top: 1px solid var(--line); padding: 1.5rem 0 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-details { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .support-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-actions .button, .support-actions .button { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-form { flex-direction: column; }
  .event-facts { gap: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .video, .skip-link { display: none; }
  body { font-size: 11pt; }
}

/* ---------- Homepage slide show ---------- */
.slider-band { background: var(--paper-tint); border-bottom: 1px solid var(--line); padding: 2rem 0; }
.slider { position: relative; max-width: 50rem; margin: 0 auto; }   /* the old slides are 800 pixels wide: no wider, so they stay sharp */
.slider-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem;
  border-radius: var(--radius); background: var(--teal);
}
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 16 / 7; overflow: hidden; }
/* Slides whose photo carries its own words are shown whole, never cropped. */
.slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.slide-words img { object-fit: cover; }
.slide-link {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 0.75rem;
  color: transparent; text-decoration: none; font-family: var(--font-ui); font-weight: 600;
}
.slide-link:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; color: #fff; }
.slide-link:focus-visible, .slide-link:hover { background: linear-gradient(transparent 60%, rgba(15, 44, 46, 0.55)); color: #fff; }
.slide-panel {
  position: absolute; left: 1.5rem; bottom: 1.5rem; max-width: min(34rem, calc(100% - 3rem));
  background: rgba(255, 255, 255, 0.94); border-left: 4px solid var(--rust); border-radius: var(--radius);
  padding: 1.1rem 1.35rem; box-shadow: 0 8px 24px rgba(15, 44, 46, 0.25);
}
.slide-heading { font-family: var(--font-display); font-size: 1.35rem; color: var(--teal); margin: 0 0 0.4rem; }
.slide-quote { margin: 0; font-style: italic; font-size: 1.02rem; line-height: 1.5; }
.slide-quote p { margin: 0; }
.slide-cite { font-family: var(--font-ui); font-size: 0.85rem; color: var(--ink-soft); margin: 0.5rem 0 0.75rem; }

.slider-controls { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-top: 0.85rem; flex-wrap: wrap; }
.slider-button, .slider-pause {
  font-family: var(--font-ui); font-weight: 600; color: var(--teal); background: #fff;
  border: 1.5px solid var(--teal); border-radius: var(--radius); cursor: pointer;
}
.slider-button { width: 2.4rem; height: 2.4rem; font-size: 1.4rem; line-height: 1; }
.slider-pause { height: 2.4rem; padding: 0 0.9rem; font-size: 0.9rem; }
.slider-button:hover, .slider-pause:hover { background: var(--teal); color: #fff; }
.slider-dots { display: flex; gap: 0; flex-wrap: wrap; justify-content: center; }
/* Each dot is a 1.6rem target for fingers, drawn as a small circle in its middle. */
.slider-dot { width: 1.6rem; height: 1.6rem; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.slider-dot::before { content: ""; position: absolute; inset: 0.4rem; border-radius: 50%; border: 1.5px solid var(--teal); background: #fff; }
.slider-dot[aria-current="true"]::before { background: var(--rust); border-color: var(--rust); }
/* With JavaScript: one slide at a time, sliding smoothly (or instantly for reduced motion). */
.js .slider-track { overflow: hidden; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { .js .slider-track { scroll-behavior: auto; } }
@media (max-width: 600px) {
  .slider-band { padding: 1rem 0; }
  .slide-words { aspect-ratio: 4 / 5; }
  .slide-panel { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; max-width: none; padding: 0.85rem 1rem; }
  .slide-quote { font-size: 0.95rem; }
}

/* Donate form: suggested amounts as large, easy-to-tap choices */
.donate-amounts { border: 0; padding: 0; margin: 1rem 0 1.25rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.donate-amounts legend { font-family: var(--font-ui); font-weight: 600; margin-bottom: 0.6rem; }
.donate-amount { position: relative; cursor: pointer; }
.donate-amount input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.donate-amount span {
  display: block; min-width: 5.5rem; padding: 0.7rem 1rem; text-align: center;
  font-family: var(--font-ui); font-weight: 600; font-size: 1.05rem; color: var(--teal);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
}
.donate-amount input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.donate-amount input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.donate-amount:hover span { border-color: var(--teal); }
.donate-test { font-family: var(--font-ui); font-size: 0.85rem; color: var(--rust); margin-top: 0.75rem; }
.donate-thanks { border-color: var(--teal); }

/* "See more" fold in long texts */
.see-more-button {
  display: inline-flex; align-items: center; gap: 0.4rem; margin: 0.5rem 0 1.5rem;
  font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; color: var(--rust);
  background: none; border: 1.5px solid var(--rust); border-radius: var(--radius); padding: 0.5rem 1rem; cursor: pointer;
}
.see-more-button::after { content: ""; width: 0.45rem; height: 0.45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.see-more-button[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
.see-more-button:hover { background: var(--rust); color: #fff; }
.see-more-button[hidden], .see-more-rest[hidden] { display: none; }

/* Affirmations: quotations shown one at a time. All are stacked in the same
   place, so the band keeps the height of the longest and doesn't jump. */
.quote-stack { display: grid; }
.quote-stack > .big-quote { grid-area: 1 / 1; transition: opacity 0.6s ease; }
.quote-stack > .is-off { visibility: hidden; opacity: 0; }
.big-quote-long p { font-size: clamp(1.15rem, 0.95rem + 0.9vw, 1.55rem); line-height: 1.45; }
.quote-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; max-width: 52rem; padding-left: clamp(0rem, 4vw, 3.5rem); }
.quote-controls { justify-content: flex-start; margin: 0; }
@media (prefers-reduced-motion: reduce) { .quote-stack > .big-quote { transition: none; } }
