/* Pack 13 — Cub Scout homepage
   Blue & gold, warm outdoor feel, mobile-first
   Nunito and Source Sans 3 are self-hosted (SIL Open Font License). */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue-900: #0a1f4d;
  --blue-800: #0f2d6b;
  --blue-700: #153f8f;
  --blue-600: #1a4fb8;
  --blue-500: #2563c7;
  --gold-400: #f5c518;
  --gold-300: #ffd84d;
  --gold-200: #ffe989;
  --cream: #f7f4ec;
  --sand: #ebe4d4;
  --ink: #1a1f2e;
  --ink-soft: #3d4659;
  --muted: #5c667a;
  --white: #ffffff;
  --card: #ffffff;
  --shadow: 0 12px 40px rgba(10, 31, 77, 0.12);
  --shadow-sm: 0 4px 16px rgba(10, 31, 77, 0.08);
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --font-display: "Nunito", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --max: 72rem;
  --header-h: 4.25rem;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

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

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

a {
  color: var(--blue-600);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--blue-800);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--blue-900);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

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

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--gold-400);
  color: var(--blue-900);
  font-weight: 700;
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 1rem;
}

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin: 0 0 0.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 236, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10, 31, 77, 0.08);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  color: inherit;
}

.brand-mark-img {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-mark-img.small {
  width: 2.4rem;
  height: 2.4rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--blue-900);
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.35rem 0;
}

.site-nav a:hover {
  color: var(--blue-700);
}

.site-nav a[aria-current="page"] {
  color: var(--blue-900);
  box-shadow: inset 0 -3px 0 var(--gold-400);
}

.site-nav .nav-cta[aria-current="page"] {
  box-shadow: none;
  background: var(--blue-900);
  color: var(--white);
}

.nav-toggle:focus-visible,
.site-nav a:focus-visible,
.brand:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--gold-300);
  outline-offset: 3px;
}

.btn-primary:focus-visible {
  outline-color: var(--blue-900);
}

.site-nav .nav-cta {
  background: var(--blue-700);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  margin-left: 0.25rem;
}

.site-nav .nav-cta:hover {
  background: var(--blue-900);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--blue-900);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gold-400);
  color: var(--blue-900);
  border-color: var(--gold-400);
}

.btn-primary:hover {
  background: var(--gold-300);
  color: var(--blue-900);
  border-color: var(--gold-300);
}

.btn-secondary {
  background: transparent;
  color: var(--blue-700);
  border-color: rgba(21, 63, 143, 0.35);
}

.btn-secondary:hover {
  background: rgba(21, 63, 143, 0.06);
  color: var(--blue-900);
  border-color: var(--blue-700);
}

.hero .btn-secondary,
.join-banner .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.hero .btn-secondary:hover,
.join-banner .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: var(--white);
}

.btn-block {
  width: 100%;
}

.section.missing-actions {
  padding: 2rem 0 3rem;
}

.section.missing-actions .hero-actions {
  margin-bottom: 0;
}

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(245, 197, 24, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(37, 99, 199, 0.45), transparent 50%),
    linear-gradient(155deg, var(--blue-900) 0%, var(--blue-800) 45%, #1a3a7a 100%);
  z-index: 0;
}

.hero .hero-bg,
.page-hero .hero-bg {
  --hero-image: url("media/trail.jpg");
  --hero-position: center 48%;
  background:
    linear-gradient(
      90deg,
      rgba(10, 31, 77, 0.82) 0%,
      rgba(10, 31, 77, 0.58) 28%,
      rgba(10, 31, 77, 0.22) 52%,
      rgba(10, 31, 77, 0.12) 100%
    ),
    var(--hero-image) var(--hero-position) / cover no-repeat;
}

.page-hero-about .hero-bg {
  --hero-image: url("media/hiking.jpg");
  --hero-position: center 42%;
}

.page-hero-program .hero-bg {
  --hero-image: url("media/campout.jpg");
  --hero-position: center 46%;
}

.page-hero-events .hero-bg {
  --hero-image: url("media/derby.jpg");
  --hero-position: center 50%;
}

.page-hero-volunteer .hero-bg {
  --hero-image: url("media/fire-circle.jpg");
  --hero-position: center 48%;
}

