@import "tailwindcss";

:root {
  --background: #f4f1e7;
  --foreground: #142820;
  --surface: #faf8f2;
  --muted: #d9d2bc;
  --accent: #c47a3a;
  --accent-foreground: #fff9f2;
  --pine: #1a3d32;
  --pine-deep: #0f241c;
  --pine-light: #2a5a49;
  --sand: #e8e2d0;
  --sand-light: #f7f4eb;
  --copper: #b86d34;
  --link: #3d8f6f;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-12: 6rem;

  --page-max: 90rem;
  --header-h: 4.75rem;
  --fund-color-1: #2a5a49;
  --fund-color-2: #c47a3a;
  --fund-color-3: #6b8f7a;
  --hero-height-home: min(92vh, 56rem);
  --hero-height-standard: min(70vh, 40rem);
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-body);
  --font-display: var(--font-display);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body), system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--pine-light);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 100;
  width: auto;
  height: auto;
  padding: var(--space-2) var(--space-3);
  margin: 0;
  overflow: visible;
  clip: auto;
  background: var(--pine-deep);
  color: var(--sand-light);
  border-radius: 0.5rem;
  text-decoration: none;
}

.sr-only:focus {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 100;
  width: auto;
  height: auto;
  padding: var(--space-2) var(--space-3);
  margin: 0;
  overflow: visible;
  clip: auto;
  background: var(--pine-deep);
  color: var(--sand-light);
  border-radius: 0.5rem;
}

/* 12-column page grid */
.page-grid {
  width: min(100% - 2rem, var(--page-max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-3);
}

.col-full {
  grid-column: 1 / -1;
}

.col-main {
  grid-column: 1 / -1;
}

.col-rail {
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  .col-main {
    grid-column: 1 / 9;
  }
  .col-rail {
    grid-column: 9 / -1;
  }
  .col-span-5 {
    grid-column: span 5;
  }
  .col-span-6 {
    grid-column: span 6;
  }
  .col-span-7 {
    grid-column: span 7;
  }
  .col-start-2 {
    grid-column-start: 2;
  }
  .col-4-8 {
    grid-column: 4 / 9;
  }
  .col-2-7 {
    grid-column: 2 / 8;
  }
  .col-6-12 {
    grid-column: 6 / 13;
  }

  .col-6-12--centered {
    align-self: center;
  }

  .split-section__media {
    margin-top: var(--space-8);
  }
}

@media (max-width: 1023px) {
  .col-2-7,
  .col-6-12 {
    grid-column: 1 / -1;
    align-self: start;
  }

  .col-2-7.split-section__media {
    margin-top: var(--space-6);
  }

  .col-6-12.split-section__media {
    margin-top: var(--space-3);
  }

  .col-6-12.split-section__text {
    margin-top: var(--space-3);
  }

  /* Keep main content, then image/text pairs, then sidebars on small screens */
  .col-main {
    order: 1;
  }

  .col-2-7 {
    order: 2;
  }

  .col-6-12 {
    order: 3;
  }

  .col-rail {
    order: 4;
  }

  .col-full {
    order: 5;
  }

  .fact-rail {
    position: static;
    top: auto;
  }
}

/* Typography */
.display-xl {
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.display-lg {
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 500;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chapter-num {
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1;
  color: var(--copper);
  opacity: 0.35;
}

.lead {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  line-height: 1.7;
  max-width: 42rem;
}

.pull-quote {
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.35;
  color: var(--pine);
  border-left: 3px solid var(--copper);
  padding-left: var(--space-3);
  margin: var(--space-4) 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform 200ms ease,
    filter 200ms ease,
    background 200ms ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--copper), #9a5528);
  color: var(--accent-foreground);
  box-shadow: 0 12px 28px -12px rgba(154, 85, 40, 0.65);
}

.btn-primary:hover {
  filter: brightness(1.05);
  color: var(--accent-foreground);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #f7f4e9;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border-color: var(--muted);
}

.btn-outline:hover {
  border-color: var(--pine-light);
  color: var(--pine);
}

.btn-on-dark {
  background: var(--sand-light);
  color: var(--pine-deep);
}

.btn--disabled,
.btn--disabled:hover {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  filter: none;
  pointer-events: none;
}

.donate-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 36rem;
}

.donate-request-note {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.donate-request-note a {
  color: var(--pine);
  font-weight: 600;
}

.donate-request-note--on-dark,
.donate-request-note--on-dark a {
  color: rgba(247, 244, 233, 0.92);
}

.coming-soon-item {
  color: var(--pine);
  opacity: 0.72;
  cursor: not-allowed;
}

/* Cinematic hero (home, donate, and all sub-pages) */
.cinematic-hero {
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
}

.cinematic-hero--home {
  min-height: var(--hero-height-home);
}

.cinematic-hero--standard {
  min-height: var(--hero-height-standard);
}

.cinematic-hero__content--page {
  padding: var(--space-8) var(--space-2) var(--space-10);
  min-height: 14rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cinematic-hero__lead-slot {
  min-height: 5.5rem;
  display: flex;
  align-items: flex-start;
}

.cinematic-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--pine-deep);
}

.cinematic-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(15, 36, 28, 0.92) 0%, rgba(15, 36, 28, 0.55) 48%, rgba(15, 36, 28, 0.25) 100%),
    linear-gradient(0deg, rgba(15, 36, 28, 0.85) 0%, transparent 45%);
}

