﻿:root {
  --maroon: #681e23;
  --maroon-dark: #2e0f12;
  --maroon-soft: #8a3339;
  --paper: #f7f3eb;
  --paper-deep: #ece6dd;
  --ink: #241f1c;
  --muted: #6f665d;
  --rule: rgba(46, 15, 18, 0.2);
  --white: #fffdf8;
  --black: #151313;
  --radius: 14px;
  --radius-small: 8px;
}

@font-face {
  font-family: "Alice";
  src: url("assets/fonts/alice-font.dat") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: block;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Alice", Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 30;
  padding: 10px 12px;
  background: var(--white);
  border: 2px solid var(--black);
}

.skip-link:focus {
  top: 12px;
}

.letterhead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(18px, 2.6vw, 42px);
  padding: 18px clamp(18px, 4vw, 48px);
  color: var(--maroon-dark);
  background: var(--white);
  border-bottom: 6px double var(--maroon);
}

.letterhead-mark img {
  width: clamp(104px, 13vw, 168px);
  height: clamp(104px, 13vw, 168px);
  border: 2px solid var(--rule);
  border-radius: 50%;
  object-fit: cover;
}

.letterhead-copy p,
.letterhead-copy span,
.record-kicker {
  margin: 0;
  color: var(--maroon);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
}

.letterhead-copy h1 {
  margin: 28px 0 18px;
  font-size: clamp(1rem, 1.55vw, 1.95rem);
  line-height: 0.95;
  letter-spacing: 0;
  font-weight: 400;
  white-space: nowrap;
}

.letterhead-copy span {
  color: var(--muted);
}

.letterhead-copy p {
  display: block;
  margin-bottom: 0;
}

.letterhead-copy span {
  display: block;
  margin-top: 0;
}

.donate-chip,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 20px;
  color: var(--white);
  background: var(--maroon);
  border: 2px solid var(--maroon);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(46, 15, 18, 0.18);
  font-weight: 900;
  text-transform: uppercase;
}

.donate-chip:hover,
.contact-form button:hover {
  background: var(--maroon-dark);
  border-color: var(--maroon-dark);
}

.section-rail {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  color: var(--white);
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.section-rail a {
  flex: 0 0 auto;
  padding: 13px 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-rail a:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

main,
footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

main {
  padding-top: 28px;
}

.campus-banner {
  position: relative;
  margin: 0 auto;
  border: 2px solid var(--maroon-dark);
  border-radius: var(--radius);
  background: var(--maroon-dark);
  overflow: hidden;
}

.slideshow {
  position: relative;
  min-height: clamp(280px, 48vw, 510px);
  background: var(--maroon-dark);
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
  opacity: 0;
  transition: opacity 900ms ease;
}

.slide.active {
  opacity: 1;
}

.banner-caption {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--black);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.opening,
.docket-section,
.board-strip,
.schools-section,
.donation-panel,
.contact-panel {
  margin: 28px 0;
  background: var(--white);
  border: 2px solid var(--maroon-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.opening {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.memo-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 22px;
  color: var(--white);
  background: var(--maroon);
  font-weight: 900;
  text-transform: uppercase;
}

.opening-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 180px);
  align-items: center;
  gap: clamp(20px, 4vw, 42px);
  padding: clamp(24px, 4vw, 42px);
}

.opening-emblem {
  grid-column: 2;
  width: 100%;
  margin: 0;
  justify-self: end;
}

.opening-copy p {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 16px;
  font-family: "Alice", Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-family: "Alice", Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.opening-copy p,
.record p,
.ledger p,
.school-row span,
.contact-grid address,
.donation-panel address {
  color: var(--muted);
  font-size: 1.04rem;
}

.section-title {
  border-bottom: 2px solid var(--maroon-dark);
}

.section-title h2 {
  margin: 0;
  padding: 22px 26px;
  font-size: clamp(1.65rem, 3vw, 2.8rem);
}

.section-title.compact h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
}

.record-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1.2fr) minmax(0, 1.2fr);
}

.record {
  padding: clamp(24px, 4vw, 42px);
  border-bottom: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.lead-record {
  grid-row: span 1;
  border-left: 0;
  background: var(--white);
}

.record p:last-child {
  margin-bottom: 0;
}

.ledger {
  display: grid;
}

.ledger article {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) 1fr;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--rule);
}

.ledger article:last-child {
  border-bottom: 0;
}

