/* ------------------------------------------------------------------
   Tallman Giving Fund — public site.

   Editorial, warm, unhurried: Fraunces display type over paper and
   navy bands, bronze rules, generous measure. Every class here is
   hand-rolled — no component library.
   ------------------------------------------------------------------ */

/* ---- Page shell ---- */

.public-main {
  min-height: 70vh;
}

.page-enter {
  animation: page-fade 0.45s ease-out;
}

@keyframes page-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Layout containers ---- */

.wrap,
.wrap-6,
.wrap-5,
.wrap-4,
.wrap-3 {
  margin-inline: auto;
  padding-inline: 20px;
  width: 100%;
}

.wrap {
  max-width: 80rem;
}
.wrap-6 {
  max-width: 72rem;
}
.wrap-5 {
  max-width: 64rem;
}
.wrap-4 {
  max-width: 56rem;
}
.wrap-3 {
  max-width: 46rem;
}

.band {
  padding-block: 72px;
}
.band-sm {
  padding-block: 48px;
}
.bg-white {
  background: var(--white);
}
.bg-paper {
  background: var(--paper);
}
.bg-warm {
  background: var(--paper-warm);
}
.bg-navy {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  color: var(--ink-on-navy);
}

.center {
  text-align: center;
}

/* ---- Typography ---- */

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 14px;
}

.bg-navy .eyebrow {
  color: var(--gold-300);
}

.h-display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.h-sec {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  color: var(--navy-800);
}

.bg-navy .h-sec {
  color: var(--ink-on-navy);
}

.h-card {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--navy-800);
  margin-bottom: 8px;
}

.lead {
  font-size: 1.22rem;
  line-height: 1.75;
  color: var(--ink-muted);
}

.bg-navy .lead {
  color: var(--ink-on-navy-dim);
}

.muted {
  color: var(--ink-muted);
}
.faint {
  color: var(--ink-faint);
}
.small {
  font-size: 0.9rem;
}
.xs {
  font-size: 0.8rem;
}
.semibold {
  font-weight: 600;
}
.bold {
  font-weight: 700;
}
.italic {
  font-style: italic;
}
.navy {
  color: var(--navy-800);
}
.gold {
  color: var(--gold-600);
}
.dim {
  color: var(--ink-on-navy-dim);
}
.serif {
  font-family: var(--font-display);
}

/* Section heading block: eyebrow + serif title + short bronze rule. */
.sec-head {
  max-width: 46rem;
  margin-bottom: 44px;
}
.sec-head.center {
  margin-inline: auto;
}
.sec-head p {
  margin-top: 14px;
  color: var(--ink-muted);
}
.bg-navy .sec-head p {
  color: var(--ink-on-navy-dim);
}

.rule {
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300));
  margin-top: 18px;
}
.center .rule,
.center.rule {
  margin-inline: auto;
}

.prose {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--ink-muted);
}
.prose p + p {
  margin-top: 1em;
}
.prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--navy-800);
  margin: 1.6em 0 0.5em;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose blockquote {
  margin: 1.4em 0 0;
  padding-left: 20px;
  border-left: 3px solid var(--gold-500);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--navy-800);
}
.prose strong {
  color: var(--ink);
}

/* ---- Grids & spacing utilities ---- */

.grid {
  display: grid;
  gap: 22px;
}
.grid.gap-sm {
  gap: 14px;
}
.g2,
.g3,
.g4,
.g5,
.gorg {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.g3f {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .g3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .g4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .g5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .gorg {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .gorg {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .g4,
  .g5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.split {
  display: grid;
  gap: 36px;
}
.split-13 {
  display: grid;
  gap: 28px;
}
@media (min-width: 768px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }
  .split.stretch {
    align-items: stretch;
  }
  .split-13 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
  .split-13 > .span2 {
    grid-column: span 2;
  }
}

.stack > * + * {
  margin-top: 18px;
}
.stack-sm > * + * {
  margin-top: 10px;
}
.mt-6 {
  margin-top: 24px;
}
.mt-10 {
  margin-top: 40px;
}
.mb-4 {
  margin-bottom: 16px;
}
.mb-6 {
  margin-bottom: 24px;
}
.mb-10 {
  margin-bottom: 40px;
}
.mb-16 {
  margin-bottom: 64px;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
}
.btn .arrow {
  transition: transform 0.18s ease;
}
.btn:hover .arrow {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--navy-800);
  color: var(--ink-on-navy);
}
.btn-primary:hover {
  background: var(--navy-700);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--navy-800);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--navy-800);
}

