/* ==========================================================================
   Reaching The Lost International
   Mobile-first stylesheet. Base rules target the smallest screen; every
   media query is min-width, so a phone never downloads and overrides
   desktop layout it will not use.

   Palette is carried over from the organisation's own Chapel theme so the
   rebuild reads as the same brand: warm ink, dusty rose, deep maroon.
   ========================================================================== */

:root {
  /* colour */
  --ink:        #29191a;
  --ink-soft:   #6d5a58;
  --ink-faint:  #8d827f;
  --rose:       #b8806f;   /* darkened from the theme's #c59a8e so text on
                              white clears WCAG AA at normal weight */
  --rose-light: #dbab9e;
  --maroon:     #472c2d;
  --maroon-deep:#33191c;
  --cream:      #fbf7f4;
  --cream-warm: #f4ece7;
  --peach:      #ffeadc;
  --line:       #e8ddd7;
  --white:      #ffffff;

  /* type */
  --display: "Fraunces", "Noto Serif", Georgia, serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* spacing + layout */
  --gutter: 20px;
  --wrap:   1160px;
  --narrow: 760px;
  --radius: 3px;
  --shadow: 0 1px 2px rgba(41,25,26,.06), 0 8px 28px rgba(41,25,26,.07);
  --section-y: 56px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  /* `clip`, not `hidden`: hidden would make the root a scroll container and
     break the sticky header. Older engines ignore this and fall back to the
     body rule below, which is the previous behaviour. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;   /* fallback for engines without `clip` */
  overflow-x: clip;
}

img, picture, svg, video { max-width: 100%; height: auto; display: block; }

/* picture() emits <picture><img></picture>, so the wrapper sits between the
   fixed-ratio container and the image. Without this it keeps its own auto
   height and the image cannot fill — which left grey gaps under the founder
   photos and inside every card. */
.card__media > a,
.person__photo > a,
.gallery-grid > a,
.ppage > a,
.card__media picture,
.person__photo picture,
.founder__photo picture,
.gallery-grid picture,
.ppage picture,
.pmarkpage picture,
.marksheet__head picture { display: block; width: 100%; height: 100%; }

/* ---------------------------------------------------------------- type */

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .6em;
  font-weight: 600;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.9rem, 6.2vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4.6vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.4rem); }
h4 { font-size: 1.05rem; }

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

a { color: var(--rose); text-decoration: none; }
a:hover, a:focus-visible { color: var(--ink); text-decoration: underline; }

strong { color: var(--ink); font-weight: 600; }
small  { font-size: .875rem; }

blockquote {
  margin: 1.8em 0;
  padding: 0 0 0 1.1rem;
  border-left: 2px solid var(--rose);
  font-family: var(--display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink);
}
blockquote cite {
  display: block;
  margin-top: .5rem;
  font-family: var(--body);
  font-style: normal;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* ---------------------------------------------------------------- a11y */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: 200;
  background: var(--maroon); color: #fff;
  padding: 10px 18px; border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { top: 0; color: #fff; }

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

/* ---------------------------------------------------------------- layout */

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

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .65); }
.section--cream { background: var(--cream); }
.section--warm  { background: var(--cream-warm); }
.section--dark  { background: var(--maroon); color: #e7d6d0; }
.section--dark h2, .section--dark h3 { color: #fff; }

.prose { max-width: var(--narrow); }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose img { margin: 1.8em 0; border-radius: var(--radius); }

/* The signature mark: the ministry's own three-word creed, set as a rule.
   It appears in the topbar, as a section eyebrow, and in the footer. */
.creed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rose);
}
.creed span { position: relative; }
.creed span + span::before {
  content: "";
  position: absolute;
  left: -.42rem; top: 50%;
  width: 3px; height: 3px;
  margin-top: -1.5px;
  background: currentColor;
  transform: rotate(45deg);
}

.eyebrow {
  display: block;
  margin-bottom: .7rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rose);
}

