/* ==========================================================================
   BRTRC — static site styles
   Rebuilt from the Wix original. Design tokens below were read off the live
   site's computed styles; substituted fonts are noted in MIGRATION-NOTES.md.
   ========================================================================== */

/* --- Fonts (self-hosted, no external CDN) --------------------------------- */

/* Jost — substitute for Brandon Grotesque Light (display/headings) */
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Mulish — substitute for Avenir LT Light / Avenir LT Heavy (body/UI) */
@font-face {
  font-family: 'Mulish';
  src: url('../fonts/mulish-var.woff2') format('woff2-variations');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */

:root {
  /* Palette lifted from the Wix theme (--color_16..20) */
  --blue-100: #9bc0e8;
  --blue-300: #699bd0;
  --blue-500: #025bb9;  /* header, buttons, accents */
  --blue-700: #013d7b;
  --blue-900: #011e3e;  /* headings, footer */

  --ink: #111111;
  --ink-soft: #3d3d3d;
  --rule: #b9b9b9;
  --rule-strong: #7a7a7a;
  --paper: #ffffff;

  --display: 'Jost', 'Century Gothic', 'Futura', sans-serif;
  --body: 'Mulish', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;

  --measure: 820px;       /* main text column (780px of text + gutters) */
  --card-measure: 500px;  /* boxed cards */
  --header-h: 101px;

  --gutter: 24px;
}

/* --- Reset ---------------------------------------------------------------- */

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Skip link ------------------------------------------------------------ */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--blue-900);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --- Layout --------------------------------------------------------------- */

.wrap {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 72px; }
.section:first-of-type { padding-top: 48px; }

/* --- Typography ----------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  color: var(--blue-900);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.8vw, 4.125rem);
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-align: center;
}

h2 {
  font-size: clamp(2rem, 1.2rem + 3.5vw, 3.625rem);
  line-height: 1.25;
  text-align: center;
}

h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem);
  line-height: 1.4;
  font-weight: 400;
  color: var(--ink);
  text-align: center;
}

p { margin: 0 0 1.4em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

/* Body links: the original used black text with an author-applied underline.
   Kept, but given a consistent underline + a visible hover/focus state. */
.prose a,
.card a,
.callout a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover,
.card a:hover,
.callout a:hover {
  color: var(--blue-500);
  text-decoration-thickness: 2px;
}

:where(a, button, input, summary):focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 2px;
}

.prose ul { margin: 0 0 1.4em; padding-left: 1.4em; }
.prose li { margin-bottom: 0.9em; }

/* Standfirst / lead-in sentence under a section heading */
.lead {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem);
  line-height: 1.4;
  color: var(--ink);
  text-align: center;
  margin: 20px 0 0;
}

/* Section lead-in: heading + standfirst, centred */
.section-intro {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-intro h3 { margin-top: 20px; }

/* --- Archive banner ------------------------------------------------------- */

.archive-banner {
  background: #eef3fa;
  border-bottom: 1px solid #cbd9ea;
  color: var(--blue-900);
}
.archive-banner__inner {
  max-width: 1080px;
  margin-inline: auto;
  padding: 14px var(--gutter);
}
.archive-banner p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
}
.archive-banner strong { font-weight: 800; }
.archive-banner a {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}
.archive-banner a:hover { color: var(--blue-500); }

@media (max-width: 520px) {
  .archive-banner p { font-size: 14px; }
  .archive-banner__inner { padding: 12px var(--gutter); }
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue-500);
  color: #fff;
}

.site-header__inner {
  max-width: 1080px;
  margin-inline: auto;
  min-height: var(--header-h);
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { flex: none; }
.brand img {
  width: 96px;
  height: 77px;
  object-fit: contain;
  background: #fff;
}

/* Site search (client-side, replaces the Wix search widget) */
.site-search { position: relative; flex: 0 1 320px; }
.site-search input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  padding: 10px 14px 10px 40px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px 50% / 18px;
  color: var(--ink);
}
.site-search input::placeholder { color: #666; }

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--rule);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.18);
  max-height: 60vh;
  overflow-y: auto;
  padding: 6px;
  margin: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.5;
}
.search-results:empty { display: none; }
.search-results li + li { border-top: 1px solid #eee; }
.search-results a { display: block; padding: 10px 12px; text-decoration: none; }
.search-results a:hover { background: #f2f7fd; }
.search-results strong { display: block; font-weight: 700; color: var(--blue-700); }
.search-results span { color: var(--ink-soft); font-size: 13px; }
.search-results .no-hit { padding: 10px 12px; color: var(--ink-soft); }

/* Navigation */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid rgb(255 255 255 / 0.5);
  color: #fff;
  font: inherit;
  font-size: 15px;
  padding: 9px 14px;
  border-radius: 2px;
  cursor: pointer;
  align-items: center;
  gap: 9px;
}
.nav-toggle svg { width: 18px; height: 18px; }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; align-items: center; gap: 8px; }
.site-nav > ul > li { position: relative; }