.ledger span {
  color: var(--maroon-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.ledger p {
  margin-bottom: 0;
}

.board-strip {
  color: var(--white);
  background: var(--black);
}

.board-strip .section-title {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.board-strip ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.board-strip li {
  min-height: 120px;
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.board-strip img {
  width: 96px;
  height: 128px;
  margin-bottom: 14px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  object-fit: cover;
}

.board-strip li:last-child {
  border-right: 0;
}

.board-strip strong,
.board-strip span {
  display: block;
}

.board-strip span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.school-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.school-row article {
  display: grid;
  grid-template-rows: auto 1fr;
  border-right: 1px solid var(--rule);
}

.school-row article:last-child {
  border-right: 0;
}

.school-row img {
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 506; /* This locks the box to your exact new image shape */
  object-fit: cover; /* Since the images are the right size, this ensures no white bars */
  border-bottom: 1px solid var(--rule);
}.school-row div {
  padding: 20px;
}

.school-row p {
  margin-bottom: 8px;
  color: var(--maroon-dark);
  font-family: "Alice", Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.donation-panel {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.5fr);
  gap: 0;
  color: var(--white);
  background: var(--maroon);
}

.donation-panel > div,
.donation-panel address {
  padding: clamp(26px, 5vw, 48px);
}

.donation-panel h2 {
  margin-bottom: 0;
}

.donation-panel address {
  color: var(--maroon-dark);
  background: var(--white);
  border-left: 2px solid var(--maroon-dark);
  font-style: normal;
}

.donation-panel strong {
  display: block;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) 1fr;
}

.contact-grid address,
.contact-form {
  padding: clamp(22px, 4vw, 38px);
}

.contact-grid address {
  border-right: 1px solid var(--rule);
  font-style: normal;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--maroon-dark);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  font: 1rem "Alice", Georgia, "Times New Roman", serif;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .human-check {
  padding: 14px;
  background: rgba(91, 31, 36, 0.08);
  border: 1px solid rgba(91, 31, 36, 0.18);
  border-radius: 12px;
}

.contact-form .human-check span {
  color: var(--maroon-dark);
}

.contact-form .human-check strong {
  font-size: 1rem;
}

.contact-form button {
  justify-self: start;
  cursor: pointer;
}

.contact-form button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.9);
  opacity: 0.55;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 0.9rem;
}

footer span {
  color: var(--maroon-dark);
  font-weight: 900;
}

footer a {
  color: var(--maroon);
  font-weight: 900;
}

@media (max-width: 1040px) {
  .letterhead {
    grid-template-columns: auto 1fr;
  }

  .donate-chip {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .opening,
  .record-grid,
  .donation-panel,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .memo-label {
    min-height: auto;
    align-items: center;
  }

  .record,
  .lead-record,
  .contact-grid address {
    border-left: 0;
    border-right: 0;
  }

  .board-strip ul,
  .school-row {
    grid-template-columns: 1fr;
  }

  .board-strip li,
  .school-row article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .school-row article {
    border-bottom-color: var(--rule);
  }
}

@media (max-width: 640px) {
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .letterhead {
    padding: 16px;
  }

  .letterhead-copy h1 {
    font-size: clamp(0.95rem, 5vw, 1.52rem);
    white-space: normal;
  }

  .section-rail {
    justify-content: flex-start;
  }

  .banner-caption,
  .ledger article,
  footer {
    display: grid;
  }

  .section-title {
    display: block;
  }

  .section-title h2 {
    padding: 16px;
  }

  .opening-copy {
    grid-template-columns: 1fr;
  }

  .opening-emblem,
  .opening-copy p {
    grid-column: 1;
  }

  .opening-emblem {
    grid-row: 1;
    width: min(160px, 46vw);
    justify-self: start;
  }

  .opening-copy p {
    grid-row: 2;
  }
}

/* Codex responsive and card overrides */
body {
  overflow-x: hidden;
}

.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;
}

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  color: var(--white);
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.section-rail {
  position: static;
  top: auto;
  display: flex;
  overflow-x: visible;
  background: transparent;
  border-bottom: 0;
}

.banner-caption {
  color: var(--white);
  background: var(--maroon);
}

.opening {
  display: block;
}

.memo-label {
  min-height: auto;
  justify-content: flex-start;
  padding: 18px 24px;
  color: var(--white);
  background: var(--maroon);
}

.opening-copy {
  padding: clamp(24px, 4vw, 42px);
}

.section-title {
  color: var(--white);
  background: var(--maroon);
  border-bottom: 2px solid var(--maroon-dark);
}

.record {
  overflow: hidden;
  padding: 0;
}

.record-kicker,
.ledger span,
.school-row p,
.donation-panel strong {
  display: block;
  margin: 0;
  padding: 14px 18px;
  color: var(--white);
  background: var(--maroon);
  font-family: "Alice", Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.record h3,
.record p:not(.record-kicker) {
  padding-left: clamp(22px, 4vw, 38px);
  padding-right: clamp(22px, 4vw, 38px);
}

.record h3 {
  padding-top: clamp(22px, 4vw, 34px);
}

.record p:not(.record-kicker):last-child {
  padding-bottom: clamp(22px, 4vw, 38px);
}

.ledger article {
  display: block;
  padding: 0;
}

.ledger p {
  padding: 22px 24px;
}

.school-row div {
  padding: 0;
}

.school-row span {
  display: block;
  padding: 14px 20px 20px;
}

.donation-panel {
  color: var(--ink);
  background: var(--white);
}

.donation-panel > div {
  color: var(--white);
  background: var(--maroon);
}

.donation-panel address {
  color: var(--muted);
}

@media (max-width: 1040px) {
  .nav-shell {
    justify-content: flex-end;
    padding: 8px 14px;
  }

  .nav-toggle {
    display: block;
  }

  .section-rail {
    position: absolute;
    top: calc(100% + 1px);
    right: 14px;
    display: none;
    width: min(320px, calc(100vw - 28px));
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    background: var(--black);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius-small);
    box-shadow: 0 20px 40px rgba(21, 19, 19, 0.22);
  }

  .nav-open .section-rail {
    display: flex;
  }

  .section-rail a {
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .section-rail a:last-child {
    border-right: 0;
    border-bottom: 0;
  }

  .opening {
    grid-template-columns: 1fr;
  }
}
/* Codex uniform headers and tab labels */
.memo-label,
.section-title {
  min-height: 68px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--maroon);
  border-bottom: 2px solid var(--maroon-dark);
}

.memo-label span,
.section-title h2,
.section-title.compact h2 {
  margin: 0;
  padding: 18px 24px;
  font-family: "Alice", Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: none;
}

.record-kicker,
.ledger span,
.school-row p,
.donation-panel strong {
  display: inline-flex;
  width: auto;
  max-width: calc(100% - 40px);
  margin: 22px 20px 0;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(104, 30, 35, 0.78);
  border: 1px solid rgba(104, 30, 35, 0.24);
  border-radius: 6px;
  box-shadow: 4px 4px 0 var(--black);
  font-family: "Alice", Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.record h3 {
  padding-top: 18px;
}

.record p:not(.record-kicker):last-child {
  padding-bottom: clamp(22px, 4vw, 38px);
}

.ledger p {
  padding: 18px 24px 24px;
}

.school-row p {
  margin-bottom: 0;
}

.school-row span {
  padding-top: 18px;
}

.donation-panel strong {
  margin: 0 0 14px;
}

@media (max-width: 640px) {
  .memo-label,
  .section-title {
    min-height: 60px;
  }

  .memo-label span,
  .section-title h2,
  .section-title.compact h2 {
    padding: 16px;
    font-size: 1.35rem;
  }
}
/* Codex softened tab labels */
.record-kicker,
.ledger span,
.school-row p,
.donation-panel strong {
  display: inline-flex;
  width: auto;
  max-width: calc(100% - 40px);
  margin: 22px 20px 0;
  padding: 9px 14px;
  color: var(--white);
  background: linear-gradient(90deg, rgba(104, 30, 35, 0.52), rgba(104, 30, 35, 0.2));
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  font-family: "Alice", Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.15;
  text-shadow:
    -1px -1px 0 rgba(21, 19, 19, 0.82),
    1px -1px 0 rgba(21, 19, 19, 0.82),
    -1px 1px 0 rgba(21, 19, 19, 0.82),
    1px 1px 0 rgba(21, 19, 19, 0.82),
    0 2px 2px rgba(21, 19, 19, 0.42);
  text-transform: uppercase;
}

.donation-panel strong {
  margin: 0 0 14px;
}
/* Codex uniform section bar heights */
.memo-label,
.section-title,
.section-title.compact {
  min-height: 0;
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0;
  color: var(--white);
  background: var(--maroon);
  border-bottom: 2px solid var(--maroon-dark);
}

.memo-label span,
.section-title h2,
.section-title.compact h2 {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0 24px;
  font-family: "Alice", Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 640px) {
  .memo-label,
  .section-title,
  .section-title.compact {
    height: 60px;
  }

  .memo-label span,
  .section-title h2,
  .section-title.compact h2 {
    padding: 0 16px;
    font-size: 1.35rem;
  }
}
/* Codex maroon header and soft labels */
.letterhead {
  color: var(--white);
  background: var(--maroon);
  border-bottom: 3px solid var(--white);
}

.letterhead-mark {
  padding: 7px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(21, 19, 19, 0.18);
}

.letterhead-mark img {
  border: 0;
  background: var(--white);
}

.letterhead-copy p,
.letterhead-copy span,
.letterhead-copy h1 {
  color: var(--white);
}

.donate-chip {
  color: var(--maroon);
  background: var(--white);
  border: 1px solid var(--black);
  box-shadow: 0 5px 0 rgba(21, 19, 19, 0.24);
}

.donate-chip:hover {
  color: var(--maroon-dark);
  background: var(--paper);
  border-color: var(--black);
}

.nav-shell {
  color: var(--white);
  background: var(--maroon);
  border-top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.section-rail {
  color: var(--white);
  background: transparent;
}

.section-rail a {
  color: var(--white);
}

.record-kicker,
.ledger span,
.school-row p,
.donation-panel strong {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  width: auto;
  max-width: calc(100% - 40px);
  margin: 22px 20px 0;
  padding: 8px 13px;
  color: var(--white) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  font-family: "Alice", Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.15;
  text-shadow:
    0 1px 0 rgba(21, 19, 19, 0.95),
    0 0 2px rgba(21, 19, 19, 0.9),
    1px 0 0 rgba(21, 19, 19, 0.72),
    -1px 0 0 rgba(21, 19, 19, 0.72);
  text-transform: uppercase;
}

.record-kicker::before,
.ledger span::before,
.school-row p::before,
.donation-panel strong::before {
  content: "";
  position: absolute;
  inset: -5px -13px;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(104, 30, 35, 0.55) 0%, rgba(104, 30, 35, 0.34) 48%, rgba(104, 30, 35, 0) 78%);
  filter: blur(2px);
  pointer-events: none;
}

.donation-panel strong {
  margin: 0 0 14px;
}

@media (max-width: 1040px) {
  .section-rail {
    background: var(--maroon);
  }
}
/* Codex final requested refinements */
html {
  scroll-padding-top: 64px;
}

#home,
#purpose,
#about,
#values,
#board,
#schools,
#donate,
#contact {
  scroll-margin-top: 0;
}

.letterhead-mark {
  padding: 0;
  background: var(--white);
  border: 3px solid rgba(255, 253, 248, 0.96);
  border-radius: 50%;
  overflow: hidden;
}

.letterhead-mark img {
  width: clamp(108px, 11.5vw, 154px);
  height: clamp(108px, 11.5vw, 154px);
  border: 0;
  transform: scale(1.14);
}

.section-rail a:hover,
.section-rail a:focus-visible {
  color: var(--white);
  background: var(--black);
}

.record-kicker,
.ledger span,
.school-row p,
.donation-panel strong {
  color: var(--maroon) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font-size: 0.76rem;
  font-weight: 900;
}

.record-kicker::before,
.ledger span::before,
.school-row p::before,
.donation-panel strong::before {
  display: none !important;
}

.donation-name {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.school-row p.record-kicker,
.donation-panel address strong {
  display: block;
  width: auto;
  max-width: none;
  margin: 0 0 12px;
  padding: 0;
  color: var(--maroon-dark) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-family: "Alice", Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  text-shadow: none !important;
  text-transform: none;
}

.school-row p.record-kicker {
  margin-top: 16px;
}

.donation-panel address strong {
  color: var(--maroon) !important;
}

.donation-name {
  white-space: nowrap;
}

.tax-note {
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.ledger article {
  background: var(--white);
}

.ledger article:nth-child(even) {
  background: rgba(104, 30, 35, 0.055);
}

.ledger article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 34%);
  align-items: stretch;
  gap: 0;
  min-height: 210px;
  padding: 0;
}

.ledger article:nth-child(even) {
  grid-template-columns: minmax(240px, 34%) minmax(0, 1fr);
}

.ledger article:nth-child(even) .value-copy {
  grid-column: 2;
}

.ledger article:nth-child(even) .value-image {
  grid-column: 1;
  grid-row: 1;
}

.value-copy {
  display: grid;
  align-content: center;
  padding: clamp(24px, 4vw, 44px);
}

.ledger .value-copy .record-kicker {
  margin: 0 0 14px;
  padding: 0;
  color: var(--maroon-dark) !important;
  background: transparent !important;
  font-family: "Alice", Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  line-height: 1.08;
  text-transform: none;
}

.ledger .value-copy p:not(.record-kicker) {
  margin: 0;
  padding: 0;
}

.value-image {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.ledger article:nth-child(odd) .value-image {
  border-top-left-radius: var(--radius-small);
  border-bottom-left-radius: var(--radius-small);
}

.ledger article:nth-child(even) .value-image {
  border-top-right-radius: var(--radius-small);
  border-bottom-right-radius: var(--radius-small);
}

.school-row article:nth-child(1) img {
  border-bottom-right-radius: var(--radius-small);
}

.school-row article:nth-child(2) img {
  border-bottom-right-radius: var(--radius-small);
  border-bottom-left-radius: var(--radius-small);
}

.school-row article:nth-child(3) img {
  border-bottom-left-radius: var(--radius-small);
}

.donation-panel > div {
  display: grid;
  place-items: center;
  text-align: center;
}

.donation-panel > div h3 {
  margin: 0;
}

.section-header-accent {
  justify-content: space-between;
  gap: clamp(12px, 2vw, 24px);
  overflow: hidden;
}

.section-header-accent.header-left {
  text-align: left;
}

.section-header-accent.header-right {
  text-align: right;
}

.section-header-accent.header-right h2,
.section-header-accent.header-right > span:first-child:not(.paw-trail) {
  margin-left: 0;
}

.section-header-accent h2,
.section-header-accent > span:not(.paw-trail) {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.memo-label.section-header-accent {
  justify-content: center;
  text-align: center;
}

.paw-trail {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-width: 0;
  max-width: none;
  opacity: 0.58;
  pointer-events: none;
}

.trail-right {
  padding-right: clamp(14px, 2vw, 26px);
}

.trail-left {
  padding-left: clamp(14px, 2vw, 26px);
}

.paw-trail img {
  width: clamp(18px, 2.5vw, 32px);
  height: clamp(18px, 2.5vw, 32px);
  object-fit: contain;
}

.trail-right img {
  transform: rotate(90deg);
}

.trail-left img {
  transform: rotate(-90deg);
}

.paw-trail img:nth-child(2n) {
  margin-top: 18px;
}

.paw-trail img:nth-child(2n + 1) {
  margin-bottom: 18px;
}

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  justify-content: center;
  padding: 0 clamp(14px, 3vw, 34px);
  background: var(--maroon);
  border-top: 1px solid rgba(255, 253, 248, 0.62);
  border-bottom: 2px solid rgba(255, 253, 248, 0.72);
  box-shadow:
    inset 0 -1px 0 rgba(21, 19, 19, 0.38),
    0 8px 18px rgba(46, 15, 18, 0.2);
}

.nav-shell::before,
.nav-shell::after {
  content: "";
  width: clamp(18px, 2.2vw, 28px);
  height: clamp(18px, 2.2vw, 28px);
  align-self: center;
  flex: 0 0 auto;
  background: url("assets/white-paw-print.png") center / contain no-repeat;
  opacity: 0.42;
  pointer-events: none;
}

.nav-shell::before {
  margin-right: clamp(12px, 2vw, 24px);
}

.nav-shell::after {
  margin-left: clamp(12px, 2vw, 24px);
}

.section-rail {
  --nav-gap: clamp(18px, 2.4vw, 34px);
  align-items: center;
  gap: var(--nav-gap);
}

.section-rail a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 clamp(12px, 1.7vw, 20px);
  border: 0 !important;
  border-radius: 6px;
  color: var(--white);
  transition:
    color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.section-rail a + a::before {
  content: "";
  position: absolute;
  left: calc((var(--nav-gap) * -0.5) - 8px);
  top: 50%;
  width: 16px;
  height: 16px;
  background: url("assets/white-paw-print.png") center / contain no-repeat;
  opacity: 0.42;
  transform: translateY(-50%);
  pointer-events: none;
}

.section-rail a:hover,
.section-rail a:focus-visible {
  color: var(--maroon);
  background: var(--white);
  box-shadow: inset 0 -3px 0 rgba(46, 15, 18, 0.3);
  outline: 0;
}

@media (max-width: 1040px) {
  .nav-shell {
    justify-content: flex-end;
    padding: 8px 14px;
  }

  .nav-shell::before,
  .nav-shell::after {
    display: none;
  }

  .nav-toggle {
    margin-left: auto;
  }

  .section-rail {
    gap: 0;
    padding: 4px 0;
  }

  .section-rail a {
    display: flex;
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 0;
  }

  .section-rail a:hover,
  .section-rail a:focus-visible {
    color: var(--maroon);
    background: var(--white);
    box-shadow: inset 4px 0 0 rgba(46, 15, 18, 0.32);
  }
}

#board .section-header-accent {
  display: flex;
  align-items: center;
}

#board .paw-trail {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: space-between;
  width: auto;
  min-width: 0;
  max-width: none;
  margin-top: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: none;
}