.section__head { max-width: 640px; margin-bottom: 2rem; }
.section__head p { color: var(--ink-soft); }
.section__head--center { margin-inline: auto; text-align: center; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;               /* comfortable touch target */
  padding: .8rem 1.6rem;
  border: 1px solid var(--maroon);
  border-radius: var(--radius);
  background: var(--maroon);
  color: #fff;
  font-family: var(--body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: center;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover, .btn:focus-visible {
  background: var(--maroon-deep);
  border-color: var(--maroon-deep);
  color: #fff;
  text-decoration: none;
}
.btn--ghost { background: transparent; color: var(--maroon); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--maroon); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--maroon); }
.btn--light:hover { background: var(--peach); border-color: var(--peach); color: var(--maroon); }
.btn--sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .82rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--maroon);
}
.textlink::after { content: "→"; transition: transform .18s ease; }
.textlink:hover::after { transform: translateX(3px); }

/* ---------------------------------------------------------------- topbar */

.topbar {
  background: var(--maroon-deep);
  color: #cbb2ab;
  font-size: .74rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 38px;
  padding-block: .35rem;
}
.topbar__creed {
  display: flex; gap: .55rem; margin: 0;
  font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--rose-light);
}
.topbar__creed span { position: relative; }
.topbar__creed span + span::before {
  content: ""; position: absolute; left: -.42rem; top: 50%;
  width: 3px; height: 3px; margin-top: -1.5px;
  background: currentColor; transform: rotate(45deg);
}
.topbar__contact { display: none; margin: 0; gap: 1.2rem; align-items: center; }
.topbar a { color: #cbb2ab; }
.topbar a:hover { color: #fff; }

/* ---------------------------------------------------------------- header */

/* backdrop-filter on this element would make it the containing block for its
   position:fixed children — which trapped the mobile drawer (#site-nav) inside
   the 68px header box instead of the viewport, and pushed the document's
   scroll width out to ~775px on a 412px phone. The blur is painted by a
   pseudo-element instead, so the visual is unchanged but the header no longer
   captures fixed descendants. Do not move backdrop-filter back onto .header. */
.header {
  position: sticky;
  top: 0;
  /* Above the drawer (60) and the scrim (55). The drawer's 88px top padding
     is sized to clear this bar, and .nav-toggle animates into a close X,
     which only works if the bar stays on top while the drawer is open. */
  z-index: 70;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: saturate(150%) blur(8px);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
  pointer-events: none;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  min-height: 68px;
}

.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark { width: 38px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand__sub {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--rose);
}

/* The drawer (#site-nav, z-index 60) is a CHILD of .header, so raising
   .header's own z-index cannot lift this button above it — the stacking has
   to be resolved inside the header's own context. 80 clears the drawer so
   the bars can animate into a close X and stay tappable; the lightbox (100)
   still paints over everything. */
.nav-toggle {
  position: relative;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .4rem .6rem;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 4px; width: 20px; }
.nav-toggle__bars i {
  display: block; height: 2px; background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Drawer navigation (phones and small tablets) */
.nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(88vw, 380px);
  padding: 88px 24px 40px;
  background: var(--white);
  border-left: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  /* Off-canvas links stay in the tab order unless the drawer is actually
     hidden, so a keyboard or screen-reader user tabs from the header straight
     into an invisible menu. visibility is delayed to the end of the slide-out
     so the animation is still visible. */
  visibility: hidden;
  transition: transform .28s ease, visibility 0s linear .28s;
  z-index: 60;
}
.nav.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .28s ease, visibility 0s linear 0s;
}

.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; border-bottom: 1px solid var(--line); }
.nav__link {
  display: block;
  padding: .9rem 2.6rem .9rem 0;
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--ink);
}
.nav__link.is-active { color: var(--rose); }

.nav__expand {
  position: absolute;
  top: 4px; right: 0;
  width: 44px; height: 48px;
  display: grid; place-items: center;
  border: 0; background: none;
  color: var(--ink-faint);
  cursor: pointer;
}
.nav__expand svg { transition: transform .2s ease; }
.nav__expand[aria-expanded="true"] svg { transform: rotate(180deg); }

