/* ==========================================================================
   The Crescent Educational Foundation of Detroit — site styles
   ========================================================================== */

:root {
  /* Brand palette — drawn from the crescent logo (night sky + moonlight) */
  --ink: #0e1c2f;          /* midnight: headings, footer */
  --navy: #153256;         /* deep brand blue */
  --blue: #2c6aa3;         /* links, primary accents (AA on white) */
  --blue-soft: #5b9bc9;    /* logo blue — decorative only */
  --sky: #dce9f4;
  --mist: #f1f6fa;
  --paper: #fbfaf6;        /* warm page background */
  --white: #ffffff;
  --gold: #c39a3e;         /* moonlight accent */
  --gold-soft: #f3e8cc;
  --text: #22303f;
  --muted: #5a6876;
  --line: #dde4ea;

  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(14, 28, 47, .06), 0 8px 24px rgba(14, 28, 47, .07);
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em;
  font: 600 1rem/1.1 var(--font-sans);
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: #d6ae52; color: var(--ink); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--ink); color: #fff; }
.btn-outline { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn[aria-disabled="true"] { background: var(--line); color: var(--muted); pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, .94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 96px; }

.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); }
.brand img { width: 64px; height: 64px; border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; gap: 3px; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.85rem; letter-spacing: -.015em; }
.brand-sub { font-size: 1.02rem; color: var(--muted); letter-spacing: .01em; }

.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 10px 14px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 500; font-size: .98rem;
}
.nav-list a:hover { background: var(--mist); color: var(--navy); }
.nav-list a[aria-current="page"] { color: var(--navy); background: var(--sky); }
.nav-list .btn { margin-left: 8px; padding: .7em 1.2em; }
.nav-list .btn:hover { background: #d6ae52; }

.nav-toggle {
  display: none;
  align-items: center; gap: 8px;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 14px; font: 600 .95rem var(--font-sans); color: var(--ink); cursor: pointer;
}
.nav-toggle-bars { width: 18px; height: 12px; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
}
.nav-toggle-bars::before { top: 0; } .nav-toggle-bars span { top: 5px; } .nav-toggle-bars::after { bottom: 0; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(14,28,47,.08);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 20px; gap: 2px; }
  .nav-list a { padding: 12px 14px; border-radius: var(--radius-sm); }
  .nav-list .btn { margin: 10px 0 0; }
}
@media (max-width: 1080px) {
  .brand img { width: 54px; height: 54px; }
  .brand-name { font-size: 1.55rem; }
  .brand-sub { font-size: .9rem; }
  .nav-list a { padding: 10px 11px; }
}
@media (max-width: 520px) {
  .header-inner { min-height: 76px; gap: 10px; }
  .brand { gap: 11px; }
  .brand img { width: 46px; height: 46px; border-radius: 10px; }
  .brand-name { font-size: 1.3rem; }
  .brand-sub { font-size: .76rem; }
}
@media (max-width: 360px) { .brand-sub { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff;
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0 0 0 34%; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--ink) 34%, rgba(14,28,47,.82) 44%, rgba(14,28,47,.2) 68%, rgba(14,28,47,.05) 100%),
    linear-gradient(0deg, rgba(14,28,47,.45), transparent 35%);
}
.hero-inner { padding: clamp(80px, 13vw, 150px) 0 clamp(72px, 11vw, 130px); max-width: 660px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--gold-soft); font-weight: 500; }
.hero .lede { color: rgba(255,255,255,.86); margin-bottom: 32px; }
.hero .eyebrow { color: var(--gold-soft); }
@media (max-width: 700px) {
  .hero-media { inset: 0; }
  .hero::before { background: linear-gradient(0deg, rgba(14,28,47,.95) 20%, rgba(14,28,47,.7) 100%); }
}

/* Page hero (interior pages) */
.page-hero {
  background:
    radial-gradient(circle at 88% 20%, rgba(91,155,201,.35), transparent 40%),
    linear-gradient(160deg, var(--navy), var(--ink));
  color: #fff;
  padding: clamp(56px, 9vw, 96px) 0 clamp(48px, 7vw, 80px);
  position: relative; overflow: hidden;
}
.page-hero::after { /* subtle crescent watermark */
  content: ""; position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 340px; height: 340px; border-radius: 50%;
  box-shadow: -38px 10px 0 0 rgba(255,255,255,.07);
  pointer-events: none;
}
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero .lede { color: rgba(255,255,255,.82); max-width: 640px; }
.page-hero .eyebrow { color: var(--gold-soft); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(48px, 6vw, 72px) 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-mist { background: var(--mist); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sky); color: var(--navy); margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }

.feature-card { display: flex; flex-direction: column; }
.feature-card .card-link { margin-top: auto; padding-top: 18px; font-weight: 600; text-decoration: none; }
.feature-card .card-link::after { content: " →"; }