#board .section-header-accent h2 {
  z-index: 1;
  flex: 0 0 auto;
  margin-left: 0;
  text-align: right;
  white-space: nowrap;
}

#board .paw-trail img {
  width: clamp(18px, 2.5vw, 32px);
  height: clamp(18px, 2.5vw, 32px);
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

footer div {
  display: grid;
  gap: 3px;
}

footer p {
  margin: 0;
}

footer em {
  color: var(--muted);
  font-size: 0.86rem;
}

.letterhead-copy .site-wordmark {
  display: block;
  width: min(100%, 760px);
  margin: 16px 0 14px;
  line-height: 0;
}

.letterhead-copy .site-wordmark img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1040px) {
  html {
    scroll-padding-top: 72px;
  }

  #home,
  #purpose,
  #about,
  #values,
  #board,
  #schools,
  #donate,
  #contact {
    scroll-margin-top: 0;
  }
}

@media (max-width: 640px) {
  .nav-shell::before,
  .nav-shell::after,
  .section-rail a + a::before {
    display: none;
  }

  .section-rail a {
    min-height: 44px;
    border-radius: 0;
  }

  .section-header-accent {
    gap: 10px;
  }

  .paw-trail {
    gap: 14px;
    max-width: 42%;
    opacity: 0.38;
  }

  .paw-trail img {
    width: 18px;
    height: 18px;
  }

  .paw-trail img:nth-child(n + 4) {
    display: none;
  }

  .ledger article,
  .ledger article:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .ledger article:nth-child(even) .value-copy,
  .ledger article:nth-child(even) .value-image {
    grid-column: auto;
  }

  .value-image {
    grid-row: 1;
    min-height: 210px;
    border-radius: 0 0 var(--radius-small) var(--radius-small);
  }

  .ledger article:nth-child(odd) .value-image,
  .ledger article:nth-child(even) .value-image {
    border-radius: 0 0 var(--radius-small) var(--radius-small);
  }

  .letterhead-copy .site-wordmark {
    width: min(100%, 520px);
    margin: 14px 0 12px;
  }
}