.btn-gold {
  border: 1px solid var(--gold-500);
  color: var(--gold-300);
  background: transparent;
}
.btn-gold:hover {
  background: rgb(255 255 255 / 0.06);
  color: var(--gold-100);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(250 248 243 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-bar {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  width: 40px;
  height: 40px;
}
.brand .brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--navy-800);
  line-height: 1.1;
}
.brand .brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 4px;
}
@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover {
  color: var(--navy-800);
  background: rgb(30 58 95 / 0.06);
}
.nav-link.current {
  color: var(--navy-800);
  font-weight: 600;
}
.nav-link.current::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 1px;
  background: var(--gold-500);
}
.nav-link .caret {
  transition: transform 0.15s ease;
}
.nav-item:hover .caret,
.nav-item:focus-within .caret {
  transform: rotate(180deg);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 8px;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nav-item:hover .nav-menu,
.nav-item:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--ink-muted);
  text-decoration: none;
}
.nav-menu a:hover {
  background: var(--paper);
  color: var(--navy-800);
}

.signout-link {
  font-size: 0.85rem;
  color: var(--ink-faint);
  text-decoration: none;
}
.signout-link:hover {
  color: var(--navy-800);
}

/* Mobile nav */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: var(--navy-800);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 20px 24px;
}
.mobile-nav.open {
  display: block;
}
.mobile-nav a {
  display: block;
  padding: 11px 4px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .sub {
  padding-left: 20px;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--ink-muted);
}
@media (min-width: 900px) {
  .mobile-nav {
    display: none !important;
  }
}

/* ---- Heroes ---- */

/* Typographic hero on navy — the home page. */
.hero-home {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgb(189 156 88 / 0.16), transparent 60%),
    linear-gradient(165deg, var(--navy-800) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: var(--ink-on-navy);
  padding-block: 96px 88px;
  overflow: hidden;
}
.hero-home-inner {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-home-inner {
    grid-template-columns: 7fr 5fr;
  }
  .hero-home {
    padding-block: 110px 100px;
  }
}
.hero-home .h-display {
  color: var(--white);
}
.hero-home .hero-sub {
  margin-top: 22px;
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--ink-on-navy-dim);
  max-width: 34rem;
}
.hero-home .hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-motto {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-300);
}

/* The hero's picture column: a photo held whole in an arched frame. */
.hero-figure {
  justify-self: center;
  max-width: 380px;
  width: 100%;
}
.hero-figure .frame {
  border-radius: 190px 190px var(--radius) var(--radius);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.18);
  box-shadow: 0 24px 60px rgb(8 15 26 / 0.45);
}
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.hero-figure figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-on-navy-faint);
}

/* Interior page hero: navy band, serif title, optional photo backdrop. */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  color: var(--ink-on-navy);
  overflow: hidden;
}
.hero .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}
.hero .hero-content {
  position: relative;
  max-width: 72rem;
  margin-inline: auto;
  padding: 88px 20px;
}
.hero.compact .hero-content {
  padding-block: 64px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  line-height: 1.1;
  color: var(--white);
  max-width: 40rem;
}
.hero .hero-sub {
  margin-top: 16px;
  max-width: 38rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink-on-navy-dim);
}

/* ---- Page header (breadcrumbed interior pages) ---- */

.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 36px;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.crumbs a {
  color: var(--gold-700);
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}
.crumbs .sep {
  color: var(--line-strong);
}
.page-header h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.12;
  color: var(--navy-800);
}
.page-header .subtitle {
  margin-top: 12px;
  max-width: 44rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

/* ---- Cards, tiles, panels ---- */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-1);
}
.card-lg {
  padding: 32px;
}

.card-warm {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card-warm-lg {
  padding: 32px;
}

.panel-navy {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  color: var(--ink-on-navy);
  border-radius: var(--radius);
  padding: 32px;
}
.panel-navy.big {
  padding: 48px 36px;
}

.tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.tile-warm {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.tile-glass {
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.row-center {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  margin-top: 8px;
}
.dot.navy {
  background: var(--navy-600);
}

.num-badge {
  flex: none;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-700);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.panel-navy .num-badge {
  background: rgb(255 255 255 / 0.12);
  color: var(--gold-300);
}

.pill-navy {
  display: inline-block;
  background: var(--navy-800);
  color: var(--ink-on-navy);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.avatar {
  width: 48px;
  height: 48px;
  margin-inline: auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-800);
  color: var(--gold-300);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Category tags */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--navy-050);
  color: var(--navy-700);
}
.tag-healthcare {
  background: #e8eef7;
  color: #2a4d7a;
}
.tag-education {
  background: #eae7f4;
  color: #4d3f7d;
}
.tag-faith {
  background: #f2e9d4;
  color: #8f7133;
}
.tag-community {
  background: #e2eee6;
  color: #2c6644;
}
.tag-military {
  background: #f0e6e2;
  color: #7a4530;
}

/* ---- Stats ---- */

.stat {
  text-align: center;
  padding: 26px 14px;
}
.stat .stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  color: var(--navy-800);
  font-variant-numeric: lining-nums;
}
.stat .stat-rule {
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold-500);
  margin: 12px auto 10px;
}
.stat .stat-label {
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.bg-navy .stat .stat-value,
.panel-navy .stat .stat-value {
  color: var(--white);
}
.bg-navy .stat .stat-label,
.panel-navy .stat .stat-label {
  color: var(--ink-on-navy-dim);
}

.huge-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  color: var(--gold-600);
}
.glass-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--gold-300);
}
.tile-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--navy-800);
}

