:root {
  --navy: #16345c;
  --navy-deep: #0e2340;
  --gold: #b8923a;
  --gold-soft: #d4bc7a;
  --ivory: #f4f0e6;
  --paper: #faf7f1;
  --ink: #1c2430;
  --muted: #4e5964;
  --line: rgba(22, 52, 92, 0.16);
  --rule: #b8923a;
}
* { box-sizing: border-box; }
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.enroll-bar {
  background: var(--navy);
  color: #f4f0e6;
  text-align: center;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.82rem;
  padding: 9px 16px;
}
.enroll-bar strong { color: var(--gold-soft); font-weight: 400; }
header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(244, 240, 230, 0.96);
  border-bottom: 1px solid var(--rule);
}
.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand img { width: 54px; height: 54px; }
.brand span {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 400;
}
.brand small {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.site-menu {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: flex-end;
  margin-right: 4px;
}

#site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.92rem;
  color: var(--navy);
}

#site-nav a:hover,
#site-nav a.is-on { color: var(--gold); }

@media (min-width: 1000px) {
  .nav {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand apply"
      "menu menu";
    max-width: 1120px;
    align-items: center;
    gap: 10px 20px;
    padding-bottom: 12px;
  }
  .brand { grid-area: brand; margin-right: 0; }
  .apply { grid-area: apply; justify-self: end; }
  .site-menu {
    grid-area: menu;
    margin-right: 0;
    justify-content: center;
  }
  #site-nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px 22px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
  }
}