.page-hero-join .hero-bg {
  --hero-image: url("media/fishing.jpg");
  --hero-position: center 40%;
}

.page-hero-404 {
  min-height: clamp(18rem, 38vw, 26rem);
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

.page-hero-404 .hero-bg {
  --hero-image: url("media/gone-fishing.jpg");
  --hero-position: center 42%;
}

.hero .hero-bg::after,
.page-hero .hero-bg::after {
  opacity: 0;
}

.gallery {
  position: relative;
  margin-top: 1.75rem;
}

.gallery-frame {
  position: relative;
  aspect-ratio: 2 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--blue-900);
  box-shadow: var(--shadow);
}

.gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.6s ease;
}

.gallery-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-bar {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem 0.35rem;
  border-radius: 999px;
  background: rgba(10, 31, 77, 0.42);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.gallery:hover .gallery-bar,
.gallery:focus-within .gallery-bar {
  opacity: 1;
}

.gallery-dots,
.gallery-transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.gallery-dots button,
.gallery-transport button {
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
}

.gallery-dots button {
  position: relative;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  transition: width 0.3s ease, background 0.3s ease;
}

.gallery-dots button::before {
  content: "";
  position: absolute;
  inset: -0.45rem;
}

.gallery-dots button[aria-current="true"] {
  width: 1.35rem;
  background: rgba(255, 255, 255, 0.38);
}

.gallery-dot-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.gallery-transport button {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
}

.gallery-prev,
.gallery-next,
.gallery-pause {
  color: var(--white);
}

.gallery-prev::before,
.gallery-next::before,
.gallery-pause[aria-pressed="true"]::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
}

.gallery-prev::before {
  border-width: 5px 7px 5px 0;
  border-color: transparent var(--white) transparent transparent;
}

.gallery-next::before {
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent var(--white);
}

.gallery-pause::before,
.gallery-pause::after {
  content: "";
  width: 2px;
  height: 10px;
  background: var(--white);
  border-radius: 1px;
}

.gallery-transport .gallery-pause {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.gallery-pause[aria-pressed="true"]::before {
  width: 0;
  height: 0;
  background: transparent;
  border-radius: 0;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--white);
}

.gallery-pause[aria-pressed="true"]::after {
  display: none;
}

.gallery-bar button:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

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

.hero h1 {
  color: var(--white);
  margin-bottom: 1.15rem;
}

.hero h1 span {
  color: var(--gold-300);
}

.page-hero {
  position: relative;
  color: var(--white);
  padding: 2.75rem 0 2.5rem;
  overflow: hidden;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  color: var(--gold-300);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.page-hero p:last-child {
  max-width: 40rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.path-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(10, 31, 77, 0.06);
  box-shadow: var(--shadow-sm);
}

.path-card h2 {
  font-size: 1.25rem;
  margin: 0;
}

.path-card p {
  flex: 1;
  margin: 0;
}

.path-card .more {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--blue-600);
}

.path-card:hover {
  color: inherit;
  border-color: rgba(26, 79, 184, 0.25);
  box-shadow: var(--shadow);
}

.path-card:hover .more {
  color: var(--blue-800);
}

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 28rem;
}

.hero-stats li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 0.85rem 0.9rem;
  backdrop-filter: blur(6px);
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-300);
  margin-bottom: 0.15rem;
}

.hero-stats span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

#next {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.section-alt {
  background: var(--white);
}

.section-header {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section-header.light .eyebrow {
  color: var(--gold-300);
}

.section-header.light h2,
.section-header.light p {
  color: var(--white);
}

.section-header.light p {
  color: rgba(255, 255, 255, 0.85);
}

.section-header.light a {
  color: var(--gold-300);
}

.section-header.light a:hover {
  color: var(--gold-200);
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.check-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--gold-400)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230a1f4d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E")
    center / 0.7rem no-repeat;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(10, 31, 77, 0.06);
  position: relative;
}

.about-card h3 {
  margin-top: 0;
}

.about-card blockquote,
.vision-quote {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  background: var(--cream);
  border-left: 4px solid var(--gold-400);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.55;
}