.cinematic-hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.cinematic-hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, var(--page-max));
  margin-inline: auto;
  padding: var(--space-8) var(--space-2) var(--space-12);
}

.cinematic-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.hero-chip {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f3ede0;
  backdrop-filter: blur(6px);
}

/* Section bands */
.section-pad {
  padding-block: var(--space-12);
}

.band-sand {
  background: var(--sand-light);
}

.band-pine {
  background: linear-gradient(165deg, var(--pine-deep), var(--pine));
  color: #eef5ef;
}

.band-pine a {
  color: #b8e0cc;
}

/* Fact rail */
.fact-rail {
  position: sticky;
  top: calc(var(--header-h) + var(--space-3));
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.fact-item {
  padding: var(--space-3);
  border-left: 2px solid var(--copper);
  background: linear-gradient(90deg, rgba(196, 122, 58, 0.08), transparent);
}

.fact-item dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pine-light);
  margin-bottom: 0.25rem;
}

.fact-item dd {
  margin: 0;
  font-family: var(--font-display), Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--pine-deep);
}

.band-pine .fact-item {
  border-left-color: var(--copper);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent);
}

.band-pine .fact-item dt {
  color: rgba(238, 245, 239, 0.65);
}

.band-pine .fact-item dd {
  color: #f7f4e9;
}

/* Media */
.media-cinematic {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 0 1.5rem 1.5rem 0;
  min-height: 16rem;
  background: var(--pine-deep);
  box-shadow: 0 32px 64px -40px rgba(15, 36, 28, 0.75);
}

.media-cinematic--left {
  border-radius: 1.5rem 0 0 1.5rem;
}

@media (max-width: 1023px) {
  .media-cinematic,
  .media-cinematic--left {
    border-radius: 1rem;
  }
}

