/* ACLSLL — calm civic design system. Green identity preserved, modernized. */

/* Fonts: self-hosted variable fonts, latin + latin-ext (French œ Œ). */
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  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: "Public Sans";
  src: url("../fonts/public-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  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-1EFF, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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 Serif 4";
  src: url("../fonts/source-serif-4-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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-1EFF, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #ffffff;
  --surface: #f4f7f2;
  --surface-strong: #e8efe5;
  --primary: #38714b;
  --primary-dark: #234a30;
  --primary-deep: #1a3823;
  --primary-light: #8db89a;
  --primary-tint: #dfeadd;
  --text: #1d231e;
  --muted: #4f584f;
  --border: #dce4d8;
  --border-strong: #c4d2c0;
  --danger: #9b1c1c;
  --danger-tint: #fbeaea;

  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --max: 1180px;
  --max-wide: 1400px;

  /* Shape system: pill controls, 16px cards, 10px inputs/menus. */
  --radius-card: 16px;
  --radius-input: 10px;
  --radius-pill: 999px;

  --shadow-soft: 0 1px 2px rgba(26, 56, 35, 0.05), 0 8px 24px rgba(26, 56, 35, 0.07);
  --shadow-raised: 0 2px 4px rgba(26, 56, 35, 0.07), 0 16px 40px rgba(26, 56, 35, 0.12);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --speed-fast: 120ms;
  --speed: 180ms;
  --speed-slow: 320ms;
  --speed-reveal: 640ms;
  --stagger: 70ms;

  --z-nav: 100;
  --z-skip: 200;
  --z-top: 90;
}

/* Cross-document view transitions: app-like navigation between pages.
   Pure progressive enhancement; unsupported browsers navigate normally. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vt-leave 240ms var(--ease-in-out) both;
}

::view-transition-new(root) {
  animation: vt-enter 360ms var(--ease-out-expo) both;
}

@keyframes vt-leave {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes vt-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* The sticky header and footer stay put while page content transitions. */
.site-header {
  view-transition-name: site-header;
}

.site-footer {
  view-transition-name: site-footer;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  font-size: 1.0625em;
  line-height: 1.65;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input {
  font: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

[id] {
  scroll-margin-top: 96px;
}

::selection {
  background: var(--primary-tint);
  color: var(--primary-deep);
}

:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: var(--z-skip);
  transform: translateY(-150%);
  background: var(--primary-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--speed-slow) var(--ease-out),
    border-color var(--speed-slow) var(--ease-out);
}

.site-header.is-scrolled {
  border-color: transparent;
  box-shadow: 0 1px 0 var(--border), 0 12px 32px rgba(26, 56, 35, 0.1);
}

.scroll-sentinel {
  position: absolute;
  top: 0;
  width: 1px;
  height: 1px;
}

.nav-shell {
  width: min(100% - 40px, var(--max-wide));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-deep);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-dark);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand strong {
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.primary-nav > a,
.nav-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--speed) var(--ease-out), color var(--speed) var(--ease-out);
}

.primary-nav > a:hover,
.nav-menu summary:hover,
.nav-menu[open] > summary {
  color: var(--primary-deep);
  background: var(--surface-strong);
}

.primary-nav > a[aria-current="page"],
.primary-nav .nav-menu.is-open summary {
  color: var(--primary-deep);
  background: var(--primary-tint);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  cursor: pointer;
  list-style: none;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: -3px;
  border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--speed) var(--ease-out);
}

.nav-menu[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.nav-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 250px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  box-shadow: var(--shadow-raised);
  animation: menu-in var(--speed) var(--ease-out);
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-menu-panel-right {
  left: auto;
  right: 0;
}

.nav-menu-panel a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-menu-panel a:hover {
  background: var(--surface);
  color: var(--primary-deep);
}

.account-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.avatar {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary-deep);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-size: 0.97rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--speed) var(--ease-out),
    color var(--speed) var(--ease-out),
    border-color var(--speed) var(--ease-out),
    box-shadow var(--speed) var(--ease-out),
    transform var(--speed) var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  background: var(--primary-dark);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-deep);
  box-shadow: 0 2px 4px rgba(26, 56, 35, 0.12), 0 12px 28px rgba(26, 56, 35, 0.22);
}