.card-note {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}

/* Aims, methods, vision */
.vision-quote {
  margin-bottom: 2rem;
}

.vision-quote .eyebrow {
  margin-bottom: 0.5rem;
}

.vision-quote p:last-child {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.45;
}

.aims-label {
  margin: 2.25rem 0 1rem;
}

.aim-row {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.aim-row li {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 31, 77, 0.06);
  padding: 1rem 0.85rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--blue-900);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.method-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 31, 77, 0.06);
}

.method-card h3,
.den-card h3,
.path-card h2,
.steps h3,
.info-card h3,
.cost-note h3,
.activity h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.method-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* Program */
.den-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.den-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 31, 77, 0.05);
}

.den-card p {
  font-size: 0.95rem;
  margin: 0;
}

.den-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

/* Field colors from the Cub Scout Adventures insignia chart. */
.den-badge.lion {
  background: #fbc010;
}
.den-badge.tiger {
  background: #f4742a;
}
.den-badge.wolf {
  background: #eb2734;
  color: var(--white);
}
.den-badge.bear {
  background: #9fcff0;
}
.den-badge.webelos {
  background: #88ab4d;
}
.den-badge.aol {
  background: #f0d9c6;
}

.activity-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.activity {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid rgba(10, 31, 77, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.35rem 1.5rem;
}

.activity-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.activity h3 {
  margin-bottom: 0.25rem;
}

.activity p {
  font-size: 0.9rem;
  margin: 0;
}

/* Events */
.events {
  background: transparent;
}

/* Home calendar is the lower band. .events would otherwise paint over section-alt. */
.section-alt.events {
  background: var(--white);
}

.events-list {
  display: grid;
  gap: 0.75rem;
}

.events-status {
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: var(--cream);
  border-radius: var(--radius);
  color: var(--muted);
  border: 1px dashed rgba(10, 31, 77, 0.15);
}

.events-status.is-error {
  border-style: solid;
  border-color: rgba(153, 27, 27, 0.2);
  color: #7f1d1d;
  background: #fef2f2;
}

.event-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.25rem;
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(10, 31, 77, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(26, 79, 184, 0.25);
  color: inherit;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 4.25rem;
  padding: 0.55rem 0.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(160deg, var(--blue-800), var(--blue-600));
  color: var(--white);
  text-align: center;
  line-height: 1.1;
}

.event-date .month {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.event-date .day {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
}

.event-date .weekday {
  font-size: 0.72rem;
  opacity: 0.8;
  margin-top: 0.15rem;
}

.event-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--blue-900);
}

.event-note {
  margin: -0.15rem 0 0.4rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.event-meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.event-meta span {
  display: block;
}

.event-meta .location {
  margin-top: 0.15rem;
}

.event-cta {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--blue-600);
  white-space: nowrap;
}

.event-card:hover .event-cta {
  color: var(--blue-800);
}

