/*
Theme Name: LoyalTeach
Theme URI: https://loyalteach.org/
Author: LoyalTeach
Description: The 2026 LoyalTeach website design. Pairs with the LoyalTeach Yearbook plugin, which draws the yearbook and loads the pages.
Version: 1.1.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: loyalteach
*/
[hidden] { display: none !important; }

/* LoyalTeach website redesign. Prototype stylesheet. */
:root {
  --blue: #32A5DD;        /* LoyalTeach blue, taken from the yearbook slides and the logo */
  --blue-ink: #0A5F8A;    /* links and active states on white */
  --blue-soft: #EAF6FC;   /* quiet section ground */
  --blue-mid: #C9E7F6;    /* hovers and chips */
  --ink: #0B2236;         /* text, logo, borders */
  --ink-2: #3D5466;       /* secondary text */
  --ink-3: #566E80;       /* small print */
  --gold: #FFC329;        /* giving only */
  --gold-2: #F2B200;
  --paper: #FFFFFF;
  --rule: #D5E6F0;
  --on-ink: #DCE9F2;
  --shadow: 0 1px 2px rgba(11, 34, 54, .06), 0 10px 28px rgba(11, 34, 54, .10);
  --display: "Sofia Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --text: "Lexend", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --top: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-decoration-thickness: .07em; text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -.003em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding: 0; }
button { font: inherit; color: inherit; }
.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; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); box-sizing: content-box; }
.skip { position: absolute; left: 16px; top: -200px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: calc(var(--top) + 10px); color: #fff; }
[data-page][hidden] { display: none !important; }

/* ---------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; box-sizing: border-box;
  border: 2px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink);
  font: 750 1.3125rem/1 var(--display); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-gold { background: var(--gold); }
.btn-gold:hover { background: var(--gold-2); color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #1C3A52; color: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 1.1875rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled] { opacity: .4; cursor: default; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--ink);
  color: var(--ink); background: transparent; text-decoration: none; box-sizing: border-box;
}
.icon-btn:hover { background: var(--ink); color: #fff; }
.icon-btn svg { width: 22px; height: 22px; fill: currentColor; }
.ext { display: inline-block; width: .7em; height: .7em; margin-left: .3em; vertical-align: .05em; fill: none; stroke: currentColor; stroke-width: 2.4; }

/* ---------- Header */
.site-header {
  position: sticky; top: var(--top); z-index: 40;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--rule);
}
.site-header .bar { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; margin-right: auto; padding: 6px 4px 6px 0; }
.brand svg { height: 50px; width: auto; display: block; }
.mainnav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; }
.mainnav li { position: relative; }
.navlink {
  display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 14px;
  border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 700 1.3125rem/1 var(--display); letter-spacing: .01em; color: var(--ink); text-decoration: none;
}
.navlink:hover { background: var(--blue-soft); color: var(--ink); }
.navlink[aria-current="page"], .navlink.in-section { background: var(--blue-soft); box-shadow: inset 0 -3px 0 var(--blue); }
.chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.5; transition: transform .15s; }
.navlink[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: -8px; min-width: 250px; z-index: 5;
  background: #fff; border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow);
  padding: 8px; margin: 0; list-style: none;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.dropdown a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font: 700 1.25rem/1.1 var(--display); }
.dropdown a:hover { background: var(--blue-soft); }
.dropdown a[aria-current="page"] { background: var(--blue-soft); box-shadow: inset 3px 0 0 var(--blue); }
.header-donate { margin-left: 8px; }
.menu-btn { display: none; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: calc(var(--top) + var(--header-h)) 0 0 0; z-index: 39;
  background: #fff; overflow-y: auto; padding: 8px 0 calc(32px + env(safe-area-inset-bottom, 0px));
}
.mobile-menu .wrap { display: grid; gap: 20px; }
.mm-group h2 { font-size: .9375rem; font-family: var(--text); font-weight: 600; color: var(--ink-3); margin: 12px 0 2px; }
.mm-group ul { list-style: none; margin: 0; }
.mm-group a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font: 700 1.75rem/1 var(--display); }
.mm-group a[aria-current="page"] { color: var(--blue-ink); }
.mm-contact { font-size: 1rem; color: var(--ink-2); margin: 0; }
.mobile-menu .btn { width: 100%; }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .mainnav { display: none; }
  .brand svg { height: 42px; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
    border: 2px solid var(--ink); border-radius: 999px; background: #fff; cursor: pointer;
    font: 700 1.25rem/1 var(--display);
  }
  .menu-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.5; fill: none; }
  .header-donate { min-height: 44px; padding: 0 16px; font-size: 1.25rem; }
}
@media (max-width: 380px) {
  .brand svg { height: 36px; }
  .header-donate { padding: 0 12px; }
  .menu-btn { padding: 0 10px; }
  .menu-btn .label { display: none; }
}