/* ---- Quotes ---- */

.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.quote-card blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--navy-800);
}
.quote-card .attribution {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.serif-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.4;
  color: var(--white);
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--gold-500);
  display: block;
}

/* ---- Timeline ---- */

.timeline {
  position: relative;
  padding-left: 34px;
  list-style: none;
  margin: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line-strong);
}
.timeline li {
  position: relative;
  padding-bottom: 30px;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--gold-500);
}
.timeline .tl-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold-700);
  letter-spacing: 0.02em;
}
.timeline .tl-title {
  font-weight: 600;
  color: var(--navy-800);
  margin-top: 2px;
}
.timeline .tl-desc {
  margin-top: 4px;
  font-size: 0.92rem;
  color: var(--ink-muted);
  max-width: 44rem;
}

/* ---- Images ---- */

.image-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-frame.img-h72 img {
  height: 288px;
}
.image-frame.img-h80 img {
  height: 320px;
}
/* Portrait photos are shown whole — never cropped into a landscape band. */
.image-frame.portrait img {
  height: auto;
  object-fit: contain;
  background: var(--paper-warm);
}

.gallery-grid .shot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.gallery-grid .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid .shot:hover img {
  transform: scale(1.04);
}
.gallery-grid .shot-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(13 26 43 / 0.72), transparent 55%);
}
.gallery-grid .shot-label {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---- Section cards (hub navigation) ---- */

.section-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.section-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.section-card .thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-050);
}
.section-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section-card .body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.section-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy-800);
}
.section-card p {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--ink-muted);
  flex: 1;
}
.section-card .go {
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-700);
}

/* ---- Organizations ---- */

.org-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 14px 16px;
  text-align: center;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy-800);
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.org-tile:hover {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-1);
  transform: translateY(-2px);
}

.org-band {
  --org-brand: var(--navy-800);
  background:
    linear-gradient(rgb(13 26 43 / 0.25), rgb(13 26 43 / 0.25)),
    var(--org-brand);
  color: var(--white);
  padding-block: 40px;
}
.org-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.org-mark {
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: 16px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: var(--shadow-2);
}
.org-mark.has-logo {
  width: 150px;
}
.org-mark img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.org-mark span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--navy-800);
}
.org-band-text {
  flex: 1;
  min-width: 220px;
}
.org-band-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: rgb(255 255 255 / 0.75);
}
.org-visit {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 20px;
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: var(--radius-sm);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.15s ease;
}
.org-visit:hover {
  background: rgb(255 255 255 / 0.1);
}
.org-visit-host {
  font-weight: 400;
  font-size: 0.78rem;
  color: rgb(255 255 255 / 0.7);
}

/* ---- Fund rows (memorial funds) ---- */

.fund-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.fund-row .amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  white-space: nowrap;
}

/* ---- Footer ---- */

.site-footer {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: var(--ink-on-navy-dim);
  margin-top: 0;
}
.footer-inner {
  padding-block: 60px 28px;
}
.footer-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 820px) {
  .footer-grid {
    grid-template-columns: 5fr 3fr 4fr;
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand img {
  width: 44px;
  height: 44px;
}
.footer-brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--white);
}
.footer-about p {
  font-size: 0.92rem;
  line-height: 1.7;
}
.footer-h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li + li {
  margin-top: 10px;
}
.footer-links a {
  color: var(--ink-on-navy-dim);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-links a:hover {
  color: var(--white);
}
.footer-priorities {
  margin: 0;
  padding-left: 20px;
  font-size: 0.92rem;
}
.footer-priorities li + li {
  margin-top: 8px;
}
.footer-priorities li::marker {
  color: var(--gold-500);
  font-weight: 600;
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-on-navy-faint);
}
.footer-motto {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-300);
}

/* ---- Loading / error states ---- */

.page-loading {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--ink-faint);
}
.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--gold-600);
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