.site-nav a {
  display: block;
  padding: 10px 12px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
}
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-nav [aria-current='page'] { color: rgb(255 255 255 / 0.62); }

/* Desktop dropdowns */
.site-nav .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 268px;
  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.18);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
}
.site-nav li:hover > .submenu,
.site-nav li:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.site-nav .submenu a {
  color: var(--blue-900);
  font-size: 15px;
  padding: 9px 18px;
  white-space: normal;
}
.site-nav .submenu a:hover { background: #f2f7fd; text-decoration: none; }

/* --- Anchor button bar ---------------------------------------------------- */

.jumpbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-block: 40px;
  padding-inline: var(--gutter);
}

.jumpbar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2px solid var(--blue-500);
  color: var(--blue-500);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 12px 16px;
  text-decoration: none;
  transition: background 0.14s ease, color 0.14s ease;
}
.jumpbar a::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  flex: none;
}
.jumpbar a:hover { background: var(--blue-500); color: #fff; }

/* --- Cards ---------------------------------------------------------------- */

.cards { display: flex; flex-direction: column; align-items: center; gap: 24px; }

.card {
  width: 100%;
  max-width: var(--card-measure);
  border: 1px solid var(--rule-strong);
  padding: 26px 28px;
  font-size: 16px;
}
.card h4,
.card h3.card-title {
  font-family: var(--body);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.4;
  color: var(--blue-900);
  text-align: left;
  margin: 0 0 0.6em;
}

.callout {
  width: 100%;
  max-width: var(--card-measure);
  background: var(--blue-100);
  padding: 26px 28px;
  font-size: 16px;
}
.callout h4 {
  font-family: var(--body);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.4;
  color: var(--blue-900);
  margin: 0 0 0.4em;
}
.callout a { color: var(--blue-900); }

/* Anchor targets clear the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

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

.site-footer {
  background: var(--blue-900);
  color: rgb(255 255 255 / 0.78);
  font-size: 15px;
  line-height: 1.7;
  padding-block: 56px 32px;
  margin-top: 40px;
}
.site-footer__inner {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}
.site-footer h2 {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-align: left;
  margin: 0 0 14px;
}
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: rgb(255 255 255 / 0.78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.social-list { display: flex; gap: 12px; }
.social-list img { width: 25px; height: 25px; }

.colophon {
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 18px var(--gutter) 0;
  border-top: 1px solid rgb(255 255 255 / 0.15);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgb(255 255 255 / 0.6);
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1080px) {
  .site-search { flex-basis: 240px; }
  .site-nav a { padding: 10px 8px; font-size: 15px; }
}

@media (max-width: 900px) {
  :root { --header-h: 76px; }

  .site-header__inner { flex-wrap: wrap; gap: 14px; row-gap: 12px; }
  .brand img { width: 68px; height: 55px; }

  .nav-toggle { display: inline-flex; order: 2; }
  .site-search { order: 3; flex: 1 1 100%; }

  .site-nav {
    order: 4;
    flex: 1 1 100%;
    margin-left: 0;
    display: none;
    border-top: 1px solid rgb(255 255 255 / 0.25);
    padding-top: 8px;
    max-height: 70vh;
    overflow-y: auto;
  }
  .site-nav.is-open { display: block; }

  .site-nav > ul { display: block; }
  .site-nav a { padding: 11px 4px; font-size: 17px; }

  .site-nav .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 8px 16px;
    min-width: 0;
  }
  .site-nav .submenu a {
    color: rgb(255 255 255 / 0.82);
    font-size: 15px;
    padding: 8px 4px;
  }
  .site-nav .submenu a:hover { background: transparent; }

  .section { padding-block: 48px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .card, .callout { padding: 20px; }
  .jumpbar { gap: 8px; }
  .jumpbar a { font-size: 13px; padding: 10px 12px; }
}

/* --- Video embeds --------------------------------------------------------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 8px;
}
.video-grid--single { grid-template-columns: 1fr; max-width: 720px; margin-inline: auto; }

/* Light placeholder so a lazy-loaded player reads as pending, not broken */
.video { margin: 0; border: 1px solid var(--rule); background: #e9eef4; }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.video figcaption {
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 14px;
  border-top: 1px solid var(--rule);
}

.wrap--wide { max-width: 1160px; }

/* --- Staff ---------------------------------------------------------------- */

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px 32px; }
.person { display: flex; flex-direction: column; }
.person img {
  width: 100%; max-width: 265px; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; margin-bottom: 18px;
}
.person h3 {
  font-family: var(--body); font-weight: 800; font-size: 19px; line-height: 1.35;
  color: var(--blue-900); text-align: left; margin: 0 0 2px;
}
.person .role { font-size: 15px; font-weight: 700; color: var(--blue-500); margin: 0 0 12px; }
.person .bio { font-size: 15px; line-height: 1.7; margin: 0; }

/* --- Partner sites -------------------------------------------------------- */