/* ---------- Bands and shared layout */
.band { padding-block: clamp(56px, 8vw, 112px); }
.band-sky { background: var(--blue-soft); }
.band-tight { padding-block: clamp(40px, 6vw, 72px); }
.h2 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); }
.h3 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.lead { font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.55; color: var(--ink); }
.measure { max-width: 66ch; }
.photo { border-radius: 12px; overflow: hidden; background: var(--blue-soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
figure { margin: 0; }
.qicon { display: block; width: 44px; height: 33px; fill: var(--blue); margin-bottom: 14px; }

/* ---------- Home hero */
.hero { background: var(--blue); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(36px, 6vw, 84px); }
.hero h1 { margin: 0; line-height: 0; color: var(--ink); }
.hero h1 svg { width: min(100%, 520px); height: auto; }
.hero .tagline { margin: 12px 0 0; line-height: 0; color: var(--ink); }
.hero .tagline svg { width: min(100%, 525px); height: auto; }
.mission { margin-top: clamp(28px, 4vw, 44px); max-width: 40ch; }
.mission h2 { font-size: 1.5rem; margin-bottom: 8px; }
.mission p { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.55; margin: 0; }
.hero .actions { display: flex; align-items: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: 36px; }
.tile {
  position: relative; display: block; width: 100%; padding: 7px 7px 0; margin: 0; box-sizing: border-box;
  border: 0; border-radius: 6px; background: #fff; text-align: left; cursor: pointer; color: var(--ink);
  box-shadow: 0 14px 30px rgba(11, 34, 54, .22);
}
.tile:nth-child(3n+2) { transform: translateY(36px); }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; background: var(--blue-soft); }
.tile .tn { display: block; padding: 9px 2px 11px; font: 700 1.0625rem/1.05 var(--display); }
.tile .ts { display: block; font: 400 .8125rem/1.3 var(--text); color: var(--ink-3); margin-top: 3px; }
.tile:hover .tn { text-decoration: underline; text-underline-offset: 3px; }
.mosaic-cap { margin: 8px 0 0; font-weight: 600; color: var(--ink); }
.mosaic-cap a { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .tile { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .tile:nth-child(2) { animation-delay: .06s; } .tile:nth-child(3) { animation-delay: .12s; }
  .tile:nth-child(4) { animation-delay: .18s; } .tile:nth-child(5) { animation-delay: .24s; } .tile:nth-child(6) { animation-delay: .3s; }
}
@keyframes rise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Problem, Solution, Impact */
.pso { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.pso-photo { position: sticky; top: calc(var(--top) + var(--header-h) + 24px); }
.pso-photo img { border-radius: 12px; }
.pso-item { padding: 28px 0 32px; border-top: 3px solid var(--ink); }
.pso-item:first-child { padding-top: 22px; }
.pso-item h3 { font-size: clamp(2.25rem, 3.4vw, 3rem); margin-bottom: 12px; }
.pso-item p { font-size: 1.125rem; max-width: 52ch; }

/* ---------- News and admissions */
.news { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.news-head { position: sticky; top: calc(var(--top) + var(--header-h) + 24px); }
.news-head .h2 { margin-bottom: 18px; }
.news-head .photo { margin: 28px 0 24px; }
.tally { font: 750 clamp(2rem, 3.4vw, 2.75rem)/1 var(--display); margin: 22px 0 0; }
.admits { display: grid; gap: 34px; }
.admit-group h3 { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; font-size: 1.875rem; padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.admit-group h3 small { font: 600 1rem/1 var(--text); color: var(--ink-2); }
.admit-list { list-style: none; margin: 0; columns: 2; column-gap: 36px; }
.admit-list li { break-inside: avoid; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 1rem; line-height: 1.3; }
.dots { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; flex: none; max-width: 80px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-ink); }
.dots-key { display: flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--ink-2); margin: 0; }
.dots-key i { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-ink); display: inline-block; }

/* ---------- Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-list { list-style: none; margin: 24px 0 0; display: grid; gap: 18px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list .k { font-size: .9375rem; color: var(--ink-3); }
.contact-list .v { font: 700 1.5rem/1.2 var(--display); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a.v:hover { text-decoration: underline; }
.form { display: grid; gap: 18px; background: #fff; box-shadow: var(--shadow); padding: clamp(20px, 3vw, 36px); border-radius: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 1.0625rem; padding: 12px 14px;
  border: 2px solid #8FA9BA; border-radius: 10px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--ink); }
.form-status { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--blue-soft); border-left: 4px solid var(--blue); font-size: 1rem; }

/* ---------- Give band and footer */
.give { background: var(--blue); }
.give-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: center; gap: clamp(28px, 5vw, 72px); padding-block: clamp(48px, 7vw, 88px); }
.give-grid.solo { grid-template-columns: minmax(0, 1fr); }
.give blockquote { margin: 0; }
.give blockquote p { font: 750 clamp(1.875rem, 3.6vw, 3rem)/1.06 var(--display); margin: 0; max-width: 24ch; }
.give blockquote p.long { font-size: clamp(1.625rem, 2.9vw, 2.375rem); max-width: 30ch; }
.give-grid.solo blockquote p { max-width: 30ch; }
.give cite { display: block; font: 400 1rem/1.45 var(--text); font-style: normal; margin-top: 16px; max-width: 46ch; }
.give-card { background: #fff; border: 2px solid var(--ink); border-radius: 18px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 14px; justify-items: start; }
.give-card h2 { font-size: clamp(2.25rem, 3.4vw, 3rem); }
.give-card p { margin: 0; font-size: 1rem; color: var(--ink-2); }
.site-footer { background: var(--ink); color: var(--on-ink); padding-block: 64px 36px; font-size: 1rem; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: minmax(150px, 1.1fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-logo svg { width: 150px; height: auto; color: #fff; display: block; }
.foot-col h2 { font: 700 1.375rem/1 var(--display); color: #fff; margin-bottom: 14px; }
.foot-col ul { list-style: none; margin: 0; display: grid; gap: 8px; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { text-decoration: underline; }
.foot-col address { font-style: normal; line-height: 1.6; }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; font-size: .9375rem; }
.preview-flag { color: #A9C4D6; }

/* ---------- Inner page header */
.ph { padding-block: clamp(28px, 4vw, 56px) clamp(36px, 5vw, 72px); }
.ph-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.ph-grid.no-photo { grid-template-columns: minmax(0, 1fr); }
.ph h1 { font-size: clamp(3rem, 7.4vw, 6rem); line-height: .92; letter-spacing: -.01em; }
.ph .lead { margin: 22px 0 0; max-width: 46ch; }
.ph-grid.no-photo .lead { max-width: 60ch; font-size: clamp(1.25rem, 2vw, 1.625rem); }
.ph .photo { aspect-ratio: 3 / 2; }
.ph-compact .ph-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.ph-compact .photo { aspect-ratio: 4 / 3; }
.subnav { display: flex; gap: 6px; margin: 0 0 26px; list-style: none; flex-wrap: wrap; }
.subnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; white-space: nowrap; border-radius: 999px; background: var(--blue-soft); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.subnav a:hover { background: var(--blue-mid); }
.subnav a[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- The Challenge */
.gaps { list-style: none; margin: 0; display: grid; }
.gap { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: clamp(16px, 4vw, 48px); padding-block: 36px; border-top: 3px solid var(--ink); }
.gap-n { font: 800 clamp(4rem, 9vw, 7rem)/.8 var(--display); color: var(--blue); }
.gap h3 { font-size: clamp(2rem, 3.4vw, 2.75rem); margin-bottom: 14px; }
.gap p { max-width: 64ch; font-size: 1.125rem; }
.pull { font: 800 clamp(2.25rem, 5.4vw, 4.5rem)/1 var(--display); max-width: 20ch; margin: 0; }
.intro-gaps { font-size: clamp(1.75rem, 2.8vw, 2.25rem); line-height: 1.12; margin: 0 0 28px; max-width: 34ch; }

/* ---------- Our Impact */
.bars { display: grid; gap: 18px; margin-top: 26px; max-width: 520px; }
.bar-row { display: grid; gap: 6px; }
.bar-row .bl { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; font-size: 1rem; }
.bar-row .bl b { font: 800 2rem/1 var(--display); }
.bar-track { height: 22px; background: #E3EEF4; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; width: var(--v); background: var(--blue-ink); border-radius: 4px; }
.bar-fill.alt { background: #7E97A8; }
.bar-axis { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--ink-3); }
.awards { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.awards-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.awards-photos .photo { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.awards-photos .photo:nth-child(2) { transform: translateY(32px); }
.awards p { font-size: 1.125rem; }
.schools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.schools h3 { font-size: 1.875rem; padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.school-list { list-style: none; margin: 0; columns: 2; column-gap: 28px; }
.school-list li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 1rem; line-height: 1.3; }

/* ---------- Yearbook */
.yb-tools {
  position: sticky; top: calc(var(--top) + var(--header-h)); z-index: 6;
  background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--rule);
  margin-top: 24px; padding-block: 12px;
}
.yb-tools .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--blue-soft); }
.seg button { min-height: 40px; min-width: 44px; padding: 0 15px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font: 750 1.1875rem/1 var(--display); color: var(--ink); }
.seg button:hover { background: var(--blue-mid); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.search { position: relative; flex: 1 1 220px; max-width: 360px; margin-left: auto; }
.search input {
  width: 100%; box-sizing: border-box; min-height: 46px; padding: 0 14px 0 42px; font: inherit; font-size: 1rem;
  border: 2px solid #8FA9BA; border-radius: 999px; background: #fff; color: var(--ink);
}
.search input:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--ink); }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 2.4; pointer-events: none; }
.yb-status { margin: 16px 0 0; font-weight: 600; min-height: 1.6em; }
.yb-empty { padding: 28px 32px; background: var(--blue-soft); border-radius: 14px; margin-top: 16px; }
.yb-year { padding-top: 40px; }
.yb-takedown { margin: 56px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); font-size: .9375rem; color: var(--ink-3); }
.yb-year-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; border-bottom: 3px solid var(--ink); padding-bottom: 12px; }
.yb-year-head .yr { font-size: clamp(3rem, 7vw, 5.25rem); line-height: .85; }
.yb-year-head .yt { margin: 0; font: 700 clamp(1.25rem, 2vw, 1.625rem)/1.1 var(--display); color: var(--ink-2); }
.yb-group { padding-top: 30px; }
.yb-group > h4 { font-size: clamp(1.625rem, 2.4vw, 2rem); margin-bottom: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.yb-group > h4 small { font: 600 1rem/1 var(--text); color: var(--ink-3); }
.yb-grid { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 30px 20px; }
.yb-open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); border-radius: 8px; }
.yb-open img, .yb-ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; background: var(--blue-soft); display: block; }
.yb-ph { position: relative; background: var(--blue); overflow: hidden; }
.yb-ph svg { position: absolute; left: 8%; right: 8%; bottom: 0; width: 84%; height: auto; color: var(--ink); opacity: .9; }
.yb-ph em { position: absolute; left: 10px; top: 9px; font: 600 .8125rem/1.2 var(--text); font-style: normal; color: var(--ink); }
.yb-name { display: block; margin-top: 11px; font: 750 1.4375rem/1.02 var(--display); }
.yb-name .star { color: var(--blue-ink); }
.yb-school { display: block; margin-top: 5px; font-size: .9375rem; line-height: 1.35; }
.yb-town { display: block; font-size: .875rem; line-height: 1.35; color: var(--ink-3); }
.yb-open:hover .yb-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.yb-yearpill { display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: 999px; background: var(--blue-soft); font-size: .8125rem; font-weight: 600; }
.yb-foot { margin: 22px 0 0; font-size: .9375rem; color: var(--ink-2); max-width: 70ch; }

/* Yearbook dialog */
.ybd { padding: 0; border: 0; border-radius: 18px; width: min(1120px, calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 40px); overflow: hidden; background: #fff; color: var(--ink); box-shadow: 0 30px 90px rgba(0, 0, 0, .4); }
.ybd::backdrop { background: rgba(8, 24, 38, .78); }
.ybd-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); height: min(780px, calc(100dvh - 40px)); }
.ybd-photo { background: var(--ink); display: flex; align-items: center; justify-content: center; min-height: 0; position: relative; }
.ybd-photo img { width: 100%; height: 100%; object-fit: contain; }
.ybd-photo .yb-ph { position: absolute; inset: 0; width: auto; height: auto; aspect-ratio: auto; border-radius: 0; }
.ybd-photo .yb-ph svg { left: 12%; width: 76%; }
.ybd-main { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.ybd-body { overflow-y: auto; padding: 44px 44px 24px; overscroll-behavior: contain; }
.ybd-kicker { margin: 0 0 10px; font-weight: 600; color: var(--ink-2); font-size: .9375rem; padding-right: 48px; }
.ybd-name { font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: .98; padding-right: 48px; }
.ybd-details { list-style: none; margin: 16px 0 18px; display: grid; gap: 2px; font-weight: 600; font-size: 1.0625rem; }
.ybd-details li:first-child { font-weight: 400; color: var(--ink-2); }
.ybd-served { display: inline-block; margin: 0 0 22px; padding: 6px 14px; border-radius: 999px; background: var(--blue-soft); font-size: .9375rem; font-weight: 600; }
.ybd-story p { font-size: 1.0625rem; line-height: 1.7; }
.ybd-foot { font-size: .9375rem; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 14px; }
.ybd-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 44px 18px; border-top: 1px solid var(--rule); background: #fff; }
.ybd-count { font-size: .9375rem; color: var(--ink-2); font-weight: 600; text-align: center; }
.ybd-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.ybd-close svg, .ybd-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.ybd-close:hover { background: var(--ink); color: #fff; }

/* ---------- Team */
.team-lead { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.pavatar { display: block; position: relative; width: 112px; height: 112px; border-radius: 50%; overflow: hidden; background: var(--blue); }
.pavatar svg { position: absolute; left: 14%; bottom: 0; width: 72%; height: auto; color: var(--ink); }
.person { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 22px; align-items: start; align-content: start; }
.person img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: var(--blue-soft); }
.person.big { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.person.big img, .person.big .pavatar { width: 150px; height: 150px; }
.person h3 { font-size: 1.875rem; }
.person.big h3 { font-size: clamp(2.25rem, 3.4vw, 2.75rem); }
.person .role { margin: 4px 0 12px; font-weight: 600; color: var(--blue-ink); }
.person p.bio { font-size: 1rem; line-height: 1.65; margin: 0; }
.person .yb-links { margin: 12px 0 0; font-size: .9375rem; }
.team-group { padding-top: clamp(48px, 6vw, 80px); }
.team-group > h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); padding-bottom: 12px; border-bottom: 3px solid var(--ink); margin-bottom: 32px; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px clamp(28px, 5vw, 64px); }

/* ---------- Testimonials and quotes */
.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.feature .photo { aspect-ratio: 3 / 4; }
.feature blockquote { margin: 0; }
.feature blockquote p { font-size: 1.125rem; }
.feature .pull { margin-bottom: 28px; }
.who { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-weight: 600; font-size: 1rem; line-height: 1.4; }
.who img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; flex: none; }
.who span { display: block; font-weight: 400; font-size: .9375rem; margin-top: 2px; }
.quotes { columns: 2 360px; column-gap: clamp(32px, 5vw, 72px); }
.quote { break-inside: avoid; margin: 0 0 56px; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: 1.1875rem; line-height: 1.6; }
.testi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); }