.menu-btn {
  display: none;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid var(--navy);
  background: transparent;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--navy);
}
.apply {
  background: var(--navy);
  color: var(--ivory);
  padding: 10px 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--navy);
  white-space: nowrap;
}
.apply:hover { background: var(--navy-deep); color: var(--ivory); }
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 28px 12px;
  text-align: center;
}
.hero img { width: min(280px, 68vw); margin: 0 auto 18px; }
.page-hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 28px 8px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
}
h1, h2, h3, .motto, .verse, .stage strong, .step strong {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  color: var(--navy);
}
h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 1.15;
}
.page-hero h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  text-wrap: balance;
}
.grades-line {
  white-space: nowrap;
}
.hero h1,
.page-hero h1,
h2,
.motto {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.motto {
  margin: 16px 0 0;
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}
.lede, .intro, .prose {
  max-width: 38rem;
  margin: 16px auto 0;
  font-size: 1.08rem;
  color: var(--ink);
  text-align: center;
}
.page-hero .lede,
.page-hero .verse {
  margin-left: auto;
  margin-right: auto;
}
.actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.actions-stack {
  flex-direction: column;
  align-items: center;
}
.page-hero .actions { justify-content: center; }
.btn {
  display: inline-block;
  padding: 12px 20px;
  border: 1px solid var(--navy);
  background: transparent;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
}
.btn.solid { background: var(--navy); color: var(--ivory); }
.btn.solid:hover { background: var(--navy-deep); color: var(--ivory); }
.btn.line:hover { border-color: var(--gold); color: var(--gold); }
.btn.emphasis {
  padding: 16px 42px;
  border: 2px solid var(--gold);
  background: var(--navy);
  color: var(--ivory);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
}
.btn.emphasis:hover { background: var(--navy-deep); color: var(--ivory); }
.actions-stack .btn.emphasis { margin-bottom: 6px; }
.verse {
  margin: 28px auto 0;
  max-width: min(54rem, 100%);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
}
.verse-line {
  display: block;
}
.hero .verse {
  max-width: 100%;
}
@media (min-width: 721px) {
  .verse-line {
    white-space: nowrap;
    font-size: clamp(0.88rem, 1.05vw, 1.02rem);
  }
}
.verse cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 26px auto;
  border: 0;
}
section { padding: 36px 28px 48px; }
.wrap { max-width: 760px; margin: 0 auto; }
h2 {
  margin: 0 0 14px;
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.2;
}
.prose {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.prose p { margin: 0 0 14px; }
.pillars { border-top: 1px solid var(--line); }
.grid, .stages, .steps {
  margin-top: 22px;
  display: grid;
  gap: 22px 32px;
}
.grid, .stages { grid-template-columns: repeat(3, 1fr); }
.steps { grid-template-columns: repeat(4, 1fr); }
.card, .stage, .step {
  text-align: left;
  padding: 0 0 0 14px;
  border-left: 1px solid var(--rule);
  background: transparent;
}
.card h3, .stage strong, .step strong {
  display: block;
  margin: 0 0 6px;
  font-size: 1.2rem;
}
.step em {
  display: block;
  font-style: normal;
  font-family: "Source Sans 3", sans-serif;
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.postings {
  display: grid;
  gap: 28px;
  margin-top: 8px;
}
.posting {
  text-align: left;
  padding: 0 0 0 14px;
  border-left: 1px solid var(--rule);
}
.posting h2 {
  text-align: left;
  margin: 0 0 4px;
  font-size: 1.35rem;
}
.posting .posting-detail {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}
.posting p { margin: 0 0 12px; }
.posting-action { margin: 16px 0 0; }
.job-view {
  text-align: left;
}
.job-view h1 {
  margin: 0 0 18px;
  text-align: left;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.job-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.job-actions a { color: var(--navy); }
.job-pages { display: grid; }
.job-pages canvas {
  width: 100%;
  height: auto;
  background: transparent;
}
.job-frame {
  width: 100%;
  height: 75vh;
  min-height: 520px;
  border: 0;
  background: transparent;
}
.job-sheet {
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
}
.job-sheet h2,
.job-sheet h3 {
  text-align: left;
  margin: 22px 0 8px;
  color: var(--navy);
}
.job-sheet h2 { font-size: 1.35rem; }
.job-sheet h3 { font-size: 1.12rem; }
.job-sheet p { margin: 0 0 12px; }
.job-sheet .job-bullet { padding-left: 1.1em; text-indent: -1.1em; }
.job-sheet .job-bullet::before { content: "• "; }
.job-sheet table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 14px;
}
.job-sheet td {
  border: 1px solid var(--line);
  padding: 6px 8px;
  vertical-align: top;
  text-align: left;
}
@media print {
  header, footer, .enroll-bar, .job-actions { display: none !important; }
  section { padding: 0; }
  .job-view { max-width: none; }
  .job-sheet { border: 0; padding: 0; }
}
.empty-note {
  text-align: center;
  color: var(--muted);
}
.card p, .stage span, .step span {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.band {
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.band p { max-width: 34rem; margin: 0 auto; }
.band .actions { justify-content: center; }
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  text-align: center;
}
.split h2,
.split p {
  text-align: center;
}
.split p { color: var(--muted); max-width: 38rem; margin-left: auto; margin-right: auto; }
.split .actions { justify-content: center; }
.gifts {
  display: grid;
  gap: 0;
  max-width: 34rem;
  margin: 0 auto;
  text-align: left;
}
.gift {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 0.98rem;
}
.gift b { color: var(--navy); font-weight: 600; }
.contact-facts {
  margin: 18px auto 0;
  max-width: 36rem;
  text-align: center;
}
.contact-facts p { margin: 0 0 6px; }
form.note {
  max-width: 480px;
  margin: 28px auto 0;
  display: grid;
  gap: 12px;
  text-align: left;
}
form.note label {
  display: grid;
  gap: 4px;
  color: var(--navy);
  font-size: 0.88rem;
}
input, select, textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
button.btn { cursor: pointer; }
footer {
  background: var(--navy);
  color: #e7e1d4;
  padding: 36px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
footer .wrap { display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: center; }
footer img {
  width: 72px;
  margin: 0 0 12px;
}
footer p {
  margin: 0;
  width: min(760px, 100%);
  text-align: center;
}
footer p + p {
  margin-top: 4px;
  color: rgba(231, 225, 212, 0.92);
  font-size: 0.95rem;
}
footer .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  width: min(760px, 100%);
  margin-top: 14px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.85rem;
  color: var(--gold-soft);
  text-align: center;
}
footer .visitor-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(760px, 100%);
  margin: 22px 0 0;
}
footer .visitor-label {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
footer .visitor-digits {
  display: flex;
  gap: 4px;
}
footer .visitor-digits span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.85rem;
  background: var(--navy-deep);
  border: 1px solid rgba(212, 188, 122, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--ivory);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1;
}
footer .footer-admin {
  width: min(760px, 100%);
  margin: 16px 0 0;
  text-align: center;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
footer .footer-admin a {
  color: rgba(231, 225, 212, 0.5);
}
footer .footer-admin a:hover {
  color: var(--gold-soft);
}
@media (max-width: 800px) {
  .grid, .stages, .steps, footer .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 999px) {
  .nav {
    flex-wrap: wrap;
    align-items: center;
  }

  .site-menu {
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-right: 0;
  }

  .menu-btn { display: block; }

  #site-nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .nav.is-menu-open #site-nav { display: flex; }

  .nav.is-menu-open .site-menu {
    width: 100%;
    order: 4;
  }

  #site-nav a {
    padding: 11px 2px;
    border-bottom: 1px solid var(--line);
  }

  #site-nav a:last-child { border-bottom: 0; }
}

@media (max-width: 720px) {
  html, body { overflow-x: clip; }
  body {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .enroll-bar {
    font-size: 0.72rem;
    line-height: 1.45;
    padding: 8px 12px;
  }

  .nav {
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 14px;
    gap: 8px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0;
  }

  .brand img { width: 44px; height: 44px; }
  .brand span { font-size: 0.98rem; }
  .brand small { letter-spacing: 0.08em; }

  .apply {
    padding: 8px 12px;
    font-size: 0.68rem;
    flex: 0 0 auto;
  }

  .hero,
  .page-hero,
  section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero { padding-top: 32px; }
  .page-hero { padding-top: 40px; }

  h1 { font-size: clamp(1.75rem, 8vw, 2.35rem); }
  .page-hero h1 {
    font-size: clamp(1.45rem, 6.2vw, 1.95rem);
    text-wrap: pretty;
  }
  .page-hero h1 .grades-line {
    display: block;
    margin-top: 0.12em;
  }
  h2 { font-size: clamp(1.45rem, 5.5vw, 1.85rem); }

  .eyebrow {
    letter-spacing: 0.1em;
    font-size: 0.66rem;
    line-height: 1.45;
  }

  .motto { font-size: clamp(1.05rem, 4.5vw, 1.3rem); }
  .lede, .intro, .prose { font-size: 1rem; }

  .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .actions .btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
  }

  .month-bar { gap: 8px; }
  .month-bar h2 { font-size: 1.15rem; }
  .month-bar .btn {
    width: auto;
    max-width: none;
    padding: 8px 8px;
  }
  .month-day { min-height: 58px; padding: 3px; }
  .month-num { font-size: 0.78rem; }
  .month-event { font-size: 0.62rem; }
  .month-dow { font-size: 0.58rem; letter-spacing: 0.02em; }

  .gift {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .gift span { line-height: 1.45; }

  footer {
    padding-left: 18px;
    padding-right: 18px;
    text-align: center;
  }

  footer img {
    margin-left: auto;
    margin-right: auto;
  }

  footer .links {
    justify-content: center;
  }
}

.empty-state { margin-top: 8px; }

.eyebrow a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.calendar-switch { margin-bottom: 24px; }

.event-list {
  display: grid;
  gap: 20px;
  text-align: left;
}

.event-card {
  padding: 0 0 0 14px;
  border-left: 1px solid var(--rule);
}

.event-when {
  margin: 0 0 6px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.event-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  text-align: left;
}

.event-meta,
.event-details {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.98rem;
  text-align: left;
}

.event-meta strong {
  font-weight: 600;
  color: var(--navy);
  margin-right: 6px;
}

.event-actions { margin: 12px 0 0; }
.event-actions .btn { padding: 8px 14px; font-size: 0.7rem; }

.wrap.is-month { max-width: 980px; }

.month-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 16px;
}
.month-bar h2 {
  margin: 0;
  flex: 1;
  text-align: center;
  font-size: 1.45rem;
}
.month-bar .btn { padding: 8px 12px; font-size: 0.68rem; }

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: left;
}
.month-dow {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  padding: 0 0 6px;
}
.month-day {
  min-height: 92px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 6px;
}
.month-day.is-out { opacity: 0.4; }
.month-day.is-today { border-color: var(--gold); }
.month-num {
  display: block;
  font-family: "Libre Baskerville", Georgia, serif;
  color: var(--navy);
  font-size: 0.92rem;
  line-height: 1.2;
}
.month-event {
  display: block;
  margin-top: 4px;
  padding: 2px 4px;
  background: rgba(184, 146, 58, 0.2);
  color: var(--navy);
  font-size: 0.72rem;
  line-height: 1.3;
  overflow: hidden;
}
.month-event.is-past { opacity: 0.65; }
.month-events { margin-top: 28px; }

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  text-align: left;
}