/* Mobile polish pass: these rules only apply once the layout is collapsed. */
@media (max-width: 1040px) {
  body {
    overflow-x: hidden;
  }

  main,
  footer {
    width: min(1180px, calc(100% - 28px));
  }

  main {
    padding-top: 20px;
  }

  .letterhead {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    padding: 16px 18px;
  }

  .letterhead-copy {
    min-width: 0;
  }

  .letterhead-copy .site-wordmark {
    max-width: 100%;
  }

  .campus-banner,
  .opening,
  .docket-section,
  .board-strip,
  .schools-section,
  .donation-panel,
  .contact-panel {
    margin: 22px 0;
  }

  .section-header-accent {
    min-height: 68px;
  }

  .section-header-accent h2 {
    font-size: clamp(1.55rem, 5.8vw, 2.35rem);
    line-height: 1.05;
  }

  #board .section-header-accent h2 {
    white-space: normal;
  }

  #board .paw-trail {
    max-width: 36%;
  }

  .record {
    padding: 24px;
  }

  .board-strip li {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 16px;
    align-items: center;
    min-height: auto;
    padding: 16px 18px;
  }

  .board-strip li > img {
    grid-row: 1 / span 2;
    width: 76px;
    height: 96px;
    margin: 0;
  }

  .board-strip li > strong {
    align-self: end;
  }

  .board-strip li > span {
    align-self: start;
    margin-top: 4px;
  }

  .school-row article {
    grid-template-columns: minmax(180px, 0.44fr) 1fr;
    grid-template-rows: auto;
  }

  .school-row img {
    height: 100%;
    aspect-ratio: 16 / 10;
  }

  .school-row div {
    padding: 18px;
  }

  .donation-panel address {
    border-top: 2px solid var(--maroon-dark);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  main,
  footer {
    width: min(1180px, calc(100% - 20px));
  }

  main {
    padding-top: 14px;
  }

  .letterhead {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 12px;
    border-bottom-width: 4px;
  }

  .letterhead-mark img {
    width: 68px;
    height: 68px;
  }

  .letterhead-copy p,
  .letterhead-copy span {
    font-size: 0.68rem;
  }

  .letterhead-copy .site-wordmark {
    margin: 8px 0;
  }

  .donate-chip {
    grid-column: 1 / -1;
    justify-self: stretch;
    min-height: 38px;
    padding: 9px 16px;
  }

  .slideshow {
    min-height: clamp(210px, 58vw, 300px);
  }

  .banner-caption {
    gap: 4px;
    padding: 9px 10px;
    font-size: 0.75rem;
  }

  .opening,
  .docket-section,
  .board-strip,
  .schools-section,
  .donation-panel,
  .contact-panel,
  .campus-banner {
    margin: 18px 0;
    border-radius: 10px;
  }

  .memo-label {
    min-height: auto;
    padding: 18px 16px;
    text-align: center;
  }

  .opening-copy {
    gap: 16px;
    padding: 20px;
  }

  .opening-emblem {
    width: min(132px, 42vw);
    justify-self: center;
  }

  .section-title h2 {
    padding: 16px;
    font-size: clamp(1.55rem, 8vw, 2.15rem);
  }

  #board .section-header-accent h2 {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  #board .paw-trail {
    max-width: 30%;
  }

  .record {
    padding: 20px;
  }

  .ledger article,
  .ledger article:nth-child(even) {
    gap: 0;
    padding: 0;
  }

  .value-copy {
    padding: 20px;
  }

  .value-image {
    width: 100%;
    min-height: 180px;
  }

  .board-strip li {
    grid-template-columns: 70px minmax(0, 1fr);
    column-gap: 14px;
    padding: 14px;
  }

  .board-strip li > img {
    width: 62px;
    height: 82px;
  }

  .school-row article {
    grid-template-columns: 1fr;
  }

  .school-row img {
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 0 !important;
  }

  .school-row div,
  .donation-panel > div,
  .donation-panel address,
  .contact-grid address,
  .contact-form {
    padding: 20px;
  }

  .contact-form button {
    justify-self: stretch;
  }

  footer {
    justify-content: center;
    padding: 22px 0 34px;
    text-align: center;
  }
}