/* ---------- Supporters */
.donors { list-style: none; margin: 0; columns: 4 210px; column-gap: 32px; }
.donors li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 1rem; line-height: 1.35; }
.donors-org li { font-weight: 600; }
.matching { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 16px 0 0; }
.matching li { padding: 10px 18px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 600; background: #fff; }

/* ---------- Services */
.svc { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 64px); }
.svc li { position: relative; padding: 20px 0 20px 40px; border-top: 1px solid var(--rule); font-size: 1.1875rem; line-height: 1.4; }
.svc li::before { content: ""; position: absolute; left: 0; top: 24px; width: 18px; height: 18px; border-radius: 5px; background: var(--blue); box-shadow: inset 0 0 0 2px var(--ink); }
.grants { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.grants ul.covers { margin: 0 0 28px; padding-left: 1.2em; display: grid; gap: 10px; }
.facts { margin: 0; display: grid; background: #fff; border-radius: 16px; padding: 8px 26px; }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font: 750 1.375rem/1.1 var(--display); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 1rem; }

/* ---------- How it works */
.how { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.chart { background: var(--blue-soft); border-radius: 18px; padding: clamp(20px, 3vw, 32px); }
.chart h2 { font-size: 1.75rem; margin-bottom: 18px; }
.chart + .chart { margin-top: 20px; }
.price-row { display: grid; gap: 8px; margin-bottom: 20px; }
.price-row:last-of-type { margin-bottom: 4px; }
.price-row .pl { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 1rem; }
.price-row .pl b { font: 800 1.75rem/1 var(--display); white-space: nowrap; }
.price-track { height: 26px; border-radius: 5px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; }
.price-fill { height: 100%; width: var(--v); min-width: 6px; background: var(--ink); border-radius: 5px; }
.price-fill.lt { background: var(--blue-ink); }
.hours { display: flex; border-radius: 8px; overflow: hidden; border: 2px solid var(--ink); }
.hours > div { padding: 14px 16px; font-size: .9375rem; line-height: 1.35; }
.hours .paid { flex: 0 0 34%; background: #fff; border-right: 2px solid var(--ink); }
.hours .free { flex: 1; background: var(--blue); }
.hours b { display: block; font: 800 1.5rem/1 var(--display); margin-bottom: 6px; }
.how-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Resources */
.res-tools { position: sticky; top: calc(var(--top) + var(--header-h)); z-index: 6; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--rule); padding-block: 12px; }
.res-tools .wrap { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--rule); background: #fff; cursor: pointer; font-weight: 600; font-size: .9375rem; color: var(--ink); }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips button span { font-weight: 400; opacity: .8; margin-left: 6px; }
.res-tools .search { margin-left: 0; max-width: 420px; flex: 1 1 260px; }
.res-cat { padding-top: 48px; }
.res-cat > h2 { font-size: clamp(1.875rem, 3vw, 2.5rem); padding-bottom: 12px; border-bottom: 3px solid var(--ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.res-cat > h2 small { font: 600 1rem/1 var(--text); color: var(--ink-3); }
.res-list { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 64px); }
.res { padding: 20px 0 22px; border-bottom: 1px solid var(--rule); }
.res a { color: var(--ink); text-decoration: none; display: inline-block; }
.res .rn { font: 750 1.5rem/1.1 var(--display); }
.res a:hover .rn { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.res .rd { display: block; font-size: .875rem; color: var(--ink-3); margin-top: 4px; overflow-wrap: anywhere; }
.res p { margin: 8px 0 0; font-size: 1rem; line-height: 1.55; color: var(--ink-2); }
.tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 6px; font: 600 .75rem/1.5 var(--text); letter-spacing: .02em; vertical-align: 3px; background: var(--blue-soft); color: var(--ink); }

/* ---------- Donate */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.way { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3vw, 32px); border: 2px solid var(--ink); border-radius: 18px; background: #fff; }
.way.primary { background: var(--blue); }
.way h2 { font-size: clamp(1.875rem, 2.8vw, 2.375rem); }
.way p { margin: 0; }
.way .btn { margin-top: auto; align-self: flex-start; }
.way address { font-style: normal; font: 750 1.5rem/1.2 var(--display); padding: 14px 16px; background: var(--blue-soft); border-radius: 12px; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; }
.copy-val { font: 800 1.75rem/1 var(--display); letter-spacing: .02em; }
.copy-btn { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; cursor: pointer; font-weight: 600; font-size: .9375rem; color: var(--ink); }
.copy-btn:hover { background: var(--ink); color: #fff; }
.note { font-size: .9375rem; color: var(--ink); }

/* ---------- Responsive */
@media (max-width: 1080px) {
  .gap { grid-template-columns: 80px minmax(0, 1fr); }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .team-lead { grid-template-columns: minmax(0, 1fr); }
  .person.big { grid-template-columns: 150px minmax(0, 1fr); gap: 22px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .give-grid, .hero-grid, .pso, .news, .contact, .ph-grid, .ph-compact .ph-grid, .awards, .schools, .feature, .grants, .how, .testi, .team-lead { grid-template-columns: minmax(0, 1fr); }
  .pso-photo, .news-head { position: static; }
  .hero-grid { gap: 28px; padding-bottom: 28px; }
  .mosaic { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 22px; scrollbar-width: none; }
  .mosaic::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 min(42%, 200px); scroll-snap-align: start; }
  .tile:nth-child(3n+2) { transform: none; }
  .ph .photo { order: -1; }
  .ph-compact .photo { aspect-ratio: 16 / 9; }
  .team-grid, .res-list, .svc { grid-template-columns: minmax(0, 1fr); }
  .awards-photos .photo:nth-child(2) { transform: none; }
  .ybd { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; }
  .ybd-inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: 100dvh; }
  .ybd-photo { height: 40dvh; }
  .ybd-photo img { max-height: 40dvh; }
  .ybd-body { padding: 22px 20px 16px; }
  .ybd-nav { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .ybd-close { top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; }
  .search { max-width: none; margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .admit-list, .school-list { columns: 1; }
  .admit-group h3 { font-size: 1.625rem; }
  .yb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .yb-name { font-size: 1.25rem; }
  .yb-tools { position: static; }
  .gap { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .person, .person.big { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; }
  .person img, .person.big img, .person .pavatar, .person.big .pavatar { width: 84px; height: 84px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .foot-logo, .foot-contact { grid-column: 1 / -1; }
  .hours { flex-direction: column; }
  .hours .paid { border-right: 0; border-bottom: 2px solid var(--ink); }
  .seg button { padding: 0 12px; min-height: 44px; }
  /* Six year buttons sit in two even rows of three on a phone instead of wrapping one button onto its own row */
  #yb-years { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border-radius: 26px; }
  #yb-years button { padding: 0 6px; }
  .chips button { min-height: 44px; }
  .yb-tools .wrap, .res-tools .wrap { gap: 8px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips button { flex: none; }
  .subnav { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav a { flex: none; }
  .ybd-nav .btn { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ---------- WordPress additions */

/* Keep the sticky header and filter bars below the WordPress admin bar for signed-in editors. */
.admin-bar { --top: 32px; }
@media screen and (max-width: 782px) { .admin-bar { --top: 46px; } }
@media screen and (max-width: 600px) { .admin-bar { --top: 0px; } }

/* Home page photos are links to each graduate's yearbook page. */
a.tile { text-decoration: none; }
a.tile:hover { color: var(--ink); }

/* The yearbook sits on Our Impact through the plugin's [loyalteach_yearbook]. */
.yearbook-slot { display: contents; }

/* Contact form: Contact Form 7, styled like the rest of the site. */
.form .wpcf7 { margin: 0; }
.form .wpcf7-form { display: grid; gap: 18px; }
.form .wpcf7-form > p { margin: 0; }
.form .wpcf7-form label { display: grid; gap: 6px; font-weight: 600; }
.form .wpcf7-form label br { display: none; }
.form .wpcf7-form-control-wrap { display: block; }
.form .wpcf7-form input[type="text"],
.form .wpcf7-form input[type="email"],
.form .wpcf7-form input[type="tel"],
.form .wpcf7-form textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 1.0625rem; font-weight: 400; color: var(--ink);
  border: 2px solid #8FA9BA; border-radius: 10px; padding: 12px 14px; background: #fff;
}
.form .wpcf7-form textarea { min-height: 140px; resize: vertical; }
.form .wpcf7-form input:focus, .form .wpcf7-form textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--ink); }
.form .wpcf7-submit {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; box-sizing: border-box;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; cursor: pointer;
  font: 750 1.3125rem/1 var(--display); letter-spacing: .01em; transition: background-color .15s, color .15s;
}
.form .wpcf7-submit:hover { background: #1C3A52; }
.form .wpcf7-spinner { margin: 0 0 0 12px; vertical-align: middle; }
.form .wpcf7-not-valid-tip { color: #A3201A; font-weight: 500; font-size: .9375rem; margin-top: 4px; }
.form .wpcf7 form .wpcf7-response-output { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--blue-soft); border: 0; border-left: 4px solid var(--blue); font-size: 1rem; }
.form .wpcf7 form.invalid .wpcf7-response-output,
.form .wpcf7 form.failed .wpcf7-response-output { border-left-color: #A3201A; }
.form .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Pages that were not built for this design, such as the old placeholder pages. */
.page-plain { padding-block: clamp(40px, 6vw, 80px); max-width: 72ch; }
.page-plain h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); margin-bottom: 24px; }
.plain-entry { margin-bottom: 32px; }
/* ---------- October 2026 additions */

/* Yearbook cards: where each graduate graduated from, and where they go next. */
.yb-line { display: block; margin-top: 5px; font-size: .9375rem; line-height: 1.35; color: var(--ink-2); }
.yb-line + .yb-line { margin-top: 3px; }
.yb-line b, .tile .ts b { font-weight: 600; color: var(--ink); }
.yb-town { margin-top: 5px; }
.tile .ts + .ts { margin-top: 2px; }
.mosaic { align-items: start; }

/* Home: the admissions lists start short on phones. */
.admits-more { display: none; justify-self: start; }
@media (max-width: 640px) {
  .admits.can-collapse .admits-more { display: inline-flex; }
  .admits.can-collapse:not(.is-open) .admit-list li:nth-child(n+4) { display: none; }
  .school-list { columns: 2; column-gap: 16px; }
  .school-list li { font-size: .9375rem; }
}

/* Buttons for families: Get started. */
.ph-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

/* Our Impact: a donate prompt after the yearbook. */
.yb-give { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: clamp(28px, 4vw, 48px); padding: clamp(22px, 3vw, 32px); border: 2px solid var(--ink); border-radius: 18px; background: var(--blue); }
.yb-give p { margin: 0; font: 750 clamp(1.75rem, 3vw, 2.375rem)/1.05 var(--display); color: var(--ink); max-width: 30ch; }

/* Donate: Social Good Fund's checkout on the page, beside the other ways to give. */
.ways-2 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr; align-items: start; }
.way.give-online { grid-row: 1 / span 2; }
.give-text { display: flex; flex-direction: column; gap: 14px; }
.give-text .note a { color: var(--ink); }
.give-widget { width: 100%; max-width: 440px; min-height: 680px; align-self: center; }
.give-widget iframe { display: block; border: 0; border-radius: 12px; }
@media (max-width: 1080px) {
  .ways-2 { grid-template-columns: minmax(0, 1fr); }
  .way.give-online { grid-row: auto; }
}
@media (max-width: 420px) {
  .way.give-online { padding-inline: 10px; }
  .give-text { padding-inline: 12px; }
}

/* Contact form: the "I am" choice, optional labels, and a field only robots fill in. */
.form { position: relative; }
.form .wpcf7-form select {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 1.0625rem; font-weight: 400; color: var(--ink);
  border: 2px solid #8FA9BA; border-radius: 10px; padding: 12px 14px; background: #fff; min-height: 52px;
}
.form .wpcf7-form select:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--ink); }
.form .wpcf7-form .opt { font-weight: 400; color: var(--ink-2); }
.form .wpcf7-form .lbl { display: block; }
.form .lt-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Footer: taller tap targets. */
.foot-col ul { gap: 0; }
.foot-col ul a { display: inline-block; padding-block: 12px; }