.submenu {
  display: none;
  list-style: none;
  margin: 0 0 .8rem;
  padding: 0 0 0 .1rem;
}
.submenu.is-open { display: block; }
.submenu a {
  display: block;
  padding: .5rem 0;
  font-size: .92rem;
  color: var(--ink-soft);
}
.submenu a:hover, .submenu a.is-active { color: var(--rose); }

.nav__cta { display: grid; gap: .6rem; margin-top: 1.6rem; }

.navsearch { display: flex; gap: .4rem; margin: 1rem 0 .2rem; }
.navsearch input {
  flex: 1;
  min-height: 44px;
  padding: .5rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: .9rem;
  background: var(--cream);
}
.navsearch button {
  min-width: 44px;
  border: 1px solid var(--maroon);
  border-radius: var(--radius);
  background: var(--maroon);
  color: #fff;
  cursor: pointer;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(41,25,26,.45);
  z-index: 55;
}
body.nav-open { overflow: hidden; }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 74vh;
  padding-block: 3rem 2.6rem;
  background: var(--maroon-deep);
  color: #f1e2dc;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 28%;   /* keep faces in frame when the crop is wide */
  opacity: .38;
}
.hero__bg-wrap { position: absolute; inset: 0; }
.hero__bg-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(51,25,28,.55) 0%, rgba(51,25,28,.72) 55%, rgba(51,25,28,.95) 100%);
}
.hero__inner { position: relative; z-index: 2; }
.hero .creed { color: var(--rose-light); }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: .5rem; }
.hero__lede {
  max-width: 46ch;
  font-size: 1.02rem;
  color: #e2cdc6;
  margin-bottom: 1.6rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 2.4rem;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.14);
}
.hero__fact { background: var(--maroon-deep); padding: .9rem 1rem; }
.hero__fact dt {
  font-size: .64rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--rose-light); margin-bottom: .25rem;
}
.hero__fact dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  color: #fff;
}

/* ---------------------------------------------------------------- pagehead */

.pagehead {
  position: relative;
  padding-block: 2.6rem 2.2rem;
  background: var(--cream-warm);
  border-bottom: 1px solid var(--line);
}
.pagehead--image { background: var(--maroon-deep); border-bottom: 0; }
.pagehead--image .pagehead__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
  opacity: .3;
}
.pagehead--image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(51,25,28,.5), rgba(51,25,28,.88));
}
.pagehead--image .pagehead__inner { position: relative; z-index: 2; }
.pagehead--image h1 { color: #fff; }
.pagehead--image .pagehead__sub { color: #e2cdc6; }
.pagehead--image .breadcrumbs, .pagehead--image .breadcrumbs a { color: #cbb2ab; }
.pagehead h1 { margin-bottom: .35rem; }
.pagehead__sub { max-width: 52ch; margin: 0; color: var(--ink-soft); }

.breadcrumbs {
  margin: 0 0 .9rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  font-size: .78rem;
  color: var(--ink-faint);
}
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; opacity: .5; }
.breadcrumbs a { color: var(--ink-faint); }
.breadcrumbs a:hover { color: var(--rose); }

/* ---------------------------------------------------------------- cards */

.grid { display: grid; gap: 1.2rem; }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 3 / 2; background: var(--cream-warm); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { flex: 1; display: flex; flex-direction: column; padding: 1.15rem 1.2rem 1.3rem; }
.card__title { font-size: 1.15rem; margin-bottom: .45rem; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--rose); text-decoration: none; }
.card__text { font-size: .92rem; margin-bottom: 1rem; }
.card__foot { margin-top: auto; }
.card__meta {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: .5rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--rose);
}

/* Course card carries its numbers as a small data strip */
.coursecard__stats {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.1rem;
  margin-bottom: .9rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--ink-faint);
}
.coursecard__stats b { display: block; color: var(--ink); font-size: .92rem; font-weight: 600; }

/* ---------------------------------------------------------------- people */