/* Mobile title fitting */
@media (max-width: 1040px) {
  .memo-label,
  .section-title,
  .section-title.compact {
    height: auto;
    min-height: 60px;
  }

  .memo-label span,
  .section-title h2,
  .section-title.compact h2 {
    min-width: 0;
    max-width: 100%;
    height: auto;
    white-space: normal;
    overflow-wrap: normal;
    line-height: 1.08;
  }

  .section-title h2,
  .section-title.compact h2 {
    font-size: clamp(1.25rem, 4.6vw, 2rem);
  }

  .memo-label span {
    font-size: clamp(1rem, 3.6vw, 1.5rem);
  }

  #board .section-header-accent h2 {
    font-size: clamp(1.15rem, 4.2vw, 1.8rem);
  }

  .section-header-accent.header-left h2 {
    flex: 0 1 auto;
    margin-right: auto;
    text-align: left;
    justify-content: flex-start;
  }

  .section-header-accent.header-right h2 {
    flex: 0 1 auto;
    margin-left: auto;
    text-align: right;
    justify-content: flex-end;
  }
}

/* Last-pass fixes for the reported mobile/header issues. */
.letterhead-mark {
  display: inline-grid;
  width: clamp(108px, 11.5vw, 154px);
  height: clamp(108px, 11.5vw, 154px);
  flex: 0 0 auto;
  place-items: center;
  aspect-ratio: 1;
  padding: 0;
  border: 3px solid rgba(255, 253, 248, 0.96);
  border-radius: 50%;
  overflow: hidden;
}

.letterhead-mark img {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  transform: scale(1.14);
}

@media (max-width: 1040px) {
  .letterhead {
    grid-template-columns: clamp(82px, 13vw, 120px) minmax(0, 1fr) auto;
    gap: 14px 18px;
    align-items: center;
  }

  .letterhead-mark {
    width: clamp(82px, 13vw, 120px);
    height: clamp(82px, 13vw, 120px);
  }

  .donate-chip,
  .image-action-donate,
  .image-action-donate:hover,
  .image-action-donate:focus-visible {
    grid-column: 3;
    justify-self: end;
  }
}

@media (max-width: 760px) {
  .letterhead {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 12px;
  }

  .letterhead-mark {
    width: 68px;
    height: 68px;
  }

  .letterhead-copy .site-wordmark {
    align-items: center;
    margin: 6px 0;
  }

  .letterhead-copy .site-wordmark .wordmark-h {
    width: clamp(40px, 12vw, 56px);
  }

  .letterhead-copy .site-wordmark .wordmark-text {
    font-size: clamp(0.98rem, 5vw, 1.45rem);
    line-height: 0.96;
    white-space: normal;
    transform: translate(-2px, 0.08em);
  }

  .donate-chip,
  .image-action-donate,
  .image-action-donate:hover,
  .image-action-donate:focus-visible {
    grid-column: 1 / -1;
    justify-self: end;
    width: min(176px, 50vw);
  }
}