.btn-secondary {
  color: var(--primary-dark);
  border-color: var(--border-strong);
  background: #fff;
}

.btn-secondary:hover {
  border-color: var(--primary-dark);
  background: var(--surface);
}

.btn-large {
  min-height: 50px;
  padding-inline: 28px;
}

.text-link {
  color: var(--primary-dark);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--primary-light);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--speed) var(--ease-out), color var(--speed) var(--ease-out);
}

.text-link:hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}

/* ----------------------------------------------------------- event banner */

.event-banner {
  background: var(--primary-deep);
  color: #fff;
}

.event-banner-inner {
  width: min(100% - 40px, var(--max-wide));
  margin: 0 auto;
  padding: 11px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.93rem;
}

.event-banner-inner strong {
  font-weight: 700;
}

.event-banner a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  text-decoration-color: var(--primary-light);
}

.event-banner a:hover {
  text-decoration-color: #fff;
}

/* ------------------------------------------------------------------ hero */

.home-hero {
  width: 100%;
  padding-inline: max(20px, calc((100% - var(--max-wide)) / 2));
  padding-block: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  background: linear-gradient(to bottom, var(--surface) 0%, rgba(244, 247, 242, 0) 100%);
}

.home-hero-copy {
  min-width: 0;
  padding-block: clamp(16px, 3vw, 48px);
}

.home-hero h1 {
  margin: 0 0 22px;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.page-hero h1,
.dashboard-hero h1 {
  margin: 0 0 20px;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
}

.home-hero p,
.page-hero p,
.dashboard-hero p {
  max-width: 58ch;
  margin-block: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.home-hero-image {
  position: relative;
  margin: 0;
  min-height: clamp(320px, 40vw, 560px);
  isolation: isolate;
}

/* Deep green panel behind the photo: the source asset is pre-faded, so it is
   blended into the brand green as a duotone rather than shown as-is. */
.home-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: clamp(18px, 2.5vw, 28px);
  background: var(--primary-deep);
  box-shadow: var(--shadow-soft);
}

.home-hero-image::before {
  content: "";
  position: absolute;
  inset: clamp(18px, 2.5vw, 32px) calc(-1 * clamp(12px, 1.6vw, 20px))
    calc(-1 * clamp(12px, 1.6vw, 20px)) clamp(18px, 2.5vw, 32px);
  border-radius: clamp(18px, 2.5vw, 28px);
  background: var(--primary-tint);
}

.home-hero-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  border-radius: clamp(18px, 2.5vw, 28px);
  mix-blend-mode: multiply;
  filter: grayscale(1) brightness(0.563) contrast(21.6) blur(0.4px);
}