/* Map */
.map-cinematic {
  position: relative;
  padding: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

.map-counties {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.map-county-node {
  padding: 0.65rem 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 0.65rem;
  border: 1px solid rgba(184, 224, 204, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #e8f5ec;
  transition:
    background 200ms ease,
    transform 200ms ease,
    box-shadow 200ms ease;
}

.map-county-node:hover {
  background: rgba(196, 122, 58, 0.35);
  border-color: rgba(244, 208, 171, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.4);
}

/* Action paths - asymmetric */
.action-paths {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 900px) {
  .action-paths {
    grid-template-columns: 1.1fr 0.95fr 1.05fr;
    align-items: start;
  }
  .action-path:nth-child(2) {
    margin-top: var(--space-8);
  }
  .action-path:nth-child(3) {
    margin-top: var(--space-4);
  }
}

.action-path {
  position: relative;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--muted);
  box-shadow: 0 24px 48px -36px rgba(20, 40, 32, 0.5);
}

.action-path--angled {
  clip-path: polygon(0 0, 100% 2%, 100% 100%, 0 98%);
}

.action-path__num {
  font-family: var(--font-display), Georgia, serif;
  font-size: 2.5rem;
  color: var(--copper);
  opacity: 0.5;
  line-height: 1;
}

.action-path__media {
  position: relative;
  height: 10rem;
  margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) var(--space-3);
  overflow: hidden;
  background: var(--pine-deep);
}

.action-path__media .credited-image {
  position: absolute;
  inset: 0;
}

.action-path__media-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(20, 40, 32, 0.55), transparent 55%);
}

/* Organic divider */
.organic-divider {
  display: block;
  width: 100%;
  height: 4rem;
  margin-block: -1px;
}

.organic-divider--sand-top path {
  fill: var(--sand-light);
}

.organic-divider--pine-bottom path {
  fill: var(--pine-deep);
}

/* Editorial blocks */
.prose-block h2 {
  font-family: var(--font-display), Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.prose-block ul {
  padding-left: 1.25rem;
}

.prose-block li {
  margin-bottom: 0.5rem;
}

/* Citation */
.citation-panel {
  margin-top: var(--space-8);
  padding: var(--space-4);
  border-top: 1px solid var(--muted);
  font-size: 0.9rem;
}

.citation-panel h2 {
  font-size: 1rem;
  margin: 0 0 var(--space-2);
}

.credited-image {
  position: relative;
  margin: 0;
  width: 100%;
  height: 100%;
}

.credited-image__trigger {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.credited-image__trigger:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: -3px;
}

.credited-image__expand-hint {
  position: absolute;
  right: 0.65rem;
  top: 0.65rem;
  z-index: 2;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 36, 28, 0.72);
  color: rgba(247, 244, 233, 0.92);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.credited-image__trigger:hover .credited-image__expand-hint,
.credited-image__trigger:focus-visible .credited-image__expand-hint {
  opacity: 1;
}

.credited-image--contain img {
  padding: 0.5rem;
}

.media-cinematic .credited-image,
.cinematic-hero__media .credited-image {
  position: absolute;
  inset: 0;
}

.image-credit {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(20, 40, 32, 0.72);
}

.image-credit--overlay {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  margin: 0;
  padding: 0.35rem 0.6rem;
  max-width: min(22rem, calc(100% - 1.5rem));
  border-radius: 0.35rem;
  background: rgba(15, 36, 28, 0.72);
  color: rgba(247, 244, 233, 0.92);
  font-size: 0.72rem;
}

.image-credit--overlay a {
  color: #b8e0cc;
}

.youtube-embed {
  margin: var(--space-4) 0 0;
}

.youtube-embed__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--pine-deep);
}

.youtube-embed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.youtube-embed__credit {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: rgba(20, 40, 32, 0.72);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(15, 36, 28, 0.88);
  backdrop-filter: blur(6px);
}

.image-lightbox__dialog {
  position: relative;
  width: min(100%, 56rem);
  max-height: calc(100vh - 2 * var(--space-4));
  overflow: auto;
  border-radius: 0.75rem;
  background: var(--surface);
  box-shadow: 0 32px 64px -24px rgba(0, 0, 0, 0.55);
}

.image-lightbox__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  padding: 0.45rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: var(--pine-deep);
  color: #f7f4e9;
  font-size: 0.85rem;
  cursor: pointer;
}

.image-lightbox__stage {
  padding: var(--space-4);
  background: var(--pine-deep);
}