.scholarship-card { border-top: 4px solid var(--gold); }
.scholarship-card .tag {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--gold-soft); color: #7a5d1c; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- Quote / President ---------- */
.letter {
  background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 56px); align-items: start;
}
.letter-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--sky); }
.letter-sign { margin-top: 24px; }
.letter-sign strong { display: block; font-family: var(--font-serif); font-size: 1.2rem; color: var(--ink); }
.letter-sign span { color: var(--muted); font-size: .95rem; }
.letter blockquote { margin: 0; }
.letter blockquote p:first-child { font-family: var(--font-serif); font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.4; color: var(--ink); }
@media (max-width: 760px) {
  .letter { grid-template-columns: 1fr; }
  .letter-photo { max-width: 160px; }
}

/* ---------- Stats / facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--navy); color: #fff; border-radius: var(--radius); overflow: hidden; }
.fact { padding: 28px 28px; border-right: 1px solid rgba(255,255,255,.12); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-family: var(--font-serif); font-size: 1.5rem; color: var(--gold-soft); line-height: 1.2; margin-bottom: 4px; }
.fact span { color: rgba(255,255,255,.78); font-size: .95rem; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } .fact { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); } }

/* ---------- Media ---------- */
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sky); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { font-size: .88rem; color: var(--muted); padding: 10px 14px; background: var(--white); }
figure { margin: 0; }

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

.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.gallery .g-main { grid-row: span 2; }
.gallery .photo { margin: 0; }
.gallery .g-main img { aspect-ratio: 16 / 10; }
.gallery .g-side img { aspect-ratio: 16 / 10; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery .g-main { grid-column: span 2; grid-row: auto; } }