/* Hero entrance: one choreographed load sequence instead of scattered fades. */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-panel-in {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

html.js .home-hero-copy > *,
html.js .page-hero > *,
html.js .dashboard-hero > * {
  animation: hero-rise 680ms var(--ease-out-expo) backwards;
}

html.js .home-hero-copy > :nth-child(1),
html.js .page-hero > :nth-child(1),
html.js .dashboard-hero > :nth-child(1) {
  animation-delay: 60ms;
}

html.js .home-hero-copy > :nth-child(2),
html.js .page-hero > :nth-child(2),
html.js .dashboard-hero > :nth-child(2) {
  animation-delay: 150ms;
}

html.js .home-hero-copy > :nth-child(3),
html.js .page-hero > :nth-child(3),
html.js .dashboard-hero > :nth-child(3) {
  animation-delay: 250ms;
}

html.js .home-hero-copy > :nth-child(4) {
  animation-delay: 360ms;
}

html.js .home-hero-image {
  animation: hero-panel-in 760ms var(--ease-out-expo) 220ms backwards;
}

/* Subtle scroll parallax: the photo drifts inside its green panel. */
@supports (animation-timeline: view()) {
  @keyframes hero-parallax {
    to {
      transform: translateY(-18px);
    }
  }

  html.js .home-hero-image img {
    animation: hero-parallax linear both;
    animation-timeline: view(block);
    animation-range: exit 0% exit 100%;
  }
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* -------------------------------------------------------------- sections */

.section,
.page-hero,
.dashboard-hero {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-muted {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100% - var(--max)) / 2));
  background: var(--surface);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-heading h2 {
  margin: 0;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.section-heading h2 + p,
.section-heading p {
  margin: 12px 0 0;
  color: var(--muted);
}

.event-section + .event-section {
  margin-top: clamp(48px, 7vw, 80px);
}

/* ----------------------------------------------------------------- cards */

.cards-grid {
  display: grid;
  gap: 22px;
}

.cards-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.sponsor-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
  padding: 28px;
  transition: border-color var(--speed) var(--ease-out),
    box-shadow var(--speed) var(--ease-out),
    transform var(--speed) var(--ease-out);
}

.content-card:hover,
.action-card:hover,
.sponsor-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

/* Benefits bento: one photo tile, one deep tile, one tinted, one bordered. */
.benefits-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 18px;
}

.benefit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
  padding: 28px;
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--speed-slow) var(--ease-out-expo),
    box-shadow var(--speed-slow) var(--ease-out-expo);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-raised);
}

.benefit-card:nth-child(1) {
  grid-row: 1 / 3;
  min-height: 420px;
  background: var(--primary-deep);
}

.benefit-photo {
  /* The source asset is pre-faded (tonal range ~216-237), so it can't carry
     the tile as a photo. Multiplied over the deep green it becomes a subtle
     duotone texture instead. */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  mix-blend-mode: multiply;
  filter: grayscale(1) brightness(0.563) contrast(21.6) blur(0.4px);
  transition: transform 700ms var(--ease-out-expo);
}

.benefit-card:hover .benefit-photo {
  transform: scale(1.045);
}

.benefit-card:nth-child(1)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 42, 26, 0.88) 0%, rgba(20, 42, 26, 0.25) 55%, rgba(20, 42, 26, 0) 100%);
}

.benefit-card:nth-child(1) .benefit-body {
  position: relative;
  z-index: 1;
}

.benefit-card:nth-child(1) h3 {
  color: #fff;
}

.benefit-card:nth-child(1) p {
  color: var(--primary-tint);
}

.benefit-card:nth-child(2) {
  background: var(--primary-dark);
}

.benefit-card:nth-child(2) h3 {
  color: #fff;
}

.benefit-card:nth-child(2) p {
  color: var(--primary-tint);
}

.benefit-card:nth-child(3) {
  background: var(--primary-tint);
}

.benefit-card:nth-child(3) h3 {
  color: var(--primary-deep);
}

.benefit-card:nth-child(3) p {
  color: var(--primary-dark);
}

.benefit-card:nth-child(4) {
  grid-column: 2 / 4;
  background: #fff;
  border: 1px solid var(--border);
}