.events-updated {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.events-updated.is-stale {
  color: #7f1d1d;
}

.events-footnote {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Meetings */
.meeting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.info-card {
  background: var(--white);
  border: 1px solid rgba(10, 31, 77, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.35rem 1.5rem;
}

.info-card h3 {
  color: var(--blue-900);
  margin-bottom: 1rem;
}

.info-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.info-card dl {
  margin: 0 0 1rem;
}

.info-card dl > div {
  margin-bottom: 0.85rem;
}

.info-card dt {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.info-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.info-card .hint {
  display: block;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.info-card.highlight {
  background: linear-gradient(160deg, rgba(245, 197, 24, 0.95), rgba(255, 216, 77, 0.9));
  border-color: transparent;
  display: flex;
  flex-direction: column;
}

.info-card.highlight h3 {
  color: var(--blue-900);
}

.info-card.highlight p {
  color: var(--blue-900);
  flex: 1;
  margin-bottom: 1.25rem;
}

/* Join */
.steps {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: none;
}

.steps li {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 31, 77, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--blue-700);
  color: var(--gold-300);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.steps h3 {
  margin-bottom: 0.35rem;
}

.steps p {
  margin: 0;
  font-size: 0.98rem;
}

.join-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: linear-gradient(120deg, var(--blue-800), var(--blue-600));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
}

.join-banner h3 {
  color: var(--white);
  margin-bottom: 0.35rem;
}

.join-banner p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 36rem;
}

.join-banner .hero-actions {
  margin: 0;
}

.volunteer-note {
  margin: 0 0 1.25rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.cost-note {
  background: var(--white);
  border: 1px solid rgba(10, 31, 77, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.5rem;
}

.cost-note h3 {
  margin-bottom: 0.4rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.contact-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(10, 31, 77, 0.1);
}

.contact-list strong {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list a,
.contact-list span {
  font-weight: 600;
  color: var(--blue-900);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--blue-600);
  text-decoration: underline;
}

.fine-print {
  font-size: 0.88rem;
  color: var(--muted);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(10, 31, 77, 0.06);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue-900);
  margin-bottom: 0.35rem;
}

.req {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid rgba(10, 31, 77, 0.12);
  border-radius: 0.65rem;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 199, 0.18);
  background: var(--white);
}

.field textarea {
  resize: vertical;
  min-height: 6rem;
}

.form-note,
.form-status {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.form-status {
  color: var(--blue-900);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--blue-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0;
}

.footer-inner {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer-nav {
    justify-self: end;
    padding-top: 0.35rem;
  }

  .footer-tagline,
  .footer-legal {
    grid-column: 1 / -1;
  }
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.footer-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--gold-300);
}

.footer-nav a:focus-visible {
  outline: 3px solid var(--gold-300);
  outline-offset: 3px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.05rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-300);
  margin: 0;
}

.footer-legal {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 36rem;
}

/* Responsive */
@media (max-width: 900px) {
  .split,
  .contact-grid,
  .meeting-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .den-grid,
  .aim-row,
  .path-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(10, 31, 77, 0.1);
    padding: 0.75rem 1rem 1.25rem;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid rgba(10, 31, 77, 0.06);
  }

  .site-nav .nav-cta {
    margin: 0.75rem 0 0;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .event-card {
    grid-template-columns: auto 1fr;
  }

  .event-cta {
    grid-column: 2;
    justify-self: start;
  }

  .hero {
    padding: 2.35rem 0 2.75rem;
  }

  .hero .hero-bg::after,
  .page-hero .hero-bg::after {
    opacity: 1;
    background-image: none;
    background: linear-gradient(
      180deg,
      rgba(10, 31, 77, 0.58) 0%,
      rgba(10, 31, 77, 0.4) 48%,
      rgba(10, 31, 77, 0.66) 100%
    );
  }

  .hero-lead,
  .page-hero p:last-child {
    color: #fff;
  }

  .hero-actions {
    margin-bottom: 1.25rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }

  .hero-stats li {
    padding: 0.65rem 0.45rem;
    text-align: center;
  }

  .den-grid,
  .activity-row,
  .aim-row,
  .method-grid,
  .path-grid {
    grid-template-columns: 1fr;
  }



  .section {
    padding: 3.25rem 0;
  }

  .join-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-text span {
    font-size: 0.7rem;
  }

  .page-hero-404 {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 0;
    color: var(--ink);
  }

  .page-hero-404 .hero-bg {
    position: relative;
    inset: auto;
    min-height: 15rem;
    background:
      var(--hero-image) center 40% / cover no-repeat;
  }

  .page-hero-404 .hero-bg::after {
    opacity: 0;
  }

  .page-hero-404 .container {
    background: var(--cream);
    padding: 1.75rem 1.25rem 0;
  }

  .page-hero-404 .eyebrow {
    color: var(--blue-600);
  }

  .page-hero-404 h1 {
    color: var(--blue-900);
  }

  .page-hero-404 p:last-child {
    color: var(--ink-soft);
  }
}

@media (hover: none) {
  .gallery-bar {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .den-card,
  .event-card,
  .nav-toggle span,
  .site-nav {
    transition: none;
  }

  .btn:hover,
  .event-card:hover {
    transform: none;
  }

  .gallery-slide {
    transition: none;
  }

  .gallery-dots button[aria-current="true"] {
    background: var(--white);
  }

  .gallery-dot-fill {
    transform: none;
  }
}