.image-lightbox__image {
  display: block;
  max-height: min(72vh, 40rem);
  margin-inline: auto;
}

.image-lightbox__credit {
  padding: 0 var(--space-4) var(--space-4);
}

/* Mobile donate bar */
.mobile-donate-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  padding: var(--space-2);
  background: rgba(15, 36, 28, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-donate-bar__note {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
  color: rgba(247, 244, 233, 0.9);
}

.mobile-donate-bar__note a {
  color: #f7f4e9;
  font-weight: 600;
  text-decoration: underline;
}

.mobile-donate-bar .donate-cta,
.mobile-donate-bar .btn {
  width: 100%;
}

@media (max-width: 767px) {
  .mobile-donate-bar {
    display: block;
  }
  body {
    padding-bottom: 6.75rem;
  }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  animation: revealIn 0.7s ease forwards;
}

.reveal-delay-1 {
  animation-delay: 0.1s;
}
.reveal-delay-2 {
  animation-delay: 0.2s;
}
.reveal-delay-3 {
  animation-delay: 0.3s;
}

@keyframes revealIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Site header & accessible navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(15, 36, 28, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
  width: min(100% - 1.25rem, var(--page-max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-inline: var(--space-2);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #f7f4e9;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}

.site-header__emblem {
  display: block;
  width: auto;
  height: clamp(2.85rem, 7.5vw, 3.5rem);
  flex-shrink: 0;
  object-fit: contain;
}

.site-header__wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  font-family: var(--font-display), Georgia, "Times New Roman", serif;
  line-height: 1;
  min-width: 0;
}

.site-header__wordmark-line {
  display: block;
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f7f4e9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
}

.site-header__wordmark-line--city {
  font-size: clamp(0.82rem, 2.2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  color: rgba(247, 244, 233, 0.9);
}

.site-header__logo {
  display: block;
  width: auto;
  height: clamp(2rem, 5vw, 2.65rem);
  max-width: 100%;
  object-fit: contain;
}

.site-header__brand:hover {
  color: #fff;
  opacity: 0.95;
}

.site-header__brand:hover .site-header__wordmark-line {
  color: #fff;
}

.site-header__nav-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-header__donate {
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  flex-shrink: 0;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-footer__emblem {
  width: clamp(4rem, 12vw, 5.5rem);
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.site-footer__logo {
  width: min(100%, 14rem);
  height: auto;
  object-fit: contain;
}

.nav-desktop {
  display: none;
}

.nav-top__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-top__link,
.nav-top__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(247, 244, 233, 0.8);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}

.nav-top__link:hover,
.nav-top__trigger:hover {
  color: #f7f4e9;
  background: rgba(255, 255, 255, 0.08);
}

.nav-top__link--active,
.nav-top__trigger--active {
  color: #f7f4e9;
  background: rgba(196, 122, 58, 0.45);
}

.nav-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.75;
}

.nav-group {
  position: relative;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 16rem;
  max-width: 20rem;
  padding: var(--space-2);
  background: #f7f4e9;
  border: 1px solid var(--muted);
  border-radius: 0.75rem;
  box-shadow: 0 20px 48px -24px rgba(15, 36, 28, 0.55);
  z-index: 60;
}

.nav-submenu[hidden] {
  display: none;
}

.nav-submenu:not([hidden]) {
  display: block;
}

.nav-submenu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-submenu__link {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--pine-deep);
}

.nav-submenu__link:hover,
.nav-submenu__link:focus-visible {
  background: rgba(26, 61, 50, 0.08);
  color: var(--pine);
}

.nav-submenu__link[aria-current="page"] {
  background: rgba(196, 122, 58, 0.15);
  font-weight: 600;
}

.nav-submenu__label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-submenu__desc {
  display: block;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--pine-light);
  margin-top: 0.15rem;
}

.nav-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-mobile-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 1.15rem;
}

.nav-mobile-toggle__bars span {
  display: block;
  height: 2px;
  background: #f7f4e9;
  border-radius: 1px;
}

.nav-mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
}