.benefit-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.benefit-card p {
  margin: 0;
  font-size: 0.99rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Mission band: full-bleed brand statement. */
.mission-band {
  background: radial-gradient(120% 160% at 50% -30%, var(--primary-dark) 0%, var(--primary-deep) 58%);
  color: #fff;
}

/* The statement emerges as the band scrolls into view (CSS-only timeline). */
@supports (animation-timeline: view()) {
  @keyframes mission-emerge {
    from {
      opacity: 0.15;
      transform: translateY(30px) scale(0.97);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  html.js .mission-band-inner {
    animation: mission-emerge linear both;
    animation-timeline: view(block);
    animation-range: entry 5% entry 75%;
  }
}

.mission-band-inner {
  width: min(100% - 40px, 920px);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0;
  text-align: center;
}

.mission-statement {
  margin: 0 0 28px;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.mission-link {
  color: #fff;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--primary-light);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.mission-link:hover {
  text-decoration-color: #fff;
}

/* News: featured article + compact ruled list. */
.news-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.news-feature h3 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
}

.news-feature h3 a {
  color: var(--primary-deep);
  text-decoration: none;
}

.news-feature h3 a:hover {
  color: var(--primary);
}

.news-feature-excerpt {
  margin: 0 0 18px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  border-top: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--speed) var(--ease-out);
}

.news-row:hover {
  background: var(--surface);
}

.news-row-meta {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.news-row-title {
  color: var(--primary-deep);
  font-weight: 650;
  line-height: 1.35;
}

.news-row-arrow {
  display: inline-grid;
  place-items: center;
  color: var(--primary);
  transition: transform var(--speed) var(--ease-out);
}

.news-row-arrow svg {
  width: 18px;
  height: 18px;
}

.news-row:hover .news-row-arrow,
.document-row:hover .news-row-arrow {
  transform: translateX(4px);
}

.news-list-more {
  margin-top: 20px;
  font-size: 0.95rem;
}

/* Document rows: compact ruled list with file icon. */
.document-rows {
  display: flex;
  flex-direction: column;
  max-width: 860px;
}

.document-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 12px;
  border-top: 1px solid var(--border);
  text-decoration: none;
  border-radius: 8px;
  transition: background var(--speed) var(--ease-out);
}

.document-row:last-of-type {
  border-bottom: 1px solid var(--border);
}

.document-row:hover {
  background: #fff;
}

.document-row-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary-deep);
}

.document-row-icon svg {
  width: 22px;
  height: 22px;
}

.document-row-type {
  display: block;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 650;
}

.document-row-title {
  display: block;
  margin-top: 2px;
  color: var(--primary-deep);
  font-weight: 650;
  line-height: 1.35;
}

/* Closing invitation band before the footer. */
.member-cta {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.member-cta-inner {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 104px) 0;
  text-align: center;
}

.member-cta h2 {
  margin: 0 0 16px;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.member-cta p {
  max-width: 56ch;
  margin: 0 auto 28px;
  color: var(--muted);
}

.card-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary-deep);
  font-weight: 750;
  font-size: 1.05rem;
}

.content-card h3,
.action-card h2,
.sponsor-card h3 {
  margin: 0 0 10px;
  color: var(--primary-deep);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.3;
}

.content-card h3 a {
  text-decoration: none;
}

.content-card h3 a:hover {
  color: var(--primary);
}

.action-card {
  text-decoration: none;
}

.action-card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary-deep);
  transition: background var(--speed-slow) var(--ease-out),
    color var(--speed-slow) var(--ease-out),
    transform var(--speed-slow) var(--ease-out-expo);
}

.action-card:hover .action-card-icon {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.action-card-icon svg {
  width: 24px;
  height: 24px;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.photo-strip a {
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.photo-strip img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}

.photo-strip a:hover img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .photo-strip img {
    transition: none;
  }

  .photo-strip a:hover img {
    transform: none;
  }
}

.action-card h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.action-card h2::after {
  content: "\2192";
  color: var(--primary);
  font-weight: 400;
  transition: transform var(--speed) var(--ease-out);
}

.action-card:hover h2::after {
  transform: translateX(4px);
}

.content-card p,
.action-card p,
.sponsor-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.content-card > p:last-of-type {
  margin-bottom: 0;
}

.content-card .text-link {
  font-size: 0.95rem;
}

.content-card h3 + p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.events-list {
  display: grid;
}

.event-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}

.event-row:last-child {
  border-bottom: 1px solid var(--border);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: start;
  gap: 2px;
  margin: 0;
  padding: 16px 8px 12px;
  border-radius: var(--radius-card);
  background: var(--primary-tint);
  text-align: center;
  transition: background var(--speed-slow) var(--ease-out),
    transform var(--speed-slow) var(--ease-out-expo);
}

.event-row:hover .event-date {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.event-row-past .event-date {
  background: var(--surface);
}

.event-date-day {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary-deep);
}