@media (max-width: 420px) {
  .letterhead {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .letterhead-mark {
    width: 58px;
    height: 58px;
  }

  .letterhead-copy p,
  .letterhead-copy span {
    font-size: 0.62rem;
  }

  .letterhead-copy .site-wordmark .wordmark-h {
    width: 38px;
  }

  .letterhead-copy .site-wordmark .wordmark-text {
    font-size: clamp(0.9rem, 5vw, 1.18rem);
  }
}

@media (max-width: 640px) {
  #values .ledger {
    display: grid;
    gap: 14px;
    padding: 14px;
    background: var(--paper);
  }

  #values .ledger article,
  #values .ledger article:nth-child(even) {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-small);
  }

  #values .ledger article:nth-child(even) .value-copy,
  #values .ledger article:nth-child(even) .value-image,
  #values .value-copy,
  #values .value-image {
    grid-column: auto;
    grid-row: auto;
  }

  #values .value-copy {
    order: 1;
    display: block;
    padding: 18px 18px 16px;
  }

  #values .value-image {
    order: 2;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0;
  }

  #values .ledger .value-copy .record-kicker {
    display: block;
    margin: 0 0 8px;
    font-size: clamp(1.15rem, 6vw, 1.5rem);
    line-height: 1.05;
  }

  #values .ledger .value-copy p:not(.record-kicker) {
    display: block;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.4;
  }
}

/* True final overrides: keep the seal circular, the header compact, and values visible on phones. */
.letterhead-mark {
  display: inline-grid;
  width: clamp(108px, 11.5vw, 154px);
  height: clamp(108px, 11.5vw, 154px);
  flex: 0 0 auto;
  place-items: center;
  aspect-ratio: 1;
  padding: 0;
  border: 3px solid rgba(255, 253, 248, 0.96);
  border-radius: 50%;
  overflow: hidden;
}

.letterhead-mark img {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  transform: scale(1.14);
}

@media (max-width: 1040px) {
  .letterhead {
    grid-template-columns: clamp(82px, 13vw, 120px) minmax(0, 1fr) auto;
    gap: 14px 18px;
    align-items: center;
  }

  .letterhead-mark {
    width: clamp(82px, 13vw, 120px);
    height: clamp(82px, 13vw, 120px);
  }

  .donate-chip,
  .image-action-donate,
  .image-action-donate:hover,
  .image-action-donate:focus-visible {
    grid-column: 3;
    justify-self: end;
  }
}

@media (max-width: 760px) {
  .letterhead {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 12px;
  }

  .letterhead-mark {
    width: 68px;
    height: 68px;
  }

  .letterhead-copy .site-wordmark {
    align-items: center;
    margin: 6px 0;
  }

  .letterhead-copy .site-wordmark .wordmark-h {
    width: clamp(40px, 12vw, 56px);
  }

  .letterhead-copy .site-wordmark .wordmark-text {
    font-size: clamp(0.98rem, 5vw, 1.45rem);
    line-height: 0.96;
    white-space: normal;
    transform: translate(-2px, 0.08em);
  }

  .donate-chip,
  .image-action-donate,
  .image-action-donate:hover,
  .image-action-donate:focus-visible {
    grid-column: 1 / -1;
    justify-self: end;
    width: min(176px, 50vw);
  }
}

@media (max-width: 420px) {
  .letterhead {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .letterhead-mark {
    width: 58px;
    height: 58px;
  }

  .letterhead-copy p,
  .letterhead-copy span {
    font-size: 0.62rem;
  }

  .letterhead-copy .site-wordmark .wordmark-h {
    width: 38px;
  }

  .letterhead-copy .site-wordmark .wordmark-text {
    font-size: clamp(0.9rem, 5vw, 1.18rem);
  }
}

@media (max-width: 640px) {
  #values .ledger {
    display: grid;
    gap: 14px;
    padding: 14px;
    background: var(--paper);
  }

  #values .ledger article,
  #values .ledger article:nth-child(even) {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-small);
  }

  #values .ledger article:nth-child(even) .value-copy,
  #values .ledger article:nth-child(even) .value-image,
  #values .value-copy,
  #values .value-image {
    grid-column: auto;
    grid-row: auto;
  }

  #values .value-copy {
    order: 1;
    display: block;
    padding: 18px 18px 16px;
  }

  #values .value-image {
    order: 2;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0;
  }

  #values .ledger .value-copy .record-kicker {
    display: block;
    margin: 0 0 8px;
    font-size: clamp(1.15rem, 6vw, 1.5rem);
    line-height: 1.05;
  }

  #values .ledger .value-copy p:not(.record-kicker) {
    display: block;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.4;
  }
}

/* Final responsive header and values polish */
.letterhead-mark {
  display: inline-grid;
  width: clamp(108px, 11.5vw, 154px);
  height: clamp(108px, 11.5vw, 154px);
  flex: 0 0 auto;
  place-items: center;
  aspect-ratio: 1;
  padding: 0;
  border: 3px solid rgba(255, 253, 248, 0.96);
  border-radius: 50%;
  overflow: hidden;
}

.letterhead-mark img {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  transform: scale(1.14);
}

@media (max-width: 1040px) {
  .letterhead {
    grid-template-columns: clamp(82px, 13vw, 120px) minmax(0, 1fr) auto;
    gap: 14px 18px;
    align-items: center;
  }

  .letterhead-mark {
    width: clamp(82px, 13vw, 120px);
    height: clamp(82px, 13vw, 120px);
  }

  .donate-chip {
    grid-column: 3;
    justify-self: end;
  }
}

@media (max-width: 760px) {
  .letterhead {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 12px;
  }

  .letterhead-mark {
    width: 68px;
    height: 68px;
  }

  .letterhead-copy .site-wordmark {
    align-items: center;
    margin: 6px 0;
  }

  .letterhead-copy .site-wordmark .wordmark-h {
    width: clamp(40px, 12vw, 56px);
  }

  .letterhead-copy .site-wordmark .wordmark-text {
    font-size: clamp(0.98rem, 5vw, 1.45rem);
    line-height: 0.96;
    white-space: normal;
    transform: translate(-2px, 0.08em);
  }

  .donate-chip,
  .image-action-donate,
  .image-action-donate:hover,
  .image-action-donate:focus-visible {
    grid-column: 1 / -1;
    justify-self: end;
    width: min(176px, 50vw);
  }
}