.nav-mobile-panel--open {
  pointer-events: auto;
}

.nav-mobile-panel__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: none;
  background: rgba(15, 36, 28, 0.55);
  cursor: pointer;
  padding: 0;
}

.nav-mobile-panel__inner {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 1;
  width: 100%;
  max-height: calc(100dvh - var(--header-h));
  background: var(--sand-light);
  color: var(--foreground);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-3) var(--space-3) var(--space-4);
  box-shadow: 0 12px 40px rgba(15, 36, 28, 0.22);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transform: translateY(-0.5rem);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 220ms ease,
    opacity 180ms ease,
    visibility 180ms ease;
}

.nav-mobile-panel--open .nav-mobile-panel__inner {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-mobile__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mobile__link {
  display: block;
  padding: 0.65rem 0.5rem;
  text-decoration: none;
  color: var(--pine-deep);
  border-radius: 0.35rem;
}

.nav-mobile__link--top {
  font-weight: 600;
  font-size: 1rem;
}

.nav-mobile__link--active,
.nav-mobile__link[aria-current="page"] {
  background: rgba(196, 122, 58, 0.12);
  font-weight: 600;
}

.nav-mobile__details {
  border-bottom: 1px solid var(--muted);
}

.nav-mobile__summary {
  padding: 0.75rem 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  color: var(--pine-deep);
}

.nav-mobile__summary::-webkit-details-marker {
  display: none;
}

.nav-mobile__summary--active {
  color: var(--copper);
}

.nav-mobile__sublist {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--space-2) var(--space-2);
}

.nav-mobile__sublist .nav-submenu__desc {
  display: block;
  font-size: 0.8rem;
  color: var(--pine-light);
  margin-top: 0.1rem;
}

.nav-mobile-panel__cta {
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid var(--muted);
}

@media (min-width: 900px) {
  .nav-desktop {
    display: block;
  }

  .nav-mobile-toggle,
  .nav-mobile-panel {
    display: none;
  }

  .site-header__donate {
    display: inline-flex;
  }
}

@media (max-width: 899px) {
  .site-header__donate {
    display: none;
  }
}

/* Content utilities */
.content-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: var(--space-3) 0;
}

.content-table th,
.content-table td {
  border: 1px solid var(--muted);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.content-table th {
  background: rgba(26, 61, 50, 0.06);
  font-weight: 600;
}

.info-callout {
  padding: var(--space-3);
  border-left: 3px solid var(--copper);
  background: rgba(196, 122, 58, 0.08);
  margin: var(--space-4) 0;
}

.info-callout--caution {
  border-left-color: #9a5528;
  background: rgba(154, 85, 40, 0.1);
}

.faq-item {
  border-bottom: 1px solid var(--muted);
  padding-block: var(--space-2);
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  padding: var(--space-2) 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  color: var(--pine);
}

.faq-item__answer {
  padding-bottom: var(--space-2);
  max-width: 42rem;
}

.glossary-term {
  margin-bottom: var(--space-3);
}

.glossary-term dt {
  font-family: var(--font-display), Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--pine);
}

.glossary-term dd {
  margin: 0.35rem 0 0;
}

/* Threat report card */
.threat-level {
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: 0.5rem;
}

.threat-level__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.threat-level__title {
  font-family: var(--font-display), Georgia, serif;
  font-size: 1.05rem;
  margin: 0;
}

.threat-level__badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.threat-level--high .threat-level__badge {
  background: rgba(154, 85, 40, 0.2);
  color: #7a3f1a;
}

.threat-level--medium .threat-level__badge {
  background: rgba(196, 122, 58, 0.15);
  color: var(--copper);
}

.threat-level--low .threat-level__badge {
  background: rgba(42, 90, 73, 0.12);
  color: var(--pine);
}