.event-date-month {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--primary-dark);
}

.event-row-body .meta {
  margin-bottom: 8px;
}

.event-row-body h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 700;
}

.event-row-body h3 a {
  color: var(--text);
  text-decoration: none;
}

.event-row-body h3 a:hover {
  color: var(--primary);
}

.event-row-body > p:not(.meta) {
  margin: 0;
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.65;
}

.event-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
}

.event-card-actions .btn {
  min-height: 40px;
  padding: 7px 18px;
  font-size: 0.92rem;
}

.meta {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.visibility-badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--primary-tint);
  color: var(--primary-deep);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.section-action {
  margin-top: 36px;
  text-align: center;
}

.map-frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 38vw, 460px);
  border: 0;
}

/* ----------------------------------------------------------------- account */

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.account-card h2 {
  margin-top: 0;
  color: var(--primary-deep);
  font-size: 1.3rem;
}

.account-card dl {
  margin: 0;
}

.account-card dl div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.account-card dt {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.account-card dd {
  margin: 0;
}

.account-card .btn {
  margin-top: 20px;
}

/* ------------------------------------------------------------- page hero */

.page-hero {
  padding-block: clamp(44px, 6vw, 72px) clamp(20px, 3vw, 36px);
}

.prose {
  max-width: 720px;
}

.prose > * + * {
  margin-top: 1.05rem;
}

.prose h2,
.prose h3 {
  color: var(--primary-deep);
  line-height: 1.25;
  margin-top: 2rem;
}

.prose h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.6rem;
}

.prose a {
  color: var(--primary-dark);
  text-decoration-color: var(--primary-light);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--primary);
}

/* ----------------------------------------------------------- event detail */

.event-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.event-detail .prose {
  max-width: 680px;
}

.event-facts {
  display: grid;
  gap: 0;
  margin: 0 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
}

.event-facts div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 18px;
}

.event-facts div + div {
  border-top: 1px solid var(--border);
}

.event-facts dt {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.event-facts dd {
  margin: 0;
  color: var(--primary-deep);
  font-weight: 500;
}

.event-detail-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.event-detail-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ----------------------------------------------------------------- forms */

.form-section {
  display: flex;
  justify-content: center;
}

.auth-form {
  width: min(100%, 460px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.auth-form label {
  display: block;
  margin: 18px 0 6px;
  color: var(--primary-deep);
  font-size: 0.95rem;
  font-weight: 650;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-input);
  background: #fff;
  transition: border-color var(--speed) var(--ease-out), box-shadow var(--speed) var(--ease-out);
}

.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}

.auth-form .btn {
  width: 100%;
  margin-top: 24px;
}

.static-preview-notice {
  padding: 10px 24px;
  background: var(--primary-deep);
  color: var(--surface-warm);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 500 !important;
  color: var(--text) !important;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-dark);
}

.form-error {
  padding: 12px 16px;
  border-radius: var(--radius-input);
  background: var(--danger-tint);
  color: var(--danger);
  font-weight: 600;
}

.form-help,
.notice {
  color: var(--muted);
  font-size: 0.93rem;
}

/* -------------------------------------------------------------- dashboard */

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.85fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.status-card {
  border-radius: var(--radius-card);
  background: var(--primary-deep);
  color: #fff;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.status-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
}