.cohort { margin-bottom: 64px; }
.cohort:last-child { margin-bottom: 0; }
.partner-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 36px 28px; margin-top: 36px;
}
.partner { text-align: center; }
.partner img {
  width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: cover;
  margin: 0 auto 14px; border: 1px solid var(--rule);
}
.partner h3 {
  font-family: var(--body); font-size: 16px; font-weight: 800; line-height: 1.4;
  color: var(--blue-900); text-align: center; margin: 0 0 2px;
}
.partner p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.partner a { text-decoration: none; color: inherit; display: block; }
.partner a:hover h3 { color: var(--blue-500); text-decoration: underline; text-underline-offset: 3px; }
.cohort-banner { width: 100%; margin-bottom: 8px; border: 1px solid var(--rule); }

/* --- Contact card (replaces the Wix contact form) ------------------------- */

.contact-card { max-width: var(--measure); }
.contact-card .contact-email {
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  font-weight: 400; margin: 6px 0 0;
}
.contact-card .contact-email a { color: var(--blue-900); text-decoration: underline; text-underline-offset: 4px; }
.contact-card .contact-email a:hover { color: var(--blue-700); }

/* --- Document / download links -------------------------------------------- */

.doclist { list-style: none; padding: 0; margin: 0; }
.doclist li { border-bottom: 1px solid var(--rule); }
.doclist li:first-child { border-top: 1px solid var(--rule); }
.doclist a {
  display: flex; align-items: baseline; gap: 12px; padding: 14px 4px;
  text-decoration: none; color: var(--blue-900); font-weight: 700; font-size: 16px;
}
.doclist a:hover { color: var(--blue-500); text-decoration: underline; text-underline-offset: 3px; }
.doclist .kind {
  flex: none; font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: #fff; background: var(--blue-500);
  padding: 3px 7px; border-radius: 2px;
}

/* --- Home page ------------------------------------------------------------ */

.hero { text-align: center; padding-block: 56px 32px; }
.hero img { margin: 0 auto 28px; }
.hero .tagline {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem);
  font-weight: 400; color: var(--ink); margin: 0 auto 18px; max-width: 620px;
}
.logo-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 40px; margin-top: 44px;
}
.logo-row img { max-height: 84px; width: auto; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.tile { border: 1px solid var(--rule-strong); padding: 28px; display: flex; flex-direction: column; }
.tile h3 {
  font-family: var(--display); font-size: 30px; font-weight: 300;
  text-align: left; color: var(--blue-900); margin: 0 0 10px;
}
.tile p { font-size: 16px; flex: 1; }
.tile .more {
  align-self: flex-start; margin-top: 18px; display: inline-flex; align-items: center;
  gap: 8px; border: 2px solid var(--blue-500); color: var(--blue-500);
  font-size: 14px; font-weight: 700; padding: 11px 16px; text-decoration: none;
}
.tile .more::after {
  content: ''; width: 6px; height: 6px;
  border-right: 2px solid currentColor; border-top: 2px solid currentColor;
  transform: rotate(45deg);
}
.tile .more:hover { background: var(--blue-500); color: #fff; }

/* --- Home: introductory video band ---------------------------------------- */

.videoband { display: grid; grid-template-columns: repeat(4, 1fr); }
.videoband a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 300px;
  padding: 32px 24px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
  background: var(--blue-500);
  transition: background 0.15s ease;
}
.videoband a:nth-child(even) { background: var(--blue-300); }
.videoband a:hover { background: var(--blue-700); }
.videoband a:nth-child(even):hover { background: var(--blue-500); }

@media (max-width: 900px) { .videoband { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .videoband { grid-template-columns: 1fr; }
  .videoband a { min-height: 150px; }
}

/* --- Collapsible staff bios ("Read More" on the Wix original) ------------- */

.person details { margin-top: 2px; }
.person summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-500);
  list-style: none;
  padding: 4px 0;
}
.person summary::-webkit-details-marker { display: none; }
.person summary::after {
  content: '';
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.15s ease;
}
.person details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.person summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.person details[open] summary { margin-bottom: 8px; }

/* --- Card sub-headings ---------------------------------------------------- */

.card h4 {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 800;
  color: var(--blue-900);
  text-align: left;
  margin: 1.4em 0 0.5em;
}
.card ul.prose { margin-bottom: 0; }
.card ul.prose li { font-size: 16px; }

/* --- Notice banner -------------------------------------------------------- */

.notice {
  border-left: 4px solid var(--blue-300); background: #f4f8fd;
  padding: 18px 22px; font-size: 16px; margin: 0 auto; max-width: var(--measure);
}
.notice p { margin: 0 0 0.7em; }
.notice p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .team { gap: 32px 24px; }
  .video-grid { gap: 20px; }
}

/* --- Print ---------------------------------------------------------------- */

@media print {
  .site-header, .jumpbar, .site-search, .nav-toggle { display: none !important; }
  body { font-size: 11pt; }
  .card { break-inside: avoid; }
}
