/* Bayan Centre. Fonts are self-hosted, so the page makes no calls to third parties. */

@font-face { font-family: "Newsreader"; src: url(fonts/newsreader-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy: #17233a;
  --burgundy: #6e2a3a;
  --burgundy-dark: #55202d;
  --gold: #c29a55;
  --gold-deep: #8a6420;
  --mist: #edf0f5;
  --ink: #17233a;
  --muted: #4a5772;
  --line: #cbd3e0;
  --field-line: #7c8aa3;
  --cream: #f5ecda;
  --error: #8e1b2e;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arabic: "Amiri", "Noto Naskh Arabic", "Geeza Pro", serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 1rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--sans);
  color: var(--ink);
  background: #fff;
}
body { overflow-wrap: anywhere; } /* a long word wraps instead of pushing the page sideways, even with very large text */
.brand, .give, .menu-btn, .nav a { overflow-wrap: normal; }
.hero-body > *, .reg > *, .scholar > *, .about-grid > *, .contact-grid > *, .news > *, .support-grid > *, .video > *, .band-detail > * { min-width: 0; }
img { max-width: 100%; }
a { color: inherit; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; hyphens: auto; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
p { margin: 0 0 1em; max-width: 38rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .contact :focus-visible, .band :focus-visible { outline-color: #fff; }
.board :focus-visible, .reg-flyer :focus-visible { outline-color: var(--navy); }
.skip { position: absolute; left: 1rem; top: -4rem; background: #fff; color: var(--navy); padding: .6rem 1rem; z-index: 10; border-radius: 6px; }
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .7rem 1.6rem;
  font: 700 1.0625rem/1.2 var(--sans);
  border: 0; border-radius: 8px; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--burgundy); color: #fff; }
.btn-primary:hover { background: var(--burgundy-dark); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #d3ac69; }
.btn-quiet { background: transparent; color: var(--burgundy); border: 1.5px solid var(--burgundy); }
.btn-quiet:hover { background: #f5eef0; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .7; cursor: wait; }

/* ---------- Header ---------- */
.hero, .band { color: #f4f0e6; }
.hero { background: var(--navy); }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; padding-block: .85rem; }

/* Logo and name sit side by side. The two-line name is exactly as tall as the logo. */
.brand { display: flex; align-items: center; gap: .65em; min-height: 2.75rem; font-size: min(1rem, 18px); color: #fff; text-decoration: none; } /* the logo lockup keeps its size when text is enlarged */
.brand-mark { display: block; height: 2.5em; width: auto; }
.brand-name { display: flex; flex-direction: column; justify-content: space-between; height: 2.5em; text-transform: uppercase; }
/* Tuned by measuring pixels: BAYAN starts at the top of the logo, CENTRE ends at its bottom, and both words are the same width. */
.b1 { margin-top: -.035em; font: 600 1.7em/1 var(--serif); letter-spacing: .08em; }
.b2 { margin-bottom: -.215em; font: 700 .8em/1 var(--sans); letter-spacing: .83em; }

.nav { display: flex; align-items: center; gap: clamp(.75rem, 2.4vw, 1.75rem); margin-left: auto; }
.nav a:not(.give) { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .15rem; color: #e6e9f0; text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:not(.give):hover, .nav a[aria-current="page"]:not(.give) { border-bottom-color: var(--gold); color: #fff; }
.give {
  display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 2.5rem; padding: .4rem 1.15rem;
  border-radius: 999px; background: var(--gold); color: var(--navy);
  font: 700 1rem/1.2 var(--sans); text-decoration: none; white-space: nowrap;
}
.give:hover { background: #d3ac69; }

.menu-btn { display: none; }
.bars, .bars::before, .bars::after { display: block; width: 1.4rem; height: 2px; background: currentColor; border-radius: 2px; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -.45rem; }
.bars::after { top: .45rem; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 47.9375rem) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; min-width: 2.75rem; padding: .25rem .8rem;
    color: #fff; font-weight: 700; text-decoration: none; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 8px;
  }
  .menu-btn:hover { border-color: #fff; }
  .menu-btn[aria-expanded="true"] .bars { background: transparent; }
  .menu-btn[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }
  .nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: .5rem 0 0; padding: .25rem 0 .75rem; border-top: 1px solid rgba(255, 255, 255, .2); }
  .nav:target, .nav.is-open { display: flex; }
  .js .nav:target:not(.is-open) { display: none; }
  .nav a:not(.give) { min-height: 3rem; padding: 0 .25rem; font-size: 1.125rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .nav a[aria-current="page"]:not(.give) { border-bottom-color: var(--gold); }
  .nav .give { min-height: 3rem; margin-top: .9rem; }
}
@media (max-width: 25.9375rem) {
  .menu-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .menu-btn { padding-inline: .7rem; }
}

/* ---------- Welcome ---------- */
.hero-body { display: grid; gap: 1.75rem; align-items: center; padding-block: 1rem clamp(2rem, 6vw, 4.25rem); }
.hero-copy h1 { font-size: clamp(2.2rem, 6.2vw, 4rem); max-width: 17ch; }
.lede { margin: 1rem 0 0; font-size: 1.25rem; color: #e0e5ee; max-width: 32rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-actions .btn { flex: 1 1 100%; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .65); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.where-chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.where-chips li { padding: .3rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #eef0f5; font-size: .9375rem; font-weight: 700; }

/* The cream board: what is open right now, in one glance. */
.board { min-height: 14.5rem; padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--cream); color: var(--navy); border-radius: 14px; box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .5); }
.kicker { display: flex; align-items: center; gap: .55rem; margin: 0 0 .5rem; color: var(--burgundy); font: 700 .9375rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .06em; }
.kicker::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--burgundy); flex: none; }
.board-title { margin: 0; font: 600 clamp(3rem, 7vw, 4.25rem)/1 var(--serif); }
.board-tag { margin: .6rem 0 0; font: 600 1.25rem/1.3 var(--serif); color: var(--burgundy); }
.board-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; list-style: none; margin: 1.1rem 0 0; padding: 0; }
.board-stats li, .stats li { display: grid; gap: .1rem; align-content: center; padding: .6rem .35rem; background: #eadfc4; border-radius: 8px; text-align: center; }
.sv { font: 600 1.75rem/1 var(--serif); color: var(--burgundy); }
.sl { font-size: .875rem; line-height: 1.25; color: var(--navy); }
.board-link { display: inline-block; margin-top: 1rem; color: var(--burgundy); font-weight: 700; }

@media (min-width: 30rem) { .hero-actions .btn { flex: 0 1 auto; } }
@media (min-width: 48rem) {
  .hero-body { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-top: clamp(1.5rem, 4vw, 3rem); }
}

/* ---------- Programs ---------- */
.programs { background: var(--mist); padding-block: clamp(2.5rem, 7vw, 5rem); }
.sub { margin: 2rem 0 1.1rem; font-size: clamp(1.4rem, 2.6vw, 1.75rem); }
.programs h2 + .register .sub { margin-top: 1.5rem; }

.skeleton { min-height: 44rem; background: #e2e7ef; border-radius: 16px; }
@media (min-width: 56rem) { .skeleton { min-height: 36rem; } }
.notice { margin-top: 2rem; padding: 1rem 1.25rem; background: #fff; border-left: 4px solid var(--gold-deep); }
.notice.is-error { border-left-color: var(--error); }

.jump { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.5rem; }
.jump a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border: 1.5px solid var(--navy); border-radius: 999px; text-decoration: none; font-weight: 700; }
.jump a:hover { background: var(--navy); color: #fff; }

/* One card per program: the flyer on one side, the form on the other. */
.reg { display: grid; margin-bottom: 2rem; scroll-margin-top: 1rem; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(23, 35, 58, .14), 0 22px 44px -22px rgba(23, 35, 58, .4); }
.reg:last-child { margin-bottom: 0; }
.reg-flyer { padding: clamp(1.25rem, 4vw, 2.25rem); background: var(--cream); }
.reg-form { padding: clamp(1.25rem, 4vw, 2.25rem); }
.reg-flyer h3 { font-size: clamp(3rem, 7vw, 4rem); line-height: 1; }
.tagline { margin: .6rem 0 0; font: 600 1.3rem/1.3 var(--serif); color: var(--burgundy); }
.reg-flyer .summary { margin: 1rem 0 0; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1rem; list-style: none; margin: 1.5rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid #d9ccaa; }
.pillars li { display: grid; gap: .1rem; align-content: start; }
.pl { font: 600 2.25rem/1 var(--serif); color: var(--burgundy); }
.pn { font-weight: 700; }
.pt { font-size: .9375rem; line-height: 1.4; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.limited { margin: 1.25rem 0 0; font: 600 1.25rem/1.3 var(--serif); }
.flyer-link { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: .25rem; color: var(--burgundy); font-weight: 700; }
.reg-form h4 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 1rem; }

.facts { margin: 0 0 1.5rem; border-top: 1px solid var(--line); }
.facts > div { display: grid; gap: .1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .9375rem; }
.facts dd { margin: 0; }
@media (min-width: 26rem) { .facts > div { grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; } }
@media (min-width: 56rem) {
  .reg { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.soon-list { display: grid; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.soon-list li { display: grid; gap: .15rem; padding: 1rem 1.25rem; background: #fff; border-radius: 12px; border-left: 4px solid var(--gold); }
.o-name { font: 600 1.35rem/1.25 var(--serif); }
.o-note { color: var(--muted); font-size: .9375rem; }
@media (min-width: 48rem) { .soon-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }

/* ---------- Forms ---------- */
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
label, legend { font-weight: 700; }
.opt, .hint { font-weight: 400; color: var(--muted); }
.hint { display: block; font-size: .9375rem; }
fieldset { border: 0; margin: 0 0 .25rem; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: .7rem; }

input, textarea {
  width: 100%; min-height: 3rem;
  font: inherit; color: var(--ink); background: #fff;
  padding: .7rem .85rem;
  border: 1.5px solid var(--field-line); border-radius: 8px;
}
textarea { resize: vertical; min-height: 6rem; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }

.pair { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.btn-wide { width: 100%; }
.stepper { display: inline-grid; grid-template-columns: minmax(0, 3rem) minmax(0, 4.5rem) minmax(0, 3rem); width: min(100%, max-content); }
.stepper button {
  font: 700 1.4rem/1 var(--sans); color: var(--navy); background: var(--mist);
  border: 1.5px solid var(--field-line); cursor: pointer; min-height: 3rem;
}
.stepper button:first-child { border-radius: 8px 0 0 8px; }
.stepper button:last-child { border-radius: 0 8px 8px 0; }
.stepper button:hover { background: #dde3ed; }
.stepper input { text-align: center; border-radius: 0; border-inline-width: 0; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.error { color: var(--error); font-weight: 700; margin: 0 0 1rem; }
.fine { margin: 1rem 0 0; font-size: .9375rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { padding: 1.25rem 1.25rem 1.4rem; background: var(--mist); border-left: 4px solid var(--gold-deep); border-radius: 0 8px 8px 0; margin-top: .5rem; }
.done h4 { font-size: 1.6rem; margin-bottom: .5rem; }
.done p { margin-bottom: 1.1rem; }

.empty { margin-top: 2.5rem; padding: clamp(1.5rem, 4vw, 2.5rem); background: #fff; border: 2px dashed #b9a06e; border-radius: 12px; }
.empty h3 { margin-bottom: .6rem; }
.empty .btn { margin-top: .5rem; }

/* ---------- About ---------- */
.about { padding-block: clamp(3.5rem, 8vw, 6rem); }
.about-grid { display: grid; gap: 3rem; }
.about h2 { margin-bottom: 1.25rem; }
.about p { font-size: 1.125rem; }
.about-sub { font-size: 1.35rem; margin: 1.75rem 0 .5rem; }
.about h2 + .about-sub { margin-top: 1.25rem; }
.about .former { margin-top: 1.5rem; color: var(--muted); font-size: 1rem; }
.teacher { padding-top: 1.5rem; border-top: 3px solid var(--gold); }
.teacher-label { margin: 0 0 1rem; font: 700 .9375rem/1.4 var(--sans); color: var(--burgundy); }
.teacher-card > * { min-width: 0; }
.teacher-card { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.1rem; align-items: center; margin-bottom: 1.25rem; }
.teacher-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 10px; background: var(--mist); }
.teacher-card h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.teacher-card p { margin: 0; font-size: 1rem; color: var(--muted); }
@media (max-width: 24rem) {
  .teacher-card { grid-template-columns: minmax(0, 1fr); }
  .teacher-card img { max-width: 6.5rem; }
}
@media (min-width: 56rem) {
  .about-grid { grid-template-columns: 1.25fr .75fr; gap: 5rem; align-items: start; }
  .teacher { margin-top: .6rem; }
}

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: #f4f0e6; padding-block: clamp(3rem, 8vw, 5rem) 1rem; }
.contact-grid { display: grid; gap: 2rem; }
.contact h2 { margin-bottom: 1rem; }
.contact p { color: #d7dce7; }
.contact-form .error { color: #ffc9d1; }
.contact-form label { color: #fff; }
.contact .done, .contact .done p { color: var(--ink); }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.foot { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: clamp(3rem, 7vw, 5rem); padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .18); color: #b9c1d1; font-size: .9375rem; }
.foot-name { font-family: var(--serif); font-weight: 600; color: #fff; font-size: 1.05rem; }

/* ---------- Simple pages (thanks, 404) ---------- */
.plain { min-height: 100vh; display: grid; place-items: center; padding: 2rem var(--gutter); background: var(--navy); color: #f4f0e6; text-align: center; }
.plain h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 1rem; }
.plain p { margin-inline: auto; color: #d7dce7; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Series page ---------- */

/* The full Arabic face is only downloaded on pages that show Arabic beyond the logo. */
@font-face { font-family: "Amiri"; src: url(fonts/amiri-arabic-700.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ongoing: #14573f;
  --completed: #6e2a3a;
  --tbd: #3e4658;
}
.tone-ongoing { --tone: var(--ongoing); }
.tone-completed { --tone: var(--completed); }
.tone-tbd { --tone: var(--tbd); }

.band { background: var(--navy); color: #f4f0e6; }
.band[class*="tone-"] { background: var(--tone); }
.band-body { padding-block: 1rem clamp(2.5rem, 6vw, 4.5rem); }
.band-body h1 { max-width: 18ch; }
.band-body:not(.band-detail) .lede { max-width: 34rem; }
.band-detail { display: grid; gap: 1.25rem; align-items: center; }
.band-text { min-width: 0; }
.band-status { margin: 1.25rem 0 .9rem; }
.band-meta { margin: 0; color: #e4e8ee; font-weight: 700; }
.band-ar { font: 700 clamp(4.5rem, 20vw, 9rem)/1.5 var(--arabic); color: var(--gold); text-align: center; overflow-wrap: normal; }
@media (min-width: 48rem) {
  .band-detail { grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; }
  .band-ar { font-size: clamp(4.5rem, 13vw, 9rem); }
}
.crumb { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-weight: 700; text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; }
.crumb::before { content: ""; width: .6rem; height: .6rem; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); }
.crumb:hover { border-bottom-color: var(--gold); }
.band .lede { margin-top: 1rem; }
.band :focus-visible { outline-color: #fff; }
#page-title:focus { outline: none; }

.series-page { background: var(--mist); padding-block: clamp(2.5rem, 6vw, 4.5rem); min-height: 55vh; }
.series-page:focus { outline: none; }

/* Status pill: always carries a word, so color is never the only signal. */
.status { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem; border-radius: 999px; background: #fff; color: var(--tone); font: 700 .9rem/1.2 var(--sans); }
.status i { order: -1; width: .6rem; height: .6rem; border-radius: 50%; background: var(--tone); }
.tone-ongoing .status i { animation: blink 2s steps(4, end) infinite; }
@keyframes blink { 50% { opacity: .2; } }

.series-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19.5rem), 1fr)); list-style: none; margin: 0; padding: 0; }
.series-grid > li { display: flex; }
.card {
  position: relative; display: flex; flex-direction: column; width: 100%;
  background: #fff; color: var(--ink); text-decoration: none;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(23, 35, 58, .14), 0 16px 30px -18px rgba(23, 35, 58, .4);
  transition: box-shadow .15s;
}
.card:hover { box-shadow: 0 1px 2px rgba(23, 35, 58, .18), 0 24px 36px -16px rgba(23, 35, 58, .5); }
.card > .status { position: absolute; top: .9rem; left: .9rem; }
.card-art { display: grid; place-items: center; min-height: 9.5rem; background: var(--tone); color: var(--gold); padding: 3.4rem .5rem .75rem; }
.tone-tbd .card-art { outline: 2px dashed rgba(255, 255, 255, .35); outline-offset: -12px; }
.card-art .ar { overflow-wrap: normal; font: 700 clamp(3.25rem, 9vw, 4.5rem)/1.6 var(--arabic); }
.card-art .initial { font: 600 4.5rem/1 var(--serif); }
.card-body { display: flex; flex-direction: column; gap: .6rem; padding: 1.25rem 1.4rem 1.5rem; flex: 1; }
.card-body h2 { font-size: 1.5rem; }
.card-desc { flex: none; margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: grid; gap: .15rem; margin: auto 0 0; padding-top: .6rem; font-size: .9375rem; color: var(--ink); }
.card-meta span:last-child { font-weight: 700; color: var(--tone); }

.videos { display: grid; gap: 1.75rem; }
.video {
  display: grid; gap: 1.25rem; padding: clamp(1rem, 2.5vw, 1.5rem);
  background: #fff; border-radius: 14px;
  box-shadow: 0 1px 2px rgba(23, 35, 58, .14), 0 16px 30px -18px rgba(23, 35, 58, .4);
  content-visibility: auto; contain-intrinsic-size: auto 24rem;
}
@media (min-width: 56rem) {
  .video { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2rem; align-items: start; }
}
.player { position: relative; aspect-ratio: 16 / 9; background: #0f1a2e; border-radius: 10px; overflow: hidden; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-note { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; color: #d7dce7; max-width: none; }
.facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.facade img { display: block; width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; margin: auto; width: 4.25rem; height: 4.25rem; border-radius: 50%; background: rgba(255, 255, 255, .95); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.play::after { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: .8rem 0 .8rem 1.35rem; border-color: transparent transparent transparent var(--tone, var(--navy)); }
.facade:hover .play { background: #fff; }
.facade:focus-visible { outline: 4px solid var(--gold); outline-offset: -4px; }
.video-text h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.video-date { display: block; margin: .35rem 0 1rem; color: var(--tone, var(--muted)); font-weight: 700; font-size: .9375rem; }
.video-summary { margin: 0 0 1rem; }
.points { margin: 0; padding-left: 1.2rem; }
.points li { margin-bottom: .35rem; padding-left: .2rem; }

.footer-band { background: var(--navy); color: #f4f0e6; padding-top: .5rem; }
.footer-band .foot { margin-top: 0; border-top: 0; padding-block: 2rem; }

/* ---------- Scholars page ---------- */
.scholars-page { background: var(--mist); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.scholar {
  display: grid; gap: 1.75rem; scroll-margin-top: 1.5rem;
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  background: #fff; border-radius: 14px;
  box-shadow: 0 1px 2px rgba(23, 35, 58, .14), 0 16px 30px -18px rgba(23, 35, 58, .4);
}
.scholar + .scholar { margin-top: 2rem; }
.scholar-photo { margin: 0; }
.scholar-photo img {
  display: block; width: 100%; max-width: 20rem; height: auto;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
  background: var(--mist); border-radius: 10px;
  box-shadow: 0 1px 2px rgba(23, 35, 58, .14), 0 14px 28px -14px rgba(23, 35, 58, .4);
}
.role { margin: 0 0 .5rem; color: var(--burgundy); font-weight: 700; }
.scholar h2 { font-size: clamp(2rem, 4.4vw, 2.9rem); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.1rem 0 1.4rem; padding: 0; }
.tags li { padding: .3rem .85rem; border-radius: 999px; background: var(--mist); color: var(--navy); font: 700 .9rem/1.3 var(--sans); }
.scholar .intro { font-size: 1.125rem; }
.cv { margin: 1.75rem 0 1.75rem; border-top: 1px solid var(--line); }
.cv > div { display: grid; gap: .4rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.cv dt { font: 700 1rem/1.4 var(--sans); color: var(--burgundy); }
.cv dd { margin: 0; }
.cv ul { margin: 0; padding-left: 1.15rem; }
.cv li { margin-bottom: .45rem; padding-left: .15rem; max-width: 40rem; }
.cv li:last-child { margin-bottom: 0; }
.scholar-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 56rem) {
  .scholar { grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
  .scholar-photo { position: sticky; top: 1.5rem; }
  .scholar-photo img { max-width: none; }
  .cv > div { grid-template-columns: 10.5rem minmax(0, 1fr); gap: 1.5rem; }
}

/* ---------- Email signup ---------- */
.notify { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 3px solid var(--gold); }
.notify h4 { font-size: 1.4rem; margin-bottom: .75rem; }
.notify p { color: var(--muted); }
.notify-row { display: grid; gap: .75rem; }
.notify-row .field { margin: 0; }
@media (min-width: 30rem) { .notify-row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.notify-form .error { margin: .75rem 0 0; }
.ok { margin: 0; padding: 1rem 1.25rem; background: var(--mist); border-left: 4px solid var(--gold-deep); border-radius: 0 8px 8px 0; font-weight: 700; color: var(--ink); max-width: none; }
.ok:focus { outline: none; }
.contact .notify-form label { color: #fff; }
.contact .notify-form .error { color: #ffc9d1; }

/* ---------- Support (home page band) ---------- */
.support { background: var(--cream); padding-block: clamp(2.5rem, 6vw, 4rem); }
.support-grid { display: grid; gap: 1.5rem; align-items: center; }
.support h2 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); margin-bottom: .6rem; }
.support p { margin: 0; }
.support-act { display: grid; gap: .6rem; justify-items: start; }
.support-act .fine { margin: 0; }
@media (min-width: 48rem) { .support-grid { grid-template-columns: 1.4fr .6fr; gap: 3rem; } }

/* ---------- Donate page ---------- */
.donate-page { background: var(--mist); padding-block: clamp(2.5rem, 6vw, 4.5rem); min-height: 55vh; }
.panel {
  max-width: 44rem; padding: clamp(1.25rem, 3.5vw, 2.5rem);
  background: #fff; border-radius: 14px;
  box-shadow: 0 1px 2px rgba(23, 35, 58, .14), 0 16px 30px -18px rgba(23, 35, 58, .4);
}
.panel h2 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); margin-bottom: .7rem; }
.panel .fine { margin-top: 1.5rem; }

/* ---------- Newsletter and footer links ---------- */
.news { display: grid; gap: 1.25rem; margin-top: clamp(3rem, 7vw, 4.5rem); padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .18); }
.news h3 { font-size: 1.6rem; margin-bottom: .4rem; }
.news p { margin: 0; }
@media (min-width: 56rem) { .news { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; } }
.foot a { color: #fff; }
.foot span, .foot a { overflow-wrap: anywhere; }
.foot-links { display: inline-flex; flex-wrap: wrap; gap: .25rem 1rem; }
.foot-links:empty { display: none; }