.status-card .meta {
  color: var(--primary-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.status-card span {
  color: var(--primary-tint);
  font-size: 0.95rem;
}

.status-card .notice {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius-input);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.status-card .notice p {
  margin: 0;
  color: #fff;
}

.status-card .btn {
  margin-top: 18px;
  width: fit-content;
  background: #fff;
  color: var(--primary-deep);
}

.status-card .btn:hover {
  background: var(--primary-tint);
  color: var(--primary-deep);
}

/* --------------------------------------------------------------- galleries */

.gallery-placeholder {
  margin-top: 24px;
  border: 1.5px dashed var(--primary-light);
  border-radius: var(--radius-card);
  padding: 48px;
  color: var(--muted);
  background: var(--surface);
  text-align: center;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.photo-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
  transition: box-shadow var(--speed-slow) var(--ease-out),
    border-color var(--speed-slow) var(--ease-out);
}

.photo-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 320ms var(--ease-out);
}

.photo-card:hover img {
  transform: scale(1.025);
}

.photo-card figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* The grid photo is a button into the viewer; give it visible affordance. */
.photo-link {
  display: block;
  cursor: zoom-in;
}

.gallery-back {
  margin: 0 0 24px;
  font-size: 0.95rem;
}

/* Pager between galleries, newest on the left to match the index order. */
.gallery-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.gallery-pager-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-decoration: none;
  transition: border-color var(--speed) var(--ease-out),
    box-shadow var(--speed) var(--ease-out),
    transform var(--speed-slow) var(--ease-out-expo);
}

.gallery-pager-link:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.gallery-pager-link-next {
  text-align: right;
  align-items: flex-end;
}

.gallery-pager-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 650;
}

.gallery-pager-label svg {
  width: 14px;
  height: 14px;
}

.gallery-pager-title {
  color: var(--primary-deep);
  font-weight: 650;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .gallery-pager {
    grid-template-columns: 1fr;
  }

  .gallery-pager-link-next {
    text-align: left;
    align-items: flex-start;
  }
}

/* ---------------------------------------------------------------- lightbox */

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: none;
  place-items: center;
}

.lightbox[open] {
  display: grid;
}

.lightbox::backdrop {
  background: rgba(16, 28, 19, 0.93);
}

.lightbox[open] .lightbox-stage {
  animation: lightbox-in 280ms var(--ease-out-expo);
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

.lightbox-stage {
  margin: 0;
  max-width: min(100vw - 144px, 1200px);
  text-align: center;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: min(82dvh, 900px);
  margin: 0 auto;
  border-radius: var(--radius-card);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-stage figcaption {
  margin-top: 14px;
  color: var(--primary-tint);
  font-size: 0.95rem;
}

.lightbox-button {
  position: fixed;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background var(--speed) var(--ease-out), transform var(--speed) var(--ease-out-expo);
}

.lightbox-button:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.06);
}

.lightbox-button svg {
  width: 22px;
  height: 22px;
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  translate: 0 -50%;
}

.lightbox-next {
  right: 20px;
  top: 50%;
  translate: 0 -50%;
}

.lightbox-counter {
  position: fixed;
  bottom: 18px;
  left: 50%;
  translate: -50% 0;
  margin: 0;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .lightbox-stage {
    max-width: calc(100vw - 24px);
  }

  .lightbox-stage img {
    max-height: 72dvh;
  }

  .lightbox-prev {
    left: 10px;
    top: auto;
    bottom: 14px;
    translate: none;
  }

  .lightbox-next {
    right: 10px;
    top: auto;
    bottom: 14px;
    translate: none;
  }
}

/* --------------------------------------------------------------- directory */

.directory-toolbar {
  max-width: 760px;
  margin-bottom: 28px;
}

.member-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.member-card,
.empty-state {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
  padding: 24px;
}

.member-card h2,
.empty-state h2 {
  margin: 0 0 16px;
  color: var(--primary-deep);
  font-size: 1.18rem;
  line-height: 1.3;
}

.member-card dl {
  margin: 0;
}

.member-card dl div + div {
  margin-top: 14px;
}

.member-card dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.member-card dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.member-card a {
  color: var(--primary-dark);
  text-decoration-color: var(--primary-light);
  text-underline-offset: 3px;
}

.empty-state {
  grid-column: 1 / -1;
  background: var(--surface);
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* ----------------------------------------------------------------- footer */

.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
  background: var(--primary-deep);
  color: var(--primary-tint);
}

/* Hairline accent: a soft green glow along the footer's top edge. */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary-light), var(--primary) 50%, var(--primary-deep));
}

.footer-grid {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) 0;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
}