.threat-level__note {
  margin: var(--space-2) 0 0;
  font-size: 0.92rem;
}

/* Impact tiers */
.impact-tiers {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin-top: var(--space-4);
}

.impact-tier {
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--muted);
  box-shadow: 0 16px 32px -28px rgba(15, 36, 28, 0.35);
}

.impact-tier__amount {
  font-family: var(--font-display), Georgia, serif;
  font-size: 2rem;
  color: var(--copper);
  margin: 0;
  line-height: 1;
}

.impact-tier__title {
  font-family: var(--font-display), Georgia, serif;
  font-size: 1.15rem;
  margin: var(--space-2) 0 var(--space-1);
}

.impact-tier__body {
  margin: 0;
  font-size: 0.95rem;
}

.fund-bar {
  display: flex;
  height: 1.25rem;
  border-radius: 0.35rem;
  overflow: hidden;
  margin-top: var(--space-3);
}

.fund-bar__segment:nth-child(1) {
  background: var(--fund-color-1);
}

.fund-bar__segment:nth-child(2) {
  background: var(--fund-color-2);
}

.fund-bar__segment:nth-child(3) {
  background: var(--fund-color-3);
}

.fund-legend {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  font-size: 0.95rem;
}

.fund-legend li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: 0.35rem;
}

.fund-legend__swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Sighting form */
.sighting-form {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--muted);
  max-width: 36rem;
}

.sighting-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sighting-form__field input,
.sighting-form__field textarea {
  padding: 0.65rem;
  border: 1px solid var(--muted);
  border-radius: 0.35rem;
  font: inherit;
}

.sighting-form__fieldset {
  border: 1px solid var(--muted);
  border-radius: 0.35rem;
  padding: var(--space-2);
  margin: 0;
}

.sighting-form__radio {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.sighting-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sighting-form__status {
  min-height: 1.5rem;
}

.sighting-form__success {
  color: var(--pine);
  font-weight: 600;
  margin: 0;
}

.sighting-form__error {
  color: #7a3f1a;
  font-weight: 600;
  margin: 0;
}

.sighting-form__hint {
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.85;
}

.sighting-form__file {
  font: inherit;
  padding: 0.35rem 0;
}

.sighting-form__file-hint {
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.85;
}

.sighting-form__photo-list {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.sighting-form__photo-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  border: 1px solid var(--muted);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.5);
}

.sighting-form__photo-thumb {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: cover;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

.sighting-form__photo-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.sighting-form__photo-name {
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sighting-form__photo-size {
  font-size: 0.8rem;
  opacity: 0.75;
}

/* Conservation timeline */
.conservation-timeline {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--copper);
}

.conservation-timeline__item {
  position: relative;
  padding: 0 0 var(--space-5) var(--space-5);
  margin-left: 0;
}

.conservation-timeline__marker {
  position: absolute;
  left: calc(-1.5rem - 1px);
  top: 0.4rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--copper);
  border: 2px solid var(--sand-light);
  transform: translateX(-50%);
}

.conservation-timeline__body {
  min-width: 0;
}

.conservation-timeline__date {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pine-light);
}

.conservation-timeline__title {
  font-family: var(--font-display), Georgia, serif;
  font-size: 1.2rem;
  margin: 0.25rem 0;
}

.conservation-timeline__desc {
  margin: 0;
  max-width: 42rem;
  font-size: 0.95rem;
}

.conservation-timeline__sources {
  margin: var(--space-2) 0 0;
  font-size: 0.82rem;
  opacity: 0.85;
}

/* Fact sheet print */
@media print {
  .site-header,
  .mobile-donate-bar,
  footer,
  .no-print,
  .citation-panel {
    display: none !important;
  }

  .fact-sheet-document {
    max-width: 100%;
    font-size: 11pt;
  }

  .fact-sheet-page {
    padding: 0;
  }

  main {
    padding-top: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .nav-mobile-panel__inner {
    transition: none;
  }
  * {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