.album-card {
  display: block;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0;
  overflow: hidden;
}

.album-card img,
.album-empty {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--line);
}

.album-card h3 {
  margin: 12px 14px 4px;
  font-size: 1.15rem;
  text-align: left;
}

.album-card p {
  margin: 0 14px 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.bio-wrap { max-width: 820px; }
.bio-grid {
  display: grid;
  gap: 0;
}
.bio-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px 32px;
  align-items: start;
  text-align: left;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.bio-card:first-child {
  padding-top: 0;
  border-top: 0;
}
.bio-card.is-text { grid-template-columns: 1fr; }
.bio-card img {
  width: 180px;
  height: 225px;
  object-fit: cover;
  object-position: center 18%;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}
.bio-card h3 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  text-align: left;
}
.bio-role {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.bio-copy p {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.6;
  text-align: left;
}
@media (max-width: 640px) {
  .bio-card { grid-template-columns: 1fr; }
  .bio-card img { margin: 0 auto; }
}

.board-photo-wrap { max-width: 920px; }
.board-photo {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}
.board-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.admin-photo-preview {
  display: block;
  width: min(420px, 100%);
  height: auto;
  margin: 8px 0 12px;
  border: 1px solid var(--line);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.photo-tile {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.photo-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.photo-tile span {
  display: block;
  padding: 8px 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(14, 35, 64, 0.92);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 16px;
}

.lightbox[hidden] { display: none !important; }

.lightbox figure {
  margin: 0;
  text-align: center;
  grid-column: 1 / -1;
  grid-row: 1;
}

.lightbox img {
  max-width: min(960px, 100%);
  max-height: min(72vh, 720px);
  margin: 0 auto;
  object-fit: contain;
}

.lightbox figcaption {
  color: var(--ivory);
  margin-top: 10px;
  font-size: 0.95rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 1px solid var(--gold-soft);
  background: transparent;
  color: var(--ivory);
  padding: 8px 12px;
  cursor: pointer;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

.test-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
.test-gate form {
  width: min(440px, 100%);
  text-align: center;
}
.test-gate img {
  width: 168px;
  margin: 0 auto 28px;
}
.test-gate h1 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 10px;
}
.test-gate p {
  margin: 0;
  color: var(--muted);
}
.test-gate .gate-kind {
  margin: 0 0 18px;
}
.test-gate .gate-soon {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.65rem;
  color: var(--navy);
}
.test-gate label {
  display: block;
  margin: 22px 0 16px;
  text-align: left;
  font-weight: 600;
}
.test-gate input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
}
.test-gate .notice {
  margin-top: 16px;
  color: #8a1f1f;
}

.application {
  max-width: 640px;
  margin: 8px auto 0;
  display: grid;
  gap: 18px;
  text-align: left;
}
.application h2 {
  margin: 8px 0 0;
  font-size: 1.35rem;
  text-align: left;
}
.application .note-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.application label,
.application .field {
  display: grid;
  gap: 4px;
  color: var(--navy);
  font-size: 0.92rem;
}
.application .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.application .checks {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.application .checks label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--ink);
}
.application .checks input,
.application .check-line input { margin-top: 3px; }
.application .check-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink);
}
.application fieldset {
  border: 1px solid var(--line);
  margin: 0;
  padding: 12px 14px 14px;
}
.application legend { padding: 0 4px; }
.application .materials {
  margin: 0;
  padding-left: 1.2rem;
}
.application .materials li { margin: 4px 0; }
.sig-pad {
  width: 100%;
  height: 140px;
  background: #fff;
  border: 1px solid var(--line);
  touch-action: none;
  cursor: crosshair;
}
.form-errors {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e2c2c2;
  background: #fff6f6;
  color: #8a1f1f;
}
.form-ok {
  max-width: 480px;
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid #c9d8c4;
  background: #f4f8f2;
  color: var(--navy);
}
.mail-pop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(14, 35, 64, 0.55);
}
.mail-pop[hidden] { display: none !important; }
.mail-pop-card {
  position: relative;
  width: min(440px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px 24px 22px;
  text-align: left;
}
.mail-pop-card h2 {
  margin: 0 36px 8px 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--navy);
}
.mail-pop-card > p { margin: 0 0 16px; }
.mail-pop form.note { margin: 0; max-width: none; }
.mail-pop .form-errors,
.mail-pop .form-ok { max-width: none; margin: 0; }
.mail-pop-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.form-errors p { margin: 0 0 6px; }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 640px) {
  .application .pair { grid-template-columns: 1fr; }
}