@media (max-width: 420px) {
  .letterhead {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .letterhead-mark {
    width: 58px;
    height: 58px;
  }

  .letterhead-copy p,
  .letterhead-copy span {
    font-size: 0.62rem;
  }

  .letterhead-copy .site-wordmark .wordmark-h {
    width: 38px;
  }

  .letterhead-copy .site-wordmark .wordmark-text {
    font-size: clamp(0.9rem, 5vw, 1.18rem);
  }
}

@media (max-width: 640px) {
  #values .ledger {
    display: grid;
    gap: 14px;
    padding: 14px;
    background: var(--paper);
  }

  #values .ledger article,
  #values .ledger article:nth-child(even) {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-small);
  }

  #values .ledger article:nth-child(even) .value-copy,
  #values .ledger article:nth-child(even) .value-image,
  #values .value-copy,
  #values .value-image {
    grid-column: auto;
    grid-row: auto;
  }

  #values .value-copy {
    order: 1;
    display: block;
    padding: 18px 18px 16px;
  }

  #values .value-image {
    order: 2;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0;
  }

  #values .ledger .value-copy .record-kicker {
    display: block;
    margin: 0 0 8px;
    font-size: clamp(1.15rem, 6vw, 1.5rem);
    line-height: 1.05;
  }

  #values .ledger .value-copy p:not(.record-kicker) {
    display: block;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.4;
  }
}

/* Footer social links */
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.social-links img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 7px rgba(46, 15, 18, 0.22));
  transition:
    filter 160ms ease,
    transform 160ms ease;
}

.social-links a:hover img,
.social-links a:focus-visible img {
  filter:
    drop-shadow(0 7px 9px rgba(46, 15, 18, 0.3))
    brightness(1.08)
    saturate(1.06);
  transform: translateY(-1px);
}

.social-links a:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 4px;
  border-radius: 8px;
}

@media (max-width: 640px) {
  .social-links {
    order: 2;
    gap: 10px;
  }

  .social-links a {
    width: 40px;
    height: 40px;
  }

  footer > a {
    order: 3;
  }
}

/* Contact social block */
.contact-grid address .social-heading {
  display: block;
  margin-top: 46px;
  margin-bottom: 12px;
  color: var(--maroon-dark);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 900;
  line-height: 1;
}

.contact-grid address .social-links {
  justify-content: flex-start;
  gap: 16px;
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(46, 15, 18, 0.18);
}

.contact-grid address .social-links a {
  width: clamp(58px, 5.2vw, 76px);
  height: clamp(58px, 5.2vw, 76px);
}

@media (max-width: 1040px) {
  .contact-grid address .social-links {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .contact-grid address .social-heading {
    margin-top: 34px;
    text-align: center;
  }

  .contact-grid address .social-links {
    justify-content: center;
  }

  .contact-grid address .social-links a {
    width: 58px;
    height: 58px;
  }
}

/* 3D image buttons */
.image-action,
.image-action:hover,
.image-action:focus-visible,
.contact-form .image-action,
.contact-form .image-action:hover,
.contact-form .image-action:focus-visible {
  width: auto;
  min-height: 0;
  padding: 0;
  color: transparent;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  line-height: 0;
}

.image-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.image-action img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 10px rgba(21, 19, 19, 0.28));
  transition:
    filter 160ms ease,
    transform 160ms ease;
}

.image-action-donate {
  width: clamp(148px, 13vw, 214px);
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.image-action-send,
.contact-form .image-action-send,
.contact-form button.image-action-send {
  justify-self: start;
  width: clamp(148px, 13vw, 214px);
  cursor: pointer;
}

.image-action:hover img,
.image-action:focus-visible img {
  filter:
    drop-shadow(0 10px 12px rgba(21, 19, 19, 0.34))
    brightness(1.12)
    saturate(1.08);
  transform: scale(1.03);
}

.image-action:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .image-action-donate {
    justify-self: end;
    width: min(176px, 54vw);
  }

  .image-action-send,
  .contact-form .image-action-send,
  .contact-form button.image-action-send {
    justify-self: center;
    width: min(176px, 54vw);
  }
}

.image-action-donate:hover,
.image-action-donate:focus-visible {
  width: clamp(148px, 13vw, 214px);
}

.image-action-send:hover,
.image-action-send:focus-visible,
.contact-form .image-action-send:hover,
.contact-form .image-action-send:focus-visible,
.contact-form button.image-action-send:hover,
.contact-form button.image-action-send:focus-visible {
  width: clamp(148px, 13vw, 214px);
}

@media (max-width: 640px) {
  .image-action-donate:hover,
  .image-action-donate:focus-visible {
    width: min(176px, 54vw);
  }

  .image-action-send:hover,
  .image-action-send:focus-visible,
  .contact-form .image-action-send:hover,
  .contact-form .image-action-send:focus-visible,
  .contact-form button.image-action-send:hover,
  .contact-form button.image-action-send:focus-visible {
    width: min(176px, 54vw);
  }
}

/* Header Alice wordmark */
.letterhead-copy .site-wordmark {
  display: flex;
  align-items: center;
  gap: clamp(1px, 0.25vw, 5px);
  width: min(100%, 980px);
  margin: 12px 0 10px;
  color: var(--white);
  line-height: 0.9;
  white-space: nowrap;
}

.letterhead-copy .site-wordmark .wordmark-h {
  flex: 0 0 auto;
  width: clamp(58px, 5.8vw, 104px);
  height: auto;
  object-fit: contain;
}

.letterhead-copy .site-wordmark .wordmark-text {
  display: block;
  min-width: 0;
  margin: 0;
  color: var(--white);
  font-family: "Alice", Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.95vw, 3.45rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0;
  transform: translate(-4px, 0.13em);
}

@media (max-width: 1040px) {
  .letterhead-copy .site-wordmark {
    width: 100%;
  }

  .letterhead-copy .site-wordmark .wordmark-text {
    font-size: clamp(1.35rem, 4.4vw, 2.5rem);
  }
}

@media (max-width: 640px) {
  .letterhead-copy .site-wordmark {
    gap: 2px;
    margin: 8px 0;
  }

  .letterhead-copy .site-wordmark .wordmark-h {
    width: clamp(42px, 12vw, 64px);
  }

  .letterhead-copy .site-wordmark .wordmark-text {
    font-size: clamp(1rem, 5.4vw, 1.55rem);
    white-space: normal;
    transform: translate(-2px, 0.1em);
  }
}