.people { display: grid; gap: 1.4rem; grid-template-columns: repeat(2, 1fr); }
.person { text-align: left; }
.person__photo {
  aspect-ratio: 3 / 4;
  margin-bottom: .7rem;
  background: var(--cream-warm);
  border-radius: var(--radius);
  overflow: hidden;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.person__name { font-size: 1rem; margin-bottom: .1rem; }
.person__name a { color: var(--ink); }
.person__role {
  margin: 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rose);
}
.person__bio { margin-top: .5rem; font-size: .88rem; }

.founder {
  display: grid;
  gap: 1.4rem;
  padding-bottom: 2.6rem;
  margin-bottom: 2.6rem;
  border-bottom: 1px solid var(--line);
}
.founder:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.founder__photo { border-radius: var(--radius); overflow: hidden; background: var(--cream-warm); }

/* ---------------------------------------------------------------- beliefs */

.beliefs { counter-reset: belief; display: grid; gap: 1.1rem; }
.belief {
  position: relative;
  padding: 1.2rem 1.2rem 1.2rem 3.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.belief::before {
  counter-increment: belief;
  content: counter(belief, decimal-leading-zero);
  position: absolute;
  left: 1.1rem; top: 1.25rem;
  font-family: var(--display);
  font-size: .82rem;
  font-weight: 700;
  color: var(--rose);
}
.belief h2 { font-size: 1.05rem; margin-bottom: .4rem; }
.belief p { font-size: .93rem; margin-bottom: .5rem; }
.belief__ref {
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--ink-faint);
  font-style: italic;
}

/* ---------------------------------------------------------------- gallery */