.footer-grid p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--primary-light);
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  transition: color var(--speed) var(--ease-out);
}

.site-footer ul a:hover {
  color: var(--primary-light);
}

.site-footer ul a:hover,
.footer-grid p a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  text-decoration-color: var(--primary-light);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 10px;
}

.site-footer ul a {
  font-size: 0.96rem;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-footer {
  color: #fff;
  margin-bottom: 16px;
}

.brand-footer small {
  color: var(--primary-light);
  white-space: normal;
}

.brand-footer .brand-mark {
  background: #fff;
  color: var(--primary-deep);
}

/* ------------------------------------------------------------ back to top */

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: var(--z-top);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-deep);
  color: #fff;
  box-shadow: var(--shadow-raised);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity var(--speed-slow) var(--ease-out),
    transform var(--speed-slow) var(--ease-out-expo),
    background var(--speed) var(--ease-out);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.back-to-top:hover {
  background: var(--primary-dark);
}

.site-header.is-scrolled ~ .back-to-top {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 960px) {
  .nav-shell {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px 0;
    gap: 16px;
  }

  .primary-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .home-hero,
  .event-detail,
  .dashboard-hero,
  .account-layout,
  .news-editorial,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-image {
    min-height: 300px;
  }

  .benefits-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-card:nth-child(1) {
    grid-row: auto;
    grid-column: 1 / 3;
    min-height: 280px;
  }

  .benefit-card:nth-child(4) {
    grid-column: 1 / 3;
  }

  .nav-actions {
    margin-left: auto;
  }

  .cards-grid-3,
  .cards-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-shell {
    width: min(100% - 28px, var(--max));
    gap: 12px;
  }

  .primary-nav {
    gap: 2px;
  }

  .primary-nav > a,
  .nav-menu summary {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .nav-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  /* Logged in there are no buttons, only the account menu: keep it beside the brand. */
  .nav-actions:has(.account-menu) {
    display: flex;
    width: auto;
    margin-left: auto;
  }

  .nav-actions .btn {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
  }

  .event-banner-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .home-hero {
    padding-block: 28px 40px;
  }

  .home-hero-copy {
    padding-block: 0;
    overflow: hidden;
  }

  .home-hero h1,
  .page-hero h1,
  .dashboard-hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.3rem);
    line-height: 1.12;
  }

  .home-hero p,
  .page-hero p,
  .dashboard-hero p {
    font-size: 1.02rem;
  }

  .button-row .btn {
    width: 100%;
  }

  .cards-grid-3,
  .cards-grid-4 {
    grid-template-columns: 1fr;
  }

  .event-row {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 16px;
  }

  .photo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .event-date {
    padding: 10px 6px 8px;
  }

  .event-date-day {
    font-size: 1.55rem;
  }

  .event-date-month {
    font-size: 0.72rem;
  }

  .benefits-bento {
    grid-template-columns: 1fr;
  }

  .benefit-card:nth-child(1),
  .benefit-card:nth-child(4) {
    grid-column: auto;
  }

  .news-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .news-row-meta {
    grid-column: 1 / -1;
    order: -1;
  }

  .card,
  .sponsor-card,
  .auth-form {
    padding: 22px;
  }

  .account-card dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .event-facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Scroll reveals: only when JS is running; content stays visible without it. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--speed-reveal) var(--ease-out-expo),
    transform var(--speed-reveal) var(--ease-out-expo);
}

html.js [data-reveal="left"] {
  transform: translateX(-18px);
}

html.js [data-reveal="right"] {
  transform: translateX(18px);
}

html.js [data-reveal="scale"] {
  transform: scale(0.96);
}

html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Staggered groups: children enter one after another once the group is seen. */
html.js [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--speed-reveal) var(--ease-out-expo),
    transform var(--speed-reveal) var(--ease-out-expo);
  transition-delay: calc(var(--reveal-index, 0) * var(--stagger));
}

html.js [data-reveal-stagger].is-revealed > * {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js [data-reveal],
  html.js [data-reveal-stagger] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