@media (max-width: 640px) {
  .memo-label,
  .section-title,
  .section-title.compact {
    min-height: 56px;
  }

  .memo-label span,
  .section-title h2,
  .section-title.compact h2 {
    padding: 10px 14px;
  }

  .section-title h2,
  .section-title.compact h2 {
    font-size: clamp(1.05rem, 5.6vw, 1.45rem);
  }

  .memo-label span {
    font-size: clamp(0.82rem, 3.65vw, 1.12rem);
  }

  #board .section-header-accent h2 {
    font-size: clamp(0.95rem, 4.8vw, 1.3rem);
  }

  .section-header-accent.header-left h2 {
    flex: 0 1 auto;
    margin-right: auto;
    text-align: left;
    justify-content: flex-start;
  }

  .section-header-accent.header-right h2 {
    flex: 0 1 auto;
    margin-left: auto;
    text-align: right;
    justify-content: flex-end;
  }
}
/* End-of-file mobile/header fixes. */
.letterhead-mark {
  display: inline-grid;
  width: clamp(108px, 11.5vw, 154px);
  height: clamp(108px, 11.5vw, 154px);
  flex: 0 0 auto;
  place-items: center;
  aspect-ratio: 1;
  padding: 0;
  border: 3px solid rgba(255, 253, 248, 0.96);
  border-radius: 50%;
  overflow: hidden;
}

.letterhead-mark img {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  transform: scale(1.14);
}

@media (max-width: 1040px) {
  .letterhead {
    grid-template-columns: clamp(82px, 13vw, 120px) minmax(0, 1fr) auto;
    gap: 14px 18px;
    align-items: center;
  }

  .letterhead-mark {
    width: clamp(82px, 13vw, 120px);
    height: clamp(82px, 13vw, 120px);
  }

  .donate-chip,
  .image-action-donate,
  .image-action-donate:hover,
  .image-action-donate:focus-visible {
    grid-column: 3;
    justify-self: end;
  }
}

@media (max-width: 760px) {
  .letterhead {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 12px;
  }

  .letterhead-mark {
    width: 68px;
    height: 68px;
  }

  .letterhead-copy .site-wordmark {
    align-items: center;
    margin: 6px 0;
  }

  .letterhead-copy .site-wordmark .wordmark-h {
    width: clamp(40px, 12vw, 56px);
  }

  .letterhead-copy .site-wordmark .wordmark-text {
    font-size: clamp(0.98rem, 5vw, 1.45rem);
    line-height: 0.96;
    white-space: normal;
    transform: translate(-2px, 0.08em);
  }

  .donate-chip,
  .image-action-donate,
  .image-action-donate:hover,
  .image-action-donate:focus-visible {
    grid-column: 1 / -1;
    justify-self: end;
    width: min(176px, 50vw);
  }
}

@media (max-width: 420px) {
  .letterhead {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .letterhead-mark {
    width: 58px;
    height: 58px;
  }

  .letterhead-copy p,
  .letterhead-copy span {
    font-size: 0.62rem;
  }

  .letterhead-copy .site-wordmark .wordmark-h {
    width: 38px;
  }

  .letterhead-copy .site-wordmark .wordmark-text {
    font-size: clamp(0.9rem, 5vw, 1.18rem);
  }
}

@media (max-width: 640px) {
  #values .ledger {
    display: grid;
    gap: 14px;
    padding: 14px;
    background: var(--paper);
  }

  #values .ledger article,
  #values .ledger article:nth-child(even) {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-small);
  }

  #values .ledger article:nth-child(even) .value-copy,
  #values .ledger article:nth-child(even) .value-image,
  #values .value-copy,
  #values .value-image {
    grid-column: auto;
    grid-row: auto;
  }

  #values .value-copy {
    order: 1;
    display: block;
    padding: 18px 18px 16px;
  }

  #values .value-image {
    order: 2;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0;
  }

  #values .ledger .value-copy .record-kicker {
    display: block;
    margin: 0 0 8px;
    font-size: clamp(1.15rem, 6vw, 1.5rem);
    line-height: 1.05;
  }

  #values .ledger .value-copy p:not(.record-kicker) {
    display: block;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.4;
  }
}/* Reset button styling so your image looks right */
button.donate-chip {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* The dark overlay behind the panel */
.donate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 998;
}

.donate-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* The Slide-out Panel */
.donate-panel {
  position: fixed;
  top: 0;
  right: -450px; /* Hides the panel off-screen to the right */
  width: 400px;  /* Width of the panel */
  height: 100vh; /* Full screen height */
  background-color: #fff;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease-in-out; /* The slide animation */
  z-index: 999;
  display: flex;
  flex-direction: column;
}

/* Class added by JavaScript to slide it in */
.donate-panel.active {
  right: 0; 
}

/* Panel Header & Close Button */
.panel-header {
  padding: 15px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.close-btn {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
/*end of codex edits*/

}  
/* The iframe to make the external site fit the panel */
.donate-iframe {
  width: 100%;
  flex-grow: 1; /* Takes up the remaining height */
  border: none;
} /* <--- This missing bracket has been restored! */

/* =========================================
   SCHOOL SOCIAL MEDIA SPECIFIC STYLES
   ========================================= */

/* Pushes the entire row of icons up from the bottom line */
.social-links {
  margin-bottom: 30px; 
}

/* OVERRIDE: We use :has() to target ONLY the links that contain text labels. 
   This safely stretches the school links without breaking your 42x42px square icons at the top! */
.social-links a:has(.icon-label) {
  display: inline-flex;
  flex-direction: column; 
  align-items: center;    
  text-decoration: none;  
  height: auto;        /* Overrides the 42px height constraint */
  min-width: 95px;     /* Overrides the 42px width constraint */
  margin: 0 10px;      
  vertical-align: top; 
}

/* The text label itself */
.icon-label {
  font-family: 'Alice', serif; 
  font-size: 16px;             
  font-weight: normal;         
  color: #333333;
  margin-top: 50px;            /* Bumped up from 20px to add more space under the line */
  margin-bottom: 8px;          
  text-align: center;
  line-height: 1.2;            
  display: block;
}

/* =========================================
   MOBILE MENU DONATE BUTTON SWAP
   ========================================= */

/* 1. Hide the mobile menu donate link on desktop */
.mobile-donate-link {
  display: none !important;
}

/* 2. When the screen shrinks to mobile size (1040px or less)... */
@media (max-width: 1040px) {
  
  /* Hide the big donate button in the header */
  .letterhead .image-action-donate,
  .letterhead .donate-chip {
    display: none !important;
  }

  /* Show the donate link inside the mobile menu */
  .section-rail .mobile-donate-link {
    display: flex !important;
    justify-content: center;
    background-color: var(--white);       /* Makes it stand out as a button */
    color: var(--maroon) !important;      /* Maroon text */
    margin: 16px 16px;                    /* Gives it breathing room from the other links */
    border-radius: 8px;                   /* Rounds the corners */
    box-shadow: inset 0 0 0 2px var(--maroon); /* Adds a nice maroon border */
    font-weight: 900;
  }
}