.gallery-grid { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); }
.gallery-grid a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-warm);
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-grid a:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(24,12,13,.94);
}
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__caption { margin-top: .8rem; color: #cbb2ab; font-size: .85rem; text-align: center; }
.lightbox__btn {
  position: absolute;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev  { left: .6rem;  top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: .6rem; top: 50%; transform: translateY(-50%); }

/* ---------------------------------------------------------------- forms */

.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.field .hint { font-size: .8rem; color: var(--ink-faint); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  font-size: 1rem;           /* 16px stops iOS Safari zooming on focus */
  color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--rose);
  outline-offset: 1px;
  border-color: var(--rose);
}
.field--error input, .field--error textarea, .field--error select { border-color: #b23c3c; }
.field__error { font-size: .82rem; color: #b23c3c; }
.hp { position: absolute; left: -9999px; }

.notice {
  margin: 1.2rem 0;
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  border-left: 3px solid;
  font-size: .93rem;
}
.notice--success { background: #f0f7f1; border-color: #4a7c53; color: #2c4d32; }
.notice--error   { background: #fdf2f2; border-color: #b23c3c; color: #8a2f2f; }
.notice--info    { background: var(--cream-warm); border-color: var(--rose); color: var(--ink); }

/* ---------------------------------------------------------------- misc */

.factlist {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.factlist > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
.factlist dt { color: var(--ink-faint); }
.factlist dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.checklist li {
  position: relative;
  padding-left: 1.6rem;
  font-size: .94rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .55rem;
  width: 7px; height: 7px;
  background: var(--rose);
  transform: rotate(45deg);
}

.pills { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 1.6rem; padding: 0; }
.pills a {
  display: inline-block;
  padding: .45rem .9rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .82rem;
  color: var(--ink-soft);
}
.pills a:hover, .pills a.is-active {
  background: var(--maroon); border-color: var(--maroon); color: #fff; text-decoration: none;
}

.pagination { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2.4rem; list-style: none; padding: 0; }
.pagination a, .pagination span {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 .6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--ink-soft);
}
.pagination .is-current { background: var(--maroon); border-color: var(--maroon); color: #fff; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  font-family: var(--display);
  font-size: 1.02rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rose); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 1.1rem; font-size: .94rem; }

.callout {
  padding: 1.6rem 1.4rem;
  background: var(--peach);
  border-radius: var(--radius);
}
.callout h2 { font-size: 1.3rem; }

.bankcard {
  padding: 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.bankcard dl { margin: 0; }

.verse {
  font-family: var(--display);
  font-size: clamp(1.15rem, 3.4vw, 1.6rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 .6rem;
}
.verse__ref {
  font-size: .72rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--rose);
}

.videoframe {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--maroon-deep);
  border-radius: var(--radius);
  overflow: hidden;
}
.videoframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.emptystate {
  padding: 2.4rem 1.4rem;
  text-align: center;
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ---------------------------------------------------------------- footer */

.footer {
  padding-block: 3rem 1.6rem;
  background: var(--maroon-deep);
  color: #bda49e;
  font-size: .92rem;
}
.footer__grid { display: grid; gap: 2rem; }
.footer__heading {
  margin-bottom: .9rem;
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer a { color: #bda49e; }
.footer a:hover { color: #fff; }
.footer__brand img { margin-bottom: 1rem; }
.footer__creed {
  display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 .8rem;
  font-size: .66rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--rose-light);
}
.footer__creed span { position: relative; }
.footer__creed span + span::before {
  content: ""; position: absolute; left: -.42rem; top: 50%;
  width: 3px; height: 3px; margin-top: -1.5px;
  background: currentColor; transform: rotate(45deg);
}
.footer__blurb { font-size: .88rem; max-width: 38ch; }
.footer address { font-style: normal; margin-bottom: .8rem; max-width: 30ch; }
.footer__times { font-size: .86rem; }
.footer__times strong { color: #fff; }
.footer__social { margin-top: 1.1rem; }

.footer__bottom {
  display: grid;
  gap: .6rem;
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .8rem;
}
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0; padding: 0; }

/* ==========================================================================
   Breakpoints — everything above is the phone layout.
   ========================================================================== */

@media (min-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__facts { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__bottom { display: flex; align-items: center; justify-content: space-between; }
}

@media (min-width: 760px) {
  :root { --gutter: 32px; --section-y: 76px; }
  .topbar__contact { display: flex; }
  .topbar__inner { justify-content: space-between; }
  .people { grid-template-columns: repeat(3, 1fr); }
  .founder { grid-template-columns: 300px 1fr; gap: 2.2rem; align-items: start; }
  .beliefs { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  :root { --section-y: 96px; }

  .nav-toggle { display: none; }
  .nav-scrim  { display: none !important; }

  /* Nav returns to a horizontal bar with hover dropdowns */
  .nav {
    position: static;
    width: auto;
    padding: 0;
    background: none;
    border: 0;
    overflow: visible;
    transform: none;
    visibility: visible;
    transition: none;
    display: flex;
    align-items: center;
    gap: 1.4rem;
  }
  .nav__list { display: flex; align-items: stretch; gap: .1rem; }
  .nav__item { display: flex; align-items: center; }
  .nav__item { border: 0; }
  .nav__link {
    padding: 1.4rem .55rem;
    font-family: var(--body);
    font-size: .88rem;
    font-weight: 500;
    white-space: nowrap;      /* keep the label and its arrow on one line */
  }
  .nav__link.is-active { color: var(--rose); }
  .nav__expand { display: none; }

  .has-children > .nav__link::after {
    content: "";
    display: inline-block;
    width: 5px; height: 5px;
    margin-left: .4rem;
    border-right: 1.4px solid currentColor;
    border-bottom: 1.4px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: .55;
  }

  .submenu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    margin: 0;
    padding: .5rem 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
  }
  .nav__item:hover > .submenu,
  .nav__item:focus-within > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .submenu a { padding: .5rem 1.1rem; font-size: .88rem; white-space: nowrap; }
  .submenu li:first-child a { padding-top: .7rem; }
  .submenu li:last-child  a { padding-bottom: .7rem; }
  .submenu a:hover { background: var(--cream); text-decoration: none; }

  /* Below 1280 the search box pushed the menu into two lines, so it only
     appears once there is room for it; the drawer still has one. */
  .nav__item--search { display: none; }
  .navsearch { margin: 0; }
  .navsearch input { width: 130px; min-height: 38px; transition: width .2s ease; }
  .navsearch input:focus { width: 180px; }
  .navsearch button { min-width: 38px; min-height: 38px; }
  .nav__cta { display: flex; gap: .5rem; margin: 0; }
  .nav__cta .btn { white-space: nowrap; }

  .brand__mark { width: 44px; }
  .brand__name { font-size: 1.12rem; }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .people  { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.6rem; }

  .hero { min-height: 82vh; }
  .hero__lede { font-size: 1.1rem; }

  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.4rem; align-items: center; }
  .split--sidebar { grid-template-columns: 1fr 340px; align-items: start; gap: 3rem; }
  .sticky { position: sticky; top: 100px; }
}

/* ---------------------------------------------------------------- print */

@media print {
  .topbar, .header, .footer, .nav, .btn, .breadcrumbs { display: none !important; }
  body { color: #000; font-size: 12pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

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

@media (min-width: 1280px) {
  /* Enough room now for the inline search and roomier menu spacing. */
  .nav__item--search { display: block; margin-left: .4rem; }
  .nav__link { padding-inline: .75rem; }
  .nav { gap: 1.6rem; }
}


/* ------------------------------------------------------------- social */

.social {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  list-style: none; margin: 0; padding: 0;
}
.social a {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  color: #e0cec9;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.social a:hover { background: var(--rose); border-color: var(--rose); color: #fff; }
.social svg { width: 17px; height: 17px; fill: currentColor; }

.topbar__social { display: none; gap: .7rem; }
.topbar__social a { color: #cbb2ab; display: inline-grid; place-items: center; }
.topbar__social svg { width: 15px; height: 15px; fill: currentColor; }
.topbar__social a:hover { color: #fff; }

@media (min-width: 760px) {
  .topbar__social { display: flex; }
}

/* ========================================================== chat widget */

.cw { position: fixed; right: 16px; bottom: 16px; z-index: 90; font-family: var(--body); }

.cw__launch {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 50px; padding: .7rem 1.2rem;
  border: 0; border-radius: 100px;
  background: var(--maroon); color: #fff;
  font: inherit; font-size: .92rem; font-weight: 600;
  box-shadow: 0 6px 22px rgba(41,25,26,.32);
  cursor: pointer;
}
.cw__launch:hover { background: var(--maroon-deep); }
.cw__dot {
  min-width: 19px; padding: 0 5px; border-radius: 10px;
  background: #d9534f; font-size: .72rem; line-height: 19px; text-align: center;
}

.cw__panel {
  position: absolute; right: 0; bottom: 62px;
  display: flex; flex-direction: column;
  width: min(92vw, 355px); height: min(70vh, 520px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 44px rgba(41,25,26,.28);
  overflow: hidden;
}
.cw__head {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .8rem 1rem; background: var(--maroon); color: #fff;
}
.cw__head strong { display: block; font-size: .95rem; }
.cw__status { font-size: .76rem; color: #e0cec9; }
.cw__close { border: 0; background: none; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 .2rem; }

.cw__body { flex: 1; overflow-y: auto; padding: .9rem; background: var(--cream); }
.cw__greet { margin: 0 0 .9rem; font-size: .92rem; color: var(--ink); }
.cw__intro label { display: block; margin-bottom: .25rem; font-size: .78rem; font-weight: 600; color: var(--ink); }
.cw__intro label span { font-weight: 400; color: var(--ink-faint); }
.cw__intro input {
  width: 100%; min-height: 42px; margin-bottom: .7rem; padding: .5rem .7rem;
  border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 16px;
}
.cw__btn {
  width: 100%; min-height: 44px; border: 0; border-radius: 6px;
  background: var(--maroon); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.cw__note { margin: .8rem 0 0; font-size: .8rem; color: var(--ink-faint); text-align: center; }

.cw__log { display: flex; flex-direction: column; gap: .55rem; }
.cw__msg { max-width: 85%; }
.cw__msg p {
  margin: 0; padding: .55rem .8rem; border-radius: 12px;
  background: #fff; border: 1px solid var(--line);
  font-size: .9rem; overflow-wrap: anywhere;
}
.cw__msg time { display: block; margin-top: .15rem; font-size: .68rem; color: var(--ink-faint); }
.cw__who { font-size: .7rem; font-weight: 600; color: var(--rose); }
.cw__msg--visitor { align-self: flex-end; }
.cw__msg--visitor p { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.cw__msg--visitor time { text-align: right; }
.cw__msg--system { align-self: center; max-width: 100%; }
.cw__msg--system p { background: transparent; border: 0; font-size: .76rem; color: var(--ink-faint); text-align: center; padding: .1rem; }
.cw__msg--system time { display: none; }
.cw__msg--bot p { background: var(--peach); border-color: #f4d9c6; }

.cw__compose { display: flex; gap: .4rem; padding: .6rem; border-top: 1px solid var(--line); background: #fff; }
.cw__compose textarea {
  flex: 1; resize: none; min-height: 42px; max-height: 110px; padding: .55rem .7rem;
  border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 16px;
}
.cw__send {
  width: 44px; border: 0; border-radius: 8px;
  background: var(--maroon); color: #fff; cursor: pointer;
}

@media print { .cw { display: none; } }

/* ========================================================================
   2026-08-15 UI hardening patch
   ======================================================================== */

/* The normal content wrapper is intentionally 1160px, but the desktop masthead
   contains logo + five navigation groups + search + two CTA buttons. Giving
   only the masthead a wider rail prevents the menu from colliding with the
   brand without widening article/content columns across the whole site. */
@media (min-width: 1024px) {
  .topbar > .container,
  .header > .container { max-width: 1420px; }
  .header__inner { gap: 1.15rem; }
  .brand { flex: 0 0 auto; }
  .nav { min-width: 0; margin-left: auto; gap: .8rem; }
  .nav__list { min-width: 0; }
  .nav__link { padding-inline: .48rem; }
  .nav__cta { flex: 0 0 auto; }
}
@media (min-width: 1280px) {
  .nav { gap: 1rem; }
  .nav__link { padding-inline: .62rem; }
}

/* `hidden` must always win over component display rules. The chat panel was
   being forced to display:flex by author CSS, which is why the close button
   appeared to do nothing in multiple browsers. */
.cw__panel[hidden],
.cw__intro[hidden],
.cw__log[hidden],
.cw__compose[hidden],
.cw__quick[hidden] { display: none !important; }

/* Footer list rules use a more specific selector than .social, so explicitly
   keep the icon list in a single horizontal row. */
.footer__social .social {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
}
.footer__social .social > li { display: block; }

.cw__quick {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .75rem;
  padding-top: .7rem;
  border-top: 1px solid var(--line);
}
.cw__choice {
  min-height: 36px;
  padding: .4rem .68rem;
  border: 1px solid var(--rose-light);
  border-radius: 999px;
  background: #fff;
  color: var(--maroon);
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
}
.cw__choice:hover,
.cw__choice:focus-visible { background: var(--peach); }
.cw__choice:disabled { opacity: .55; cursor: wait; }

/* Configurable WhatsApp shortcut. It is disabled until the owner enters a
   number and switches whatsapp_enabled to 1 in Admin > Settings. */
.wa-widget {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 89;
}
.wa-widget__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 48px;
  padding: .65rem .9rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 6px 22px rgba(41,25,26,.18);
  font-size: .84rem;
  font-weight: 600;
}
.wa-widget__link:hover { text-decoration: none; background: var(--cream); }
.wa-widget__link svg { width: 21px; height: 21px; }
@media (max-width: 520px) {
  .wa-widget__label { display: none; }
  .wa-widget__link { width: 48px; justify-content: center; padding-inline: 0; }
}
@media print { .wa-widget { display: none; } }

/* ========================================================================
   2026-08-15 header alignment + clean social-icons micro patch
   ======================================================================== */

/* The top-bar social renderer returns a UL. Reset browser list styling so
   Facebook / YouTube / Instagram appear as clean clickable icons, not bullets. */
.topbar__social {
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.topbar__social > li {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  line-height: 0;
}
.topbar__social a {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  text-decoration: none;
}
.topbar__social a:hover,
.topbar__social a:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.08);
  outline: none;
}

/* On the desktop masthead, give search and CTA controls the same 42px control
   height and center them on the same horizontal axis. This removes the small
   up/down stagger visible between Search, Apply and Donate. */
@media (min-width: 1024px) {
  .nav__list {
    align-items: center;
  }
  .nav__item--search {
    align-items: center;
  }
  .nav__item--search .navsearch {
    display: flex;
    align-items: center;
    height: 42px;
    margin: 0;
  }
  .nav__item--search .navsearch input,
  .nav__item--search .navsearch button {
    box-sizing: border-box;
    height: 42px;
    min-height: 42px;
    margin: 0;
  }
  .nav__cta {
    align-items: center;
  }
  .nav__cta .btn--sm {
    height: 42px;
    min-height: 42px;
  }
}

/* Student portal header CTA: keep the third button on the same axis without
   bringing back the search/menu alignment regression fixed on 15 Aug. */
@media (min-width: 1280px) and (max-width: 1450px) {
  .nav__item--search .navsearch input { width: 104px; }
  .nav__item--search .navsearch input:focus { width: 132px; }
  .nav__cta { gap: .35rem; }
  .nav__cta .btn--sm { padding-inline: .72rem; font-size: .78rem; }
  .nav__link { padding-inline: .58rem; }
}

/* 2026-08-17 chat lifecycle controls */
.cw__headacts { display:flex; align-items:center; gap:.35rem; }
.cw__end { border:1px solid rgba(255,255,255,.5); border-radius:999px; background:transparent; color:#fff; padding:.28rem .55rem; font:inherit; font-size:.68rem; cursor:pointer; }
.cw__end:hover,.cw__end:focus-visible { background:rgba(255,255,255,.12); }
.cw__end[hidden],.cw__ended[hidden] { display:none !important; }
.cw__ended { margin-top:.8rem; padding:.9rem; border:1px solid var(--line); border-radius:10px; background:#fff; text-align:center; }
.cw__ended strong { display:block; margin-bottom:.35rem; color:var(--ink); }
.cw__ended p { margin:0 0 .8rem; color:var(--ink-faint); font-size:.82rem; line-height:1.5; }


/* 2026-08-17 interactive assistant refinement */
.cw__quick {
  position: sticky;
  bottom: -.9rem;
  z-index: 2;
  margin-inline: -.9rem;
  padding: .65rem .9rem .8rem;
  background: linear-gradient(to bottom, rgba(250,247,244,.94), var(--cream) 22%);
  box-shadow: 0 -8px 18px rgba(65,35,35,.04);
}
.cw__quicklabel {
  flex: 0 0 100%;
  display: block;
  margin-bottom: .05rem;
  color: var(--ink-faint);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cw__choice--human {
  border-color: var(--maroon);
  background: var(--maroon);
  color: #fff;
}
.cw__choice--human:hover,
.cw__choice--human:focus-visible {
  background: var(--maroon-deep);
  color: #fff;
}
.cw__choice--menu {
  border-style: dashed;
}
.cw__msglink {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.cw__msg--bot .cw__msglink {
  color: var(--maroon);
}

/* Secure in-chat identity/password panel. Password values are never added to chat history. */
.cw__secure{margin:.75rem 1rem 1rem;padding:1rem;border:1px solid rgba(67,37,37,.18);border-radius:14px;background:#fff;display:grid;gap:.55rem}.cw__secure[hidden]{display:none!important}.cw__secure p{margin:0 0 .35rem;font-size:.82rem;line-height:1.45;color:var(--ink-faint)}.cw__secure label{font-size:.78rem;font-weight:700}.cw__secure input{width:100%;border:1px solid rgba(67,37,37,.28);border-radius:9px;padding:.7rem .75rem;font:inherit}.cw__secureerror{font-size:.8rem;color:#a32828}.cw__secureerror[hidden]{display:none!important}