/* ---------- Lists ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 38px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23153256' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checklist li strong { color: var(--ink); }
.checklist li span { display: block; color: var(--muted); font-size: .95rem; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding: 22px 24px 22px 76px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 20px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-family: var(--font-serif); font-weight: 700;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 4px; }
.steps p { color: var(--muted); }

.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.timeline div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.timeline .when { display: block; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; color: var(--navy); }
.timeline .what { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; } }

.doc-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.doc-list li + li { border-top: 1px solid var(--line); }
.doc-list a { display: flex; align-items: center; gap: 14px; padding: 15px 18px; text-decoration: none; color: var(--text); }
.doc-list a:hover { background: var(--mist); color: var(--navy); }
.doc-list svg { flex: none; width: 22px; height: 22px; color: var(--blue); }
.doc-list .doc-meta { margin-left: auto; font-size: .8rem; color: var(--muted); white-space: nowrap; }

/* ---------- Notices ---------- */
.notice {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--gold-soft); border: 1px solid #e6d3a3; border-radius: var(--radius);
  padding: 20px 22px; color: #4c3a12;
}
.notice svg { flex: none; width: 24px; height: 24px; margin-top: 2px; color: #8a6a22; }
.notice strong { color: #3a2c0c; }
.notice-info { background: var(--sky); border-color: #c3d8ea; color: var(--navy); }
.notice-info svg { color: var(--navy); }

/* ---------- Board ---------- */
.board-intro { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: 32px; }
.board-intro h2 { margin: 0; }
.board-intro p { margin: 0; color: var(--muted); max-width: 420px; }

.profile-grid { display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
.profile-grid.officers { gap: 28px; }
@media (max-width: 1000px) { .profile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .profile-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

.profile-card {
  position: relative; display: flex; flex-direction: column; text-align: left;
  width: 100%; padding: 0; margin: 0; font: inherit; color: inherit;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
button.profile-card { cursor: pointer; }
button.profile-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(14,28,47,.06), 0 18px 40px rgba(14,28,47,.14); border-color: #c9d6e2; }
.profile-photo { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--sky); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
button.profile-card:hover .profile-photo img { transform: scale(1.04); }
.profile-photo.initials { display: grid; place-items: center; background: radial-gradient(circle at 70% 25%, rgba(255,255,255,.18), transparent 45%), linear-gradient(150deg, var(--blue-soft), var(--navy)); }
.profile-photo.initials span { font-family: var(--font-serif); font-size: clamp(2.4rem, 5vw, 3.4rem); color: #fff; font-weight: 600; letter-spacing: .02em; }
.profile-photo::after { /* moonlight sheen at the base of every portrait */
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(0deg, rgba(14,28,47,.28), transparent); pointer-events: none;
}
.profile-meta { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.profile-meta .name { font-family: var(--font-serif); font-weight: 600; font-size: 1.12rem; line-height: 1.25; color: var(--ink); }
.profile-meta .role { font-size: .88rem; color: var(--muted); }
.profile-card.officer .role { color: #7a5d1c; font-weight: 700; letter-spacing: .02em; }
.profile-cta {
  margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px;
  font-size: .86rem; font-weight: 700; color: var(--blue);
}
.profile-cta .plus {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sky); color: var(--navy); font-size: 1rem; line-height: 1; transition: transform .25s ease, background .25s;
}
button.profile-card:hover .plus { transform: rotate(90deg); background: var(--gold); color: var(--ink); }
.profile-card.is-static .profile-cta { color: var(--muted); font-weight: 500; }
.profile-card.officer { border-top: 4px solid var(--gold); }
.profile-card.officer .profile-meta { padding: 18px 20px 20px; }
.profile-card.officer .name { font-size: 1.22rem; }

/* In memoriam feature */
.memoriam {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 220px 1fr auto; gap: clamp(24px, 4vw, 48px); align-items: center;
  background: radial-gradient(circle at 92% 10%, rgba(195,154,62,.22), transparent 40%), linear-gradient(140deg, var(--navy), var(--ink));
  color: rgba(255,255,255,.84); border-radius: 22px; padding: clamp(28px, 4vw, 44px);
}
.memoriam-photo { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px rgba(243,232,204,.5), 0 0 0 12px rgba(243,232,204,.08); }
.memoriam-photo img { width: 100%; height: 100%; object-fit: cover; }
.memoriam h2 { color: #fff; margin-bottom: 6px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.memoriam .eyebrow { color: var(--gold-soft); margin-bottom: 8px; }
.memoriam p { margin: 0; }
@media (max-width: 820px) { .memoriam { grid-template-columns: 1fr; text-align: center; } .memoriam-photo { max-width: 160px; margin: 0 auto; } .memoriam .btn-row { justify-content: center; } }

/* Profile dialog */
.profile-dialog {
  width: min(980px, calc(100vw - 32px)); max-height: min(720px, calc(100vh - 48px));
  padding: 0; border: 0; border-radius: 24px; overflow: hidden;
  background: var(--white); color: var(--text);
  box-shadow: 0 30px 80px rgba(8, 16, 28, .45);
}
.profile-dialog[open] { display: flex; flex-direction: column; animation: pd-in .28s ease; }
.profile-dialog::backdrop { background: rgba(8, 16, 28, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes pd-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .profile-dialog[open] { animation: none; } }
.pd-main { display: grid; grid-template-columns: 300px 1fr; min-height: 0; flex: 1; }
.pd-photo {
  position: relative; display: flex; flex-direction: column;
  background: radial-gradient(circle at 80% 85%, rgba(195,154,62,.22), transparent 45%), linear-gradient(170deg, var(--navy), var(--ink));
}
.pd-photo img, .pd-photo .initials { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.pd-photo .initials { display: grid; place-items: center; font-family: var(--font-serif); font-size: 5rem; color: #fff; background: linear-gradient(150deg, var(--blue-soft), var(--navy)); }
.pd-photo::after { /* crescent emblem beneath the portrait */
  content: ""; margin: auto auto 34px 34px; width: 64px; height: 64px; border-radius: 50%;
  box-shadow: inset 14px -4px 0 0 rgba(243,232,204,.75);
}
.pd-body { position: relative; overflow-y: auto; padding: 44px 48px 36px; }
.pd-body .eyebrow { margin-bottom: 8px; }
.pd-body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 18px; padding-right: 40px; }
.pd-bio p { color: var(--text); }
.pd-close {
  position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.pd-close:hover { background: var(--mist); }
.pd-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); padding: 12px 16px; background: var(--paper);
}
.pd-nav button {
  display: inline-flex; align-items: center; gap: 10px; max-width: 42%;
  background: none; border: 0; padding: 8px 10px; border-radius: 10px; cursor: pointer;
  font: 600 .92rem var(--font-sans); color: var(--navy); text-align: left;
}
.pd-nav button:hover { background: var(--mist); }
.pd-nav button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-nav .pd-count { font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) {
  .profile-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .pd-main { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
  .pd-photo { padding: 28px 22px 0; background: none; }
  .pd-photo::after { display: none; }
  .pd-photo img, .pd-photo .initials { width: 112px; border-radius: 50%; box-shadow: 0 0 0 4px var(--sky); font-size: 2.4rem; }
  .pd-body { overflow: visible; padding: 18px 22px 28px; }
  .pd-close { position: fixed; top: 14px; right: 14px; background: rgba(255,255,255,.92); }
  .pd-nav button { max-width: 40%; }
}
body.dialog-open { overflow: hidden; }

/* Without JavaScript, bios simply list below the grid */
.bio-store { margin-top: 56px; display: grid; gap: 36px; }
.bio-store article { scroll-margin-top: 100px; }
.bio-store h3 { margin-bottom: 2px; }
.bio-store .bio-role { color: #7a5d1c; font-weight: 600; font-size: .95rem; }
.js .bio-store { display: none; }

/* ---------- Tribute ---------- */
.tribute-hero {
  position: relative; overflow: hidden; text-align: center; color: rgba(255,255,255,.85);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(243,232,204,.16), transparent 55%),
    linear-gradient(180deg, var(--ink), #0a1524);
  padding: clamp(64px, 9vw, 104px) 0 clamp(56px, 8vw, 88px);
}
.tribute-hero::before { /* faint crescent */
  content: ""; position: absolute; left: 50%; top: -120px; transform: translateX(-50%);
  width: 620px; height: 620px; border-radius: 50%;
  box-shadow: inset 34px -10px 0 0 rgba(243,232,204,.05);
  pointer-events: none;
}
.tribute-portrait {
  width: 210px; height: 210px; margin: 0 auto 28px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 4px rgba(243,232,204,.7), 0 0 0 14px rgba(243,232,204,.08), 0 20px 50px rgba(0,0,0,.45);
}
.tribute-portrait img { width: 100%; height: 100%; object-fit: cover; }
.tribute-hero .eyebrow { color: var(--gold-soft); letter-spacing: .3em; }
.tribute-hero h1 { color: #fff; font-weight: 500; margin-bottom: 10px; }
.tribute-hero .dates { font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; color: var(--gold-soft); }
.tribute-hero .role { margin-top: 6px; font-size: 1rem; }

.tribute-statement { font-family: var(--font-serif); font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.65; color: var(--ink); }
.motto {
  text-align: center; padding: clamp(40px, 6vw, 64px) var(--gutter);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.motto blockquote { margin: 0 auto; max-width: 760px; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.3; color: var(--navy); }
.motto cite { display: block; margin-top: 14px; font-style: normal; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }

.milestones { list-style: none; margin: 0; padding: 0; position: relative; }
.milestones::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), var(--sky)); }
.milestones li { position: relative; padding: 0 0 26px 44px; }
.milestones li:last-child { padding-bottom: 0; }
.milestones li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--gold); }
.milestones .yr { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.milestones strong { display: block; font-family: var(--font-serif); font-size: 1.15rem; color: var(--ink); font-weight: 600; }
.milestones span.d { color: var(--muted); font-size: .95rem; }

.masonry { columns: 4 220px; column-gap: 14px; }
.masonry button {
  display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: var(--sky);
  border-radius: 12px; overflow: hidden; cursor: zoom-in; break-inside: avoid;
  box-shadow: 0 1px 2px rgba(14,28,47,.08);
}
.masonry img { width: 100%; height: auto; transition: transform .4s ease, filter .4s ease; }
.masonry button:hover img { transform: scale(1.03); filter: brightness(1.05); }

.lightbox {
  width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; padding: 0; border: 0;
  background: rgba(6, 12, 22, .96); color: #fff;
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox::backdrop { background: rgba(6, 12, 22, .96); }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-size: .9rem; color: rgba(255,255,255,.7); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 72px; }
.lb-stage img { max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-caption { text-align: center; padding: 14px 18px 22px; color: rgba(255,255,255,.75); font-size: .95rem; }
.lb-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: #fff; font-size: 1.4rem; cursor: pointer; display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
@media (max-width: 600px) { .lb-stage { padding: 0 8px; } .lb-prev, .lb-next { top: auto; bottom: -62px; transform: none; } .lb-prev { left: 18px; } .lb-next { right: 18px; } }

.honor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .honor-grid { grid-template-columns: 1fr; } }

/* ---------- Donate ---------- */
.give-card { text-align: left; }
.give-card .handle {
  font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--navy);
  display: block; margin: 6px 0 16px;
}
.address { font-style: normal; line-height: 1.6; padding: 16px 18px; background: var(--mist); border-radius: var(--radius-sm); color: var(--ink); margin-bottom: 1em; }
.ein { font-size: .95rem; color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(circle at 10% 0%, rgba(195,154,62,.25), transparent 45%),
    linear-gradient(140deg, var(--navy), var(--ink));
  color: #fff; border-radius: calc(var(--radius) + 8px);
  padding: clamp(36px, 6vw, 64px);
  display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.82); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .95rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--white); border: 1px solid #c9d3dc; border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(44,106,163,.18); }
.form-note { font-size: .88rem; color: var(--muted); }

.subscribe { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe input {
  flex: 1 1 220px; min-width: 0; font: inherit; padding: 12px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff;
}
.subscribe input::placeholder { color: rgba(255,255,255,.6); }

/* ---------- FAQ ---------- */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq details + details { margin-top: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 30px 18px 0; position: relative;
  font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 20px; color: var(--muted); }

/* ---------- Memorial ---------- */
.memorial { background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow); display: grid; grid-template-columns: 380px 1fr; }
.memorial-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; min-height: 100%; }
.memorial-body { padding: clamp(28px, 4vw, 48px); }
.memorial-body .dates { color: var(--gold); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }
@media (max-width: 860px) { .memorial { grid-template-columns: 1fr; } .memorial-photo img { max-height: 460px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 64px 0 28px; margin-top: 0; font-size: .97rem; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 9px; }
.footer-brand span { font-family: var(--font-serif); font-size: 1.15rem; color: #fff; line-height: 1.2; }
.site-footer h2 { font-family: var(--font-sans); color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer address { font-style: normal; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: rgba(255,255,255,.55); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   App additions: CMS content, online application, installable app
   ========================================================================== */

.prose > * + * { margin-top: 1em; }
.prose p { margin: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0; }
.prose li + li { margin-top: .35em; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose blockquote { margin: 0; padding-left: 18px; border-left: 3px solid var(--gold); color: var(--muted); }
.h-lg { font-size: 1.6rem; }
.h-md { font-size: 1.35rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.subscribe-done { color: var(--gold-soft); font-weight: 600; margin: 0; }
.doc-desc { display: block; font-size: .85rem; color: var(--muted); }
.doc-list a > span:nth-child(2) { display: flex; flex-direction: column; }

.announce { background: var(--gold); color: var(--ink); font-weight: 600; font-size: .95rem; padding: 10px 0; text-align: center; }
.announce a { color: var(--ink); text-decoration: underline; margin-left: 6px; }

.cycle-status { font-weight: 600; font-size: .95rem; margin-top: 14px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--mist); color: var(--navy); }
.cycle-status.cycle-open { background: #e3f3e8; color: #1d5b33; }
.cycle-status.cycle-closed { background: #f3eeee; color: #6b3a3a; }

/* Sign-in */
.auth-card { max-width: 520px; }
.code-input { font: 700 1.6rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .3em; text-align: center; max-width: 240px; }
.form-error { background: #fbeaea; color: #7a1f1f; border: 1px solid #f0c9c9; border-radius: var(--radius-sm); padding: 12px 16px; }

/* My applications */
.app-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.app-card-head h2, .app-card-head h3 { margin: 4px 0 0; }
.app-card .tag, .apply-main .tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--gold-soft); color: #7a5d1c; padding: 3px 10px; border-radius: 999px; }
.status-pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--mist); color: var(--navy); }
.status-draft { background: #f1f1ee; color: #5a6876; }
.status-submitted, .status-under_review { background: var(--sky); color: var(--navy); }
.status-awarded { background: #e3f3e8; color: #1d5b33; }
.status-not_selected, .status-withdrawn { background: #f3eeee; color: #6b3a3a; }
.progress { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 10px 0 6px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #d6ae52); transition: width .4s ease; }

/* Application form */
.apply-section { padding-top: 40px; }
.apply-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.apply-nav { position: sticky; top: 112px; }
.apply-nav ol { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 2px; counter-reset: s; }
.apply-nav ol a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: .95rem; }
.apply-nav ol a::before { counter-increment: s; content: counter(s); width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; background: var(--line); color: var(--muted); }
.apply-nav ol a.done::before { content: "✓"; background: #2f7d4b; color: #fff; }
.apply-nav ol a:hover { background: var(--mist); }
.save-state { color: var(--muted); }
.apply-main { display: grid; gap: 24px; min-width: 0; }
.apply-main > .form { display: grid; gap: 24px; }
.apply-card { border: 1px solid var(--line); margin: 0; scroll-margin-top: 112px; }
fieldset.apply-card { padding: clamp(22px, 3vw, 32px); display: grid; gap: 18px; min-width: 0; }
.apply-card legend, .apply-card .legend { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; color: var(--ink); padding: 0; margin: 0 0 4px; float: left; width: 100%; }
.apply-card legend + * { clear: both; }
.apply-card-group { display: grid; gap: 16px; scroll-margin-top: 112px; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 600px) { .form-row.three { grid-template-columns: 1fr; } }
.field-help, .help { font-size: .88rem; color: var(--muted); margin: -2px 0 8px; }
.field.check label, label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.field.check input, label.check input { width: auto; margin-top: 5px; }
.word-count { font-size: .85rem; color: var(--muted); text-align: right; margin: 6px 0 0; }
.word-count.over { color: #a12a2a; font-weight: 700; }
.field input:disabled, .field textarea:disabled, .field select:disabled { background: var(--mist); color: var(--text); }
.legal { background: var(--mist); border-radius: var(--radius-sm); padding: 18px 20px; font-size: .95rem; }
.legal p + p, .legal ul { margin-top: .7em; }
input.signature { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.5rem; }
.upload-row { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.upload-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.upload-current { font-size: .92rem; margin-top: 4px; }
.upload-current svg { width: 16px; height: 16px; color: #2f7d4b; vertical-align: -3px; }
.upload-error { color: #a12a2a; font-weight: 600; }
.btn-file { position: relative; overflow: hidden; }
.btn-file svg { width: 18px; height: 18px; }
.btn-file input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rec-card { gap: 14px; }
.rec-card h3 { margin: 0; }
.checklist.compact { gap: 8px; }
.checklist.compact li { padding-left: 32px; }
.checklist.compact li::before { width: 20px; height: 20px; background-size: 12px; }
.checklist.compact li.todo::before { background: #fff; border: 2px solid #c9d3dc; }
.checklist.compact li a { color: var(--text); text-decoration: none; }
.checklist.compact li.todo a { color: var(--blue); text-decoration: underline; }
@media (max-width: 900px) {
  .apply-layout { grid-template-columns: 1fr; }
  .apply-nav { position: static; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
  .apply-nav ol { grid-template-columns: 1fr 1fr; }
}

/* Get the app */
.install { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.install-card ol { padding-left: 1.2em; margin: 12px 0 0; }
.install-card ol li + li { margin-top: 6px; }
@media (max-width: 760px) { .install { grid-template-columns: 1fr; } }

/* ==========================================================================
   "Get the app" section, install bar & sheet (website)
   ========================================================================== */
.app-promo { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .app-promo { grid-template-columns: 1fr; } .app-promo .phone { margin: 0 auto; } }
.phone { width: 290px; aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px; background: linear-gradient(160deg, #1d2a3d, #0b1422); box-shadow: 0 30px 60px rgba(14,28,47,.28), inset 0 0 0 2px rgba(255,255,255,.08); transform: rotate(-3deg); }
.phone-screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #f4f6f9; padding: 44px 14px 0; display: flex; flex-direction: column; gap: 12px; font-size: 12px; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 14px; background: #0b1422; }
.pm-head { display: flex; gap: 10px; align-items: center; }
.pm-head img { width: 36px; height: 36px; border-radius: 9px; }
.pm-head small { display: block; color: var(--muted); font-size: 10px; }
.pm-head strong { font-family: var(--font-serif); font-size: 17px; color: var(--ink); }
.pm-status { display: flex; gap: 10px; align-items: center; background: var(--navy); color: #fff; border-radius: 16px; padding: 12px; }
.pm-status small { display: block; color: var(--gold-soft); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.pm-status strong { display: block; font-size: 12px; }
.pm-status em { font-style: normal; font-size: 10px; color: rgba(255,255,255,.75); }
.pm-ring { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: conic-gradient(var(--gold) 72%, rgba(255,255,255,.18) 0); position: relative; }
.pm-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--navy); }
.pm-ring { isolation: isolate; } .pm-ring::before { z-index: -1; }
.pm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pm-tiles span { background: #fff; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 6px; font-weight: 700; color: var(--ink); box-shadow: 0 1px 2px rgba(14,28,47,.06); }
.pm-tiles svg { width: 20px; height: 20px; color: var(--navy); }
.pm-tabbar { margin-top: auto; margin-inline: -14px; display: flex; justify-content: space-around; background: #fff; border-top: 1px solid var(--line); padding: 10px 6px 18px; }
.pm-tabbar span { color: #9aa6b2; } .pm-tabbar span.on { color: var(--navy); }
.pm-tabbar svg { width: 20px; height: 20px; }

.install-bar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 70; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px 10px 10px 12px; box-shadow: 0 14px 40px rgba(14,28,47,.22); animation: bar-in .35s ease; }
.install-bar[hidden] { display: none; }
.install-bar img { border-radius: 10px; flex: none; }
.install-bar div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.install-bar strong { font-size: .95rem; color: var(--ink); }
.install-bar span { font-size: .8rem; color: var(--muted); }
.install-bar .btn { padding: .6em 1em; font-size: .9rem; }
.install-bar-close { background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--muted); padding: 4px 6px; cursor: pointer; }
body.has-install-bar { padding-bottom: 90px; }
@keyframes bar-in { from { transform: translateY(120%); } to { transform: none; } }

.install-sheet { width: min(460px, 100vw); max-width: 100vw; margin: auto auto 0; border: 0; border-radius: 24px 24px 0 0; padding: 14px 24px calc(24px + env(safe-area-inset-bottom)); text-align: center; box-shadow: 0 -10px 40px rgba(14,28,47,.25); }
@media (min-width: 700px) { .install-sheet { margin: auto; border-radius: 24px; } }
.install-sheet::backdrop { background: rgba(8,16,28,.5); }
.install-sheet[open] { animation: sheet-in .3s ease; }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 16px; }
.install-sheet img { margin: 0 auto 12px; border-radius: 14px; }
.install-sheet h2 { font-size: 1.35rem; }
.install-sheet ol { text-align: left; margin: 0 0 18px; padding-left: 1.3em; display: grid; gap: 10px; }
.install-sheet ol svg { width: 18px; height: 18px; vertical-align: -3px; color: var(--blue); }
.install-sheet .btn { width: 100%; }

/* ==========================================================================
   Installed app ("app-mode"): native-style chrome, screens, and motion
   ========================================================================== */
.app-bar, .app-tabbar, .ptr { display: none; }

.app-mode body { background: #f3f5f8; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.app-mode .site-header, .app-mode .site-footer, .app-mode .skip-link, .app-mode .install-bar { display: none !important; }
.app-mode .wrap { padding: 0 16px; }

/* Top app bar */
.app-mode .app-bar {
  display: grid; grid-template-columns: 88px 1fr 88px; align-items: center;
  position: sticky; top: 0; z-index: 55; height: calc(52px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 8px 0;
  background: rgba(243,245,248,.86); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .2s; user-select: none; -webkit-user-select: none;
}
.app-mode .app-bar.scrolled { border-bottom-color: rgba(14,28,47,.1); }
.app-bar-title { text-align: center; font-weight: 700; font-size: 1.02rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.app-bar.show-title .app-bar-title { opacity: 1; transform: none; }
.app-back { display: inline-flex; align-items: center; gap: 2px; background: none; border: 0; color: var(--blue); font: 500 1.02rem var(--font-sans); padding: 8px 6px; cursor: pointer; justify-self: start; }
.app-back svg { width: 24px; height: 24px; }
.app-bar-logo { width: 30px; height: 30px; border-radius: 8px; margin-left: 8px; }
.app-bar-action { justify-self: end; width: 40px; height: 40px; display: grid; place-items: center; color: var(--navy); border-radius: 50%; }
.app-bar-action svg { width: 26px; height: 26px; }

/* Bottom tab bar */
.app-mode .app-tabbar {
  display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid rgba(14,28,47,.1); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); user-select: none; -webkit-user-select: none;
}
.app-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px; font-size: .68rem; font-weight: 600; color: #8792a0; text-decoration: none; }
.app-tabbar a svg { width: 26px; height: 26px; }
.app-tabbar a[aria-current="page"] { color: var(--navy); }
.app-tabbar a[aria-current="page"] svg { stroke-width: 2.3; }

/* Pull to refresh */
.app-mode .ptr { display: grid; place-items: center; position: fixed; top: calc(env(safe-area-inset-top) + 8px); left: 50%; margin-left: -18px; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(14,28,47,.18); z-index: 80; opacity: 0; pointer-events: none; }
.ptr span { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--navy); transition: transform .2s; }
.ptr.ready span { transform: rotate(180deg); border-top-color: var(--gold); }
.ptr.loading span { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Screens: compact, card-based */
.app-mode .page-hero { background: none; color: var(--ink); padding: 6px 0 4px; }
.app-mode .page-hero::after { display: none; }
.app-mode .page-hero .eyebrow { color: var(--gold); margin-bottom: 4px; font-size: .7rem; }
.app-mode .page-hero h1 { color: var(--ink); font-size: 2rem; margin-bottom: 6px; }
.app-mode .page-hero .lede { color: var(--muted); font-size: 1rem; }
.app-mode .hero { display: none; }
.app-mode .tribute-hero { padding: 28px 0 32px; border-radius: 0 0 28px 28px; }
.app-mode .section { padding: 18px 0; }
.app-mode .section-tight { padding: 12px 0; }
.app-mode .section-alt, .app-mode .section-mist { background: transparent; border: 0; }
.app-mode .section-head { margin-bottom: 14px; }
.app-mode h2 { font-size: 1.45rem; }
.app-mode .lede { font-size: 1rem; }
.app-mode .card, .app-mode .letter, .app-mode .memorial, .app-mode .steps li, .app-mode .faq details, .app-mode .doc-list, .app-mode .timeline div { border-radius: 18px; border-color: transparent; box-shadow: 0 1px 2px rgba(14,28,47,.06); }
.app-mode .card { padding: 18px; }
.app-mode .grid { gap: 12px; }
.app-mode .cta-band { border-radius: 20px; padding: 22px; }
.app-mode .facts { border-radius: 18px; }
.app-mode .btn { min-height: 46px; }
.app-mode .btn:hover { transform: none; }
.app-mode .btn:active, .app-mode .ah-tile:active, .app-mode .ah-row:active, .app-mode .profile-card:active { transform: scale(.97); }
.app-mode .profile-card:hover { transform: none; }
.app-mode .split { gap: 18px; }
.app-mode .letter { padding: 20px; }
.app-mode .apply-section { padding-top: 8px; }
.app-mode .apply-nav { top: calc(60px + env(safe-area-inset-top)); }
.app-mode section:has(.app-promo) { display: none; }
.app-mode a, .app-mode button { touch-action: manipulation; }

/* App home screen */
.ah { padding: 4px 16px 24px; max-width: 640px; margin: 0 auto; display: grid; gap: 14px; }
.ah-hero { display: flex; align-items: center; gap: 14px; padding: 6px 0 4px; }
.ah-hero img { border-radius: 14px; box-shadow: 0 4px 14px rgba(14,28,47,.15); }
.ah-greet { margin: 0; color: var(--muted); font-size: .92rem; font-weight: 600; }
.ah-hero h1 { margin: 0; font-size: 1.9rem; }
.ah-sub { margin: 0; color: var(--muted); font-size: .85rem; }
.ah-announce { display: flex; gap: 10px; align-items: center; background: var(--gold-soft); color: #4c3a12; border-radius: 16px; padding: 12px 14px; text-decoration: none; font-weight: 600; font-size: .92rem; }
.ah-announce svg { width: 20px; height: 20px; flex: none; }
.ah-status { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; border-radius: 22px; padding: 18px; background: radial-gradient(circle at 90% 0%, rgba(195,154,62,.35), transparent 50%), linear-gradient(140deg, var(--navy), var(--ink)); box-shadow: 0 10px 26px rgba(14,28,47,.22); }
.ah-status-quiet { color: #fff; }
.ah-status .chev { width: 22px; height: 22px; margin-left: auto; flex: none; opacity: .7; }
.ah-status-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ah-kicker { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-soft); }
.ah-status strong { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.25; }
.ah-status-text > span:last-child { font-size: .85rem; color: rgba(255,255,255,.78); }
.ah-ring { --p: 0; flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; position: relative; isolation: isolate; font-weight: 700; font-size: .95rem; background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255,255,255,.18) 0); }
.ah-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--navy); z-index: -1; }
.ah-ring-icon { background: rgba(255,255,255,.14); }
.ah-ring-icon::before { display: none; }
.ah-ring svg { width: 30px; height: 30px; color: var(--gold-soft); }
.ah-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ah-tile { display: flex; flex-direction: column; gap: 4px; background: #fff; border-radius: 20px; padding: 16px; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(14,28,47,.06); transition: transform .12s; }
.ah-tile-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--sky); color: var(--navy); margin-bottom: 6px; }
.ah-tile-icon svg { width: 24px; height: 24px; }
.ah-tile strong { font-size: 1.02rem; }
.ah-tile small { color: var(--muted); font-size: .8rem; }
.ah-h { font-family: var(--font-sans); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 10px 4px -4px; }
.ah-list { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(14,28,47,.06); }
.ah-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); transition: background .12s; }
.ah-row + .ah-row { border-top: 1px solid #edf0f3; }
.ah-row:active { background: var(--mist); }
.ah-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ah-row-text strong { font-weight: 600; font-size: .98rem; }
.ah-row-text small { color: var(--muted); font-size: .82rem; }
.ah-row-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--sky); color: var(--navy); flex: none; }
.ah-row-icon svg { width: 18px; height: 18px; }
.ah-row .chev { width: 18px; height: 18px; color: #b3bcc6; flex: none; }
.ah-dot { width: 10px; height: 10px; border-radius: 50%; background: #b3bcc6; flex: none; margin: 0 4px; }
.ah-dot-open { background: #2f9e5b; box-shadow: 0 0 0 4px rgba(47,158,91,.15); }
.ah-dot-upcoming { background: var(--gold); }
.ah-foot { text-align: center; color: var(--muted); font-size: .75rem; margin-top: 8px; }

/* Native-style screen transitions (Chrome & Safari 18+) */
@media (display-mode: standalone) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .22s ease both; }
  ::view-transition-new(root) { animation: vt-in .26s ease both; }
  .app-bar { view-transition-name: app-bar; }
  .app-tabbar { view-transition-name: app-tabbar; }
}
@keyframes vt-out { to { opacity: 0; transform: translateX(-30px); } }
@keyframes vt-in { from { opacity: 0; transform: translateX(40px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
.app-mode .ah-h { font-size: .76rem; font-family: var(--font-sans); letter-spacing: .1em; margin: 10px 4px -4px; }
.app-mode .ah-hero h1 { font-size: 1.9rem; margin: 0; }

/* Board as a native-style list in the app */
.app-mode .board-intro { margin-bottom: 10px; }
.app-mode .board-intro p { display: none; }
.app-mode .profile-grid, .app-mode .profile-grid.officers { grid-template-columns: 1fr; gap: 0; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(14,28,47,.06); }
.app-mode .profile-card { flex-direction: row; align-items: center; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.app-mode .profile-card + .profile-card { border-top: 1px solid #edf0f3; }
.app-mode .profile-card.officer { border-top-width: 0; }
.app-mode .profile-card.officer + .profile-card.officer { border-top: 1px solid #edf0f3; }
.app-mode .profile-photo { width: 58px; flex: none; margin: 12px 14px 12px 14px; border-radius: 50%; }
.app-mode .profile-photo::after { display: none; }
.app-mode .profile-photo.initials span { font-size: 1.3rem; }
.app-mode .profile-meta, .app-mode .profile-card.officer .profile-meta { padding: 12px 14px 12px 0; flex-direction: column; }
.app-mode .profile-meta .name, .app-mode .profile-card.officer .name { font-size: 1.02rem; font-family: var(--font-sans); font-weight: 600; }
.app-mode .profile-cta { display: none; }
.app-mode button.profile-card::after { content: ""; width: 9px; height: 9px; border-right: 2px solid #b3bcc6; border-top: 2px solid #b3bcc6; transform: rotate(45deg); margin: 0 18px 0 auto; flex: none; }
.app-mode .profile-meta { flex: 1; min-width: 0; }
.app-mode .board-intro h2 { font-size: .78rem; font-family: var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.app-mode .board-intro .eyebrow { display: none; }
.app-mode .board-intro.mt-4 { margin-top: 22px; }

/* Cards with a photo across the top */
.card.has-media { padding: 0; overflow: hidden; }
.card-media { position: relative; flex: none; aspect-ratio: 4 / 3; background: var(--sky); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .5s ease; }
.card.has-media { height: 100%; }
.grid:has(> .card.has-media) { align-items: stretch; }
.card.has-media .card-body h3 { min-height: 1.15em; }
.card.has-media:hover .card-media img { transform: scale(1.04); }
.card-media .card-icon { position: absolute; left: 22px; bottom: -26px; margin: 0; background: var(--white); box-shadow: 0 6px 18px rgba(14,28,47,.16); z-index: 1; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: clamp(24px, 3vw, 34px); }
.card-media:has(.card-icon) + .card-body { padding-top: 40px; }
.card-body .card-link { margin-top: auto; padding-top: 18px; font-weight: 600; text-decoration: none; }
.card-body .card-link::after { content: " →"; }
.app-mode .card.has-media { padding: 0; }
.app-mode .card-media { aspect-ratio: 16 / 10; }
.app-mode .card-body { padding: 18px; }
.app-mode .card-media:has(.card-icon) + .card-body { padding-top: 36px; }
