/*
Theme Name: Baregorcakan
Theme URI: https://amvn.org
Author: Armenian Volunteer Network
Description: Pixel-faithful custom theme from the Baregorcakan Figma design.
Version: 1.5.59
Text Domain: baregorcakan
Requires at least: 6.0
Requires PHP: 8.0
*/

/* Figma display font: Webstart Bold (OFL — assets/fonts/webstart/) */
@font-face {
  font-family: "Webstart";
  src: url("assets/fonts/webstart/Webstart-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Webstart";
  src: url("assets/fonts/webstart/Webstart-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-blue: #445eab;
  --color-blue-mid: #455fad;
  --color-blue-deep: #30478d;
  --color-blue-text: #293f80;
  --color-blue-soft: #576fba;
  --color-orange: #fa9d29;
  --color-coral: #f1512e;
  --color-bg: #f4f7ff;
  --color-card: #eaeef9;
  --color-white: #ffffff;
  --gradient-cta: linear-gradient(112deg, #fa9d29 1.23%, #f1512e 100%);

  /* Radii from Figma Baregorcakan */
  --radius-hero: 40px;
  --radius-card: 40px;
  --radius-card-lg: 50px;
  --radius-panel: 70px;
  --radius-pill: 90px;
  --radius-header: 30px;
  --radius-input: 14px;
  --radius-chip: 27px;
  --radius-btn: 16px;
  --radius-check: 4px;
  --radius-logo-badge: 114px;

  /*
   * Fonts from Figma Baregorcakan:
   * - Webstart Bold → self-hosted OFL (display titles: MEDIA, CONTACT, section heads)
   * - Montserrat_arm Regular/Medium/SemiBold/Bold → Montserrat (Google Fonts; Armenian)
   * - Manrope Bold → Manrope 700 (footer labels)
   * - Inter Regular → Inter (footer links)
   */
  --font-body: "Montserrat", system-ui, sans-serif;
  --font-display: "Webstart", "Montserrat", system-ui, sans-serif;
  --font-nav: "Montserrat", system-ui, sans-serif;
  --font-footer: "Manrope", "Montserrat", sans-serif;
  --font-footer-link: "Inter", "Montserrat", system-ui, sans-serif;
  --container: 1447px;
  --page-pad: 40px;
  --header-width: 1486px;
  --footer-width: 1760px;
}

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

html {
  /* Smooth scroll on every wheel tick makes the page feel sticky/laggy.
     Keep instant scroll; anchor jumps can opt in elsewhere if needed. */
  scroll-behavior: auto;
  overflow-x: clip;
  /* Reserve gutter so body scroll-lock doesn’t shift layout */
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: no-preference) {
  html:focus-within {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-blue-text);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site {
  min-height: 100vh;
  overflow-x: clip;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 80px 0;
  text-align: center;
}

.section-title {
  position: relative;
  display: grid;
  width: fit-content;
  max-width: calc(100% - 48px);
  place-items: center;
  margin: 0 auto 40px;
  text-align: center;
}

.section-title h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 50.746px);
  line-height: 0.9;
  letter-spacing: -1.8px;
  text-transform: uppercase;
  color: var(--color-blue-mid);
}

.section-title .underline {
  width: min(100%, 340px);
  height: auto;
  margin-top: -8px;
  justify-self: center;
}

.section-lead {
  margin: -20px 0 40px;
  text-align: center;
  color: var(--color-blue);
  font-size: 18px;
}

/* Header — overlays hero like Figma */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  background: transparent;
  pointer-events: none;
}

.site-header__bar,
.site-header a,
.site-header button {
  pointer-events: auto;
}

.site-header__bar {
  position: relative;
  width: min(100%, var(--header-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  background: var(--color-white);
  border-radius: 0 0 var(--radius-header) var(--radius-header);
  box-shadow: 0 8px 30px rgba(48, 71, 141, 0.06);
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
  background: var(--color-bg);
  border-radius: var(--radius-pill);
  min-height: 52px;
}

.nav-pill a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-blue-deep);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-pill a:hover {
  background: rgba(48, 71, 141, 0.1);
  transform: translateY(-1px);
}

.nav-pill a:active {
  transform: translateY(0);
  background: rgba(48, 71, 141, 0.16);
}

.nav-pill a.is-active {
  background: var(--color-blue-deep);
  color: var(--color-white);
  font-weight: 700;
  min-width: 84px;
}

.nav-pill a.is-active:hover {
  background: #263a78;
  color: var(--color-white);
}

.site-logo {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  background: var(--color-white);
  border-radius: var(--radius-logo-badge);
  padding: 15px;
  z-index: 2;
}

.site-logo img {
  width: 134px;
  height: 128px;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  width: 118px;
  height: 52px;
  padding: 4px;
  background: var(--color-bg);
  border-radius: var(--radius-pill);
}

.lang-switch--nav {
  display: none;
}

.lang-switch a,
.lang-switch span {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-blue-deep);
  text-transform: uppercase;
}

.lang-switch a.is-active,
.lang-switch .is-active {
  background: var(--color-blue);
  color: var(--color-white);
  text-decoration: none;
}

.lang-switch a:not(.is-active) {
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch a:not(.is-active):hover {
  background: rgba(48, 71, 141, 0.1);
}

.lang-switch a.is-active:hover {
  background: #3a5299;
  color: var(--color-white);
}

.btn-donate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 141px;
  height: 52px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background-image: var(--gradient-cta);
  background-size: 100% 100%;
  color: var(--color-white);
  font-weight: 700;
  font-size: 17.8px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-image 0.2s ease;
}

.btn-donate:hover {
  transform: translateY(-2px) scale(1.03);
  background-image: linear-gradient(112deg, #ffb14a 1.23%, #ff6a45 100%);
  box-shadow: 0 12px 28px rgba(241, 81, 46, 0.45);
}

.btn-donate:active {
  transform: translateY(0) scale(1);
  background-image: linear-gradient(112deg, #e8891a 1.23%, #d63d1c 100%);
  box-shadow: none;
}

.btn-donate img {
  width: 23px;
  height: 23px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--color-bg);
  border-radius: 16px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.menu-toggle__close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
  display: block;
}

.menu-toggle:hover {
  background: #e4eafc;
}

.menu-toggle:active {
  transform: scale(0.96);
}

/* Hero — Figma 241:7335: content + 1286×720 media (top radius 60); play centered on media */
.hero {
  --hero-inset: 20px;
  width: min(100% - (var(--hero-inset) * 2), 1840px);
  /* Grow with content so media can be 720px; still fill short viewports */
  min-height: calc(100svh - (var(--hero-inset) * 2));
  height: auto;
  margin: var(--hero-inset) auto 0;
  border-radius: var(--radius-hero);
  background: var(--color-blue);
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.hero__glow {
  position: absolute;
  left: 50%;
  top: -12%;
  width: min(1648px, 120%);
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.95;
}

.hero__content {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Figma title top ≈ 240px under header chrome */
  padding: 240px 24px 0;
}

.hero h1 {
  margin: 0 auto;
  max-width: 576px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 0.9;
  letter-spacing: -1.8px;
  text-transform: uppercase;
  flex-shrink: 0;
  padding-bottom: 0;
}

/* Armenian uppercase stacks taller — ease line crush + give the slogan room */
body.lang-hy .hero h1 {
  line-height: 1.05;
  max-width: 640px;
  letter-spacing: -1.2px;
}

.hero__underline {
  display: block;
  width: min(590px, 85%);
  margin: 4px auto 0;
  flex-shrink: 0;
  position: relative;
  z-index: 0;
}

.hero__lead {
  margin: 28px auto 0;
  max-width: 585px;
  font-size: clamp(15px, 1.4vw, 19.55px);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.hero__media-wrap {
  position: relative;
  width: min(1286px, calc(100% - 32px));
  /* Figma 241:7340 — fixed media plane */
  height: min(720px, 58vw);
  flex: 0 0 auto;
  margin-top: 48px;
  margin-bottom: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.hero__media {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 60px 60px 0 0;
  overflow: hidden;
  background: #1e2f66;
}

.hero__media[data-hero-video] {
  cursor: pointer;
}

.hero__media[data-hero-video]:focus-visible {
  outline: 3px solid var(--color-coral);
  outline-offset: 4px;
}

/* White frame as overlay — avoids border/box-shadow hairlines on the poster */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 6px solid var(--color-white);
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;
}

.hero__media > img {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  z-index: 0;
}

.hero__media-overlay {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 255px;
  max-height: 40%;
  background: linear-gradient(
    to bottom,
    #445eab 0%,
    rgba(68, 94, 171, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero__media-caption {
  position: absolute;
  top: 41px;
  left: 50%;
  transform: translateX(-50%);
  width: min(435px, 80%);
  margin: 0;
  font-size: clamp(14px, 1.3vw, 19.55px);
  font-weight: 700;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 2px 12px rgba(20, 35, 80, 0.55);
  z-index: 2;
}

/* Play centered on the media plane (Andre: по центру) — decorative; click is on .hero__media */
.hero__play {
  position: absolute;
  left: 50%;
  top: 50%;
  /* Keep centering out of `transform` so pulse scale cannot drift */
  translate: -50% -50%;
  transform: none;
  width: 99px;
  height: 99px;
  border: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
  z-index: 5;
  animation: pulse-play 2.4s ease-in-out infinite;
  transition: filter 0.2s ease;
  display: block;
}

.hero__play img {
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.hero__media[data-hero-video]:hover .hero__play {
  animation-play-state: paused;
  filter: brightness(1.08);
}

.hero__media[data-hero-video]:hover .hero__play img {
  transform: scale(1.08);
}

.hero__media[data-hero-video]:active .hero__play img {
  transform: scale(0.96);
}

@keyframes pulse-play {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

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

@keyframes header-in {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-header__bar {
  animation: header-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Scroll reveals — toggled by IntersectionObserver (.is-inview) */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal="left"] {
  transform: translateX(-28px);
}

[data-reveal="right"] {
  transform: translateX(28px);
}

[data-reveal="scale"] {
  transform: scale(0.96);
}

[data-reveal].is-inview {
  opacity: 1;
  transform: none;
}

.story-card,
.media-card,
.news-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.carousel__slide.is-active .story-card,
.carousel__slide.is-active .media-card,
.carousel__slide.is-active .news-card,
.story-card.is-active {
  transition: transform 0.4s ease, background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__play {
    animation: none !important;
  }

  .intro {
    display: none !important;
  }
}

/* About / stats — Figma 277:32: 707 + 15 + 725 = 1447 */
.about-grid {
  text-align: left;
  width: 100%;
  max-width: 1447px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 707fr 725fr;
  gap: 15px;
  align-items: stretch;
}

.about-card {
  background: var(--color-blue-deep);
  color: var(--color-white);
  border-radius: var(--radius-card);
  padding: 58px 37px 40px;
  min-height: 611px;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.about-card h3 {
  margin: 0 0 24px;
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
}

.about-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.about-card .learn-more {
  display: inline-block;
  margin-top: 40px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.about-card .learn-more:hover {
  color: var(--color-orange);
}

.about-card .learn-more:active {
  opacity: 0.85;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  min-height: 611px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  container-name: stat;
  border: 4px solid var(--color-white);
  border-radius: var(--radius-card);
  padding: 30px;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  min-width: 0;
  box-shadow: 0 0 0 1px rgba(48, 71, 141, 0.06);
}

.stat-card--blue {
  background: var(--color-blue);
}

.stat-card--orange {
  background: var(--color-orange);
}

.stat-card .wave {
  position: absolute;
  inset: -23px auto auto 50%;
  transform: translateX(-40%);
  width: 529px;
  max-width: none;
  pointer-events: none;
  opacity: 0.9;
  z-index: 0;
}

.stat-card h4 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-blue);
  max-width: 70%;
}

.stat-card--blue h4,
.stat-card--orange h4 {
  color: var(--color-white);
}

/* Full-width box + right align so wide values (50+) never clip left */
.stat-card .value {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  text-align: right;
  /* Figma ~157px on desktop cards */
  font-size: clamp(56px, 38cqi, 157px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: var(--color-coral);
  overflow: visible;
  white-space: nowrap;
}

/* Locations — pan/zoom stage + Figma pins */
.locations-board {
  position: relative;
  text-align: left;
  background: var(--color-blue-deep);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(48, 71, 141, 0.12);
  /* Allow vertical page scroll over the map; pinch/ctrl-zoom handled in JS */
  touch-action: pan-y;
  user-select: none;
}

.locations-board.is-zoomed {
  touch-action: none;
}

.locations-board__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.locations-board.is-zoomed .locations-board__viewport {
  touch-action: none;
}

.locations-board__viewport.is-dragging {
  cursor: grabbing;
}

.locations-board__stage {
  position: relative;
  width: 100%;
  transform-origin: 0 0;
  will-change: transform;
}

.locations-board__img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.map-countries {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.map-country {
  position: absolute;
  display: block;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
  -webkit-user-drag: none;
}

.map-country.is-active {
  opacity: 1;
}

.map-pins {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
  z-index: 3;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 3;
}

.map-pin__btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: center bottom;
  animation: map-pin-in 0.72s cubic-bezier(0.16, 0.84, 0.24, 1) both;
  animation-delay: var(--pin-delay, 0s);
}

.map-pin__glyph {
  display: block;
  width: 19px;
  height: 35px;
  transform-origin: center bottom;
  animation: map-pin-bob 1.8s ease-in-out infinite;
  animation-delay: calc(var(--pin-delay, 0s) + 0.72s);
}

.map-pin__btn.is-featured .map-pin__glyph {
  width: 23px;
  height: 43px;
}

.map-pin__label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  max-width: 140px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 1px 2px rgba(8, 16, 40, 0.9), 0 0 10px rgba(8, 16, 40, 0.65);
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.map-pin__btn:hover .map-pin__label,
.map-pin__btn:focus-visible .map-pin__label,
.map-pin.is-open .map-pin__label {
  opacity: 1;
  visibility: visible;
}

.map-pin__btn.is-featured .map-pin__label {
  font-size: 14px;
  color: #fff;
}

@keyframes map-pin-in {
  from {
    opacity: 0;
    translate: 0 -40px;
    scale: 0.5;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes map-pin-bob {
  0%,
  100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

.map-pin__btn:hover,
.map-pin.is-open .map-pin__btn {
  filter: drop-shadow(0 0 6px rgba(241, 81, 46, 0.85));
}

.map-pin__btn:focus-visible {
  outline: 2px solid #fa9d29;
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .map-pin__label {
    font-size: 11px;
  }
}

/* Carousels — Figma 241:6380 / 241:7181 / 241:7252: 528×610 vertical cards */
.carousel {
  --card-w: 528px;
  --card-h: 610px;
  --card-gap: 12px;
  position: relative;
  text-align: left;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  gap: var(--card-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Edge-bleed row — peeks at viewport edges (Figma home) */
  padding: 0;
  scroll-padding-inline: 0;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 var(--card-w);
  width: var(--card-w);
  max-width: var(--card-w);
  height: var(--card-h);
  scroll-snap-align: start;
  box-sizing: border-box;
}

/* Home news — another modest shrink (was 528×610 → 464×536 → 408×472) */
.carousel:has(.news-card) {
  --card-w: 408px;
  --card-h: 472px;
}

.carousel:has(.news-card) .news-card {
  padding: 40px;
}

/* Student Stories — shorter content-fit cards (no empty blue panel) */
.carousel:has(.story-card) {
  --card-w: 528px;
  --card-h: auto;
  overflow: hidden;
}

.carousel:has(.story-card) .carousel__track {
  padding: 0 calc((100% - var(--card-w)) / 2);
  scroll-padding-inline: calc((100% - var(--card-w)) / 2);
  align-items: stretch;
}

.carousel:has(.story-card) .carousel__slide,
.carousel__slide.story-card {
  scroll-snap-align: center;
  height: auto;
  min-height: 0;
}

.media-card,
.story-card,
.news-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: var(--card-h);
  border-radius: var(--radius-card);
  overflow: hidden;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 50px;
  box-sizing: border-box;
  background: var(--color-blue-deep);
}

.media-card__bg,
.news-card__bg {
  position: absolute;
  /* Figma overscan 570×658 on 528×610 (241:7187 / 241:7257) — sharp photo, no CSS blur wash */
  inset: -24px -21px;
  width: calc(100% + 42px);
  height: calc(100% + 48px);
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: none;
  image-rendering: auto;
  z-index: 0;
  pointer-events: none;
  transition: transform 0.35s ease;
}

.story-card__head img,
.vol-story__avatar {
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
}

.media-card__shade,
.news-card__shade {
  position: absolute;
  inset: auto 0 0;
  /* Figma Rectangle 5 — 248px bottom wash */
  height: 248px;
  max-height: 45%;
  z-index: 1;
  background: linear-gradient(
    to top,
    #445eab 0%,
    rgba(68, 94, 171, 0) 100%
  );
  pointer-events: none;
}

/* Top wash matching Figma Rectangle 4 — 161px */
.media-card::before,
.news-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 161px;
  background: linear-gradient(
    to bottom,
    #445eab 0%,
    rgba(68, 94, 171, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.news-card__link {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 50px;
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
  transition: transform 0.25s ease;
}

.news-card:hover .news-card__bg,
.media-card:hover .media-card__bg {
  transform: scale(1.04);
}

.media-card__body,
.news-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
}

.media-card h3,
.news-card h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 331px;
}

.news-card h3 {
  font-size: 28px;
  max-width: 423px;
  line-height: 1.2;
}

.media-card p,
.media-card__teaser {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.8);
  max-width: 331px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 5px;
  padding: 12.735px 16px;
  border-radius: 15.282px;
  background-image: var(--gradient-cta);
  color: var(--color-white);
  font-size: 17.829px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-image 0.2s ease;
}

.btn-cta:hover {
  transform: translateY(-2px) scale(1.03);
  background-image: linear-gradient(112deg, #ffb14a 1.23%, #ff6a45 100%);
  box-shadow: 0 12px 26px rgba(241, 81, 46, 0.45);
}

.btn-cta:active {
  transform: translateY(0) scale(1);
  background-image: linear-gradient(112deg, #e8891a 1.23%, #d63d1c 100%);
  box-shadow: none;
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 71px;
  width: 100%;
  max-width: 434px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--color-blue-deep);
  color: var(--color-white);
  font-size: 19.4px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-solid:hover {
  background: #263a78;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(48, 71, 141, 0.3);
}

.btn-solid:active {
  transform: translateY(0);
  background: #1f3066;
  box-shadow: none;
}

/* Student Stories — light cards + active center; height follows content */
.story-card {
  background: #eaeef9;
  border: 6px solid var(--color-white);
  color: var(--color-blue-text);
  justify-content: flex-start;
  gap: 14px;
  padding: 24px 28px;
  height: auto;
  min-height: 0;
}

.story-card.is-active {
  background: #405aaa;
  color: var(--color-white);
}

.story-card.is-active .story-card__quote {
  color: rgba(255, 255, 255, 0.7);
}

.story-card.is-active .read-more,
.story-card.is-active .story-card__head h3,
.story-card.is-active .story-card__head p {
  color: var(--color-white);
}

.story-card__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-shrink: 0;
  text-align: left;
  width: 100%;
  min-width: 0;
}

.story-card__head > div {
  flex: 1 1 auto;
  min-width: 0;
}

.story-card__head img {
  width: 96px;
  height: 96px;
  max-width: 96px;
  max-height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 96px;
}

.story-card__head h3 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-blue-text);
  max-width: 331px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.story-card__head p {
  margin: 0;
  font-size: 17.829px;
  line-height: 1.4;
  color: var(--color-blue-text);
  white-space: normal;
}

.story-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
  min-height: 0;
}

.story-card .quote,
.story-card .quote-end {
  display: none !important;
}

.story-card__quote {
  margin: 0;
  padding: 0;
  font-size: 20px;
  line-height: 1.4;
  color: var(--color-blue-text);
  width: 100%;
  text-indent: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.media-card[data-card-modal],
.story-card[data-card-modal],
.vol-story[data-card-modal],
.person-card[data-card-modal] {
  cursor: pointer;
}

.story-card .read-more {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--color-blue-text);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.story-card .read-more:hover {
  color: var(--color-orange);
}

.story-card.is-active .read-more:hover {
  color: #ffd2a8;
}

@media (max-width: 1100px) {
  .carousel {
    --card-w: min(528px, 78vw);
    --card-h: min(610px, 78vw * 1.155);
  }

  .carousel:has(.news-card) {
    --card-w: min(408px, 68vw);
    --card-h: min(472px, 68vw * 1.155);
  }

  .carousel:has(.story-card) .carousel__track {
    padding: 0 calc((100% - var(--card-w)) / 2);
    scroll-padding-inline: calc((100% - var(--card-w)) / 2);
  }

  .media-card,
  .news-card {
    padding: 36px;
  }

  .story-card {
    padding: 22px 26px;
    height: auto;
    min-height: 0;
  }
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(430px, 100%);
  /* Figma controls sit in the 40px section stack under the track */
  margin: 40px auto 0;
}

.carousel__btn {
  width: 52px;
  height: 52px;
  border-radius: 90px;
  border: 2px solid var(--color-blue-deep);
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.carousel__btn:hover {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 2px rgba(250, 157, 41, 0.35);
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.06);
}

.carousel__btn:hover img {
  filter: none;
}

.carousel__btn:focus-visible {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 2px rgba(250, 157, 41, 0.45);
}

.carousel__btn:active {
  transform: scale(0.96);
}

.carousel__btn img {
  width: 24px;
  height: 24px;
  display: block;
  overflow: hidden;
}

/* Clean right-chevron SVG — flip for prev (no rotate artifacts) */
.carousel__btn--prev img {
  transform: scaleX(-1);
}

.carousel__btn--next img {
  transform: none;
}

.carousel__dots {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 6px;
}

.carousel__dots span {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: 6px;
  border-radius: 90px;
  /* Desktop Figma 241:7242 uses 0.1; mobile overrides raise contrast */
  background: rgba(48, 71, 141, 0.1);
  cursor: pointer;
  transition: background 0.2s ease, flex-grow 0.25s ease;
}

.carousel__dots span:hover {
  background: rgba(48, 71, 141, 0.4);
}

.carousel__dots span.is-active {
  flex: 2.4 1 0;
  background: #30478d;
}

.meta-date {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
}

.meta-date img {
  width: 24px;
  height: 24px;
}

.amvn-cal {
  position: relative;
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.amvn-cal img {
  width: 100%;
  height: 100%;
  display: block;
}

.amvn-cal__day {
  position: absolute;
  left: 0;
  right: 0;
  top: 48%;
  bottom: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Montserrat, "Noto Sans Armenian", sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  pointer-events: none;
}

.amvn-cal--lg {
  width: 31px;
  height: 31px;
}

.amvn-cal--lg .amvn-cal__day {
  font-size: 11px;
  top: 46%;
}

/* Take action */
.action-grid {
  text-align: left;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 100%;
}

.action-card {
  position: relative;
  /* Figma 241:7367 — 686px tall action panels */
  min-height: 686px;
  height: 686px;
  min-width: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  color: var(--color-white);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 36px 19px 40px;
  text-align: center;
  background: #3654af;
}

/* Background photo only — do not target CTA icons (heart was stretching into a white U). */
.action-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Figma 241:7368 crop (image 1116×745 offset −294/−59 on 472×686) */
  object-position: 48% 48%;
  z-index: 0;
  pointer-events: none;
}

.action-card__shade {
  position: absolute;
  inset: auto 0 0;
  height: 324px;
  max-height: 55%;
  z-index: 1;
  background: linear-gradient(
    to top,
    #30478d 0%,
    #445eab 40%,
    rgba(68, 94, 171, 0) 100%
  );
  pointer-events: none;
}

.action-card__body {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.action-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 40px;
  letter-spacing: -1.2px;
  text-transform: uppercase;
  line-height: 0.9;
  color: #fff;
  text-shadow: 0 2px 14px rgba(48, 71, 141, 0.75);
}

.action-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  max-width: 434px;
  text-shadow: 0 1px 10px rgba(48, 71, 141, 0.7);
}

.action-card .btn-donate,
.action-card .btn-solid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 434px;
  height: 71px;
  min-height: 71px;
  border-radius: 16.614px;
  font-size: 19.383px;
  gap: 13.845px;
}

.action-card .btn-donate img,
.action-card .btn-solid img {
  position: static;
  inset: auto;
  width: 24.92px;
  height: 24.92px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  width: min(100% - 48px, var(--footer-width));
  margin: 40px auto 0;
  background: var(--color-blue-deep);
  color: var(--color-white);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  padding: 30px 43px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 206px 1fr 1fr 1.2fr 184px;
  gap: 20px;
  align-items: start;
}

.footer-logo {
  background: var(--color-white);
  border-radius: calc(var(--radius-logo-badge) * 0.77);
  padding: 12px;
  width: fit-content;
}

.footer-logo img {
  width: 103px;
  height: 98px;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-family: var(--font-footer);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 0 0 8px;
  font-family: var(--font-footer-link);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  line-height: 20px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-contact a,
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 11px;
}

.footer-contact img {
  width: 18px;
  height: 18px;
}

.socials {
  display: flex;
  gap: 8px;
  padding-top: 16px;
}

.socials a {
  width: 56px;
  height: 56px;
  border-radius: 90px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.socials a:active {
  transform: translateY(0);
}

.socials img {
  width: 24px;
  height: 24px;
}

.footer-rule {
  margin: 18px 0;
  width: 100%;
  height: 1px;
  border: 0;
  background: transparent;
}

.footer-rule img {
  width: 100%;
  height: auto;
}

.footer-copy {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* Contact page — top clearance comes from body:not(.home) .site-main */
.page-shell {
  padding: 24px 24px 80px;
}

.contact-panel {
  width: min(1438px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 581px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--color-bg);
  border: 6px solid var(--color-white);
  border-radius: var(--radius-panel);
  padding: 12px 50px 12px 12px;
}

.contact-info {
  background: var(--color-blue);
  color: var(--color-white);
  border-radius: var(--radius-card-lg);
  padding: 50px;
}

.contact-info h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 60px);
  letter-spacing: -1.8px;
  text-transform: uppercase;
  line-height: 0.9;
}

.contact-info .underline {
  width: 319px;
  margin: 8px 0 24px;
}

.contact-info > p {
  margin: 0 0 30px;
  font-size: 18px;
  line-height: 1.5;
}

.contact-box {
  background: var(--color-blue-soft);
  border: 2px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-chip);
  padding: 20px;
  margin-bottom: 6px;
}

.contact-box h3 {
  margin: 0 0 6px;
  font-size: 23px;
}

.contact-box p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
}

.contact-box img {
  width: 18px;
  height: 18px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--full {
  grid-column: span 2;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(65, 87, 153, 0.6);
}

.field .control {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  border: 1px solid rgba(65, 87, 153, 0.2);
  border-radius: var(--radius-input);
  padding: 20px;
  font-family: var(--font-body);
}

/* Single subtle focus on the wrapper — never on the inner input. */
.field .control:focus-within,
.field .control.is-focus {
  border: 1px solid rgba(68, 94, 171, 0.55);
  box-shadow: none;
}

/*
 * Form field icons — Figma Contact 241:9775 / fields 241:9831
 * Idle:   rgba(41, 63, 128, 0.3)  ≡  #293F80 @ 30%
 * Active: #F1512E
 * CSS mask + solid color (no filter) so idle never drifts peach.
 */
.field-icon {
  --field-icon-idle: rgba(41, 63, 128, 0.3);
  --field-icon-active: #f1512e;
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-color: var(--field-icon-idle);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: background-color 0.2s ease;
}

.field-icon--user {
  -webkit-mask-image: url("images/icon-user-mask.svg");
  mask-image: url("images/icon-user-mask.svg");
}

.field-icon--mail {
  -webkit-mask-image: url("images/icon-mail-field-mask.svg");
  mask-image: url("images/icon-mail-field-mask.svg");
}

.field-icon--phone {
  -webkit-mask-image: url("images/icon-phone-field-mask.svg");
  mask-image: url("images/icon-phone-field-mask.svg");
}

.field .control:focus-within .field-icon,
.field .control.is-focus .field-icon {
  background-color: var(--field-icon-active);
}

/* Legacy <img> icons (if any remain): force idle mute; no peach filters. */
.field .control img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.3;
  filter: none;
}

.field .control:focus-within img,
.field .control.is-focus img {
  opacity: 1;
  /* Exact coral via mask-like recolor only when still using <img> */
  filter: brightness(0) saturate(100%) invert(39%) sepia(86%) saturate(2140%) hue-rotate(346deg) brightness(98%) contrast(93%);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: var(--color-blue-text);
  /* ≥16px avoids iOS Safari zoom-on-focus */
  font-size: 16px;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}

.field input:focus,
.field input:focus-visible,
.field textarea:focus,
.field textarea:focus-visible,
.field select:focus,
.field select:focus-visible {
  border: 0;
  outline: none;
  box-shadow: none;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(41, 63, 128, 0.3);
}

.btn-submit {
  grid-column: span 2;
  height: 56px;
  border: 0;
  border-radius: var(--radius-btn);
  background-image: linear-gradient(90deg, #fa9d29, #f1512e);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
  transform: translateY(-2px) scale(1.02);
  background-image: linear-gradient(90deg, #ffb14a, #ff6a45);
  box-shadow: 0 12px 26px rgba(241, 81, 46, 0.4);
}

.btn-submit:active {
  transform: translateY(0) scale(1);
  background-image: linear-gradient(90deg, #e8891a, #d63d1c);
}

.btn-submit img {
  width: 20px;
  height: 20px;
}

/* Donate — Figma 241:7567: chrome-free, shell + card perfectly centered */
body.is-donate-chrome-free {
  background: var(--color-bg);
  overflow-x: clip;
}

body.is-donate-chrome-free .site,
body.is-donate-chrome-free .site-main {
  min-height: 100svh;
  padding-top: 0 !important;
  margin: 0;
}

.donate-page {
  box-sizing: border-box;
  width: 100%;
  min-height: 100svh;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donate-shell {
  position: relative;
  box-sizing: border-box;
  width: min(1840px, 100%);
  height: min(1000px, calc(100svh - 80px));
  min-height: min(1000px, calc(100svh - 80px));
  max-height: calc(100svh - 80px);
  margin: 0 auto;
  border-radius: var(--radius-hero);
  background: var(--color-blue);
  overflow: hidden;
  /* Column: crumb in flow on top; card centers in remaining space and never covers crumb. */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 24px 48px;
}

.donate-shell__glow {
  position: absolute;
  left: 50%;
  top: -149px;
  transform: translateX(-50%);
  width: min(1648px, 120%);
  max-width: none;
  pointer-events: none;
  z-index: 0;
}

.donate-crumb {
  position: relative;
  flex: 0 0 auto;
  z-index: 2;
  margin: 0 0 28px;
  padding: 8px 12px 0;
  color: var(--color-white);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
  white-space: nowrap;
  text-align: center;
}

.donate-crumb a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}

.donate-crumb a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.donate-crumb strong {
  font-weight: 700;
}

.donate-card {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(668px, calc(100% - 48px));
  /* Sit below in-flow crumb; shrink + scroll when Other expands (never cover crumb). */
  flex: 0 1 auto;
  align-self: center;
  min-height: 0;
  max-height: calc(100% - 72px);
  margin-top: auto;
  margin-bottom: auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--color-white);
  border-radius: var(--radius-card-lg);
  padding: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  text-align: center;
  font-family: var(--font-body);
}

.donate-card__logo {
  width: 103.8px;
  height: 99.15px;
  display: block;
  flex-shrink: 0;
}

.donate-card__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.donate-card__copy .eyebrow {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-blue-text);
}

.donate-card__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

/* Figma 241:7620 — Montserrat_arm Bold 28 / #293F80 / Title Case (not display) */
.donate-card h1,
.donate-card__org {
  margin: 0;
  max-width: 482px;
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-blue-text);
  line-height: 1.1;
  letter-spacing: normal;
  text-transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.donate-card__org-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.donate-card__verified {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.donate-card .tagline {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: rgba(41, 63, 128, 0.6);
}

.donate-card__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.amount-option {
  border: 3px solid rgba(41, 63, 128, 0.1);
  border-radius: var(--radius-input);
  background: var(--color-white);
  padding: 20px;
  cursor: pointer;
  color: var(--color-blue-text);
  font-family: var(--font-body);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.amount-option:hover {
  border-color: rgba(241, 81, 46, 0.55);
  background: #fff8f4;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(48, 71, 141, 0.08);
}

.amount-option:active {
  transform: translateY(0);
}

.amount-option.is-active {
  border-color: var(--color-coral);
  background: #fff5f1;
}

.amount-option.is-active:hover {
  border-color: #d94322;
}

.amount-option strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.amount-option span {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.amount-option--other {
  display: flex;
  align-items: center;
  justify-content: center;
}

.amount-option--other strong {
  font-weight: 400;
  line-height: 24px;
}

.donate-other {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  animation: donate-other-in 0.28s ease;
}

.donate-other[hidden] {
  display: none !important;
}

@keyframes donate-other-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.donate-other__label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: rgba(41, 63, 128, 0.65);
}

.donate-other__control {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 64px;
  padding: 16px 20px;
  background: var(--color-white);
  border: 3px solid rgba(41, 63, 128, 0.1);
  border-radius: var(--radius-input);
}

.donate-other__control:focus-within {
  border: 3px solid rgba(68, 94, 171, 0.55);
  background: var(--color-white);
  box-shadow: none;
}

.donate-other.is-invalid .donate-other__control {
  border-color: var(--color-coral);
  background: #fff5f1;
  box-shadow: none;
}

.donate-other__prefix {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  /* Match form-icon idle: #293F80 @ 30% */
  color: rgba(41, 63, 128, 0.3);
  transition: color 0.2s ease;
}

.donate-other__control:focus-within .donate-other__prefix {
  /* Match form-icon active: #F1512E */
  color: #f1512e;
}

.donate-other__input {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: var(--color-blue-text);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Focus ring lives on .donate-other__control only (see override after global focus-visible). */
.donate-other__input:focus,
.donate-other__input:focus-visible {
  border: 0 !important;
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}

.donate-other__input::-webkit-outer-spin-button,
.donate-other__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.donate-other__input::placeholder {
  font-weight: 400;
  color: rgba(41, 63, 128, 0.4);
}

.donate-other__error {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: var(--color-coral);
}

.donate-other__error[hidden] {
  display: none !important;
}

.monthly {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-blue-text);
}

.monthly input {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-check);
}

.donate-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.btn-paypal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 18px 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background-image: linear-gradient(127deg, #fa9d29 1.23%, #f1512e 100%);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-paypal:hover {
  transform: translateY(-2px) scale(1.02);
  background-image: linear-gradient(127deg, #ffb14a 1.23%, #ff6a45 100%);
  box-shadow: 0 12px 26px rgba(241, 81, 46, 0.4);
}

.btn-paypal:active {
  transform: translateY(0) scale(1);
  background-image: linear-gradient(127deg, #e8891a 1.23%, #d63d1c 100%);
}

.btn-paypal img {
  width: 24px;
  height: 24px;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: #eaecf2;
  color: var(--color-blue-text);
  font-family: var(--font-body);
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.btn-card:hover {
  background: #d8dce8;
  transform: translateY(-2px);
  color: var(--color-blue-deep);
}

.btn-card:active {
  transform: translateY(0);
  background: #d0d5e3;
}

a.btn-paypal {
  text-decoration: none;
}

.donate-notice {
  margin: 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff4e8;
  color: var(--color-blue-deep);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

/*
 * Inner pages: absolute header + hanging logo (~158px) overlays content.
 * Clear the logo so titles like VOLUNTEER are never covered.
 * Donate is chrome-free (Figma 241:7567) — no header clearance.
 */
body:not(.home):not(.is-donate-chrome-free) .site-main {
  padding-top: clamp(150px, 14vw, 176px);
}

/* Generic inner page */
.page-hero {
  width: min(1840px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 320px;
  border-radius: 40px;
  background: var(--color-blue);
  color: var(--color-white);
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(56px, 6vw, 80px) 24px;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 60px);
  letter-spacing: -1.8px;
  text-transform: uppercase;
  line-height: 0.9;
}

.page-hero p {
  margin: 18px auto 0;
  max-width: 640px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
}

.content-block {
  width: min(var(--container), calc(100% - 48px));
  margin: 60px auto;
  background: var(--color-white);
  border-radius: 40px;
  padding: 48px;
  box-shadow: 0 10px 40px rgba(48, 71, 141, 0.06);
}

.content-block h2 {
  margin-top: 0;
  color: var(--color-blue-deep);
}

/* Responsive */
@media (max-width: 1200px) {
  .site-logo {
    padding: 10px;
  }

  .site-logo img {
    width: 88px;
    height: 88px;
  }

  .about-grid,
  .mission-row,
  .believe-grid,
  .action-grid,
  .contact-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    --hero-inset: 12px;
    min-height: calc(100svh - 24px);
    height: auto;
  }

  .hero__content {
    /* Logo shrinks to ~108px at this breakpoint — keep clear air under it */
    padding-top: 150px;
  }

  .hero__media-wrap {
    height: min(560px, 70vw);
  }

  .hero__media {
    border-radius: 40px 40px 0 0;
  }

  .hero__media::after {
    border-width: 4px;
  }

  .hero__play {
    left: 50%;
    top: 50%;
    width: 84px;
    height: 84px;
  }

  .contact-panel {
    padding: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .stats-grid {
    min-height: 0;
  }

  .about-card {
    min-height: 0;
    padding: 40px 28px 32px;
  }

  .about-grid {
    width: 100%;
  }

  .stats-grid {
    min-height: 420px;
    gap: 10px;
  }

  .stat-card {
    min-height: 200px;
    padding: 22px 18px 18px;
  }

  .stat-card .value {
    font-size: clamp(52px, 28cqi, 120px);
  }

  .mission-row {
    flex-direction: column;
  }

  .believe-grid {
    height: auto;
    grid-template-columns: 1fr;
  }

  .person-card,
  .carousel--staff,
  .carousel--people {
    --card-w: min(384px, 86vw);
    --card-h: 360px;
  }
}

/* Hamburger earlier than phone — prevents centered logo covering Contact on tablets */
@media (max-width: 1100px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    max-width: calc(100% - 32px);
    margin-bottom: 28px;
  }

  .section-title h2 {
    font-size: clamp(28px, 8vw, 40px);
    letter-spacing: -1px;
  }

  .section-title .underline {
    width: min(100%, 260px);
    max-width: 100%;
    margin-top: -4px;
  }

  .section-lead {
    margin: -12px 16px 28px;
    font-size: 16px;
  }

  .site-header {
    padding: 6px max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left));
  }

  .site-header__bar {
    gap: 8px;
    padding: 8px 10px;
    border-radius: 0 0 22px 22px;
    align-items: center;
    min-height: 56px;
  }

  .menu-toggle,
  .header-actions {
    position: relative;
    z-index: 4;
  }

  /* Keep logo centered (desktop language) so the bar stays [menu | Donate] */
  .site-logo {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    padding: 8px;
    z-index: 3;
  }

  .site-logo img {
    width: 64px;
    height: 64px;
  }

  /* Open menu: shrink logo into the bar — never cover About */
  body.is-menu-open .site-header__bar {
    overflow: visible;
  }

  body.is-menu-open .site-logo {
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 2px;
    z-index: 1;
    max-height: 44px;
  }

  body.is-menu-open .site-logo img {
    width: 36px;
    height: 36px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
  }

  .nav-pill {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 10px;
    right: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px;
    border-radius: 22px;
    overflow: visible;
    z-index: 30;
    box-shadow: 0 16px 40px rgba(48, 71, 141, 0.16);
  }

  .nav-pill.is-open {
    display: flex;
  }

  .nav-pill a {
    justify-content: flex-start;
    min-height: 44px;
    padding: 12px 16px;
    white-space: normal;
    border-radius: 14px;
  }

  .nav-pill a.is-active {
    min-width: 0;
  }

  .header-actions {
    margin-left: auto;
    gap: 6px;
    flex: 0 0 auto;
  }

  /* Language lives inside the hamburger menu on phone widths */
  .lang-switch--bar {
    display: none;
  }

  .lang-switch--nav {
    display: flex;
    width: 100%;
    height: 48px;
    margin-top: 12px;
    padding: 4px;
    border-radius: 90px;
    box-sizing: border-box;
    flex-shrink: 0;
  }

  .lang-switch--nav a {
    font-size: 14px;
    min-height: 40px;
    border-radius: 90px;
  }

  .btn-donate {
    min-width: 0;
    height: 44px;
    padding: 8px 14px;
    font-size: 14px;
    gap: 6px;
    flex: 0 0 auto;
  }

  .btn-donate img {
    width: 18px;
    height: 18px;
  }

  body:not(.home):not(.is-donate-chrome-free) .site-main {
    padding-top: 96px;
  }

  .hero {
    --hero-inset: 10px;
    border-radius: 28px;
    min-height: 0;
  }

  .hero__content {
    /* Hamburger logo ≈ 64px — still need room under the badge */
    padding: 120px 16px 0;
  }

  .hero h1 {
    font-size: clamp(28px, 8.2vw, 40px);
    letter-spacing: -1px;
    max-width: 100%;
    padding: 0 4px;
    line-height: 0.9;
  }

  .hero__lead {
    font-size: 15px;
    max-width: 100%;
    padding: 0 4px;
    margin-top: 16px;
  }

  .hero__media-wrap {
    width: calc(100% - 16px);
    height: min(420px, 110vw);
    margin-top: 20px;
  }

  .hero__media {
    border-radius: 28px 28px 0 0;
  }

  .hero__media::after {
    border-width: 3px;
  }

  .hero__media-caption {
    width: min(280px, 88%);
    font-size: 13px;
    top: 14px;
  }

  .hero__play {
    left: 50%;
    top: 50%;
    width: 68px;
    height: 68px;
  }

  .about-card h3 {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .about-card .learn-more {
    margin-top: 28px;
    font-size: 18px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-card {
    min-height: 168px;
    padding: 16px 14px 14px;
    border-width: 3px;
    border-radius: 28px;
  }

  .stat-card h4 {
    font-size: 13px;
    max-width: 100%;
  }

  .stat-card .value {
    font-size: clamp(40px, 34cqi, 64px);
    letter-spacing: -0.04em;
  }

  .stat-card .wave {
    width: min(340px, 160%);
  }

  .carousel {
    --card-w: min(300px, 82vw);
    --card-h: min(380px, 110vw);
  }

  .carousel:has(.news-card) {
    --card-w: min(240px, 72vw);
    --card-h: min(304px, 92vw);
  }

  .carousel__track {
    padding: 0;
    gap: 10px;
  }

  .media-card,
  .story-card,
  .news-card {
    padding: 22px;
    border-radius: 28px;
  }

  .news-card__link {
    padding: 22px;
  }

  /* Avatar/quote icons must NOT inherit cover sizing (was stacking names 1 letter/line). */
  .action-card > img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  .carousel:has(.story-card) {
    --card-w: min(320px, 86vw);
    --card-h: auto;
  }

  .carousel:has(.story-card) .carousel__track {
    padding: 0 calc((100% - var(--card-w)) / 2);
    scroll-padding-inline: calc((100% - var(--card-w)) / 2);
  }

  .story-card.carousel__slide,
  .carousel__slide.story-card {
    height: auto;
    min-height: 0;
  }

  .story-card__head img {
    width: 80px;
    height: 80px;
    max-width: 80px;
    max-height: 80px;
    flex: 0 0 80px;
  }

  .media-card__bg,
  .news-card__bg {
    filter: none;
  }

  .media-card__shade,
  .news-card__shade {
    height: 200px;
  }

  .carousel__controls {
    width: min(280px, calc(100% - 32px));
    margin-top: 28px;
  }

  .carousel__btn {
    width: 44px;
    height: 44px;
  }

  /* Sitewide mobile carousel progress — thin segments, never padded circles */
  .carousel__dots {
    height: 6px;
    gap: 5px;
  }

  .carousel__dots span {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    height: 6px;
    padding: 0;
    border-radius: 90px;
    background: rgba(48, 71, 141, 0.28);
    background-clip: border-box;
  }

  .carousel__dots span.is-active {
    flex: 2.4 1 0;
    background: #30478d;
  }

  .carousel__dots span:hover {
    background: rgba(48, 71, 141, 0.45);
    transform: none;
  }

  .about-people .carousel__dots--segments {
    height: 6px;
  }

  .about-people .carousel__dots--segments span {
    min-height: 0;
    height: 6px;
    padding: 0;
    background: rgba(48, 71, 141, 0.28);
    background-clip: border-box;
  }

  .about-people .carousel__dots--segments span.is-active {
    flex: 2.4 1 0;
    background: #30478d;
  }

  .media-card p,
  .media-card__teaser {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .nav-pill {
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-pill.is-open {
    animation: menu-in 0.22s ease both;
  }

  .action-card {
    min-height: 420px;
    height: auto;
    border-radius: 28px;
    padding: 28px 16px;
  }

  .action-card h3 {
    font-size: 32px;
  }

  .action-card p {
    font-size: 13px;
  }

  .locations-board {
    border-radius: 28px;
  }

  .page-hero {
    width: calc(100% - 20px);
    min-height: 220px;
    border-radius: 28px;
    padding: 40px 18px;
  }

  .page-hero h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .page-hero p {
    font-size: 15px;
    margin-top: 14px;
  }

  .page-shell {
    padding: 12px 12px 56px;
  }

  .contact-panel {
    border-radius: 32px;
    border-width: 4px;
    padding: 10px;
    gap: 16px;
  }

  .contact-info {
    border-radius: 28px;
    padding: 28px 20px;
  }

  .contact-info h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .contact-info .underline {
    width: min(220px, 70%);
    max-width: 100%;
  }

  .contact-info > p {
    font-size: 15px;
  }

  .contact-box {
    padding: 16px;
  }

  .contact-box h3 {
    font-size: 20px;
  }

  .contact-box p,
  .footer-contact a,
  .footer-contact p {
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
    flex-wrap: nowrap;
  }

  .contact-box p {
    gap: 6px;
  }

  .media-card h3,
  .news-card h3 {
    font-size: 20px;
    max-width: 100%;
  }

  .media-card p,
  .news-card p {
    font-size: 14px;
    max-width: 100%;
  }

  .btn-cta {
    white-space: normal;
    font-size: 14px;
    padding: 12px 14px;
    width: 100%;
    max-width: 100%;
  }

  .btn-solid {
    min-height: 52px;
    font-size: 16px;
  }

  .story-card {
    padding: 18px 20px;
    border-width: 4px;
    overflow: hidden;
    justify-content: flex-start;
    gap: 12px;
    height: auto;
    min-height: 0;
  }

  .story-card__head h3 {
    font-size: 18px;
    max-width: none;
  }

  .story-card__head p {
    font-size: 13px;
  }

  .story-card__body {
    gap: 12px;
    flex: 1 1 auto;
    min-height: 0;
  }

  .story-card__quote {
    font-size: 15px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  .story-card .read-more {
    font-size: 15px;
  }

  .meta-date {
    font-size: 14px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .field--full,
  .btn-submit {
    grid-column: auto;
  }

  .field .control {
    padding: 14px 16px;
    min-height: 48px;
  }

  .donate-page {
    padding: 16px;
    min-height: 100svh;
  }

  .donate-shell {
    height: min(1000px, calc(100svh - 32px));
    min-height: calc(100svh - 32px);
    max-height: calc(100svh - 32px);
    border-radius: 28px;
    padding: 20px 12px 24px;
  }

  .donate-crumb {
    margin: 0 0 20px;
    padding: 6px 8px 0;
    font-size: 14px;
  }

  .donate-card {
    width: min(100%, calc(100% - 16px));
    max-height: 100%;
    overflow-y: auto;
    padding: 32px 18px;
    gap: 24px;
    border-radius: 32px;
  }

  .donate-card__form {
    gap: 16px;
  }

  .amount-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .donate-other__control {
    min-height: 56px;
    padding: 14px 16px;
  }

  .donate-other__prefix,
  .donate-other__input {
    font-size: 16px;
    line-height: 22px;
  }

  .donate-card h1,
  .donate-card__org {
    font-size: 22px;
    max-width: 100%;
    padding: 0 8px;
  }

  .donate-card__verified {
    width: 20px;
    height: 20px;
  }

  .site-footer {
    width: calc(100% - 20px);
    padding: 28px 18px 20px;
    border-radius: 28px 28px 0 0;
    margin-top: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-logo img {
    width: 80px;
    height: 76px;
  }

  .socials a {
    width: 48px;
    height: 48px;
  }

  .content-block {
    width: calc(100% - 20px);
    margin: 28px auto;
    padding: 28px 18px;
    border-radius: 28px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 6px 8px 0;
  }

  .site-header__bar {
    padding: 6px 8px;
    gap: 6px;
  }

  .site-logo img {
    width: 56px;
    height: 56px;
  }

  .btn-donate {
    height: 42px;
    padding: 8px 12px;
    font-size: 13px;
  }

  /* Prefer full Donate label; if still tight, keep heart + short label */
  .hero {
    --hero-inset: 8px;
    border-radius: 24px;
  }

  .hero__content {
    padding: 110px 12px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-card {
    min-height: 148px;
    padding: 14px 12px 12px;
  }

  .stat-card .value {
    font-size: clamp(36px, 32cqi, 56px);
  }

  .carousel {
    --card-w: min(292px, 86vw);
    --card-h: min(360px, 108vw);
  }

  .carousel:has(.story-card) {
    --card-w: min(300px, 88vw);
    --card-h: auto;
  }

  .story-card.carousel__slide,
  .carousel__slide.story-card {
    min-height: 0;
    height: auto;
  }

  .action-card {
    min-height: 400px;
  }

  .amount-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-box p,
  .footer-contact a,
  .footer-contact p {
    font-size: 12.5px;
    white-space: nowrap;
  }
}

@media (max-width: 390px) {
  .btn-donate {
    padding: 8px 10px;
  }

  .header-actions {
    gap: 4px;
  }
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Focus rings for keyboard users (links/buttons only — not form fields). */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
}

/*
 * Form fields: kill native / theme orange focus rings sitewide.
 * Focus chrome lives on wrappers (.field .control, .donate-other__control).
 */
input,
textarea,
select {
  outline: none;
}

input:focus,
input:focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}

.donate-other__input:focus,
.donate-other__input:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* Mobile / iOS: never zoom on focus (font-size must be ≥16px). */
@media (max-width: 900px) {
  input,
  textarea,
  select,
  .field input,
  .field textarea,
  .field select,
  .donate-other__input {
    font-size: 16px !important;
  }
}

.nav-pill a.is-active:focus-visible,
.btn-donate:focus-visible,
.btn-cta:focus-visible,
.btn-paypal:focus-visible,
.btn-submit:focus-visible {
  outline-color: #fff;
  outline-offset: 3px;
}

/* Opening splash — Figma 141:2221 */
html.intro-skip .intro {
  display: none;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: #f4f7ff;
  animation: intro-exit 0.55s ease 3.2s forwards;
}

.intro.is-done {
  opacity: 0;
  visibility: hidden;
}

.intro__mark {
  position: relative;
  width: min(420px, 70vw);
  aspect-ratio: 420 / 401;
}

.intro-piece {
  position: absolute;
  opacity: 0;
  animation: intro-stroke 0.42s cubic-bezier(0, 0, 0.35, 1) both;
}

.intro-piece img {
  display: block;
  width: 100%;
  height: 100%;
}

.intro-piece--letter {
  animation-name: intro-letter;
  animation-duration: 0.32s;
  animation-timing-function: cubic-bezier(0.2, 1.35, 0.35, 1);
}

@keyframes intro-stroke {
  from { opacity: 0; translate: var(--ix) var(--iy); }
  to { opacity: 1; translate: 0 0; }
}

@keyframes intro-letter {
  from { opacity: 0; translate: 0 8px; scale: 0.3; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes intro-exit {
  to { opacity: 0; visibility: hidden; }
}

/* About page — Figma 241:7661 */
.about-hero {
  position: relative;
  width: min(1840px, calc(100% - 40px));
  height: min(465px, 52vw);
  margin: 20px auto 0;
  border-radius: 40px;
  overflow: hidden;
  background: var(--color-bg);
  color: var(--color-white);
  box-shadow: none;
}

.about-hero__photo {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  max-width: none;
  object-fit: cover;
  object-position: center 35%;
}

.about-hero__shade {
  position: absolute;
  inset: 0;
  height: 100%;
  background: linear-gradient(180deg, #445eab 0%, rgba(68, 94, 171, 0) 70%);
  pointer-events: none;
}

.about-hero__title {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  text-align: center;
  z-index: 1;
  width: min(576px, 90%);
}

.about-hero__title h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 60px);
  line-height: 0.9;
  letter-spacing: -1.8px;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
}

.about-hero__title .underline {
  display: block;
  width: min(403px, 70vw);
  margin: 4px auto 0;
}

.about-story {
  margin-top: 80px;
}

/* about-story also has .section — don't stack its padding on top of margin */
.about-story.section {
  padding-top: 0;
  padding-bottom: 0;
}

.about-story__inner {
  width: min(1429px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 54px;
  text-align: left;
}

.mission-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  align-items: stretch;
}

.mission-card,
.mission-photo {
  height: 535px;
  min-height: 535px;
  max-height: 535px;
  border-radius: 40px;
  overflow: hidden;
  background: #30478d;
  box-sizing: border-box;
}

.mission-card {
  color: #fff;
  padding: 63px 53px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mission-card h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(32px, 3vw, 44.858px);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
}

.mission-card p {
  margin: 0;
  max-width: 454px;
  font-family: var(--font-body);
  font-size: clamp(18px, 1.8vw, 26.576px);
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
}

.mission-photo {
  position: relative;
}

.mission-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

.believe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.believe-card {
  position: relative;
  overflow: hidden;
  height: 228px;
  min-height: 228px;
  border: 4px solid #fff;
  border-radius: 40px;
  padding: 30px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

.believe-card--blue { background: #445eab; }
.believe-card--coral { background: #f1512e; }
.believe-card--orange { background: #fa9d29; }

.believe-card__wave {
  position: absolute;
  width: 140%;
  max-width: none;
  left: 50%;
  top: -23px;
  transform: translateX(-42%);
  pointer-events: none;
  opacity: 0.95;
}

.believe-card__head,
.believe-card p {
  position: relative;
  z-index: 1;
}

.believe-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.believe-card__head img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.believe-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
}

.believe-card p {
  margin: 0;
  max-width: 320px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}

.people-band {
  background: #eaeef9;
  padding-top: 60px;
  padding-bottom: 60px;
  border: 0;
  outline: none;
  box-shadow: none;
}

.about-people {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  background: transparent;
  border: 0;
  outline: none;
  box-shadow: none;
}

.about-people--staff,
.about-people--volunteers {
  background: transparent;
}

.about-people .section-title {
  margin-bottom: 0;
}

.about-people .section-title h2 {
  color: #455fad;
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 50.746px);
  letter-spacing: -1.52px;
}

.about-people .section-title .underline {
  width: min(307px, 70vw);
  margin-top: 8px;
}

.about-people--volunteers .section-title .underline {
  width: min(402px, 80vw);
}

.about-people .section-lead {
  max-width: 376px;
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  color: #293f80;
  text-align: center;
}

.about-volunteers-lead {
  max-width: 626px;
}

.about-people .carousel {
  /* ~3 cards + peeks (Figma) so Board/Staff rows overflow and arrows work */
  width: min(100%, calc(3 * var(--card-w) + 2 * var(--card-gap) + 80px));
  max-width: 100%;
  border: 0;
  outline: none;
  box-shadow: none;
}

.about-people .carousel.is-static .carousel__controls {
  opacity: 0.35;
  pointer-events: none;
}

/* Overflowing track — start left with edge pad so arrows/swipe can scroll */
.about-people .carousel__track {
  padding: 0 40px;
  justify-content: flex-start;
  scroll-padding-inline: 40px;
  border: 0;
  outline: none;
}

.about-people .carousel__slide {
  scroll-snap-align: center;
  border: 0;
  outline: none;
}

.about-people .carousel__controls {
  border: 0;
  outline: none;
}

.carousel--staff {
  --card-w: 384px;
  --card-h: 444px;
  --card-gap: 12px;
}

.carousel--people {
  --card-w: 256px;
  --card-h: 296px;
  --card-gap: 12px;
}

.person-card {
  --person-radius: 40px;
  position: relative;
  display: flex;
  align-items: flex-end;
  height: var(--card-h);
  padding: 50px;
  border-radius: var(--person-radius);
  overflow: hidden;
  background: #30478d;
  color: #fff;
  text-align: left;
  box-sizing: border-box;
  border: 0;
  outline: none;
  box-shadow: none;
}

.carousel--people .person-card,
.about-people--board .person-card {
  --person-radius: 32.4px;
  padding: 40.5px;
  border-radius: var(--person-radius);
}

.about-people--volunteers .person-card {
  --person-radius: 40px;
  padding: 30px;
  border-radius: var(--person-radius);
}

/* Photo + shade share one clipped rounded layer (no corner peek / jagged blue) */
.person-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  background: #30478d;
}

.person-card__photo {
  display: block;
  /* Slight overscan so rounded AA never reveals page bg at corners */
  width: 104%;
  height: 104%;
  max-width: none;
  margin: -2%;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center 18%;
}

.person-card__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  overflow: hidden;
  /* Full-card layer, wash only toward the bottom — clips cleanly with radius */
  background: linear-gradient(
    180deg,
    rgba(68, 94, 171, 0) 0%,
    rgba(68, 94, 171, 0) 42%,
    rgba(68, 94, 171, 0.45) 68%,
    #445eab 100%
  );
  pointer-events: none;
}

.person-card__shade::before,
.person-card__shade::after {
  content: none !important;
  display: none !important;
}

.person-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 11px;
  max-width: 100%;
}

/* About people — Figma 430px controls, 6 equal segments between arrows */
.about-people .carousel__controls {
  width: min(430px, calc(100% - 48px));
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.about-people .carousel__dots--segments {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 6px;
}

.about-people .carousel__dots--segments span {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: 6px;
  padding: 0;
  border-radius: 90px;
  /* Match sitewide inactive contrast (was 0.16/0.22 — too faint on #f4f7ff) */
  background: rgba(48, 71, 141, 0.28);
  background-clip: border-box;
  cursor: pointer;
  transition: background 0.2s ease;
}

.about-people .carousel__dots--segments span:hover {
  background: rgba(48, 71, 141, 0.4);
  transform: none;
}

.about-people .carousel__dots--segments span.is-active {
  flex: 2.4 1 0;
  background: #30478d;
}

.person-card h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.person-card p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17.829px;
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
}

@media (max-width: 900px) {
  .about-hero {
    height: min(360px, 70vw);
    width: calc(100% - 24px);
    border-radius: 28px;
  }

  .about-hero__title {
    bottom: 40px;
  }

  /* Tight Figma-like join: hero → Our Mission (was ~104px = 48 margin + 56 section pad) */
  .about-story {
    margin-top: 20px;
  }

  .about-story.section {
    padding-top: 0;
    padding-bottom: 0;
  }

  .about-story__inner {
    width: calc(100% - 24px);
    gap: 28px;
  }

  .mission-card,
  .mission-photo {
    height: 420px;
    min-height: 420px;
    max-height: 420px;
    border-radius: 28px;
  }

  .mission-card {
    padding: 32px 24px;
  }

  .believe-card {
    height: auto;
    min-height: 200px;
    border-radius: 28px;
  }

  .believe-card p {
    font-size: 18px;
  }

  .people-band {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .person-card,
  .carousel--people .person-card,
  .about-people--board .person-card,
  .about-people--volunteers .person-card {
    --person-radius: 28px;
    padding: 28px;
    border-radius: var(--person-radius);
  }

  .about-people--volunteers .person-card {
    padding: 24px;
  }

  .about-people {
    gap: 28px;
  }

  .about-people .carousel__track {
    padding: 0 16px;
    scroll-padding-inline: 16px;
    justify-content: flex-start;
  }
}

@media (max-width: 1200px) {
  .believe-grid {
    grid-template-columns: 1fr;
  }

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

  .mission-card,
  .mission-photo {
    height: 420px;
    min-height: 420px;
    max-height: 420px;
  }

  .carousel--staff,
  .carousel--people {
    --card-w: min(384px, 86vw);
    --card-h: min(444px, 110vw);
  }

  .carousel--people {
    --card-h: min(296px, 100vw);
  }
}

/* Media page — Figma 241:9474 */
.media-hero {
  position: relative;
  width: min(1840px, calc(100% - 40px));
  height: min(465px, 52vw);
  margin: 20px auto 0;
  border-radius: 40px;
  overflow: hidden;
  /* Dark fill — page bg must never show as a center hairline */
  background: #1a274f;
  color: var(--color-white);
  box-shadow: none;
}

.media-hero__photo {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  max-width: none;
  object-fit: cover;
  /* Keep crop lively; avoid dark bottom band from over-shifted cover */
  object-position: center 48%;
  display: block;
  z-index: 0;
}

.media-hero__shade {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, #445eab 0%, rgba(68, 94, 171, 0) 70%);
  pointer-events: none;
}

.media-hero__title {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  text-align: center;
  z-index: 1;
}

.media-hero__title h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 60px);
  line-height: 0.9;
  letter-spacing: -1.8px;
  text-transform: uppercase;
}

.media-hero__title .underline {
  display: block;
  width: min(203px, 42vw);
  margin: 4px auto 0;
}

.media-section {
  width: min(1210px, calc(100% - 48px));
  margin: 85px auto 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.media-section--print {
  margin-bottom: 100px;
}

.media-section__title {
  margin: 0;
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 0.9;
  letter-spacing: -1.2px;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-blue-text);
}

.media-section__list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.media-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 30px 40px 30px 30px;
  background: var(--color-card);
  border: 4px solid var(--color-white);
  border-radius: 40px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(41, 63, 128, 0.1);
}

.media-row__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.media-row__body h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.7vw, 24px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-blue-text);
}

.media-row__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.media-row__meta img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.media-row__meta span {
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.2;
  color: var(--color-blue-text);
}

.media-row__link {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .media-hero {
    height: min(280px, 72vw);
    width: min(1840px, calc(100% - 24px));
    background: #1a274f;
  }

  .media-hero__photo {
    /* Prefer upper/mid scene; avoid any residual letterbox */
    inset: 0;
    width: 100%;
    height: 100%;
    object-position: center 40%;
  }

  .media-hero__title {
    bottom: 28px;
  }

  .media-section {
    width: min(1210px, calc(100% - 32px));
    margin-top: 48px;
    gap: 24px;
  }

  .media-section--print {
    margin-bottom: 64px;
  }

  .media-row {
    padding: 20px 20px 20px 18px;
    border-radius: 28px;
    border-width: 3px;
    gap: 12px;
  }

  .media-row__body h3 {
    white-space: normal;
  }
}

/* What's New LISTING — Figma 241:8476 / 241:9046 */
.wn-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 53px;
  width: min(1840px, calc(100% - 40px));
  margin: 20px auto 80px;
}

.wn-hero {
  position: relative;
  width: 100%;
  height: min(465px, 52vw);
  border-radius: 40px;
  overflow: hidden;
  background: var(--color-blue);
  color: var(--color-white);
}

.wn-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Figma crop: people line near bottom, sky/mountains for title */
  object-position: center 58%;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.wn-hero__photo.is-active {
  opacity: 1;
  z-index: 0;
}

.wn-hero__photo--video {
  /* Figma 241:9046 uses the same sunset crop as News */
  object-position: center 58%;
}

.wn-page.is-video-hero .wn-hero__photo--video {
  object-position: center 58%;
}

.wn-hero__shade {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 110%;
  height: 379px;
  background: linear-gradient(180deg, #445eab 0%, rgba(68, 94, 171, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.wn-hero__content {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  z-index: 2;
  width: min(576px, 90%);
}

.wn-hero__title {
  text-align: center;
  position: relative;
}

.wn-hero__title h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 0.9;
  letter-spacing: -1.8px;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
}

.wn-hero__underline {
  display: block;
  width: min(203px, 48vw);
  height: auto;
  /* Figma 241:8482 — brush sits under “NEW” */
  margin: -6px 4% 0 auto;
}

.wn-tabs {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 90px;
  padding: 4px;
  height: 52px;
  box-sizing: border-box;
}

.wn-tabs__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #30478d;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  padding: 12px;
  min-width: 84px;
  border-radius: 90px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.wn-tabs__btn.is-active {
  background: #30478d;
  color: #fff;
  font-weight: 700;
}

.wn-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.wn-panel.is-active {
  display: flex;
}

.wn-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 12px;
  /* Was 1616 → 1420 — another modest shrink for listing cards only */
  width: min(1280px, 100%);
}

.wn-card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: #30478d;
  color: #fff;
  /* Was min-height 420 / 464×536 — further shrink (home carousels untouched) */
  min-height: 380px;
  aspect-ratio: 408 / 472;
}

.wn-card__link {
  display: block;
  position: absolute;
  inset: 0;
  color: inherit;
  text-decoration: none;
}

.wn-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.wn-card__shade {
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(
    to top,
    rgba(48, 71, 141, 0.95) 0%,
    rgba(68, 94, 171, 0.55) 55%,
    rgba(68, 94, 171, 0) 100%
  );
  pointer-events: none;
}

.wn-card__shade::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -120%;
  height: 161px;
  background: linear-gradient(180deg, #445eab 0%, rgba(68, 94, 171, 0) 100%);
  opacity: 0.35;
  pointer-events: none;
}

.wn-card__play {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(86px, 22%);
  height: auto;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(41, 63, 128, 0.35));
}

.wn-card__play img {
  display: block;
  width: 100%;
  height: auto;
}

.wn-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 36px;
  box-sizing: border-box;
}

.wn-card__body h3 {
  margin: 0;
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  max-width: 340px;
  color: #fff;
}

.wn-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wn-card__meta img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.wn-card__meta span {
  font-size: 17px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.wn-card:hover .wn-card__bg {
  transform: scale(1.04);
}

.wn-more {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 71px;
  padding: 14px 24px;
  border-radius: 17px;
  background: #30478d;
  color: #fff;
  font-family: var(--font-body);
  font-size: 19.4px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.wn-more:hover:not(:disabled) {
  background: #293f80;
  transform: translateY(-1px);
}

.wn-more:disabled,
.wn-more[hidden],
.wn-more.is-done {
  display: none;
}

@media (max-width: 1100px) {
  .wn-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wn-card {
    min-height: 330px;
  }

  .wn-card__body {
    padding: 26px;
  }
}

@media (max-width: 700px) {
  .wn-page {
    width: calc(100% - 24px);
    gap: 32px;
    margin-bottom: 48px;
  }

  .wn-hero {
    height: min(360px, 70vw);
    border-radius: 28px;
  }

  .wn-hero__content {
    bottom: 20px;
    gap: 18px;
  }

  .wn-hero__underline {
    margin-right: auto;
  }

  .wn-tabs {
    height: 46px;
  }

  .wn-tabs__btn {
    min-width: 72px;
    font-size: 15px;
    padding: 10px 12px;
  }

  .wn-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .wn-card {
    min-height: 320px;
    aspect-ratio: 408 / 472;
    border-radius: 26px;
  }

  .wn-card__body {
    padding: 22px;
  }

  .wn-card__play {
    width: min(68px, 24%);
  }

  .wn-card__meta span {
    font-size: 15px;
  }

  .wn-more {
    width: min(220px, 100%);
    height: 60px;
    font-size: 17px;
  }
}

/* What's New ARTICLE — Figma 241:8769 */
.wn-featured {
  width: min(1100px, calc(100% - 48px));
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.wn-featured__media {
  width: 100%;
  aspect-ratio: 1440 / 658;
  border-radius: 40px;
  overflow: hidden;
  background: var(--color-blue);
  position: relative;
}

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

.wn-featured__play {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.wn-featured__play .wn-card__play {
  pointer-events: none;
}

.wn-featured__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
}

.wn-featured__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wn-featured__meta img {
  width: 31px;
  height: 31px;
  flex-shrink: 0;
}

.wn-featured__meta span {
  font-size: clamp(16px, 1.6vw, 23px);
  line-height: 1.2;
  color: rgba(78, 97, 153, 0.8);
}

.wn-featured__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 50.746px);
  line-height: 0.9;
  letter-spacing: -1.52px;
  text-transform: uppercase;
  color: var(--color-blue-mid);
}

.wn-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.wn-share__label {
  font-size: 16px;
  line-height: 1.2;
  color: rgba(78, 97, 153, 0.8);
}

.wn-share__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wn-share__pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: var(--radius-pill);
  background: rgba(68, 94, 171, 0.05);
  border: 1px solid rgba(68, 94, 171, 0.2);
  color: var(--color-blue);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.wn-share__pill:hover {
  background: rgba(68, 94, 171, 0.12);
  transform: translateY(-1px);
}

.wn-share__pill img {
  width: 24px;
  height: 24px;
}

.wn-share__toast {
  flex-basis: 100%;
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  color: #30478d;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wn-share__toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.wn-featured__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.wn-featured__body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: rgba(41, 63, 128, 0.6);
}

.wn-latest {
  margin-top: 40px;
  padding-bottom: 40px;
}

.wn-latest .section-title .underline {
  width: min(480px, 80vw);
  margin-top: 8px;
}

.wn-carousel {
  --card-w: min(528px, 86vw);
  --card-h: 610px;
}

@media (max-width: 900px) {
  .wn-featured {
    width: min(1100px, calc(100% - 32px));
    gap: 24px;
  }

  .wn-featured__media {
    border-radius: 28px;
  }

  .wn-featured__meta {
    margin-top: -8px;
  }

  .wn-share__pill {
    font-size: 15px;
    padding: 10px 12px;
    gap: 8px;
  }

  .wn-carousel {
    --card-h: 480px;
  }
}

/* Volunteer page — Figma 241:8062 */
.vol-hero {
  position: relative;
  width: min(1840px, calc(100% - 40px));
  height: min(465px, 52vw);
  margin: 20px auto 0;
  border-radius: 40px;
  overflow: hidden;
  background: var(--color-blue);
  color: #fff;
}

.vol-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.vol-hero__shade {
  position: absolute;
  inset: 0;
  height: 100%;
  background: linear-gradient(180deg, #445eab 0%, rgba(68, 94, 171, 0) 70%);
  pointer-events: none;
}

.vol-hero__title {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  text-align: center;
  z-index: 1;
  width: min(576px, 90%);
}

.vol-hero__title h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 0.9;
  letter-spacing: -1.8px;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
}

.vol-hero__underline {
  display: block;
  width: min(403px, 70vw);
  margin: 4px auto 0;
}

.vol-quote {
  width: min(840px, calc(100% - 48px));
  margin: 80px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.vol-quote__mark {
  width: 49px;
  height: 37px;
}

.vol-quote__mark--close {
  align-self: flex-end;
  transform: rotate(180deg);
}

.vol-quote__mark--open {
  align-self: flex-start;
}

.vol-quote__text {
  margin: 0;
  padding: 0 40px;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.1;
  color: #293f80;
}

.vol-quote__by {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
  color: #f1512e;
}

.vol-interest {
  width: min(1429px, calc(100% - 48px));
  margin: 80px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  align-items: stretch;
}

.vol-interest__copy,
.vol-interest__media {
  border-radius: 40px;
  overflow: hidden;
  /* Figma 241:8079 / 241:8088 — equal 535px columns */
  height: 535px;
  min-height: 535px;
  max-height: 535px;
  background: #30478d;
  box-sizing: border-box;
}

.vol-interest__copy {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  color: #fff;
}

.vol-interest__copy h2 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  text-transform: uppercase;
  font-weight: 700;
  max-width: 563px;
}

.vol-interest__copy p {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 24px);
  line-height: 1.4;
  opacity: 0.69;
  flex: 1;
}

.vol-interest__media {
  position: relative;
}

.vol-interest__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

.vol-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 15px;
  background: linear-gradient(105deg, #fa9d29 1%, #f1512e 100%);
  color: #fff;
  font-weight: 700;
  font-size: 17.8px;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.vol-btn--pill {
  border-radius: 90px;
  width: 181px;
}

.vol-step .vol-btn {
  width: 100%;
  border-radius: 10px;
  text-transform: uppercase;
}

.vol-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.vol-opps {
  margin-top: 100px;
}

.vol-opps .section-title .underline {
  width: min(421px, 80vw);
}

.vol-opps__carousel {
  --card-w: 528px;
  --card-h: 610px;
}

.vol-skills {
  width: min(1429px, calc(100% - 48px));
  margin: 60px auto 0;
}

.vol-skills__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px;
  border-radius: 40px;
  background: #445eab;
  border: 4px solid #fff;
  color: #fff;
  flex-wrap: wrap;
}

.vol-skills__left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.vol-skills__icon {
  width: 56px;
  height: 56px;
  border-radius: 28px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vol-skills__left p {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 800;
  line-height: 1.1;
}

.vol-adventure {
  width: min(1760px, calc(100% - 40px));
  margin: 80px auto 0;
  padding: 90px 40px;
  border-radius: 60px;
  background: rgba(145, 157, 190, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 54px;
  box-sizing: border-box;
}

.vol-adventure .section-title h2 {
  color: #293f80;
  max-width: 520px;
}

.vol-adventure .section-title .underline {
  width: min(505px, 80vw);
}

.vol-steps {
  width: min(1296px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.vol-step {
  border-radius: 40px;
  border: 4px solid #fff;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #fff;
  /* Figma 241:8200 / 241:8211 */
  min-height: 311px;
  height: 311px;
  box-sizing: border-box;
}

.vol-step--blue { background: #445eab; }
.vol-step--coral { background: #f1512e; }
.vol-step--amber { background: #fa9d29; }

/* Figma 241:8187 — icon + “Step N” row */
.vol-step__head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.vol-step__icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.vol-step__label {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
  white-space: nowrap;
}

.vol-step h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.vol-step p {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  opacity: 0.9;
  flex: 1;
}

.vol-stories {
  margin: 80px auto 100px;
}

.vol-stories__carousel {
  /* Content-fit Volunteer Stories cards — no empty blue panel */
  --card-w: min(528px, 86vw);
  --card-h: auto;
}

.vol-stories__carousel .carousel__track {
  align-items: stretch;
}

.vol-stories__carousel .carousel__slide,
.carousel__slide.vol-story {
  height: auto;
  min-height: 0;
}

.vol-story {
  width: 100%;
  height: auto;
  min-height: 0;
  border-radius: 40px;
  border: 6px solid #fff;
  background: #eaeef9;
  color: #293f80;
  padding: 24px 28px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.carousel__slide.is-active .vol-story,
.vol-story.is-active {
  /* Figma 241:8266 active story */
  background: #405aaa;
  color: #fff;
}

.vol-story__person {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.vol-story__avatar {
  width: 63px;
  height: 63px;
  border-radius: 90px;
  object-fit: cover;
  flex-shrink: 0;
}

.vol-story__person h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
}

.vol-story__role {
  margin: 6px 0 0;
  font-size: 17.8px;
  line-height: 1.4;
  opacity: 1;
  color: inherit;
}

.vol-story__quote {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
}

.vol-story__quote p,
.vol-story__teaser {
  margin: 0;
  padding: 0;
  font-size: 20px;
  line-height: 1.4;
  color: inherit;
  text-indent: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.carousel__slide.is-active .vol-story__quote p,
.vol-story.is-active .vol-story__quote p {
  color: rgba(255, 255, 255, 0.7);
}

.vol-story__qmark {
  display: none !important;
}

.vol-story__more {
  color: #293f80;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  text-decoration: underline;
  margin-top: 0;
}

.carousel__slide.is-active .vol-story__more,
.vol-story.is-active .vol-story__more {
  color: #fff;
}

@media (max-width: 1000px) {
  .vol-interest {
    grid-template-columns: 1fr;
  }

  .vol-interest__copy,
  .vol-interest__media {
    height: 420px;
    min-height: 420px;
    max-height: 420px;
  }

  .vol-steps {
    grid-template-columns: 1fr;
  }

  .vol-step {
    height: auto;
    min-height: 280px;
  }

  .vol-stories__carousel {
    --card-w: min(528px, 86vw);
    --card-h: auto;
  }

  .vol-story {
    min-height: 0;
    height: auto;
    padding: 20px 22px;
  }
}

@media (max-width: 700px) {
  .vol-hero {
    width: calc(100% - 24px);
    border-radius: 28px;
    height: min(360px, 70vw);
  }

  .vol-hero__title {
    bottom: 40px;
  }

  .vol-quote {
    margin-top: 48px;
  }

  .vol-quote__text {
    padding: 0 12px;
  }

  .vol-interest,
  .vol-skills,
  .vol-adventure {
    width: calc(100% - 24px);
  }

  .vol-adventure {
    padding: 48px 20px;
    border-radius: 36px;
  }

  .vol-skills__inner {
    border-radius: 28px;
  }
}

/* —— Card description modal —— */
body.amvn-modal-open {
  overflow: hidden;
  /* padding-right set in JS to match scrollbar width when gutter unsupported */
}

.amvn-modal {
  border: none;
  padding: 0;
  margin: auto;
  max-width: min(880px, calc(100vw - 48px));
  width: 100%;
  max-height: none;
  height: fit-content;
  background: transparent;
  color: var(--color-blue-text);
  inset: 0;
  overflow: visible;
}

.amvn-modal:focus {
  outline: none;
}

.amvn-modal::backdrop {
  background: rgba(29, 45, 96, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.amvn-modal__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.15fr);
  align-items: stretch;
  background: var(--color-white);
  border-radius: 32px;
  overflow: hidden;
  box-shadow:
    0 8px 28px rgba(41, 63, 128, 0.12),
    0 32px 80px rgba(29, 45, 96, 0.32);
  /* Fit short copy; only grow to the ceiling when content is long */
  height: auto;
  max-height: min(86vh, 640px);
  animation: amvn-modal-in 0.28s ease both;
}

.amvn-modal__panel--tall {
  height: min(86vh, 640px);
}

@keyframes amvn-modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.988);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.amvn-modal__close {
  position: absolute;
  /* Clear of 32px panel radius — sits inside the corner, not on the curve */
  top: 28px;
  right: 28px;
  z-index: 5;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 1.5px solid rgba(48, 71, 141, 0.18);
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-blue-deep);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(29, 45, 96, 0.12);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.amvn-modal__close svg {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  pointer-events: none;
}

.amvn-modal__close:hover {
  background: var(--color-coral);
  border-color: var(--color-coral);
  color: #fff;
  box-shadow: 0 6px 18px rgba(241, 81, 46, 0.28);
  transform: scale(1.04);
}

.amvn-modal__close:active {
  transform: scale(0.96);
}

.amvn-modal__close:focus-visible {
  outline: 2px solid var(--color-blue-deep);
  outline-offset: 3px;
}

.amvn-modal__media {
  position: relative;
  align-self: stretch;
  min-height: 320px;
  height: 100%;
  background:
    linear-gradient(160deg, #445eab 0%, #30478d 100%);
  overflow: hidden;
}

.amvn-modal__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  z-index: 1;
  background: linear-gradient(to top, rgba(48, 71, 141, 0.35), transparent);
  pointer-events: none;
}

.amvn-modal__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  display: block;
  z-index: 0;
  image-rendering: auto;
}

.amvn-modal__content {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: auto;
  max-height: inherit;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}

.amvn-modal__panel--tall .amvn-modal__content {
  height: 100%;
  min-height: 0;
}

.amvn-modal__copy {
  flex: 0 1 auto;
  min-height: 0;
  padding: 44px 48px 40px 40px;
  overflow-x: hidden;
  /* Hidden by default — avoids open-frame scrollbar flash on short copy */
  overflow-y: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(48, 71, 141, 0.35) transparent;
}

.amvn-modal__content.is-scrollable .amvn-modal__copy {
  flex: 1 1 auto;
  overflow-y: auto;
}

.amvn-modal__copy::-webkit-scrollbar {
  width: 6px;
}

.amvn-modal__copy::-webkit-scrollbar-thumb {
  background: rgba(48, 71, 141, 0.28);
  border-radius: 99px;
}

.amvn-modal__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  pointer-events: none;
  background: linear-gradient(to top, #f7f9ff 10%, rgba(247, 249, 255, 0));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.amvn-modal__content.is-scrollable .amvn-modal__fade {
  opacity: 1;
}

.amvn-modal__content.is-scrollable.is-at-bottom .amvn-modal__fade {
  opacity: 0;
}

.amvn-modal__copy h2 {
  margin: 0 0 10px;
  /* Clear the 44px close + 24px inset + gap */
  padding-right: 64px;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-blue-mid);
}

.amvn-modal__subtitle {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-blue-soft);
}

.amvn-modal__body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-blue-text);
}

.amvn-modal__body p {
  margin: 0 0 1em;
}

.amvn-modal__body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .amvn-modal {
    max-width: min(720px, calc(100vw - 32px));
  }

  .amvn-modal__panel {
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.2fr);
  }

  .amvn-modal__copy {
    padding: 36px 36px 32px 28px;
  }
}

@media (max-width: 700px) {
  .amvn-modal {
    max-width: calc(100vw - 24px);
  }

  .amvn-modal__panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    max-height: min(92vh, 860px);
    border-radius: 24px;
  }

  .amvn-modal__panel--tall {
    height: min(92vh, 860px);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .amvn-modal__close {
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(29, 45, 96, 0.22);
  }

  .amvn-modal__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
    max-height: 38vh;
  }

  .amvn-modal__media img {
    min-height: 0;
    height: 100%;
    object-position: center 20%;
  }

  .amvn-modal__content {
    max-height: none;
    min-height: 0;
  }

  .amvn-modal__panel--tall .amvn-modal__content {
    max-height: none;
    height: 100%;
  }

  .amvn-modal__copy {
    padding: 22px 22px 28px;
    max-height: none;
  }

  .amvn-modal__content.is-scrollable .amvn-modal__copy {
    max-height: min(52vh, 420px);
  }

  .amvn-modal__copy h2 {
    font-size: clamp(24px, 7vw, 30px);
    padding-right: 48px;
    line-height: 1;
  }

  .amvn-modal__subtitle {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .amvn-modal__body {
    font-size: 16px;
    line-height: 1.55;
  }

  .amvn-modal__fade {
    background: linear-gradient(to top, #f7f9ff 15%, rgba(247, 249, 255, 0));
  }
}

@media (max-width: 430px) {
  .amvn-modal {
    max-width: calc(100vw - 20px);
  }

  .amvn-modal__media {
    aspect-ratio: 4 / 3;
    max-height: 34vh;
  }

  .amvn-modal__copy {
    padding: 18px 18px 24px;
  }

  .amvn-modal__content.is-scrollable .amvn-modal__copy {
    max-height: min(50vh, 380px);
  }
}

@media (max-width: 375px) {
  .amvn-modal__panel {
    border-radius: 22px;
  }

  .amvn-modal__copy h2 {
    font-size: 22px;
  }

  .amvn-modal__body {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .amvn-modal__panel {
    animation: none;
  }
}

/* —— Hero YouTube / video lightbox (full-bleed overlay + large 16:9) —— */
.amvn-video-modal {
  border: none;
  padding: max(24px, 4vh) max(16px, 3vw);
  margin: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100dvh;
  inset: 0;
  background: rgba(12, 20, 48, 0.88);
  color: #fff;
  overflow: auto;
  box-sizing: border-box;
}

.amvn-video-modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.amvn-video-modal::backdrop {
  background: rgba(8, 14, 36, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.amvn-video-modal__panel {
  position: relative;
  width: min(1120px, calc(100vw - 48px));
  max-width: 100%;
  background: #0a122c;
  border-radius: 20px;
  overflow: visible;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 40px 100px rgba(8, 14, 36, 0.55);
  animation: amvn-video-modal-in 0.28s ease both;
}

@keyframes amvn-video-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.amvn-video-modal__close {
  position: absolute;
  top: -52px;
  right: 0;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.amvn-video-modal__close:hover {
  background: var(--color-coral);
  border-color: var(--color-coral);
  color: #fff;
}

.amvn-video-modal__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.amvn-video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
}

.amvn-video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 720px) {
  .amvn-video-modal {
    padding: 64px 12px 24px;
  }

  .amvn-video-modal__panel {
    width: min(100%, calc(100vw - 24px));
    border-radius: 14px;
  }

  .amvn-video-modal__frame {
    border-radius: 14px;
  }

  .amvn-video-modal__close {
    top: -52px;
    right: 0;
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .amvn-video-modal__panel {
    animation: none;
  }
}
