/* === css\styles.base.css === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:      #C8102E;
  --red-lt:   #fef2f2;
  --blue:     #1D4ED8;
  --text:     #0F172A;
  --muted:    #475569;
  --border:   #CBD5E1;
  --bg:       #FFFFFF;
  --light:    #F8FAFC;
  --nav-control-bottom: 22px;
  --donate-control-bottom: 52px;
  --tips-control-bottom: var(--nav-control-bottom);
  --tips-control-right: 24px;
}

/* ══ BASE SCROLL ══ */
html {
  scroll-snap-type: none;
  overflow-y: auto;
  scroll-behavior: auto;
  height: 100%;
  overscroll-behavior-y: auto;
  background: #fff;
}
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  overflow-x: hidden;
}

/* Disable text highlighting/selection site-wide */
html, body, body * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.snap {
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

/* ══ TYPE ══ */
h2 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); font-weight: 700; line-height: 1.25; color: var(--text); margin-bottom: 10px; }
p  { color: var(--muted); line-height: 1.8; font-size: 0.93rem; margin-bottom: 12px; text-align: justify; }
strong { color: var(--text); font-weight: 600; }

/* === css\styles.hero.layout.css === */
.hero-scroll-copy {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 680px;
}

.hero-scroll-kicker {
  display: none;
}

.hero-scroll-title {
  margin: 0 0 10px;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  text-align: justify;
}

.hero-scroll-stage {
  position: relative;
  overflow: hidden;
}

.hero-scroll-doc {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-scroll-item p {
  margin-bottom: 12px;
  line-height: 1.8;
  font-size: 0.93rem;
  color: var(--muted);
  text-align: justify;
}

.hero-scroll-note {
  margin: 0 0 12px 18px;
  padding-left: 14px;
  border-left: 3px solid #c8102e;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #94a3b8;
  font-style: italic;
  text-align: left;
}

.hero-scroll-refs-title {
  display: none;
}

.hero-scroll-refs {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
}

.hero-scroll-refs ul {
  margin: 4px 0 0;
  padding-left: 0;
  list-style: none;
}

.hero-scroll-refs li {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted);
  margin-bottom: 2px;
  text-align: justify;
}

.hero-scroll-refs a {
  color: #c8102e;
  text-decoration: none;
}

.hero-scroll-refs a:hover {
  text-decoration: underline;
}

/* === css\styles.hero.phone.css === */
/* ── Hero Emergency Phone Mockup ── */
.hero-circles {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 9998;
  perspective: 1100px;
}
.hero-monitor-quote {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  margin: 0;
  color: #c8102e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 5vw, 1.35rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
  white-space: nowrap;
}
.hero-display-stack {
  position: relative;
  z-index: 2147483001;
  width: min(100%, 286px);
  height: 380px;
  --clusterSpin: 0deg;
  --clusterSpinNeg: 0deg;
  --cluster-gap: 52px;
  --phone-left: -18px;
  --phone-rendered-w: 121px;     /* 216 * 0.56 */
  --phone-rendered-h: 243px;     /* 434 * 0.56 */
  --doc-rendered-w: 142.8px;     /* 170 * 0.84 */
  --doc-rendered-h: 189px;       /* 225 * 0.84 */
  --doc-stack-extra-x: 10.92px;  /* 13 * 0.84 */
  --doc-stack-extra-y: 13.44px;  /* 16 * 0.84 */
  --doc-visual-w: calc(var(--doc-rendered-w) + var(--doc-stack-extra-x));
  --doc-visual-h: calc(var(--doc-rendered-h) + var(--doc-stack-extra-y));
  --phone-bottom: calc((var(--doc-rendered-h) - var(--phone-rendered-h)) + var(--phone-rendered-h));
  --board-rendered-w: 186px;     /* 300 * 0.62 */
  transform-style: preserve-3d;
  transform-origin: center center;
  transform: rotateZ(var(--clusterSpin));
}
.phone-shell {
  width: 216px;
  height: 434px;
  position: absolute;
  pointer-events: auto;
  top: calc(var(--doc-rendered-h) - var(--phone-rendered-h));
  left: var(--phone-left);
  z-index: 1;
  border-radius: 14px;
  overflow: visible;
  --appLift: 0px;
  --menuLift: 0px;
  --appZ: 16px;
  --cardsSpread: 0px;
  --phoneScale: 1;
  --phoneShiftX: 0px;
  --phoneShiftY: 0px;
  --cbSurfaceZ: 30px;
  --cbFrameZ: 12px;
  transform-style: preserve-3d;
  transform-origin: top left;
  transform: translate3d(var(--phoneShiftX), var(--phoneShiftY), 0) scale(calc(0.56 * var(--phoneScale))) rotateZ(var(--clusterSpinNeg));
  background: linear-gradient(140deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid #cbd5e1;
  box-shadow:
    0 12px 30px rgba(15,23,42,0.24),
    inset 0 1px 0 rgba(255,255,255,0.7),
    inset 0 -1px 0 rgba(255,255,255,0.2);
  padding: 4px 0 0;
}
.phone-status {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 2px;
  margin-bottom: 11px;
  padding: 0 10px;
  color: #0F172A;
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.phone-speaker {
  justify-self: center;
  width: 50px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15,23,42,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  filter: saturate(0.7);
  pointer-events: none;
}
.phone-status > span:first-child { justify-self: start; }
.status-right {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  justify-self: end;
}
.status-battery {
  width: 13px;
  height: 7px;
  border: 1px solid #0F172A;
  border-radius: 2px;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 1px;
}
.status-battery::after {
  content: '';
  position: absolute;
  right: -3px;
  width: 2px;
  height: 3px;
  background: #0F172A;
  border-radius: 1px;
}
.status-battery-level {
  display: block;
  width: 72%;
  height: 100%;
  background: #0F172A;
  border-radius: 1px;
}
.phone-app {
  position: relative;
  height: calc(100% - 22px);
  width: 100%;
  pointer-events: auto;
  border-radius: 0 0 14px 14px;
  padding: 13px 10px 14px;
  overflow: visible;
  transform: translate(0, var(--appLift));
  background: transparent;
  border: none;
  box-shadow: none;
}
.emergency-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  overflow: visible;
  margin-top: 6px;
  pointer-events: auto;
}
.contact-card {
  position: relative;
  width: 100%;
  border-radius: 0;
  pointer-events: auto;
  background: transparent;
  border: none;
  display: block;
  color: #0F172A;
  box-shadow: none;
  cursor: default;
  z-index: 2;
  padding: 0;
  transform: translate(0, calc(var(--cardsSpread) * var(--i, 0))) scale(var(--cardScale, 1));
  transition: transform 0.22s ease, z-index 0s linear;
}
.contact-card:hover {
  z-index: 20;
}
.contact-card:hover {
  --cardScale: 1.05;
}
.contact-card-body {
  width: 100%;
  border-radius: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: none;
  border-right: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(15,23,42,0.08);
  padding: 8px 10px;
  transform-origin: center center;
  transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.18, 1), box-shadow 0.2s ease;
}
.contact-card:hover .contact-card-body {
  box-shadow: 0 8px 16px rgba(15,23,42,0.14);
}
.contact-card:hover .contact-card-body {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow:
    0 10px 18px rgba(15,23,42,0.16),
    0 0 0 1px rgba(226,232,240,0.9);
}
.emergency-grid .contact-card:nth-child(1) { --i: -1.5; }
.emergency-grid .contact-card:nth-child(2) { --i: -0.5; }
.emergency-grid .contact-card:nth-child(3) { --i: 0.5; }
.emergency-grid .contact-card:nth-child(4) { --i: 1.5; }
.contact-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--red);
}
.contact-desc {
  font-size: 0.52rem;
  line-height: 1.3;
  color: #334155;
}
.contact-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.contact-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.contact-chevron svg {
  width: 12px;
  height: 12px;
}
.contact-card:hover .contact-chevron {
  transform: rotate(180deg);
}


/* === css\styles.hero.phone-extras.css === */
/* Expandable “when to use” info panel */
.contact-expand {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: none;
  box-shadow: 0 10px 18px rgba(15,23,42,0.12);
  padding: 0 10px;
  transition: max-height 0.32s ease, opacity 0.24s ease, padding 0.32s ease;
}
.contact-card:hover .contact-expand {
  max-height: 140px;
  opacity: 1;
  padding: 7px 10px 8px;
}
.contact-when {
  margin: 0 0 6px;
  font-size: 0.42rem;
  line-height: 1.4;
  color: #475569;
}
.contact-expand-actions {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 7px;
}
.contact-act-btn {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: none;
  background: var(--red);
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.contact-act-btn:hover {
  transform: scale(1.12);
  background: #a50d26;
}
.contact-act-btn svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
  stroke: none;
}
.phone-menu {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 18px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  box-shadow: 0 5px 11px rgba(15,23,42,0.14);
  padding: 7px 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  transform: translate3d(0, calc(var(--menuLift) * -1), 28px);
  transition: transform 0.35s ease;
}
.phone-menu-item {
  text-align: center;
  font-size: 0.36rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #334155;
  font-weight: 700;
  line-height: 1.25;
  padding: 4px 3px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}
.phone-menu-item:not(.active):hover {
  background: rgba(15,23,42,0.07);
  color: #0F172A;
}
.phone-menu-item.active {
  color: #C8102E;
  background: rgba(200,16,46,0.11);
  padding: 4px 8px;
}
/* Hide active highlight when hovering a different tab */
.phone-menu:hover .phone-menu-item.active {
  background: transparent;
}
.phone-menu-item.active:hover {
  background: rgba(200,16,46,0.11);
}


/* === css\styles.hero.doc.css === */
.chalk-board--global {
  position: relative;
  z-index: 1;
  display: block;
  visibility: visible;
  width: 100%;
  max-width: 300px;
  height: 220px;
  margin-top: 24px;
  padding: 10px 12px 26px;
  box-sizing: border-box;
  border-radius: 12px 12px 0 0;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 5px 13px rgba(15,23,42,0.12);
  pointer-events: none;
  transform-origin: top left;
}
.chalk-board:hover,
.chalk-board:hover * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='20' viewBox='0 0 56 20'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ef3d4a'/%3E%3Cstop offset='1' stop-color='%23c8102e'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg transform='rotate(-8 28 10)'%3E%3Crect x='2' y='6' width='46' height='8' rx='4' fill='url(%23g)'/%3E%3Crect x='48' y='7' width='3.5' height='5.2' rx='1.5' fill='%23f6c08a'/%3E%3C/g%3E%3C/svg%3E") 50 11, auto;
}
.chalk-board-frame-layer,
.chalk-board-surface-layer,
.chalk-board-shelf,
.chalk-board-pen {
  position: absolute;
  will-change: transform;
}
.chalk-board-frame-layer {
  display: block;
  inset: 0;
  border-radius: 12px 12px 0 0;
  border: 1px solid #dbe3ef;
  box-shadow:
    inset 0 0 0 10px #f7f9fc,
    inset 0 0 0 1px rgba(255,255,255,0.9);
  background: transparent;
  z-index: 10000;
  pointer-events: none;
  transform: translate3d(0, 0, var(--cbFrameZ));
}
.chalk-board-surface-layer {
  inset: 10px;
  border-radius: 10px;
  overflow: visible;
  transform-style: preserve-3d;
  transform: translate3d(0, calc(var(--cbFloat) * 0.65), var(--cbSurfaceZ));
  z-index: 9999;
  pointer-events: none;
}
.chalk-board-surface {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-radius: 0;
  padding: 24px 22px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: #ffffff !important;
  border: 1px solid #eef2f7;
  border-left: none;
  border-right: none;
  box-shadow:
    inset 0 0 16px rgba(15,23,42,0.10);
}
.chalk-board-surface::before,
.chalk-board-surface::after {
  display: none;
}
.chalk-board-shelf {
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 6px;
  border-radius: 999px;
  background: rgba(15,23,42,0.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 2px 4px rgba(15,23,42,0.16);
  filter: saturate(0.7);
  transform: translate3d(0, calc(var(--cbFloat) * 0.3), var(--cbShelfZ));
  z-index: 10001;
  pointer-events: none;
}
.chalk-board-pen {
  right: 48px;
  bottom: 16px;
  width: 34px;
  height: 6.4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ef3d4a 0%, #c8102e 100%) !important;
  box-shadow: 0 3px 6px rgba(15,23,42,0.16);
  transform: translate3d(0, calc(var(--cbFloat) * 1.15), var(--cbPenZ)) rotate(-8deg);
  z-index: 10002;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.chalk-board:hover .chalk-board-pen {
  opacity: 0;
}
.chalk-line {
  position: relative;
  margin: 0;
  z-index: 1;
  color: #c8102e;
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  letter-spacing: 0.03em;
  text-transform: none;
  transform: rotate(-1.2deg);
  text-shadow:
    0 0 1px rgba(200,16,46,0.22),
    0.35px 0.35px 0 rgba(140,8,28,0.22);
  filter: none;
}
.chalk-line {
  font-size: 0.92rem;
  line-height: 1.6;
  font-weight: 700;
}
.chalk-line + .chalk-line {
  margin-top: 20px;
}
.chalk-line-main {
  font-size: 1rem;
  margin-top: 0;
}


/* === css\styles.hero.sms.css === */
/* -- SMS chat overlay on phone (Section 5 reveal) -- */
/* ── SMS overlay z-index layers ────────────────────────
   1  phone-sms bg    (the white canvas itself)
   2  sms-body        (scroll/message area)
   3  sms-header      (top bar)
   3  sms-foot        (bottom bar)
   4  sms-quicks      (suggestion chips)
   4  sms-input       (text input row)
   5  sms-bubble      (chat bubbles — topmost)
   ─────────────────────────────────────────────────── */
.phone-sms {
  position: absolute;
  inset: 0;
  border-radius: 0 0 14px 14px;
  background: transparent;
  color: #0F172A;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease;
  /* overflow:clip clips without flattening the 3D stacking context */
  overflow: clip;
  z-index: 1;
  font-family: inherit;
}
.phone-sms.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.sms-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 8px 8px 7px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  z-index: 3;
}
.sms-back svg { width: 11px; height: 11px; color: #334155; }
.sms-num {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--red);
}
.sms-call svg { width: 11px; height: 11px; color: #334155; fill: currentColor; stroke: none; }
.sms-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 10px 8px 0;
  gap: 5px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  position: relative;
  z-index: 2;
}
.sms-body::-webkit-scrollbar { display: none; }
.sms-bubble {
  max-width: 70%;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 0.49rem;
  line-height: 1.35;
  position: relative;
  z-index: 5;
}
.sms-bubble.sms-out {
  background: var(--red);
  color: #ffffff;
  -webkit-mask: none;
  mask: none;
  border: none;
  padding: 5px 8px;
  border-radius: 12px 12px 0 12px;
  align-self: flex-end;
  position: relative;
  overflow: visible;
  margin-right: 6px;
  opacity: 0;
  transition: opacity 0.3s ease 0.15s;
}
/* Tail: small pointer tucked into bubble's bottom-right. The element
   overlaps the bubble corner (left/top inset) so the triangle merges
   seamlessly with the rounded corner instead of leaving a visible seam. */
.sms-bubble.sms-out::after {
  content: '';
  position: absolute;
  left: calc(100% - 6px);
  bottom: 0;
  width: 12px;
  height: 10px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.sms-quicks {
  display: flex;
  gap: 5px;
  padding: 8px 8px 6px;
  overflow: hidden;
  flex-wrap: nowrap;
  position: relative;
  z-index: 4;
}
.sms-quick {
  flex: 0 0 auto;
  font-size: 0.46rem;
  padding: 5px 9px;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  border: 1px solid #e2e8f0;
  font-family: inherit;
  white-space: nowrap;
  cursor: default;
}
.sms-input {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 4px 8px;
  margin: 0 8px 8px;
  position: relative;
  z-index: 4;
}
.sms-input-cam svg { width: 11px; height: 11px; color: var(--red); }
.sms-input-text {
  font-size: 0.51rem;
  color: #0F172A;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  width: 100%;
  min-width: 0;
  font-family: inherit;
  font-weight: 400;
  caret-color: var(--red);
}
.sms-input-text::placeholder {
  color: #94a3b8;
  font-family: inherit;
}
.sms-input-send svg { width: 11px; height: 11px; color: #94a3b8; }
.sms-foot {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  position: relative;
  z-index: 3;
}

.contact-act-btn { position: relative; }
/* ── SMS 3D depth layers ──────────────────────────────────────────────────
   phone-sms canvas sits at a small translateZ above phone-app floor so it
   clears the contact cards. Children have NO translateZ — that causes lateral
   stickout during rotateY. 3D depth is achieved by the phone-shell tilt alone.
   ────────────────────────────────────────────────────────────────────── */
/* phone-sms is position:absolute; inset:0 — no translateZ needed.
   translateZ on a preserve-3d child causes lateral shift during rotateY.
   Use z-index only for layering. */
.phone-sms { /* no transform needed — absolute inset:0 already overlays phone-app */ }
.sms-header { box-shadow: 0 2px 6px rgba(15,23,42,0.10); }
.sms-foot   { box-shadow: 0 -2px 6px rgba(15,23,42,0.10); }
.sms-input  { box-shadow: 0 2px 8px rgba(15,23,42,0.08); }
.sms-bubble.sms-out { filter: drop-shadow(0 3px 5px rgba(200,16,46,0.28)); }
.phone-sms.is-active .sms-bubble.sms-out { opacity: 1; }

/* Hide contact cards & menu when SMS overlay is open */
.phone-shell.sms-open .phone-menu,
.phone-shell.sms-open .emergency-grid { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }

/* Section 6: second bubble and automatic-send label */
/* Keep hidden until section 6 activates it */
.sms-med-bubble { display: none; white-space: pre-wrap; text-align: left; max-width: 88%; }
.phone-shell.sec6-active .sms-med-bubble { display: block; opacity: 1; }
.sms-auto-sent {
  display: block;
  font-size: 0.28rem;
  color: rgba(255,255,255,0.65);
  text-align: left;
  margin-top: 3px;
}
.phone-shell.sec6-active .sms-auto-sent { display: block; }
.phone-shell.sec6-active .sms-auto-sent.is-visible { opacity: 1; }


/* === css\styles.tips.css === */
/* Hero tips SMS chat interface */
.tips-widget {
  position: fixed;
  right: var(--tips-control-right, 24px);
  bottom: var(--tips-control-bottom, 24px);
  z-index: 2147483647 !important;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.tips-wrap {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--light);
  padding: 0;
  display: flex;
  flex-direction: column;
  height: min(420px, calc(100vh - 96px));
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  position: absolute;
  right: 0;
  bottom: 56px;
  z-index: 2147483647 !important;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.2);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  transform-origin: bottom right;
}
.tips-widget:not(.is-open) .tips-wrap {
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  pointer-events: none;
  visibility: hidden;
}
.tips-widget.is-open .tips-wrap {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}
.tips-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}
.tips-head svg { width: 16px; height: 16px; color: var(--red); }
.tips-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
}
.tips-launcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  color: var(--text);
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  backdrop-filter: blur(20px);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tips-launcher:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.tips-launcher:focus-visible {
  outline: 2px solid rgba(200,16,46,0.45);
  outline-offset: 3px;
}
.tips-launcher-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tips-launcher-icon svg {
  width: 18px;
  height: 18px;
}
.tips-unread-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  text-shadow: none;
}
.tips-unread-badge.is-hidden {
  display: none;
}
/* SMS chat container */
.tips-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 14px 12px 6px;
  gap: 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.tips-chat::-webkit-scrollbar { display: none; }
.tips-chat::before {
  content: '';
  flex: 1;
}

.tips-pause-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(200,16,46,0.25);
  background: rgba(254,242,242,0.9);
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: 0.88;
  transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  z-index: 5;
}
.tips-pause-btn:hover {
  opacity: 1;
  border-color: rgba(200,16,46,0.35);
  background: rgba(254,242,242,1);
}
.tips-pause-btn svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}
.tips-pause-btn .icon-play { display: none; }
.tips-pause-btn.is-paused {
  color: var(--red);
  background: rgba(254,242,242,0.9);
  border-color: rgba(200,16,46,0.25);
}
.tips-pause-btn.is-paused .icon-pause { display: none; }
.tips-pause-btn.is-paused .icon-play { display: block; }

.tips-wrap.paused .typing-dots span { animation-play-state: paused; }

/* SMS bubble with tail using border-mask technique */
.sms-bubble {
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.6;
  word-wrap: break-word;
  max-width: 85%;
  align-self: flex-start;
  flex-shrink: 0;
  margin-bottom: 4px;

  --s: 0.7em;
  --r: 0.9em;

  padding: 10px 13px;
  border: var(--s) solid #0000;
  border-radius: calc(var(--r) + var(--s));
  border-bottom-left-radius: 0;
  background: border-box var(--red);
  -webkit-mask:
    radial-gradient(100% 100% at 0 0, #0000 99%, #000 102%)
      0 calc(100% - var(--s)) / var(--s) var(--s) no-repeat border-box,
    linear-gradient(#000 0 0) padding-box;
  mask:
    radial-gradient(100% 100% at 0 0, #0000 99%, #000 102%)
      0 calc(100% - var(--s)) / var(--s) var(--s) no-repeat border-box,
    linear-gradient(#000 0 0) padding-box;
  animation: smsPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Typing dots inside bubble */
.sms-bubble.typing {
  padding: 13px 18px;
}
.typing-dots {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 1.1em;
}
.typing-dots span {
  width: 7px;
  height: 7px;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  animation: dotBounce 1.1s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.typing-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-5px); opacity: 1; }
}

@keyframes smsPop {
  0% { opacity: 0; transform: translateY(10px) scale(0.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}


/* === css\styles.sections.css === */
.site-mark {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  color: var(--red);
  text-decoration: none;
  z-index: 2147483646;
  pointer-events: auto;
}

.home-planet {
  width: 1.92rem;
  height: 1.92rem;
  flex-shrink: 0;
}

.home-planet img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.logo-emergency {
  color: var(--red) !important;
}

.home-logo-text {
  display: flex;
  flex-direction: column;
}

.home-logo-text span {
  display: block;
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--text);
  letter-spacing: -0.03em;
  white-space: nowrap;
}



.nav-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 100px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  cursor: pointer;
}

.nav-item svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.nav-item:hover {
  background: var(--red-lt);
  color: var(--red);
}

.nav-item.active {
  background: linear-gradient(180deg, #ef3d4a 0%, #c8102e 100%);
  color: #fff;
  box-shadow: none;
}

.nav-item.active svg {
  color: currentColor;
}

.float-nav {
  position: fixed; bottom: var(--nav-control-bottom, 22px); left: 50%; transform: translateX(-50%);
  z-index: 2147483600 !important; display: flex; flex-direction: column; align-items: center; gap: 3px;
  max-width: calc(100vw - 24px);
  padding: 7px 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.float-nav-items {
  display: flex; align-items: center; gap: 3px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.float-nav-items::-webkit-scrollbar {
  display: none;
}

@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
  .float-nav .nav-item[data-target="Contact"] {
    display: none !important;
  }
}

.float-nav-toggle {
  display: none;
}

/* ── Donate-only mode (when viewing donation section) ── */
.float-nav-donate-wrap {
  display: none;
  position: fixed;
  bottom: var(--donate-control-bottom, 52px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2147483600;
  overflow: visible;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: min(920px, calc(100vw - 24px));
}

body.nav-donate-mode {
  --tips-control-bottom: var(--donate-control-bottom, 52px);
}

.nav-donate-mode .float-nav { display: none !important; }
.nav-donate-mode .float-nav-donate-wrap { display: flex; }

/* FAQ */
.faq-section {
  --faq-safe-top: clamp(78px, 10vh, 92px);
  --faq-safe-bottom: clamp(94px, calc(10vh + 16px), 108px);
  position: relative;
  z-index: 19;
  min-height: 100vh;
  margin-top: 0;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  overflow: hidden;
  border: none;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

/* Contact Us section — same visual style as FAQ but sits between FAQ and Donate */
.contact-us-section {
  z-index: 18;
  margin-top: 0;
  border-radius: 0;
}

.faq-shell {
  display: grid;
  grid-template-columns: minmax(240px, 35fr) minmax(0, 65fr);
  grid-template-areas: "contact faq";
  gap: clamp(18px, 3vw, 32px);
  align-items: stretch;
  width: 100%;
  max-width: 1200px;
  height: 100vh;
  min-height: 100vh;
  margin: 0 auto;
  padding: var(--faq-safe-top) clamp(24px, 4vw, 48px) var(--faq-safe-bottom);
}

.faq-copy {
  position: relative;
  top: auto;
  display: flex;
  flex-direction: column;
  grid-area: contact;
  min-height: 0;
  width: 100%;
  max-width: none;
  justify-self: stretch;
  scroll-margin-top: var(--faq-safe-top);
}

.contact-heading {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  display: block;
}

.faq-contact-panel {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.faq-contact-panel .contact-heading {
  margin-bottom: 0;
}

.faq-contact-panel .faq-contact-form {
  min-height: 0;
}

.faq-copy .hero-scroll-title {
  max-width: 420px;
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
}

.faq-intro {
  max-width: 430px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  text-align: left;
}

.faq-contact-form {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 13px;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.faq-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.faq-contact-form label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 750;
}

.faq-contact-form label small {
  color: #94a3b8;
  font-size: 0.64rem;
  font-weight: 650;
}

.faq-contact-form > label:not(.faq-contact-honeypot) {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.faq-contact-form input,
.faq-contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.faq-contact-form input {
  height: 40px;
  padding: 0 11px;
}

.faq-contact-form textarea {
  height: 100%;
  min-height: 76px;
  padding: 10px 11px;
  line-height: 1.45;
  resize: none;
}

.faq-contact-form input:focus,
.faq-contact-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.faq-contact-honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.faq-contact-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
}

.faq-contact-submit {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 17px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ef3d4a 0%, #c8102e 100%);
  box-shadow: 0 7px 16px rgba(200, 16, 46, 0.2);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.faq-contact-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(200, 16, 46, 0.26);
}

.faq-contact-submit:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.faq-contact-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.faq-contact-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.35;
}

.faq-contact-status.is-error { color: #b91c1c; }
.faq-contact-status.is-success { color: #15803d; }

.faq-contact-form,
.faq-list-panel {
  transition: box-shadow 0.3s ease;
}

.faq-contact-form:hover,
.faq-list-panel:hover {
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
}

.faq-list-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-area: faq;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.faq-list-panel::before,
.faq-list-panel::after {
  position: absolute;
  right: 23px;
  left: 23px;
  z-index: 3;
  height: 18px;
  pointer-events: none;
  content: '';
}

.faq-list-panel::before {
  top: 75px;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.13), rgba(15, 23, 42, 0.035) 38%, transparent);
}

.faq-list-panel::after {
  bottom: 16px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.13), rgba(15, 23, 42, 0.035) 38%, transparent);
}

#FAQ > .faq-shell > .faq-contact-panel {
  grid-column: 1;
  grid-row: 1;
}

#FAQ > .faq-shell > .faq-list-panel {
  grid-column: 2;
  grid-row: 1;
}

#FAQ > .faq-shell {
  grid-template-columns: minmax(240px, 35fr) minmax(0, 65fr);
  grid-template-areas: "contact faq";
}

.faq-search-wrap {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.78);
  background: rgba(255, 255, 255, 0.96);
}

.faq-search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.faq-search-field:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.faq-search-field > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: #64748b;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.faq-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
}

.faq-search-field input::placeholder {
  color: #94a3b8;
}

.faq-search-field input::-webkit-search-cancel-button {
  display: none;
}

.faq-search-clear {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
}

.faq-search-clear[hidden] {
  display: none;
}

.faq-search-clear:hover,
.faq-search-clear:focus-visible {
  background: var(--red-lt);
  color: var(--red);
}

.faq-search-clear:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.faq-search-clear svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.faq-accordion {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  padding: 12px 7px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior-y: auto;
  scroll-padding-block: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.faq-accordion.faq-scroll-unlocked {
  overflow-y: auto;
}

.faq-accordion::-webkit-scrollbar {
  display: none;
}

.faq-accordion:focus-visible {
  border-radius: 10px;
  outline: 2px solid rgba(200, 16, 46, 0.55);
  outline-offset: 4px;
}

.faq-cycle {
  display: grid;
  gap: 12px;
  padding-bottom: 12px;
}

.faq-cycle[aria-hidden="true"] .faq-question {
  pointer-events: auto;
}

.faq-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: center;
}

.faq-item {
  width: 100%;
  overflow: visible;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 9px 10px -9px rgba(15, 23, 42, 0.42);
  scroll-snap-align: none;
}

.faq-heading {
  margin: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.faq-question span {
  min-width: 0;
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  font-weight: 800;
  line-height: 1.35;
}

.faq-question:hover,
.faq-question:focus-visible {
  color: var(--red);
}

.faq-question:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -4px;
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: currentColor;
  transition: transform 0.28s ease;
}

.faq-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-panel {
  display: none;
  width: 100%;
}

.faq-item.is-open .faq-panel {
  display: block;
}

.faq-panel-inner {
  min-height: 0;
}

.faq-panel-inner p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
  text-align: left;
}

@media (max-width: 900px), (orientation: landscape) and (max-width: 1100px) and (max-height: 650px) {
  .faq-section {
    --faq-safe-top: calc(68px + env(safe-area-inset-top));
    --faq-safe-bottom: calc(68px + env(safe-area-inset-bottom));
    overflow: visible;
  }

  .faq-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "faq"
      "contact";
    grid-template-rows: var(--mobile-card-height, 100dvh) var(--mobile-card-height, 100dvh);
    gap: 0;
    height: auto;
    min-height: calc(var(--mobile-card-height, 100dvh) * 2);
    padding: 0;
  }

  .faq-list-panel {
    grid-column: 1;
    grid-row: 1;
    flex: none;
    width: auto;
    height: calc(var(--mobile-card-height, 100dvh) - var(--faq-safe-top) - var(--faq-safe-bottom));
    margin: var(--faq-safe-top) 5% var(--faq-safe-bottom);
  }

  .faq-copy {
    grid-column: 1;
    grid-row: 2;
    width: auto;
    height: calc(var(--mobile-card-height, 100dvh) - var(--faq-safe-top) - var(--faq-safe-bottom));
    margin: var(--faq-safe-top) 5% var(--faq-safe-bottom);
    max-width: none;
    min-height: auto;
  }

  .faq-contact-form,
  .faq-intro {
    height: 100%;
    max-width: none;
  }

  #FAQ > .faq-shell > .faq-list-panel {
    grid-column: 1;
    grid-row: 1;
  }

  #FAQ > .faq-shell > .faq-contact-panel {
    grid-column: 1;
    grid-row: 2;
  }

}

@media (max-width: 620px) {
  .faq-shell {
    padding-right: 4%;
    padding-left: 4%;
  }

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

  .faq-contact-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .faq-question {
    padding: 17px 18px;
  }

  .faq-panel-inner p {
    padding: 0 18px 19px;
  }
}

/* ───────────────────────────────────────────────────
   MAPPING GAP — Phone mockup in Section 7 right col
   ─────────────────────────────────────────────────── */
.mapcap-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  perspective: 900px;
}

.mapcap-phone {
  width: 216px;
  height: 434px;
  position: relative;
  border-radius: 14px;
  background: linear-gradient(140deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid #cbd5e1;
  box-shadow:
    0 12px 30px rgba(15, 23, 42, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2);
  padding: 4px 0 0;
  transform: scale(0.72);
  transform-origin: center center;
}

.mapcap-app {
  position: relative;
  height: calc(100% - 22px);
  width: 100%;
  pointer-events: auto;
  border-radius: 0 0 14px 14px;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.mapcap-sms {
  position: absolute;
  inset: 0;
  border-radius: 0 0 14px 14px;
  background: #ffffff;
  color: #0F172A;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: inherit;
}

.mapcap-sms .sms-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 8px 8px 7px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.10);
}

.mapcap-sms .sms-back svg { width: 11px; height: 11px; color: #334155; }
.mapcap-sms .sms-num {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--red);
}
.mapcap-sms .sms-call svg { width: 11px; height: 11px; color: #334155; fill: currentColor; stroke: none; }

.mapcap-sms-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 10px 8px 0;
  gap: 5px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.mapcap-sms-body::-webkit-scrollbar { display: none; }

.sms-bubble.sms-in {
  background: #f1f5f9;
  color: #0F172A;
  border-radius: 12px 12px 12px 0;
  align-self: flex-start;
  max-width: 88%;
  padding: 10px 13px;
  font-size: 0.49rem;
  line-height: 1.35;
  position: relative;
  margin-left: 6px;
  border: 1px solid #e2e8f0;
}

.sms-bubble.sms-in::after {
  content: '';
  position: absolute;
  left: -6px;
  bottom: 0;
  width: 12px;
  height: 10px;
  background: #f1f5f9;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  border-left: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.mapcap-bubble {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mapcap-bubble-text {
  margin: 0;
  font-size: 0.49rem;
  line-height: 1.35;
  color: #334155;
}

.mapcap-bubble-text strong {
  color: #0F172A;
  font-weight: 750;
}

.mapcap-map-thumb {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #e8edf2;
  border: 1px solid #cbd5e1;
}

.mapcap-map-svg {
  display: block;
  width: 100%;
  height: auto;
}

.mapcap-map-label {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.36rem;
  font-weight: 700;
  color: #0F172A;
  background: rgba(255, 255, 255, 0.88);
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
}

.mapcap-change-btn {
  display: block;
  width: 100%;
  padding: 8px 0;
  border: 1px solid var(--red);
  border-radius: 10px;
  background: #ffffff;
  color: var(--red);
  font-family: inherit;
  font-size: 0.49rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-align: center;
}

.mapcap-change-btn:hover,
.mapcap-change-btn:focus-visible {
  background: var(--red);
  color: #ffffff;
  outline: none;
}

.mapcap-sms .sms-foot {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -2px 6px rgba(15, 23, 42, 0.10);
}

.mapcap-sms .sms-quicks {
  display: flex;
  gap: 5px;
  padding: 8px 8px 6px;
  overflow: hidden;
  flex-wrap: nowrap;
}

.mapcap-sms .sms-quick {
  flex: 0 0 auto;
  font-size: 0.46rem;
  padding: 5px 9px;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  border: 1px solid #e2e8f0;
  font-family: inherit;
  white-space: nowrap;
  cursor: default;
}

.mapcap-sms .sms-input {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 4px 8px;
  margin: 0 8px 8px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.mapcap-sms .sms-input-cam svg { width: 11px; height: 11px; color: var(--red); }
.mapcap-sms .sms-input-text {
  font-size: 0.51rem;
  color: #0F172A;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  width: 100%;
  min-width: 0;
  font-family: inherit;
  font-weight: 400;
  caret-color: var(--red);
}
.mapcap-sms .sms-input-text::placeholder {
  color: #94a3b8;
  font-family: inherit;
}
.mapcap-sms .sms-input-send svg { width: 11px; height: 11px; color: #94a3b8; }

/* === css\styles.responsive.css === */
.float-nav.is-compact {
    bottom: var(--nav-control-bottom, 12px);
    left: 12px;
    width: 44px;
    max-width: calc(100vw - 80px);
    height: 44px;
    padding: 0;
    gap: 0;
    transform: none;
    border-radius: 999px;
    transition: width 0.22s ease, height 0.22s ease, padding 0.22s ease, border-radius 0.22s ease;
}

.nav-compact {
    --nav-control-bottom: 12px;
    --tips-control-right: 12px;
}

.nav-compact.nav-donate-mode {
    --donate-control-bottom: 64px;
}

.float-nav.is-compact.is-expanded {
    width: auto;
    height: auto;
    max-width: calc(100vw - 24px);
    padding: 5px 8px;
    flex-direction: row;
    border-radius: 18px;
}

.float-nav.is-compact.is-expanded.is-stacked {
    width: min(250px, calc(100vw - 24px));
    flex-direction: column;
    padding: 8px;
}

.float-nav.is-compact .float-nav-toggle {
    display: inline-flex;
    order: 0;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.float-nav.is-compact.is-expanded .float-nav-toggle {
  display: none;
}

.float-nav.is-compact .float-nav-toggle:focus-visible {
    outline: 2px solid rgba(200,16,46,0.45);
    outline-offset: -2px;
}

.float-nav.is-compact .float-nav-toggle-icon {
    position: relative;
    display: block;
    width: 19px;
    height: 14px;
}

.float-nav.is-compact .float-nav-toggle-icon span {
    position: absolute;
    left: 0;
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.float-nav.is-compact .float-nav-toggle-icon span:nth-child(1) { top: 0; }
.float-nav.is-compact .float-nav-toggle-icon span:nth-child(2) { top: 6px; }
.float-nav.is-compact .float-nav-toggle-icon span:nth-child(3) { top: 12px; }

.float-nav.is-compact .float-nav-items {
    display: none;
    order: 1;
    width: auto;
    flex-direction: row;
    align-items: center;
    overflow: visible;
}

.float-nav.is-compact.is-expanded .float-nav-items {
    display: flex;
}

.float-nav.is-compact.is-expanded.is-stacked .float-nav-items {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
}

.float-nav.is-compact .nav-item {
    width: auto;
    padding: 8px 9px;
    font-size: 0.72rem;
}

.float-nav.is-compact.is-stacked .nav-item {
    width: 100%;
    padding: 10px 12px;
}

.nav-compact.nav-donate-mode .float-nav-donate-wrap {
    display: flex;
    bottom: var(--donate-control-bottom, 100px);
}

body.nav-expanded .tips-widget {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.nav-compact .tips-widget {
    right: var(--tips-control-right, 12px);
    bottom: var(--tips-control-bottom, var(--nav-control-bottom, 12px));
    left: auto;
    align-items: flex-end;
}

@media (max-width: 960px) {

  .tips-wrap {
    width: min(100vw - 24px, 360px);
    right: 0;
    bottom: 56px;
  }

}

/* === css\styles.bg-shapes.css === */
/* ───────────────────────────────────────────
   CSS background pattern patches
   Inside artifact containers — large, animated
   ─────────────────────────────────────────── */

.bg-patch {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  will-change: background-position;
}

body .bg-patch {
  animation-name: patchScroll !important;
  animation-duration: 60s !important;
  animation-timing-function: linear !important;
  animation-iteration-count: infinite !important;
}

/* ── Crisis (Hero) — Zigzag 3D ── */
.hero-circles .bg-patch {
  inset: -15%;
  background-image:
    repeating-linear-gradient(
      45deg,
      var(--red) 0,
      var(--red) 1.5px,
      transparent 1.5px,
      transparent 8px
    ),
    repeating-linear-gradient(
      -45deg,
      var(--red) 0,
      var(--red) 1.5px,
      transparent 1.5px,
      transparent 8px
    );
  background-size: 12px 12px;
  mask-image: radial-gradient(ellipse 65% 60% at 50% 50%, black 50%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 50%, black 50%, transparent 90%);
  animation-duration: 70s !important;
  animation-direction: reverse !important;
}

/* ── SectionTwo (Stats) — Zigzag 3D ── */
#SectionTwo .bg-patch {
  inset: -10%;
  background-image:
    repeating-linear-gradient(
      45deg,
      var(--red) 0,
      var(--red) 1.5px,
      transparent 1.5px,
      transparent 8px
    ),
    repeating-linear-gradient(
      -45deg,
      var(--red) 0,
      var(--red) 1.5px,
      transparent 1.5px,
      transparent 8px
    );
  background-size: 12px 12px;
  mask-image: radial-gradient(ellipse 65% 60% at 50% 50%, black 50%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 50%, black 50%, transparent 90%);
  animation-duration: 70s !important;
  animation-direction: reverse !important;
}

/* ── Educate — Zigzag 3D ── */
#Educate .bg-patch {
  inset: -10%;
  background-image:
    repeating-linear-gradient(
      45deg,
      var(--red) 0,
      var(--red) 1.5px,
      transparent 1.5px,
      transparent 8px
    ),
    repeating-linear-gradient(
      -45deg,
      var(--red) 0,
      var(--red) 1.5px,
      transparent 1.5px,
      transparent 8px
    );
  background-size: 12px 12px;
  mask-image: radial-gradient(ellipse 65% 60% at 50% 50%, black 48%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 50%, black 48%, transparent 90%);
  animation-duration: 70s !important;
  animation-direction: reverse !important;
}

/* ── PhoneSafety — Zigzag 3D ── */
#PhoneSafety .bg-patch {
  inset: -10%;
  background-image:
    repeating-linear-gradient(
      45deg,
      var(--red) 0,
      var(--red) 1.5px,
      transparent 1.5px,
      transparent 8px
    ),
    repeating-linear-gradient(
      -45deg,
      var(--red) 0,
      var(--red) 1.5px,
      transparent 1.5px,
      transparent 8px
    );
  background-size: 12px 12px;
  mask-image: radial-gradient(ellipse 65% 60% at 50% 50%, black 50%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 50%, black 50%, transparent 90%);
  animation-duration: 70s !important;
  animation-direction: reverse !important;
}

/* ── FAQ — Zigzag 3D ── */
#FAQ .bg-patch {
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      var(--red) 0,
      var(--red) 1.5px,
      transparent 1.5px,
      transparent 8px
    ),
    repeating-linear-gradient(
      -45deg,
      var(--red) 0,
      var(--red) 1.5px,
      transparent 1.5px,
      transparent 8px
    );
  background-size: 12px 12px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 45%, transparent 85%);
  animation-duration: 70s !important;
  animation-direction: reverse !important;
}

/* ── Donate — Zigzag 3D ── */
#Donate .bg-patch {
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      var(--red) 0,
      var(--red) 1.5px,
      transparent 1.5px,
      transparent 8px
    ),
    repeating-linear-gradient(
      -45deg,
      var(--red) 0,
      var(--red) 1.5px,
      transparent 1.5px,
      transparent 8px
    );
  background-size: 12px 12px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 50%, black 40%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 50%, black 40%, transparent 82%);
  animation-duration: 70s !important;
  animation-direction: reverse !important;
}

/* FAQ and Donate now sit in normal snapped flow, so their pattern layers
   stay with the section instead of pinning to the viewport. */
.paragraph-scroll-enhanced #FAQ.paragraph-hold-section > .bg-patch,
.paragraph-scroll-enhanced #Donate.paragraph-scroll-section > .bg-patch {
  position: absolute;
  inset: auto;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  margin-bottom: 0;
}

/* ── Hidden sections — Zigzag 3D ── */
#SectionFive .bg-patch {
  inset: -5%;
  background-image:
    repeating-linear-gradient(
      45deg,
      var(--red) 0,
      var(--red) 1.5px,
      transparent 1.5px,
      transparent 8px
    ),
    repeating-linear-gradient(
      -45deg,
      var(--red) 0,
      var(--red) 1.5px,
      transparent 1.5px,
      transparent 8px
    );
  background-size: 12px 12px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, black 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, black 45%, transparent 85%);
  animation-duration: 70s !important;
  animation-direction: reverse !important;
}

#SectionSix .bg-patch {
  inset: -5%;
  background-image:
    repeating-linear-gradient(
      45deg,
      var(--red) 0,
      var(--red) 1.5px,
      transparent 1.5px,
      transparent 8px
    ),
    repeating-linear-gradient(
      -45deg,
      var(--red) 0,
      var(--red) 1.5px,
      transparent 1.5px,
      transparent 8px
    );
  background-size: 12px 12px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, black 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, black 45%, transparent 85%);
  animation-duration: 70s !important;
  animation-direction: reverse !important;
}

#SectionSeven .bg-patch {
  inset: -5%;
  background-image:
    repeating-linear-gradient(
      45deg,
      var(--red) 0,
      var(--red) 1.5px,
      transparent 1.5px,
      transparent 8px
    ),
    repeating-linear-gradient(
      -45deg,
      var(--red) 0,
      var(--red) 1.5px,
      transparent 1.5px,
      transparent 8px
    );
  background-size: 12px 12px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, black 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, black 45%, transparent 85%);
  animation-duration: 70s !important;
  animation-direction: reverse !important;
}

@keyframes patchScroll {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 200px 200px, 200px 200px; }
}

/* === css\styles.map.css === */
.worldmap-page {
  --map-frame-top: 76px;
  --map-frame-bottom: 88px;
  --map-frame-inline: 0px;
  position: relative;
  top: 0;
  z-index: 10;
  height: 100vh;
  min-height: 100vh;
  padding: var(--map-frame-top) var(--map-frame-inline) var(--map-frame-bottom);
  overflow: hidden;
  box-sizing: border-box;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  background: #fff;
  touch-action: manipulation;
}

.worldmap-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.48;
  background:
    linear-gradient(rgba(200, 16, 46, 0.095) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 16, 46, 0.095) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 84% 78% at 50% 50%, #000 44%, rgba(0, 0, 0, 0.68) 66%, rgba(0, 0, 0, 0.22) 82%, transparent 100%);
  mask-image: radial-gradient(ellipse 84% 78% at 50% 50%, #000 44%, rgba(0, 0, 0, 0.68) 66%, rgba(0, 0, 0, 0.22) 82%, transparent 100%);
}

.replacement-map-frame {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  touch-action: manipulation;
}

.first-section-scroll-cue {
  position: fixed;
  left: 50%;
  bottom: var(--first-section-scroll-cue-bottom, 98px);
  z-index: 2147483620;
  width: 32px;
  height: 32px;
  pointer-events: none;
  opacity: 1;
  color: var(--red);
  transform: translateX(-50%);
  filter: drop-shadow(0 3px 7px rgba(200, 16, 46, 0.18));
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  animation: firstSectionScrollCuePulse 10s ease-in-out infinite;
}

.has-started-scroll .first-section-scroll-cue {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px) scale(0.96);
  animation-play-state: paused;
}

@keyframes firstSectionScrollCuePulse {
  0%, 25%, 50% {
    transform: translateX(-50%);
    opacity: 1;
  }

  12.5%, 37.5% {
    transform: translateX(-50%) translateY(8px);
    opacity: 1;
  }

  50.01%, 100% {
    transform: translateX(-50%);
    opacity: 0;
  }
}

/* === css\styles.static-layout.css === */
/* ── Subtle float animation for hero visuals (JavaScript-driven) ── */

/* Normal section layout: sections stay in document flow and scroll natively. */
html {
  scroll-snap-type: none;
  scroll-behavior: auto;
  overscroll-behavior-y: auto;
  background: #fff;
}

body {
  overflow-x: hidden;
  overflow-y: visible;
  scroll-snap-type: none;
  background: #fff;
}

@media (max-width: 900px), (orientation: landscape) and (max-width: 1100px) and (max-height: 650px) {
  html.paragraph-scroll-enhanced {
    scroll-snap-type: none !important;
    overflow-y: auto;
    scroll-behavior: auto;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  html.paragraph-scroll-enhanced body {
    scroll-snap-type: none !important;
    overscroll-behavior-y: auto;
  }

  html.paragraph-scroll-enhanced .worldmap-page,
  html.paragraph-scroll-enhanced .story-section {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  html.paragraph-scroll-enhanced .worldmap-page,
  html.paragraph-scroll-enhanced .story-section.paragraph-scroll-section,
  html.paragraph-scroll-enhanced .story-section.paragraph-hold-section {
    height: var(--mobile-card-height, 100dvh) !important;
    min-height: var(--mobile-card-height, 100dvh) !important;
    max-height: var(--mobile-card-height, 100dvh) !important;
    overflow: hidden !important;
  }

  html.paragraph-scroll-enhanced #Crisis .hero-scroll-stage,
  html.paragraph-scroll-enhanced #SectionTwo .hero-scroll-stage,
  html.paragraph-scroll-enhanced #Educate .hero-scroll-stage,
  html.paragraph-scroll-enhanced #PhoneSafety .phone-tabs-stage {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y !important;
  }

  html.paragraph-scroll-enhanced .cad-card-list,
  html.paragraph-scroll-enhanced .donation-cost-window--budget,
  html.paragraph-scroll-enhanced .donation-panel,
  html.paragraph-scroll-enhanced .tips-panel {
    overflow-y: hidden !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y !important;
  }
}

/* No-JavaScript baseline: never hide paragraph content. */
html:not(.js) .hero-scroll-stage {
  max-height: none;
  height: auto;
  overflow: visible;
}

html:not(.js) .hero-scroll-doc {
  transform: none !important;
  will-change: auto;
}

/* Compact from the first painted frame, before JavaScript executes. */
.site-mark {
  position: fixed;
  top: 16px;
  left: 20px;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  color: var(--red);
  text-decoration: none;
  pointer-events: auto;
}

.site-mark .home-planet {
  width: 1.92rem;
  height: 1.92rem;
  flex-shrink: 0;
}

.site-mark .home-planet img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.site-mark .home-logo-text {
  position: relative;
  display: flex;
  flex-direction: column;
  transform: none;
}

.site-mark .home-logo-text span {
  font-size: 0.68rem;
  line-height: 0.94;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.story-section:not(#Donate):not(#FAQ):not(#Contact),
.story-section:not(#Donate):not(#FAQ):not(#Contact) *:not(.bg-patch):not(.phone-platform-icon),
.site-mark * {
  animation: none !important;
  transition: none !important;
}

/* Re-enable transitions for contact card hover effects */
.story-section .contact-card {
  transition: transform 0.22s ease, z-index 0s linear !important;
}
.story-section .contact-card-body {
  transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.18, 1), box-shadow 0.2s ease !important;
}
.story-section .contact-chevron {
  transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1) !important;
}
.story-section .contact-expand {
  transition: max-height 0.32s ease, opacity 0.24s ease, padding 0.32s ease !important;
}
/* Re-enable transition for chalk board pen fade-out */
.story-section:not(#Donate):not(#FAQ):not(#Contact) .chalk-board .chalk-board-pen,
#SectionTwo .chalk-board .chalk-board-pen {
  transition: opacity 0.25s ease !important;
}
.site-mark .logo-emergency {
  color: var(--red) !important;
}

.story-section {
  min-height: max(100vh, max-content) !important;
  height: auto !important;
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
  margin-top: 0;
  padding: 0 !important;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: #fff !important;
}

.story-section-1 {
  margin-top: 0;
  z-index: 11;
  background: #ffffff !important;
  box-shadow: none;
  border-top: 0;
  border-radius: 0;
}
.story-section-2 { z-index: 12; }
.story-section-3 { z-index: 13; background: #fff !important; }
.story-section-4 { z-index: 14; }
.story-section-5 { z-index: 15; background: #fff !important; }
.story-section-6 { z-index: 16; }
.story-section-7 { z-index: 17; background: #fff !important; }
.story-section-8 { z-index: 18; background: #fff !important; }
.story-section-9 { z-index: 19; background: #fff !important; }
.story-section-10 { z-index: 20; }

.story-section > .hero-sticky-shell,
.story-section > .stats-inner,
.story-section > .reg-void-inner,
.story-section > .divert-inner,
.story-section > .silent-inner,
.story-section > .dispatch-inner,
.story-section > .mapping-inner,
.story-section > .phone-tabs-inner,
.story-section > .donation-inner {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  min-height: 100vh;
  height: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr) !important;
  align-items: start !important;
  gap: clamp(36px, 6vw, 88px) !important;
  padding: 90px 8% 296px !important;
  background: transparent !important;
  z-index: auto !important;
}

/* Sections 2-7: center the supporting visual elements
   vertically within the grid, while keeping Crisis (hero) at start. */
#SectionTwo > .reg-void-inner,
#Educate > .reg-void-inner,
#PhoneSafety > .divert-inner,
#PhoneSafety > .phone-tabs-inner,
#SectionFive > .silent-inner,
#SectionSix > .dispatch-inner,
#SectionSeven > .mapping-inner {
  align-items: center !important;
}

.story-section .hero-scroll-copy {
  display: block;
  max-height: none;
}

.story-section .hero-scroll-stage {
  max-height: none;
  overflow: visible;
}

#Crisis .hero-scroll-copy,
#Educate .hero-scroll-copy,
#PhoneSafety .hero-scroll-copy {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 176px);
  max-height: var(--story-text-safe-height, calc(100svh - 176px));
  overflow: hidden;
}

/* Give the first two copy columns a fixed safe-area height. Their bordered
   stages now include the title and fill the complete text-column footprint. */
#Crisis .hero-scroll-copy,
#Educate .hero-scroll-copy {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  height: calc(100vh - 176px);
  height: var(--story-text-safe-height, calc(100svh - 176px));
}

#Crisis .hero-scroll-stage,
#Educate .hero-scroll-stage,
#PhoneSafety .phone-tabs-stage {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.72) transparent;
}

#Crisis .hero-scroll-stage,
#Educate .hero-scroll-stage {
  padding: 14px 18px;
  border: 1px solid rgba(200, 16, 46, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 8px rgba(15, 23, 42, 0.1);
  scrollbar-color: var(--red) transparent;
  scrollbar-gutter: stable;
}

#PhoneSafety .phone-tabs-stage {
  scrollbar-color: var(--red) transparent;
  scrollbar-gutter: stable;
}

#Crisis .hero-scroll-stage::-webkit-scrollbar,
#Educate .hero-scroll-stage::-webkit-scrollbar,
#PhoneSafety .phone-tabs-stage::-webkit-scrollbar {
  width: 8px;
}

#Crisis .hero-scroll-stage::-webkit-scrollbar-thumb,
#Educate .hero-scroll-stage::-webkit-scrollbar-thumb,
#PhoneSafety .phone-tabs-stage::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.72);
  background-clip: padding-box;
}

#Crisis .hero-scroll-stage::-webkit-scrollbar-track,
#Educate .hero-scroll-stage::-webkit-scrollbar-track,
#PhoneSafety .phone-tabs-stage::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

#Crisis .hero-scroll-stage::-webkit-scrollbar-thumb,
#Educate .hero-scroll-stage::-webkit-scrollbar-thumb,
#PhoneSafety .phone-tabs-stage::-webkit-scrollbar-thumb {
  background: var(--red);
  background-clip: padding-box;
}

#PhoneSafety .phone-tabs-layout {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

#PhoneSafety .phone-tabs-stage {
  height: 100%;
}

.story-section .hero-scroll-doc {
  transform: none;
  will-change: auto;
  gap: 22px;
}

.story-section .hero-scroll-item {
  opacity: 1 !important;
  transform: none !important;
}

.story-section .hero-scroll-item .hero-scroll-refs {
  display: block;
  margin: 2px 0 0;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
}

.story-section .hero-scroll-item .hero-scroll-refs li {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: justify;
}

.story-section .hero-scroll-title {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-bottom: 16px;
}

.story-section .hero-scroll-item p {
  font-size: 1rem;
  line-height: 1.85;
}

#Crisis .hero-circles,
.static-visual-holder,
.reg-void-right-col,
.dispatch-right-col,
.mapping-right-col {
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 120px;
}

#Crisis .hero-circles {
  gap: 34px;
  flex-wrap: wrap;
  perspective: none;
  align-content: center;
}

@media (min-width: 901px) {
  #Crisis .hero-circles,
  #Educate .ai-switch-right-col,
  #PhoneSafety .phone-tabs-right-col {
    align-self: stretch;
  }
}

#Crisis .routing-hub-visual {
  width: 100%;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.routing-hub {
  position: relative;
  width: min(460px, 100%);
  height: 440px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 38% 48%, rgba(220, 38, 38, 0.12), transparent 32%),
    linear-gradient(90deg, rgba(148, 163, 184, 0.13) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(0deg, rgba(148, 163, 184, 0.13) 1px, transparent 1px) 0 0 / 42px 42px,
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.13);
  overflow: hidden;
}

.incoming-pressure,
.hub-center,
.route-line,
.relief-channel {
  position: absolute;
}

.hub-center {
  left: 38%;
  top: 50%;
  z-index: 3;
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #991b1b 0%, #dc2626 100%);
  box-shadow:
    0 22px 42px rgba(15, 23, 42, 0.14),
    0 0 0 14px rgba(15, 23, 42, 0.04);
  color: #ffffff;
  text-align: center;
  transform: translate(-50%, -50%);
  animation: routing-hub-pulse 1.7s ease-in-out infinite !important;
}

.hub-number {
  display: block;
  align-self: end;
  font-size: 3.25rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.9;
}

.hub-center small,
.hub-center em {
  display: block;
  font-style: normal;
  line-height: 1;
}

.hub-center small {
  align-self: start;
  margin-top: -4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hub-center em {
  position: absolute;
  bottom: 18px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.incoming-pressure {
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.incoming-call {
  position: absolute;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.11);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
  color: #334155;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  animation: routing-call-flood 3.2s ease-in-out infinite !important;
}

.incoming-call::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 0 5px rgba(15, 23, 42, 0.08);
}

.incoming-call-1 { top: 86px; animation-delay: 0s !important; }
.incoming-call-2 { top: 151px; animation-delay: 0.45s !important; }
.incoming-call-3 { top: 216px; animation-delay: 0.9s !important; }
.incoming-call-4 { top: 281px; animation-delay: 1.35s !important; }

.route-line {
  left: 48%;
  z-index: 1;
  height: 7px;
  width: 150px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.14), rgba(37, 99, 235, 0.58));
  transform-origin: left center;
  overflow: hidden;
}

.route-line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 42%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.82);
  transform: translateX(-100%);
  animation: routing-line-flow 2.1s ease-in-out infinite !important;
}

.route-line-988 {
  top: 140px;
  transform: rotate(-24deg);
}

.route-line-311 {
  top: 214px;
  width: 136px;
  transform: rotate(0deg);
}

.route-line-211 {
  top: 288px;
  transform: rotate(24deg);
}

.route-line-311::after { animation-delay: 0.32s !important; }
.route-line-211::after { animation-delay: 0.64s !important; }

.relief-channel {
  right: 24px;
  z-index: 2;
  width: 148px;
  min-height: 68px;
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.relief-channel strong {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 1.05rem;
  line-height: 1;
}

.relief-channel span {
  color: #334155;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.2;
}

.relief-channel-988 { top: 76px; }
.relief-channel-311 { top: 188px; }
.relief-channel-211 { top: 300px; }

@keyframes routing-hub-pulse {
  0%, 100% { box-shadow: 0 22px 42px rgba(15, 23, 42, 0.14), 0 0 0 14px rgba(15, 23, 42, 0.04); }
  50% { box-shadow: 0 28px 48px rgba(15, 23, 42, 0.18), 0 0 0 20px rgba(15, 23, 42, 0.03); }
}

@keyframes routing-call-flood {
  0%, 100% { opacity: 0.72; transform: translateX(0) scale(0.96); }
  42% { opacity: 1; transform: translateX(90px) scale(1); }
  58% { opacity: 0.86; transform: translateX(122px) scale(0.92); }
}

@keyframes routing-line-flow {
  0% { transform: translateX(-100%); opacity: 0; }
  22% { opacity: 1; }
  72% { opacity: 1; }
  100% { transform: translateX(260%); opacity: 0; }
}

#Crisis .hero-display-stack {
  position: relative !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
  height: 243px !important;
  display: none !important;
}

#Crisis .static-board {
  margin-top: -14px;
  display: none !important;
}

#Crisis .hero-display-stack .phone-shell {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#Crisis .hero-display-stack .phone-shell {
  z-index: 3 !important;
  transform: translate3d(0, 0, 0) scale(0.72) rotateZ(0deg);
  box-shadow: 0 10px 20px rgba(15,23,42,0.10), inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -1px 0 rgba(255,255,255,0.2) !important;
}

.static-board {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none;
  width: 300px;
  min-width: 300px;
  height: 220px;
  margin: 0;
  pointer-events: auto;
  cursor: auto;
  box-shadow: 0 10px 20px rgba(15,23,42,0.10), inset 0 1px 0 rgba(255,255,255,0.72) !important;
}

.static-board-primary {
  transform: scale(0.9);
}

#SectionTwo .reg-void-inner {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px) !important;
}

#SectionTwo .reg-void-left {
  grid-column: 1;
  grid-row: 1;
}

#SectionTwo .reg-void-right-col {
  width: 100%;
}

#SectionTwo .reg-void-right-col .static-visual-holder {
  width: 100%;
  max-width: min(460px, 100%);
}

#SectionTwo .reg-void-right-col .chalk-board {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: min(460px, 100%);
  height: auto;
  aspect-ratio: 16 / 12.6;
  padding: 14px 14px 32px;
  box-sizing: border-box;
  border-radius: 14px 14px 0 0;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72), 0 5px 13px rgba(15,23,42,0.12);
  pointer-events: auto;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='20' viewBox='0 0 56 20'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ef3d4a'/%3E%3Cstop offset='1' stop-color='%23c8102e'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg transform='rotate(-8 28 10)'%3E%3Crect x='2' y='6' width='46' height='8' rx='4' fill='url(%23g)'/%3E%3Crect x='48' y='7' width='3.5' height='5.2' rx='1.5' fill='%23f6c08a'/%3E%3C/g%3E%3C/svg%3E") 50 11, auto;
  transform-origin: top left;
  --cbFrameZ: 12px;
  --cbFloat: 0;
  --cbSurfaceZ: 30px;
  --cbShelfZ: 0;
  --cbPenZ: 0;
}

/* Scale up chalk text & spacing for the larger SectionTwo board */
#SectionTwo .reg-void-right-col .chalk-board .chalk-line {
  font-size: 1.1rem;
  line-height: 1.65;
}
#SectionTwo .reg-void-right-col .chalk-board .chalk-line + .chalk-line {
  margin-top: 24px;
}
#SectionTwo .reg-void-right-col .chalk-board .chalk-line-main {
  font-size: 1.2rem;
}
#SectionTwo .reg-void-right-col .chalk-board .chalk-board-surface {
  padding: 32px 28px;
}
#SectionTwo .reg-void-right-col .chalk-board .chalk-board-pen {
  width: 52px;
  height: 9px;
  right: 62px;
  bottom: 22px;
}

#Crisis .overload-monitor {
  position: relative;
  width: min(460px, 100%);
  display: grid;
  justify-items: center;
  pointer-events: auto;
}

#Crisis .overload-monitor,
#Crisis .overload-monitor * {
  box-sizing: border-box;
}

#Crisis .monitor-signal-icon {
  position: absolute;
  z-index: 4;
  width: 52px;
  height: 52px;
  padding: 11px;
  border-radius: 14px;
  background: #c8102e;
  color: #ffffff;
  opacity: 1;
  pointer-events: none;
  box-shadow: 0 8px 18px rgba(200, 16, 46, 0.24);
}

#Crisis .monitor-signal-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

#Crisis .monitor-signal-icon--phone {
  top: 27%;
  left: -60px;
  animation: monitor-signal-float 5.8s ease-in-out infinite !important;
}

#Crisis .monitor-signal-icon--sms {
  top: 10%;
  right: -58px;
  animation: monitor-signal-float-alt 6.6s ease-in-out infinite !important;
}

@keyframes monitor-signal-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-7deg); }
  50% { transform: translate3d(3px, -6px, 0) rotate(2deg); }
}

@keyframes monitor-signal-float-alt {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(5deg); }
  50% { transform: translate3d(-3px, -5px, 0) rotate(-3deg); }
}

@media (prefers-reduced-motion: reduce) {
  #Crisis .monitor-signal-icon {
    animation: none !important;
  }
}

#Crisis .overload-monitor__bezel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 12.6;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 62%, #e5e7eb 100%);
  border: 1px solid rgba(200, 16, 46, 0.18);
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -10px 22px rgba(15, 23, 42, 0.08);
}

#Crisis .overload-monitor__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 13px;
  background:
    radial-gradient(circle at 82% 18%, rgba(15, 23, 42, 0.08), transparent 26%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(0deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px) 0 0 / 26px 26px,
    #ffffff;
  color: #1f2937;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08), inset 0 0 38px rgba(15, 23, 42, 0.06);
  animation: overload-screen-flicker 2.4s steps(2, end) infinite !important;
}

#Crisis .overload-monitor__scanline {
  position: absolute;
  inset: -40% 0 auto;
  height: 36%;
  z-index: 5;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.08), transparent);
  animation: overload-scan 3.2s linear infinite !important;
}

#Crisis .overload-monitor__topbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 10px 10px 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(200, 16, 46, 0.16);
}

#Crisis .overload-monitor__topbar strong,
#Crisis .overload-monitor__topbar em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
  line-height: 1;
}

#Crisis .overload-monitor__topbar strong {
  color: #991b1b;
  font-size: 0.72rem;
  font-weight: 900;
}

#Crisis .overload-monitor__topbar em {
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #c8102e;
  font-size: 0.54rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#Crisis .overload-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

#Crisis .overload-dot--red { background: #c8102e; }
#Crisis .overload-dot--yellow { background: #f59e0b; }
#Crisis .overload-dot--green { background: #22c55e; }

#Crisis .overload-alert {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 14px 10px;
  padding: 10px 12px;
  border: 1px solid rgba(200, 16, 46, 0.26);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.1);
  animation: overload-alert-pulse 1.1s ease-in-out infinite !important;
}

#Crisis .overload-alert span {
  color: #991b1b;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

#Crisis .overload-alert strong {
  color: #c8102e;
  font-size: 1.42rem;
  font-weight: 950;
  line-height: 1;
}

#Crisis .cad-status-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 12px 8px;
  padding: 8px 10px;
  border: 1px solid rgba(200, 16, 46, 0.24);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

#Crisis .cad-status-strip span,
#Crisis .cad-status-strip strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
}

#Crisis .cad-status-strip span {
  color: #991b1b;
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.06em;
}

#Crisis .cad-status-strip strong {
  color: #c8102e;
  font-size: 0.86rem;
  font-weight: 950;
}

#Crisis .cad-screen-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 9px;
  padding: 0 12px;
}

#Crisis .cad-incident-panel,
#Crisis .cad-side-panel,
#Crisis .cad-command-log {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.07);
}

#Crisis .cad-incident-panel {
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
}

#Crisis .cad-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
  background: #f8fafc;
}

#Crisis .cad-panel-head span,
#Crisis .cad-panel-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
}

#Crisis .cad-panel-head span {
  color: #334155;
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#Crisis .cad-panel-head strong {
  color: #c8102e;
  font-size: 0.58rem;
  font-weight: 950;
  text-transform: uppercase;
}

#Crisis .cad-card-list {
  height: 162px;
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: auto;
  touch-action: pan-y;
  cursor: default;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 16, 46, 0.55) rgba(15, 23, 42, 0.08);
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 7px;
}

#Crisis .cad-card-list::-webkit-scrollbar {
  width: 7px;
}

#Crisis .cad-card-list::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
}

#Crisis .cad-card-list::-webkit-scrollbar-thumb {
  background: rgba(200, 16, 46, 0.55);
  border-radius: 999px;
}

#Crisis .cad-call-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 44px;
  gap: 6px;
  align-items: center;
  min-height: 38px;
  padding: 6px;
  border-radius: 7px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-left: 3px solid rgba(100, 116, 139, 0.72);
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  box-shadow: 0 8px 14px rgba(15, 23, 42, 0.06);
  animation: cad-card-enter 0.26s ease-out both;
}

#Crisis .cad-call-card.is-leaving {
  animation: cad-card-leave 0.24s ease-in both;
}

#Crisis .cad-call-card--critical {
  border-left-color: #c8102e;
  background: rgba(200, 16, 46, 0.055);
}

#Crisis .cad-call-priority {
  display: grid;
  place-items: center;
  height: 24px;
  border-radius: 5px;
  background: #f1f5f9;
  color: #991b1b;
  font-size: 0.58rem;
  font-weight: 950;
  line-height: 1;
}

#Crisis .cad-call-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

#Crisis .cad-call-type,
#Crisis .cad-call-meta,
#Crisis .cad-call-time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
}

#Crisis .cad-call-type {
  color: #0f172a;
  font-size: 0.62rem;
  font-weight: 900;
}

#Crisis .cad-call-meta {
  color: #64748b;
  font-size: 0.5rem;
  font-weight: 800;
}

#Crisis .cad-call-time {
  justify-self: end;
  color: #c8102e;
  font-family: "Courier New", monospace;
  font-size: 0.56rem;
  font-weight: 950;
}

#Crisis .cad-side-panel {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  min-width: 0;
  border-radius: 8px;
  padding: 8px;
}

#Crisis .cad-map {
  position: relative;
  min-height: 88px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.08) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(0deg, rgba(15, 23, 42, 0.08) 1px, transparent 1px) 0 0 / 18px 18px,
    #ffffff;
}

#Crisis .cad-road,
#Crisis .cad-zone,
#Crisis .cad-marker {
  position: absolute;
  display: block;
}

#Crisis .cad-road {
  height: 8px;
  width: 145%;
  left: -20%;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
}

#Crisis .cad-road--one {
  top: 28%;
  transform: rotate(-18deg);
}

#Crisis .cad-road--two {
  top: 62%;
  transform: rotate(16deg);
}

#Crisis .cad-road--three {
  left: 52%;
  top: -18%;
  width: 8px;
  height: 140%;
  transform: rotate(8deg);
}

#Crisis .cad-zone {
  left: 20%;
  top: 18%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(200, 16, 46, 0.45);
  background: rgba(200, 16, 46, 0.05);
}

#Crisis .cad-marker {
  left: 55%;
  top: 42%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c8102e;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 12px rgba(15, 23, 42, 0.16);
}

#Crisis .cad-units {
  display: grid;
  gap: 5px;
}

#Crisis .cad-units div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 5px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

#Crisis .cad-units span,
#Crisis .cad-units strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
}

#Crisis .cad-units span {
  color: #334155;
  font-size: 0.52rem;
  font-weight: 950;
}

#Crisis .cad-units strong {
  color: #c8102e;
  font-size: 0.48rem;
  font-weight: 950;
}

#Crisis .cad-command-log {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 7px 9px;
  border-radius: 7px;
  color: #475569;
  font-family: "Courier New", monospace;
  font-size: 0.54rem;
  font-weight: 700;
  line-height: 1.18;
}

#Crisis .cad-command-log span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#Crisis .cad-command-log span:first-child {
  color: #c8102e;
}

#Crisis .overload-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  gap: 10px;
  align-items: center;
  padding: 0 14px;
}

#Crisis .overload-column {
  display: grid;
  gap: 7px;
  min-width: 0;
}

#Crisis .overload-call {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  height: 26px;
  padding: 7px 9px 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(200, 16, 46, 0.11);
  border-left: 3px solid #c8102e;
  color: #334155;
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
  animation: overload-call-shove 2.6s ease-in-out infinite !important;
}

#Crisis .overload-call--two { animation-delay: 0.2s !important; }
#Crisis .overload-call--three { animation-delay: 0.4s !important; border-left-color: #ef4444; }
#Crisis .overload-call--four { animation-delay: 0.6s !important; }
#Crisis .overload-call--five { animation-delay: 0.8s !important; border-left-color: #991b1b; }

#Crisis .overload-routes {
  display: grid;
  gap: 8px;
}

#Crisis .overload-routes span {
  display: grid;
  place-items: center;
  height: 38px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(200, 16, 46, 0.16);
  color: #c8102e;
  font-size: 0.82rem;
  font-weight: 950;
  opacity: 0.68;
}

#Crisis .overload-terminal {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(200, 16, 46, 0.14);
  color: #991b1b;
  font-family: "Courier New", monospace;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.2;
}

#Crisis .overload-terminal span:first-child {
  color: #c8102e;
}

#Crisis .overload-monitor__stand {
  width: 78px;
  height: 34px;
  margin-top: -1px;
  background: linear-gradient(180deg, #e5e7eb, #ffffff);
  border-left: 1px solid rgba(200, 16, 46, 0.14);
  border-right: 1px solid rgba(200, 16, 46, 0.14);
  clip-path: polygon(26% 0, 74% 0, 88% 100%, 12% 100%);
}

#Crisis .overload-monitor__base {
  width: 178px;
  height: 17px;
  border-radius: 50% 50% 8px 8px;
  background: linear-gradient(180deg, #ffffff, #e5e7eb);
  border: 1px solid rgba(200, 16, 46, 0.16);
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.1);
}

@keyframes overload-screen-flicker {
  0%, 100% { filter: brightness(1); transform: translateX(0); }
  46% { filter: brightness(1.1); transform: translateX(0); }
  48% { filter: brightness(0.82); transform: translateX(-1px); }
  50% { filter: brightness(1.16); transform: translateX(1px); }
  52% { filter: brightness(0.94); transform: translateX(0); }
}

@keyframes overload-scan {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 0.55; }
  100% { transform: translateY(460%); opacity: 0; }
}

@keyframes overload-alert-pulse {
  0%, 100% { transform: scale(1); border-color: rgba(15, 23, 42, 0.14); }
  50% { transform: scale(1.018); border-color: rgba(15, 23, 42, 0.22); }
}

@keyframes overload-call-shove {
  0%, 100% { transform: translateX(0); opacity: 0.76; }
  42% { transform: translateX(15px); opacity: 1; }
  58% { transform: translateX(8px); opacity: 0.9; }
}

@keyframes cad-card-enter {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cad-card-leave {
  to { opacity: 0; transform: translateX(-18px); }
}

.static-phone-holder {
  width: 100%;
}

.static-doc-holder {
  width: 100%;
}

.static-phone.phone-shell {
  position: relative !important;
  inset: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: scale(1.05) !important;
  transform-origin: center center !important;
  pointer-events: auto !important;
  z-index: 2 !important;
  box-shadow: 0 10px 20px rgba(15,23,42,0.10), inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -1px 0 rgba(255,255,255,0.2) !important;
}

.phone-tabs-section[hidden],
#SectionFive[hidden],
#SectionSix[hidden],
#SectionSeven[hidden] {
  display: none !important;
}

.phone-tabs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.phone-tabs-stage {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 0 0 10px 10px;
  background: rgba(255, 255, 255, 0.7);
  padding: 20px 20px 12px;
}

.phone-tabs-stage::-webkit-scrollbar {
  display: none;
}

.phone-tabs-panels {
  gap: 14px !important;
}

.phone-tab-panel {
  display: grid;
  gap: 14px;
}

.phone-tab-panel[hidden] {
  display: none !important;
}

.phone-tab-panel h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.26;
  font-weight: 850;
  text-align: left;
}

.phone-tab-bar {
  display: block;
  position: relative;
  grid-row: 1;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.phone-tab-bar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  width: 48px;
  height: 43px;
  background: #ffffff;
  pointer-events: none;
}

.phone-tab-list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0;
  align-items: stretch;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  padding-right: 48px;
  box-sizing: border-box;
  grid-row: 1;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

.phone-tab.phone-tab-add {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  width: 48px;
  min-width: 48px;
  height: 42px;
  min-height: 42px;
  box-sizing: border-box;
  margin-right: 0;
  margin-left: 0;
  margin-bottom: -1px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.75);
  border-radius: 10px 10px 0 0;
  background: #ffffff;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1;
  text-align: center;
  box-shadow: -3px 0 6px rgba(15, 23, 42, 0.13);
}

.phone-tab-add::after {
  content: "suggest new safety feature";
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: min(220px, 72vw);
  padding: 8px 11px;
  border-radius: 8px;
  background: #242a33;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.phone-tab-add::before {
  content: "";
  position: absolute;
  right: 16px;
  bottom: calc(100% + 4px);
  border-style: solid;
  border-width: 8px 7px 0;
  border-color: #242a33 transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.phone-tab-add.is-suggestion-prompt {
  border-color: rgba(200, 16, 46, 0.85);
  background: linear-gradient(180deg, #ef3d4a 0%, #c8102e 100%);
  color: #ffffff;
}

.phone-tab-add.is-suggestion-prompt::after,
.phone-tab-add.is-suggestion-prompt::before {
  opacity: 1;
}

.phone-tab-add.is-suggestion-prompt::after {
  transform: translateY(0);
}

#PhoneSafety .phone-tab-add.is-suggestion-prompt {
  animation: phone-tab-suggestion-pulse 0.7s ease-out 2 !important;
}

@keyframes phone-tab-suggestion-pulse {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.13); }
}

.phone-tab-list::-webkit-scrollbar {
  display: none;
}

.phone-tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid rgba(203, 213, 225, 0.75);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: rgba(255, 255, 255, 0.55);
  color: #475569;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  margin-right: 2px;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
  transition: background 0.15s ease, color 0.15s ease;
  scroll-snap-align: start;
}

.phone-tab:hover,
.phone-tab:focus-visible {
  background: rgba(255, 255, 255, 0.88);
  color: var(--red);
  outline: none;
}

.phone-tab.is-active {
  background: linear-gradient(180deg, #ef3d4a 0%, #c8102e 100%);
  color: #ffffff;
  border-color: rgba(200, 16, 46, 0.85);
  border-bottom-color: #c8102e;
  z-index: 3;
  font-weight: 850;
}

#PhoneSafety .phone-tab.phone-tab-add.is-active,
#PhoneSafety .phone-tab.phone-tab-add[aria-selected="true"] {
  background: linear-gradient(180deg, #ef3d4a 0%, #c8102e 100%) !important;
  color: #ffffff !important;
  border-color: rgba(200, 16, 46, 0.85) !important;
  border-bottom: 1px solid #c8102e !important;
  z-index: 12;
}

.feature-suggestion-intro {
  margin: -4px 0 2px;
  color: #5f6b7a;
  font-size: 0.85rem;
  line-height: 1.45;
}

.feature-suggestion-form {
  display: grid;
  gap: 14px;
}

.feature-suggestion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-suggestion-form label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 800;
}

.feature-suggestion-form input,
.feature-suggestion-form select,
.feature-suggestion-form textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(148, 163, 184, 0.65);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2937;
  font: inherit;
  font-size: 0.8rem;
  padding: 9px 10px;
  outline: none;
}

.feature-suggestion-form textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.45;
}

.feature-suggestion-form input:focus,
.feature-suggestion-form select:focus,
.feature-suggestion-form textarea:focus {
  border-color: #c8102e;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.feature-suggestion-message {
  grid-column: 1 / -1;
}

.feature-suggestion-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.feature-suggestion-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
}

.feature-suggestion-actions button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ef3d4a 0%, #c8102e 100%);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  padding: 10px 16px;
}

.feature-suggestion-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.feature-suggestion-status {
  margin: 0;
  color: #475569;
  font-size: 0.72rem;
  line-height: 1.3;
}

.feature-suggestion-status.is-error {
  color: #b42318;
}

.feature-suggestion-status.is-success {
  color: #18734b;
}

@media (max-width: 720px) {
  .feature-suggestion-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-suggestion-message {
    grid-column: 1;
  }
}

.phone-tabs-right-col {
  container-type: inline-size;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 120px;
}

.phone-tabs-right-col .static-phone-holder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-tabs-right-col .static-phone.phone-shell {
  border-radius: 14px !important;
  overflow: hidden !important;
  transform: scale(1.13) !important;
}

.phone-tabs-right-col .static-phone.phone-shell .phone-app,
.phone-tabs-right-col .static-phone.phone-shell .phone-sms {
  border-radius: 14px !important;
}

.phone-tabs-right-col .static-phone.phone-shell .sms-bubble {
  font-size: 0.56rem !important;
  line-height: 1.35 !important;
}

.phone-tabs-right-col .static-phone.phone-shell .sms-bubble > span {
  font: inherit !important;
  color: inherit !important;
}

#PhoneSafety .contact-card--county .contact-num {
  font-size: 0.54rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

#PhoneSafety .contact-card--county .contact-expand-actions {
  display: none;
}

#PhoneSafety .contact-card--county .contact-when {
  margin-bottom: 0;
}

.phone-platform-icons {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.phone-platform-quote {
  display: block;
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  color: #c8102e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.9rem, 2.5vw, 1.25rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
  white-space: nowrap;
}

.phone-platform-icon {
  position: absolute;
  display: flex;
  place-items: center;
  align-items: center;
  justify-content: center;
  gap: clamp(3px, 0.8cqw, 5px);
  width: clamp(58px, 14cqw, 72px);
  height: clamp(28px, 7cqw, 34px);
  padding: clamp(4px, 1.2cqw, 6px);
  box-sizing: border-box;
  border-radius: clamp(9px, 2.4cqw, 12px);
  background: #c8102e;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(24, 28, 34, 0.2);
  text-decoration: none;
  cursor: pointer;
}

#PhoneSafety .phone-platform-icon {
  transform-origin: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
  pointer-events: auto !important;
}

#PhoneSafety .phone-platform-icon:hover,
#PhoneSafety a.phone-platform-icon:focus-visible {
  z-index: 8;
  transform: scale(1.07);
  box-shadow: 0 14px 28px rgba(24, 28, 34, 0.26);
}

#PhoneSafety a.phone-platform-icon:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.phone-platform-icon svg {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: 100%;
  max-width: 22px;
  overflow: visible;
}

.phone-platform-official-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.phone-platform-name {
  color: #24272c;
  font-family: Arial, sans-serif;
  font-size: clamp(0.46rem, 1.7cqw, 0.58rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

#PhoneSafety .phone-platform-icon--github {
  left: 4%;
  top: 28%;
  background: #ffffff !important;
  color: #181717 !important;
  border: 1px solid rgba(24, 28, 34, 0.18);
  box-shadow: 0 10px 22px rgba(24, 28, 34, 0.2);
  animation: none !important;
}

#PhoneSafety .phone-platform-icon--gitlab {
  right: 5%;
  top: 17%;
  background: #ffffff !important;
  color: #fc6d26 !important;
  border: 1px solid rgba(24, 28, 34, 0.18);
  box-shadow: 0 10px 22px rgba(24, 28, 34, 0.2);
  animation: none !important;
}

#PhoneSafety .phone-platform-icon--fdroid {
  right: 9%;
  bottom: 20%;
  background: #ffffff !important;
  color: #1976d2 !important;
  border: 1px solid rgba(24, 28, 34, 0.18);
  box-shadow: 0 10px 22px rgba(24, 28, 34, 0.2);
  animation: none !important;
}

@keyframes phone-platform-float-a {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-5deg); }
  50% { transform: translate3d(5px, -9px, 0) rotate(3deg); }
}

@keyframes phone-platform-float-b {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(4deg); }
  50% { transform: translate3d(-6px, -7px, 0) rotate(-4deg); }
}

@keyframes phone-platform-float-c {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(4px, -8px, 0) rotate(5deg); }
}

@media (prefers-reduced-motion: reduce) {
  #PhoneSafety .phone-platform-icon {
    animation: none !important;
  }

  #PhoneSafety .phone-platform-icon {
    transition: none !important;
  }

  #PhoneSafety .phone-platform-icon:hover,
  #PhoneSafety a.phone-platform-icon:focus-visible {
    transform: none;
  }
}

.sms-map-bubble {
  max-width: 70% !important;
  align-self: flex-start !important;
  margin-left: 6px !important;
  margin-right: 0 !important;
  background: #e63a50 !important;
  border-color: transparent !important;
  border-radius: 12px 12px 12px 0 !important;
  color: #ffffff;
  text-align: left;
}

.sms-bubble.sms-out.sms-map-bubble {
  color: #ffffff !important;
}

.sms-map-bubble::after {
  left: -6px !important;
  right: auto !important;
  bottom: 0 !important;
  background: #e63a50 !important;
  border-left: none !important;
  border-bottom: none !important;
  clip-path: polygon(100% 0, 100% 100%, 0 100%) !important;
}

.sms-map-bubble > span {
  display: inline;
  color: inherit;
  font: inherit;
}

.sms-map-bubble .mapcap-map-thumb {
  margin-top: 7px;
  border-color: rgba(255, 255, 255, 0.45);
  background: #dbeafe;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.sms-map-bubble .mapcap-change-btn {
  margin-top: 7px;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.96);
  color: #c8102e;
  font-size: inherit !important;
  line-height: inherit !important;
}

#Educate > .ai-switch-inner {
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr) !important;
}

#Educate .ai-education-visual {
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
}

#Educate .ai-education-copy {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

#Educate .ai-education-visual > .bg-patch {
  opacity: 0.045;
}

.ai-poster-quote {
  position: relative;
  z-index: 6;
  width: min(420px, 100%);
  margin: 0 0 -20px;
  color: #c8102e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 5vw, 1.35rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
  white-space: nowrap;
}

.ai-number-card-stack {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  height: clamp(380px, 42vw, 450px);
  min-height: 0;
}

.ai-number-card {
  position: absolute;
  top: 50%;
  left: 0;
  bottom: auto;
  display: block;
  width: clamp(142px, 14vw, 205px);
  height: auto;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.18);
  transform-origin: center;
}

.ai-number-card--911 {
  z-index: 4;
  left: clamp(62px, 7vw, 102px);
  transform: translateY(-50%) rotate(4deg);
}

.ai-number-card--988 {
  z-index: 5;
  left: 0;
  transform: translateY(-46%) rotate(-7deg);
}

.ai-number-card--311 {
  z-index: 3;
  left: clamp(124px, 14vw, 204px);
  transform: translateY(-53%) rotate(-3deg);
}

.ai-number-card--211 {
  z-index: 1;
  left: clamp(186px, 21vw, 306px);
  transform: translateY(-56%) rotate(6deg);
}

.ai-custom-number-card {
  overflow: visible;
}

.ai-custom-number-card-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.ai-custom-qr-trigger {
  position: absolute;
  top: 82.56%;
  left: 76.11%;
  z-index: 2;
  display: grid;
  width: 18.58%;
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  cursor: pointer;
  container-type: inline-size;
  touch-action: manipulation;
}

.ai-custom-qr-trigger:hover {
  background: #ffffff;
}

.ai-custom-qr-trigger:focus-visible {
  outline: 3px solid #0f172a;
  outline-offset: 2px;
}

.ai-custom-qr-placeholder {
  font-size: clamp(4px, 22cqw, 10px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.ai-custom-qr-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: 100%;
  image-rendering: pixelated;
}

.ai-custom-qr-placeholder[hidden],
.ai-custom-qr-canvas[hidden],
.ai-custom-phone-editor[hidden] {
  display: none;
}

.ai-custom-phone-editor {
  position: fixed;
  z-index: 2147483647;
  width: min(260px, calc(100vw - 24px));
  padding: 6px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.2);
}

.ai-custom-phone-input {
  display: block;
  width: 100%;
  height: 44px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  background: #ffffff;
  color: #0f172a;
  font: 600 16px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0;
  outline: none;
}

.ai-custom-phone-input:focus {
  border-color: #c8102e;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.14);
}

#Educate .ai-education-visual {
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.ai-poster-order-button {
  position: relative;
  z-index: 6;
  height: 2.6rem;
  margin-top: -56px;
  padding: 0 22px;
  border: 0;
  border-radius: 9999px;
  background: linear-gradient(180deg, #ef3d4a 0%, #c8102e 100%);
  color: #ffffff;
  font-family: "Quicksand", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(200, 16, 46, 0.14);
  transition: transform 50ms ease-in-out, box-shadow 0.18s ease;
}

.ai-poster-order-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(200, 16, 46, 0.2);
}

.ai-poster-order-button:active {
  transform: rotate(4deg);
}

.ai-poster-order-button:focus-visible {
  outline: 3px solid rgba(200, 16, 46, 0.25);
  outline-offset: 3px;
}

body.poster-order-open {
  overflow: hidden !important;
}

.poster-order-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #ffffff;
  color: #0f172a;
}

.poster-order-dialog::backdrop {
  background: rgba(15, 23, 42, 0.52);
}

.poster-order-confirmation {
  position: fixed;
  z-index: 2147483647;
  top: 50%;
  left: 50%;
  width: min(440px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 18px 22px;
  border: 2px solid #16a34a;
  border-radius: 6px;
  background: rgba(240, 253, 244, 0.94);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.22);
  color: #166534;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.97);
  visibility: hidden;
  backdrop-filter: blur(12px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.poster-order-confirmation.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  visibility: visible;
}

.poster-order-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
  background: #ffffff;
}

.poster-order-header {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.poster-order-heading,
.poster-order-brand {
  display: flex;
  align-items: center;
}

.poster-order-heading {
  min-width: 0;
  gap: 18px;
}

.poster-order-brand {
  flex: 0 0 auto;
  gap: 8px;
  color: #0f172a;
}

.poster-order-brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.poster-order-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.poster-order-brand-name {
  display: flex;
  flex-direction: column;
}

.poster-order-brand-name span {
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.poster-order-brand-name .poster-order-brand-emergency {
  color: #c8102e;
}

.poster-order-header h2 {
  margin: 0;
  padding-left: 18px;
  border-left: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.poster-order-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #ffffff;
  color: #0f172a;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.poster-order-close:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.poster-order-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.88rem;
  line-height: 1.45;
}

.poster-order-notice strong {
  flex: 0 0 auto;
  color: #c8102e;
  font-weight: 850;
}

.poster-order-form {
  position: relative;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #ffffff;
}

.poster-order-content {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 10px clamp(18px, 4vw, 54px) 32px;
}

.poster-order-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.poster-order-section {
  min-width: 0;
  margin: 0;
  padding: 24px 0 28px;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
}

.poster-order-section:last-child {
  border-bottom: 0;
}

.poster-order-section legend {
  margin: 0 0 16px;
  padding: 0;
  color: #0f172a;
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.25;
}

.poster-order-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(900px, 100%);
}

.poster-order-option {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(42px, auto);
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.08);
}

.poster-order-option:has(input:checked) {
  border-color: #c8102e;
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.14), 0 10px 24px rgba(15, 23, 42, 0.1);
}

.poster-order-option > input {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: #c8102e;
}

.poster-order-thumb {
  position: relative;
  display: block;
  aspect-ratio: 1055 / 1491;
  overflow: hidden;
  background: #f8fafc;
}

.poster-order-thumb > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-order-option-title {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 8px 9px;
  color: #1e293b;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.poster-order-custom-placeholder,
.poster-order-custom-canvas {
  position: absolute;
  top: 82.56%;
  left: 76.11%;
  width: 18.58%;
  aspect-ratio: 1;
  background: #ffffff;
}

.poster-order-custom-placeholder {
  display: grid;
  place-items: center;
  color: #0f172a;
  font-size: clamp(5px, 0.75vw, 9px);
  font-weight: 850;
  line-height: 1;
}

.poster-order-custom-canvas {
  height: auto;
  image-rendering: pixelated;
}

.poster-order-custom-placeholder[hidden],
.poster-order-custom-canvas[hidden],
.poster-order-download-menu[hidden] {
  display: none;
}

.poster-order-selection-error {
  min-height: 18px;
  margin: 8px 0 0;
  color: #b91c1c;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

.poster-order-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 18px;
}

.poster-order-fields label {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 800;
}

.poster-order-fields label > span {
  line-height: 1.25;
}

.poster-order-fields small {
  color: #64748b;
  font-size: inherit;
  font-weight: 650;
}

.poster-order-field-wide {
  grid-column: 1 / -1;
}

.poster-order-fields input,
.poster-order-fields select {
  width: 100%;
  height: 44px;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-left: 3px solid #c8102e;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
  font: 600 16px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0;
  outline: none;
}

.poster-order-fields input:focus,
.poster-order-fields select:focus {
  border-color: #c8102e;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.11);
}

.poster-order-address-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 13px 14px;
  border-left: 4px solid #c8102e;
  background: #f8fafc;
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.5;
}

.poster-order-address-confirm input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 2px 0 0;
  accent-color: #c8102e;
}

.poster-order-address-confirm strong {
  color: #0f172a;
}

.poster-order-actions {
  position: sticky;
  z-index: 5;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 54px);
  border-top: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.poster-order-status {
  min-width: 0;
  margin: 0;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.poster-order-status.is-error {
  color: #b91c1c;
}

.poster-order-status.is-success {
  color: #15803d;
}

.poster-order-action-buttons {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.poster-order-download-wrap {
  position: relative;
}

.poster-order-download,
.poster-order-submit {
  min-width: 126px;
  height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
  cursor: pointer;
}

.poster-order-download {
  border: 1px solid #94a3b8;
  background: #ffffff;
  color: #0f172a;
}

.poster-order-submit {
  border: 1px solid #a90d26;
  background: #c8102e;
  color: #ffffff;
}

.poster-order-download:hover {
  background: #f8fafc;
}

.poster-order-submit:hover {
  background: #ad0e28;
}

.poster-order-download:disabled,
.poster-order-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.poster-order-download-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 7;
  width: 190px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
}

.poster-order-download-menu button {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.76rem;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.poster-order-download-menu button:last-child {
  border-bottom: 0;
}

.poster-order-download-menu button:hover,
.poster-order-download-menu button:focus-visible {
  background: #f8fafc;
}

@media (max-width: 720px) {
  .poster-order-header {
    min-height: 68px;
    padding: 10px 16px;
  }

  .poster-order-close {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .poster-order-heading {
    gap: 10px;
  }

  .poster-order-brand {
    gap: 6px;
  }

  .poster-order-brand-mark {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .poster-order-brand-name span {
    font-size: 0.48rem;
  }

  .poster-order-header h2 {
    padding-left: 10px;
    font-size: 1.12rem;
  }

  .poster-order-notice {
    display: block;
    padding: 11px 16px;
    font-size: 0.78rem;
  }

  .poster-order-notice strong {
    display: block;
    margin-bottom: 2px;
  }

  .poster-order-content {
    padding: 4px 16px 26px;
  }

  .poster-order-section {
    padding: 20px 0 24px;
  }

  .poster-order-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .poster-order-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  .poster-order-field-wide {
    grid-column: auto;
  }

  .poster-order-actions {
    align-items: stretch;
    gap: 8px;
    min-height: 86px;
    padding: 10px 12px;
  }

  .poster-order-status {
    align-self: center;
    font-size: 0.7rem;
  }

  .poster-order-action-buttons {
    flex: 1 0 auto;
  }

  .poster-order-download-wrap,
  .poster-order-download,
  .poster-order-submit {
    min-width: 0;
  }

  .poster-order-download-wrap,
  .poster-order-submit {
    flex: 1;
  }

  .poster-order-download {
    width: 100%;
  }

  .poster-order-download-menu {
    right: 0;
    left: auto;
    bottom: calc(100% + 6px);
    width: min(210px, calc(100vw - 24px));
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
  }
}

.story-section .phone-sms.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  overflow: visible !important;
}

.mapping-visual {
  width: min(420px, 100%);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
}

.mapping-grid {
  position: relative;
  aspect-ratio: 1.08;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(15,23,42,0.06) 1px, transparent 1px) 0 0 / 52px 52px,
    linear-gradient(0deg, rgba(15,23,42,0.06) 1px, transparent 1px) 0 0 / 52px 52px,
    linear-gradient(135deg, #eff6ff 0%, #f8fafc 48%, #ecfeff 100%);
}

.mapping-road {
  position: absolute;
  display: block;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.28);
}

.mapping-road-a {
  left: -18%;
  top: 38%;
  width: 140%;
  height: 28px;
  transform: rotate(-16deg);
}

.mapping-road-b {
  left: 56%;
  top: -8%;
  width: 30px;
  height: 124%;
  transform: rotate(10deg);
}

.mapping-road-c {
  left: -10%;
  bottom: 18%;
  width: 128%;
  height: 20px;
  transform: rotate(22deg);
}

.mapping-tower-radius {
  position: absolute;
  left: 10%;
  top: 12%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(37, 99, 235, 0.42);
  background: rgba(59, 130, 246, 0.12);
}

.mapping-building {
  position: absolute;
  left: 48%;
  top: 44%;
  width: 96px;
  height: 132px;
  border-radius: 14px 14px 8px 8px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.54) 0 10px, transparent 10px 22px),
    linear-gradient(180deg, #334155 0%, #1e293b 100%);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.28);
}

.mapping-pin {
  position: absolute;
  left: 51%;
  top: 34%;
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  background: #dc2626;
  border: 4px solid #ffffff;
  transform: rotate(-45deg);
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.18);
}

.mapping-pin::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #ffffff;
}

.mapping-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: #0f172a;
}

.mapping-status span {
  color: var(--muted);
  font-size: 0.88rem;
}

.mapping-status strong {
  font-size: 1.15rem;
  color: #dc2626;
}

/* Paragraph scrolling is opt-in. Without this class, all text remains in normal flow. */
.paragraph-scroll-enhanced .story-section.paragraph-scroll-section {
  min-height: max(100vh, max-content) !important;
  overflow: hidden !important;
}

.paragraph-scroll-enhanced #PhoneSafety.story-section.paragraph-scroll-section {
  min-height: max(100vh, max-content) !important;
}

.paragraph-scroll-enhanced .story-section.paragraph-hold-section {
  min-height: max(100vh, max-content) !important;
  overflow: hidden !important;
}

.paragraph-scroll-enhanced #FAQ.story-section.paragraph-hold-section {
  min-height: max(100vh, max-content) !important;
}

.paragraph-scroll-enhanced .story-section.paragraph-scroll-section:not(.story-section-1),
.paragraph-scroll-enhanced .story-section.paragraph-hold-section:not(.story-section-1) {
  margin-top: 0;
}

.paragraph-scroll-enhanced .story-section.paragraph-scroll-section > .hero-sticky-shell,
.paragraph-scroll-enhanced .story-section.paragraph-scroll-section > .stats-inner,
.paragraph-scroll-enhanced .story-section.paragraph-scroll-section > .reg-void-inner,
.paragraph-scroll-enhanced .story-section.paragraph-scroll-section > .divert-inner,
.paragraph-scroll-enhanced .story-section.paragraph-scroll-section > .silent-inner,
.paragraph-scroll-enhanced .story-section.paragraph-scroll-section > .dispatch-inner,
.paragraph-scroll-enhanced .story-section.paragraph-scroll-section > .mapping-inner,
.paragraph-scroll-enhanced .story-section.paragraph-scroll-section > .phone-tabs-inner,
.paragraph-scroll-enhanced .story-section.paragraph-scroll-section > .donation-inner,
.paragraph-scroll-enhanced .story-section.paragraph-hold-section > .faq-shell {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  height: auto !important;
  min-height: 100vh !important;
  grid-template-rows: 1fr !important;
  padding: 90px 8% 280px !important;
  overflow: hidden !important;
}

.paragraph-scroll-enhanced .story-section.paragraph-hold-section > .faq-shell {
  padding: clamp(82px, 10vh, 120px) 8% 148px !important;
}

.paragraph-scroll-enhanced #FAQ.paragraph-hold-section > .faq-shell {
  padding: var(--faq-safe-top) clamp(24px, 4vw, 48px) var(--faq-safe-bottom) !important;
  overflow: hidden !important;
  scrollbar-width: none;
}

.paragraph-scroll-enhanced #FAQ.paragraph-hold-section > .faq-shell::-webkit-scrollbar {
  display: none;
}

/* Make text column children stretch to fill grid height so bottom spacing
   to the floating navigation is consistent regardless of title length.
   min-height:0 allows shrinking below content height (default auto prevents it). */
.paragraph-scroll-enhanced .story-section.paragraph-scroll-section .hero-left,
.paragraph-scroll-enhanced .story-section.paragraph-scroll-section .stats-right,
.paragraph-scroll-enhanced .story-section.paragraph-scroll-section .reg-void-left,
.paragraph-scroll-enhanced .story-section.paragraph-scroll-section .dispatch-left,
.paragraph-scroll-enhanced .story-section.paragraph-scroll-section .mapping-left,
.paragraph-scroll-enhanced .story-section.paragraph-scroll-section .phone-tabs-copy {
  align-self: stretch !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  padding-bottom: 16px !important;
}

/* scroll-copy fills the stretched column as a flex container */
.paragraph-scroll-enhanced .story-section.paragraph-scroll-section .hero-scroll-copy {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  min-height: 0 !important;
  max-height: none !important;
}

/* The first two bordered text areas include their headings and fill the
   complete text-column height on the compact card layout as well. */
.paragraph-scroll-enhanced #Crisis.story-section .hero-scroll-copy,
.paragraph-scroll-enhanced #Educate.story-section .hero-scroll-copy {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) !important;
}

/* Stage fills the available vertical space, eliminating variable spacing to
   the menu while keeping the title inside the same scrolling panel. */
.paragraph-scroll-enhanced .story-section.paragraph-scroll-section .hero-scroll-stage {
  flex: 1 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: hidden;
}

.paragraph-scroll-enhanced .story-section.paragraph-scroll-section .phone-tabs-layout {
  flex: 1 !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 0 !important;
}

.paragraph-scroll-enhanced .story-section.paragraph-scroll-section .phone-tabs-stage {
  height: 100% !important;
  overflow-y: auto !important;
  min-height: 0 !important;
  scrollbar-width: thin !important;
  scrollbar-color: var(--red) transparent !important;
  border: 1px solid rgba(203, 213, 225, 0.95) !important;
  border-radius: 0 0 10px 10px !important;
  background: rgba(255, 255, 255, 0.7) !important;
  padding: 20px 20px 12px !important;
}

.paragraph-scroll-enhanced .story-section.paragraph-scroll-section .phone-tabs-stage::-webkit-scrollbar {
  display: block !important;
  width: 8px;
}

.paragraph-scroll-enhanced #PhoneSafety .phone-tabs-panels {
  transform: none !important;
  will-change: auto !important;
}

.paragraph-scroll-enhanced .story-section.paragraph-scroll-section .phone-tab-list {
  grid-row: 1 !important;
  position: static !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain !important;
  scroll-snap-type: x proximity !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

.paragraph-scroll-enhanced .story-section .hero-scroll-doc {
  transform: none !important;
  will-change: auto;
}

.paragraph-scroll-fallback .story-section .hero-scroll-stage {
  max-height: none;
  height: auto;
  overflow: visible;
}

.paragraph-scroll-fallback .story-section .phone-tabs-stage {
  max-height: 55vh;
  overflow-y: auto;
  scrollbar-width: none;
}

.paragraph-scroll-fallback .story-section .phone-tabs-stage::-webkit-scrollbar {
  display: none;
}

.paragraph-scroll-fallback .story-section .hero-scroll-doc {
  transform: none !important;
  will-change: auto;
}

@media (max-width: 999px) {
  .story-section .hero-scroll-stage {
    max-height: none;
    height: auto;
    overflow: visible;
  }

  #Crisis .hero-scroll-stage,
  #Educate .hero-scroll-stage {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .paragraph-scroll-enhanced .story-section .hero-scroll-doc {
    transform: none !important;
    will-change: auto;
  }

  #Educate .ai-number-card {
    transition: none !important;
  }

  #Crisis .overload-monitor__screen,
  #Crisis .overload-monitor__scanline,
  #Crisis .overload-alert,
  #Crisis .overload-call {
    animation: none !important;
  }

}

@media (max-width: 900px) {
  .paragraph-scroll-enhanced #FAQ.paragraph-hold-section > .faq-shell {
    padding: var(--faq-safe-top) 5% var(--faq-safe-bottom) !important;
    overflow-y: auto !important;
  }

  .story-section {
    border-radius: 0;
  }

  .story-section > .hero-sticky-shell,
  .story-section > .stats-inner,
  .story-section > .reg-void-inner,
  .story-section > .divert-inner,
  .story-section > .silent-inner,
  .story-section > .dispatch-inner,
  .story-section > .mapping-inner,
  .story-section > .phone-tabs-inner {
    grid-template-columns: 1fr !important;
    padding: 60px 7% 216px !important;
    border-radius: 0;
    overflow: hidden;
  }

  #Crisis .hero-circles,
  .static-visual-holder,
  .reg-void-right-col,
  .dispatch-right-col,
  .mapping-right-col,
  .phone-tabs-right-col {
    position: relative;
    top: auto;
    min-height: 480px;
  }

  .phone-tabs-layout {
    grid-template-columns: 1fr;
  }

  .phone-tab-list {
    position: relative;
    top: auto;
    flex-direction: row;
    flex-wrap: nowrap;
    order: -1;
  }

  .phone-tab {
    flex: 0 0 auto;
  }

  #SectionTwo .reg-void-left {
    grid-column: 1;
  }
  #SectionTwo .reg-void-left { grid-row: 1; }

  #Crisis .routing-hub-visual {
    min-height: 420px;
  }

  .site-mark {
    top: 10px;
    left: 12px;
  }

  /* Mobile opening analysis: monitor above, scrolling copy below. Both stay
     inside the safe area between the fixed logo and bottom controls. */
  .paragraph-scroll-enhanced #Crisis.story-section.paragraph-scroll-section {
    min-height: var(--mobile-card-height, 100dvh) !important;
    margin-top: 0;
  }

  .paragraph-scroll-enhanced #Crisis.story-section.paragraph-scroll-section > .hero-sticky-shell {
    height: 100vh !important;
    min-height: 100vh !important;
    height: var(--mobile-card-height, 100dvh) !important;
    min-height: var(--mobile-card-height, 100dvh) !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, calc(30vh - 48px)) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, calc(30svh - 48px)) minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: calc(68px + env(safe-area-inset-top)) 7% calc(68px + env(safe-area-inset-bottom)) !important;
  }

  .paragraph-scroll-enhanced #Crisis.story-section.paragraph-scroll-section .hero-left {
    position: relative;
    z-index: 2;
    grid-row: 2;
    width: 100%;
    min-width: 0 !important;
    height: auto;
    padding-bottom: 0 !important;
    background: #ffffff;
  }

  #Crisis .hero-circles {
    grid-row: 1;
    height: auto;
    min-height: 0;
    align-items: flex-start;
    align-content: flex-start;
    pointer-events: none;
  }

  #Crisis .hero-circles > .bg-patch {
    inset: auto;
    top: 0;
    left: 50%;
    width: min(230px, 72vw);
    height: clamp(96px, 18svh, 132px);
    transform: translateX(-50%);
    mask-image: radial-gradient(ellipse 72% 70% at 50% 42%, black 43%, transparent 86%);
    -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 42%, black 43%, transparent 86%);
  }

  #Crisis .overload-monitor {
    transform: scale(0.4);
    transform-origin: top center;
  }

  #Crisis .hero-circles {
    padding-top: 3.2rem;
  }

  #Crisis .hero-monitor-quote {
    width: min(92vw, 340px);
    max-width: none;
    white-space: nowrap;
    line-height: 1.12;
  }

  .paragraph-scroll-enhanced #Educate.story-section.paragraph-scroll-section {
    min-height: var(--mobile-card-height, 100dvh) !important;
    margin-top: 0;
  }

  .paragraph-scroll-enhanced #Educate.story-section.paragraph-scroll-section > .reg-void-inner {
    height: 100vh !important;
    min-height: 100vh !important;
    height: var(--mobile-card-height, 100dvh) !important;
    min-height: var(--mobile-card-height, 100dvh) !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, calc(34vh - 30px)) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, calc(34svh - 30px)) minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: calc(68px + env(safe-area-inset-top)) 7% calc(68px + env(safe-area-inset-bottom)) !important;
  }

  .paragraph-scroll-enhanced #Educate.story-section.paragraph-scroll-section .reg-void-left {
    position: relative;
    z-index: 2;
    grid-column: 1;
    grid-row: 2;
    height: auto;
    min-height: 0;
    padding-top: 6px !important;
    padding-bottom: 0 !important;
  }

  #Educate .ai-switch-right-col {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    height: auto;
    min-height: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
  }

  #Educate .ai-switch-right-col > .bg-patch {
    inset: auto;
    right: auto;
    bottom: 0;
    left: 0;
    width: min(280px, 76vw);
    height: 100%;
    transform: none;
    mask-image: radial-gradient(ellipse 72% 70% at 50% 42%, black 43%, transparent 86%);
    -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 42%, black 43%, transparent 86%);
  }

  #Educate .ai-number-card-stack {
    z-index: 1;
    width: min(64vw, 284px);
    height: calc(34svh - 110px);
    min-height: 80px;
    max-height: 174px;
  }

  #Educate .ai-poster-quote {
    width: min(320px, 94vw);
    margin-bottom: 0;
    font-size: clamp(1.05rem, 5vw, 1.35rem);
    white-space: nowrap;
  }

  #Educate .ai-poster-order-button {
    height: 2.2rem;
    margin-top: 0;
    padding: 0 16px;
    font-size: 0.65rem;
  }

  #Educate .ai-number-card {
    top: 50%;
    bottom: auto;
    width: clamp(70px, 22vw, 98px);
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  }

  #Educate .ai-number-card--911 {
    left: clamp(42px, 14vw, 62px);
    transform: translateY(-50%) rotate(4deg);
  }

  #Educate .ai-number-card--988 {
    left: 0;
    transform: translateY(-46%) rotate(-7deg);
  }

  #Educate .ai-number-card--311 {
    left: clamp(84px, 28vw, 124px);
    transform: translateY(-53%) rotate(-3deg);
  }

  #Educate .ai-number-card--211 {
    left: clamp(126px, 42vw, 186px);
    transform: translateY(-56%) rotate(6deg);
  }

  #Educate .hero-scroll-item p {
    text-align: left;
    line-height: 1.65;
  }

  .paragraph-scroll-enhanced #PhoneSafety.story-section.paragraph-scroll-section {
    min-height: var(--mobile-card-height, 100dvh) !important;
    margin-top: 0;
  }

  .paragraph-scroll-enhanced #PhoneSafety.story-section.paragraph-scroll-section > .phone-tabs-inner {
    height: 100vh !important;
    min-height: 100vh !important;
    height: var(--mobile-card-height, 100dvh) !important;
    min-height: var(--mobile-card-height, 100dvh) !important;
    grid-template-rows: minmax(0, calc(30vh - 48px)) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, calc(30svh - 48px)) minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: calc(68px + env(safe-area-inset-top)) 7% calc(68px + env(safe-area-inset-bottom)) !important;
  }

  .paragraph-scroll-enhanced #PhoneSafety.story-section.paragraph-scroll-section .phone-tabs-copy {
    grid-column: 1;
    grid-row: 2;
    height: auto;
    min-height: 0;
    padding-bottom: 0 !important;
  }

  #PhoneSafety .phone-tabs-right-col {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    height: auto;
    min-height: 0;
    align-items: center;
    justify-content: center;
  }

  #PhoneSafety .phone-tabs-right-col > .bg-patch {
    inset: auto;
    top: 10%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: min(260px, 72vw);
    height: 62%;
    transform: translateX(-50%);
    mask-image: radial-gradient(ellipse 72% 70% at 50% 58%, black 43%, transparent 86%);
    -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 58%, black 43%, transparent 86%);
  }

  #PhoneSafety .phone-tabs-right-col .static-phone-holder {
    z-index: 1;
    height: 100%;
    align-items: center;
  }

  #PhoneSafety .phone-tabs-right-col .static-phone.phone-shell {
    transform: scale(var(--phone-tabs-mobile-scale, 0.2)) !important;
    transform-origin: center !important;
  }
}

/* Short portrait phones need a slightly taller visual row and a smaller
   monitor so the illustration cannot collide with the section heading. */
@media (orientation: portrait) and (max-width: 900px) and (max-height: 700px) {
  .paragraph-scroll-enhanced #Crisis.story-section.paragraph-scroll-section > .hero-sticky-shell {
    grid-template-rows: minmax(0, calc(34vh - 48px)) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, calc(34svh - 48px)) minmax(0, 1fr) !important;
  }

  #Crisis .overload-monitor {
    transform: scale(0.3);
  }
}

/* Keep the large illustrations proportional on laptops and scaled 1080p
   displays without changing the compact-landscape or portrait layouts. */
@media (orientation: landscape) and (min-width: 1101px) and (max-height: 900px) {
  #Crisis .overload-monitor {
    transform: scale(0.88);
    transform-origin: center;
  }

  #PhoneSafety .phone-tabs-right-col .static-phone.phone-shell {
    transform: scale(0.96) !important;
  }
}

@media (orientation: landscape) and (min-width: 1101px) and (max-height: 820px) {
  #Crisis .overload-monitor {
    transform: scale(0.74);
  }

  #PhoneSafety .phone-tabs-right-col .static-phone.phone-shell {
    transform: scale(0.82) !important;
  }
}

/* Phone landscape mirrors the desktop composition while retaining the
   mobile browser-height correction and compact visual scale. */
@media (orientation: landscape) and (max-width: 1100px) and (max-height: 650px) {
  .paragraph-scroll-enhanced #Crisis.story-section.paragraph-scroll-section {
    min-height: var(--mobile-card-height, 100dvh) !important;
    margin-top: 0;
  }

  .paragraph-scroll-enhanced #Crisis.story-section.paragraph-scroll-section > .hero-sticky-shell {
    height: 100vh !important;
    min-height: 100vh !important;
    height: var(--mobile-card-height, 100dvh) !important;
    min-height: var(--mobile-card-height, 100dvh) !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: center !important;
    gap: clamp(20px, 4vw, 44px) !important;
    padding: calc(64px + env(safe-area-inset-top)) 5% calc(64px + env(safe-area-inset-bottom)) !important;
  }

  .paragraph-scroll-enhanced #Crisis.story-section.paragraph-scroll-section .hero-left {
    grid-column: 1;
    grid-row: 1;
    height: auto;
    min-height: 0;
    padding-bottom: 0 !important;
  }

  #Crisis .hero-circles {
    grid-column: 2;
    grid-row: 1;
    height: 100%;
    min-height: 0;
    align-items: center;
    align-content: center;
  }

  #Crisis .hero-circles > .bg-patch {
    inset: 0 auto auto 50%;
    width: min(270px, 100%);
    height: 100%;
    transform: translateX(-50%);
  }

  #Crisis .overload-monitor {
    transform: scale(0.48);
    transform-origin: center;
  }

  .paragraph-scroll-enhanced #Educate.story-section.paragraph-scroll-section {
    min-height: var(--mobile-card-height, 100dvh) !important;
    margin-top: 0;
  }

  .paragraph-scroll-enhanced #Educate.story-section.paragraph-scroll-section > .reg-void-inner {
    height: 100vh !important;
    min-height: 100vh !important;
    height: var(--mobile-card-height, 100dvh) !important;
    min-height: var(--mobile-card-height, 100dvh) !important;
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: center !important;
    gap: clamp(20px, 4vw, 44px) !important;
    padding: calc(64px + env(safe-area-inset-top)) 5% calc(64px + env(safe-area-inset-bottom)) !important;
  }

  .paragraph-scroll-enhanced #Educate.story-section.paragraph-scroll-section .reg-void-left {
    grid-column: 2;
    grid-row: 1;
    height: auto;
    min-height: 0;
    padding-bottom: 0 !important;
  }

  #Educate .ai-switch-right-col {
    display: flex;
    justify-content: flex-start;
    grid-column: 1;
    grid-row: 1;
    height: 100%;
    min-height: 0;
    align-items: center;
    align-content: center;
    gap: 6px;
  }

  #Educate .ai-switch-right-col > .bg-patch {
    inset: 0 auto auto 0;
    width: min(270px, 100%);
    height: 100%;
    transform: none;
  }

  #Educate .ai-number-card-stack {
    flex: 1 1 auto;
    width: min(100%, clamp(252px, 29vw, 392px));
    height: calc(100% - 40px);
    min-height: 0;
  }

  #Educate .ai-poster-quote {
    width: min(310px, 100%);
    margin-bottom: 0;
    font-size: clamp(1.05rem, 5vw, 1.35rem);
    white-space: nowrap;
  }

  #Educate .ai-poster-order-button {
    height: 2.2rem;
    margin-top: -26px;
    padding: 0 16px;
    font-size: 0.65rem;
  }

  #Educate .ai-number-card {
    top: 50%;
    bottom: auto;
    width: clamp(96px, 11vw, 140px);
    border-radius: 13px;
  }

  #Educate .ai-number-card--911 {
    left: clamp(52px, 6vw, 84px);
    transform: translateY(-50%) rotate(4deg);
  }

  #Educate .ai-number-card--988 {
    left: 0;
    transform: translateY(-46%) rotate(-7deg);
  }

  #Educate .ai-number-card--311 {
    left: clamp(104px, 12vw, 168px);
    transform: translateY(-53%) rotate(-3deg);
  }

  #Educate .ai-number-card--211 {
    left: clamp(156px, 18vw, 252px);
    transform: translateY(-56%) rotate(6deg);
  }

  .paragraph-scroll-enhanced #PhoneSafety.story-section.paragraph-scroll-section {
    min-height: var(--mobile-card-height, 100dvh) !important;
    margin-top: 0;
  }

  .paragraph-scroll-enhanced #PhoneSafety.story-section.paragraph-scroll-section > .phone-tabs-inner {
    height: 100vh !important;
    min-height: 100vh !important;
    height: var(--mobile-card-height, 100dvh) !important;
    min-height: var(--mobile-card-height, 100dvh) !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: center !important;
    gap: clamp(20px, 4vw, 44px) !important;
    padding: calc(64px + env(safe-area-inset-top)) 5% calc(64px + env(safe-area-inset-bottom)) !important;
  }

  .paragraph-scroll-enhanced #PhoneSafety.story-section.paragraph-scroll-section .phone-tabs-copy {
    grid-column: 1;
    grid-row: 1;
    height: auto;
    min-height: 0;
    padding-bottom: 0 !important;
  }

  #PhoneSafety .phone-tabs-right-col {
    grid-column: 2;
    grid-row: 1;
    height: 100%;
    min-height: 0;
    align-items: center;
    justify-content: center;
  }

  #PhoneSafety .phone-tabs-right-col > .bg-patch {
    inset: 0 auto auto 50%;
    width: min(270px, 100%);
    height: 100%;
    transform: translateX(-50%);
  }

  #PhoneSafety .phone-tabs-right-col .static-phone-holder {
    height: auto;
    align-items: center;
  }

  #PhoneSafety .phone-tabs-right-col .static-phone.phone-shell {
    transform: scale(0.48) !important;
    transform-origin: center !important;
  }
}

@media (orientation: portrait) and (max-width: 900px) {
  #PhoneSafety .phone-tabs-right-col .static-phone-holder {
    display: none !important;
  }

  #PhoneSafety .phone-platform-icons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    column-gap: clamp(4px, 2vw, 10px);
    row-gap: clamp(18px, 5vw, 28px);
    padding: 0 2.5% 8%;
    box-sizing: border-box;
  }

  #PhoneSafety .phone-platform-icon {
    position: relative !important;
    inset: auto !important;
    justify-self: center;
    width: clamp(78px, 25vw, 92px);
    height: clamp(32px, 9.5vw, 38px);
    margin: 0 !important;
    padding: clamp(3px, 1vw, 5px);
    gap: clamp(3px, 0.8vw, 5px);
  }

  #PhoneSafety .phone-platform-icon svg {
    max-width: clamp(19px, 5.5vw, 24px);
  }

  #PhoneSafety .phone-platform-name {
    font-size: clamp(0.58rem, 2.5vw, 0.7rem);
  }

  #PhoneSafety .phone-platform-icon--fdroid .phone-platform-official-logo {
    width: 82%;
    height: 72%;
    max-width: 70px;
  }

  #PhoneSafety .phone-tabs-right-col > .bg-patch {
    display: block !important;
    top: 0;
    width: min(300px, 88vw);
    height: 92%;
    opacity: 0.05;
  }

  #PhoneSafety .phone-platform-quote {
    display: block;
    position: relative;
    grid-column: 1 / -1;
    grid-row: 1;
    top: auto;
    left: auto;
    justify-self: center;
    width: min(340px, 90vw);
    font-size: clamp(1.05rem, 5vw, 1.35rem);
    white-space: nowrap;
    transform: none;
  }

  #PhoneSafety .phone-platform-icon--github {
    grid-column: 1;
    grid-row: 2;
  }

  #PhoneSafety .phone-platform-icon--gitlab {
    grid-column: 2;
    grid-row: 2;
  }

  #PhoneSafety .phone-platform-icon--fdroid {
    grid-column: 3;
    grid-row: 2;
  }
}

/* Keep each side-by-side quote aligned with the top of its section heading,
   while the artwork continues to center independently in the visual column. */
@media (min-width: 901px) {
  #Crisis .hero-monitor-quote {
    top: 15px;
  }

  #PhoneSafety .phone-platform-quote {
    top: 0;
  }

  #Educate .ai-poster-quote {
    position: absolute;
    top: 15px;
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
  }
}

@media (orientation: landscape) and (max-width: 900px) and (max-height: 650px) {
  #Crisis .hero-monitor-quote {
    top: 15px;
  }

  #PhoneSafety .phone-platform-quote {
    top: 0;
  }

  #Educate .ai-poster-quote {
    top: 21px;
  }
}

@media (orientation: portrait) and (min-width: 901px) {
  #PhoneSafety .phone-platform-quote {
    top: 12.5px;
  }
}

/* Keep the whitespace between every primary content section equal to the
   established FAQ/Contact-to-Donation transition. The top inset mirrors the
   donation section; the bottom inset mirrors the FAQ/Contact section. */
:root {
  --content-section-safe-top: max(80px, calc(env(safe-area-inset-top) + 72px));
  --content-section-safe-bottom: clamp(94px, calc(10vh + 16px), 108px);
}

#Crisis > .hero-sticky-shell,
#Educate > .reg-void-inner,
#PhoneSafety > .phone-tabs-inner,
html.paragraph-scroll-enhanced #Crisis.story-section.paragraph-scroll-section > .hero-sticky-shell,
html.paragraph-scroll-enhanced #Educate.story-section.paragraph-scroll-section > .reg-void-inner,
html.paragraph-scroll-enhanced #PhoneSafety.story-section.paragraph-scroll-section > .phone-tabs-inner {
  padding-top: var(--content-section-safe-top) !important;
  padding-bottom: var(--content-section-safe-bottom) !important;
}

#FAQ {
  --faq-safe-top: var(--content-section-safe-top) !important;
  --faq-safe-bottom: var(--content-section-safe-bottom) !important;
}

@media (max-width: 900px),
  (orientation: landscape) and (max-width: 1100px) and (max-height: 650px) {
  :root {
    --content-section-safe-bottom: calc(68px + env(safe-area-inset-bottom));
  }
}

/* A short laptop can match the compact-landscape geometry while still using
   the desktop FAQ layout, so retain the desktop reference bottom inset. */
@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
  :root {
    --content-section-safe-bottom: clamp(94px, calc(10vh + 16px), 108px);
  }
}

/* === donation\flip.css === */
/* ═══════════════════════════════════════════════════════════
   DONATION SECTION — flip.css
   Clean, official, public-safety style.
   All chart values are easy to update via CSS custom properties.
   ═══════════════════════════════════════════════════════════ */

/* ── Tip Button (coin animation) ── */
.tip-button {
  background: none;
  border: 0;
  border-radius: 9999px;
  cursor: pointer;
  font-family: "Quicksand", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  height: 2.6rem;
  outline: 0;
  position: relative;
  top: 0;
  transform-origin: 0% 100%;
  transition: transform 50ms ease-in-out;
  width: 9.5rem;
  -webkit-tap-highlight-color: transparent;
}
.tip-button:active {
  transform: rotate(4deg);
}
.tip-button.clicked {
  animation: 150ms ease-in-out 1 shake;
  pointer-events: none;
}
.tip-button.clicked .tip-button__text {
  opacity: 0;
  transition: opacity 75ms linear 80ms;
}
.tip-button.clicked::before {
  height: 0.5rem;
  width: 60%;
}
.tip-button.clicked .coin {
  opacity: 1;
  transition: margin-bottom 480ms linear 80ms;
  margin-bottom: 0;
}
.tip-button.shrink-landing::before {
  transition: width 120ms ease-in;
  width: 0;
}
.tip-button.coin-landed + .donation-panel {
  animation: donatePanelIn 500ms cubic-bezier(0, 0, 0.35, 1.43) forwards;
  pointer-events: auto;
}

@keyframes donatePanelIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.tip-button.coin-landed .coin-wrapper {
  background: radial-gradient(circle at 35% 97%, rgba(139, 105, 20, 0.4) 0.04rem, transparent 0.04rem), radial-gradient(circle at 45% 92%, rgba(139, 105, 20, 0.4) 0.04rem, transparent 0.02rem), radial-gradient(circle at 55% 98%, rgba(139, 105, 20, 0.4) 0.04rem, transparent 0.04rem), radial-gradient(circle at 65% 96%, rgba(139, 105, 20, 0.4) 0.06rem, transparent 0.06rem);
  background-position: center bottom;
  background-size: 100%;
  bottom: -1rem;
  opacity: 0;
  transform: scale(2) translateY(-10px);
}
.tip-button__text {
  color: #fff;
  opacity: 1;
  position: relative;
  transition: opacity 100ms linear 200ms;
  z-index: 3;
}
.tip-button::before {
  background: linear-gradient(180deg, #ef3d4a 0%, #c8102e 100%);
  border-radius: 9999px;
  bottom: 0;
  content: "";
  display: block;
  height: 100%;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  transition: height 160ms ease-in-out 180ms, width 160ms ease-in-out 120ms;
  width: 100%;
  z-index: 2;
  box-shadow: 0 8px 18px rgba(200,16,46,0.14);
}
.tip-button::after {
  content: "";
}

/* ── Coin ── */
.coin-wrapper {
  background: none;
  bottom: 0;
  height: 18rem;
  left: 0;
  opacity: 1;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  transform: none;
  transform-origin: 50% 100%;
  transition: opacity 120ms linear 60ms, transform 180ms ease-out;
  width: 100%;
}

.coin {
  opacity: 0;
  --front-y-multiplier: 0;
  --back-y-multiplier: 0;
  --coin-y-multiplier: 0;
  --coin-x-multiplier: 0;
  --coin-scale-multiplier: 0;
  --coin-rotation-multiplier: 0;
  --shine-opacity-multiplier: 0.4;
  --shine-bg-multiplier: 50%;
  bottom: calc(var(--coin-y-multiplier) * 1rem - 3.5rem);
  height: 3.5rem;
  margin-bottom: 3.05rem;
  position: absolute;
  right: calc(var(--coin-x-multiplier) * 34% + 16%);
  transform: translateX(50%) scale(calc(0.4 + var(--coin-scale-multiplier))) rotate(calc(var(--coin-rotation-multiplier) * -1deg));
  transition: opacity 100ms linear 200ms;
  width: 3.5rem;
  z-index: 3;
}
.coin__front, .coin__middle, .coin__back, .coin::before, .coin__front::after, .coin__back::after {
  border-radius: 50%;
  box-sizing: border-box;
  height: 100%;
  left: 0;
  position: absolute;
  width: 100%;
  z-index: 3;
}
.coin__front {
  background: radial-gradient(circle at 50% 50%, transparent 50%, rgba(139, 105, 20, 0.4) 54%, #F0D060 54%), linear-gradient(210deg, #C5A028 32%, transparent 32%), linear-gradient(150deg, #C5A028 32%, transparent 32%), linear-gradient(to right, #C5A028 22%, transparent 22%, transparent 78%, #C5A028 78%), linear-gradient(to bottom, #FFF8DC 44%, transparent 44%, transparent 65%, #FFF8DC 65%, #FFF8DC 71%, #C5A028 71%), linear-gradient(to right, transparent 28%, #FFF8DC 28%, #FFF8DC 34%, #C5A028 34%, #C5A028 40%, #FFF8DC 40%, #FFF8DC 47%, #C5A028 47%, #C5A028 53%, #FFF8DC 53%, #FFF8DC 60%, #C5A028 60%, #C5A028 66%, #FFF8DC 66%, #FFF8DC 72%, transparent 72%);
  background-color: #C5A028;
  background-size: 100% 100%;
  transform: translateY(calc(var(--front-y-multiplier) * 0.3181818182rem / 2)) scaleY(var(--front-scale-multiplier));
}
.coin__front::after {
  background: rgba(0, 0, 0, 0.2);
  content: "";
  opacity: var(--front-y-multiplier);
}
.coin__middle {
  background: #8B6914;
  transform: translateY(calc(var(--middle-y-multiplier) * 0.3181818182rem / 2)) scaleY(var(--middle-scale-multiplier));
}
.coin__back {
  background: radial-gradient(circle at 50% 50%, transparent 50%, rgba(139, 105, 20, 0.4) 54%, #F0D060 54%), linear-gradient(210deg, #C5A028 32%, transparent 32%), linear-gradient(150deg, #C5A028 32%, transparent 32%), linear-gradient(to right, #C5A028 22%, transparent 22%, transparent 78%, #C5A028 78%), linear-gradient(to bottom, #FFF8DC 44%, transparent 44%, transparent 65%, #FFF8DC 65%, #FFF8DC 71%, #C5A028 71%), linear-gradient(to right, transparent 28%, #FFF8DC 28%, #FFF8DC 34%, #C5A028 34%, #C5A028 40%, #FFF8DC 40%, #FFF8DC 47%, #C5A028 47%, #C5A028 53%, #FFF8DC 53%, #FFF8DC 60%, #C5A028 60%, #C5A028 66%, #FFF8DC 66%, #FFF8DC 72%, transparent 72%);
  background-color: #C5A028;
  background-size: 100% 100%;
  transform: translateY(calc(var(--back-y-multiplier) * 0.3181818182rem / 2)) scaleY(var(--back-scale-multiplier));
}
.coin__back::after {
  background: rgba(0, 0, 0, 0.2);
  content: "";
  opacity: var(--back-y-multiplier);
}
.coin::before {
  background: radial-gradient(circle at 25% 65%, transparent 50%, rgba(255, 255, 255, 0.9) 90%), linear-gradient(55deg, transparent calc(var(--shine-bg-multiplier) + 0%), #e9f4ff calc(var(--shine-bg-multiplier) + 0%), transparent calc(var(--shine-bg-multiplier) + 50%));
  content: "";
  opacity: var(--shine-opacity-multiplier);
  transform: translateY(calc(var(--middle-y-multiplier) * 0.3181818182rem / -2)) scaleY(var(--middle-scale-multiplier)) rotate(calc(var(--coin-rotation-multiplier) * 1deg));
  z-index: 10;
}
.coin::after {
  background: #8B6914;
  content: "";
  height: 0.3181818182rem;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 2;
}

/* ══ COIN YELLOW COLOR PALETTE ══
   Dark gold:   #8B6914
   Medium gold: #C5A028
   Light gold:  #F0D060
   Cream:       #FFF8DC
*/

@keyframes shake {
  0% {
    transform: rotate(4deg);
  }
  66% {
    transform: rotate(-4deg);
  }
  100% {
    transform: rotate();
  }
}

/* ═══════════════════════════════════════════════════════════
   SECTION LAYOUT
   ═══════════════════════════════════════════════════════════ */

#Donate {
  --donation-safe-top: max(80px, calc(env(safe-area-inset-top) + 72px));
  --donation-safe-bottom: max(calc(var(--donate-control-bottom, 52px) + 60px), calc(env(safe-area-inset-bottom) + var(--donate-control-bottom, 52px) + 60px));
  --donation-mission: #c8102e;
  --donation-operations: #ff7a00;
  background: #fff !important;
  min-height: 100vh !important;
  -webkit-font-smoothing: antialiased;
}

/* Keep FAQ in normal snapped flow before the final donation panel. */
#FAQ.story-section {
  margin-top: 0 !important;
}

/* Override static-layout.css two-column grid & sticky rules.
   flip.css loads AFTER static-layout.css; #Donate ID
   gives higher specificity than class-only selectors. */
#Donate .donation-inner {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: var(--donation-safe-top) clamp(24px, 4vw, 48px) var(--donation-safe-bottom) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: clamp(12px, 2vh, 20px) !important;
  justify-content: flex-start !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  overflow: clip !important;
  scrollbar-width: none;
  /* Reset grid/sticky overrides from static-layout */
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  align-items: stretch !important;
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  width: 100% !important;
  background: transparent !important;
  z-index: auto !important;
}
#Donate .donation-inner::-webkit-scrollbar {
  display: none;
}

/* ── Scrollable content area between the logo and the donate button ── */
#Donate .hero-scroll-stage {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y !important;
  border: 1px solid rgba(203, 213, 225, 0.78) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12) !important;
  padding: 18px 18px 24px !important;
  transition: box-shadow 0.3s ease;
}
#Donate .hero-scroll-stage:hover {
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
}
#Donate .hero-scroll-stage::-webkit-scrollbar {
  width: 8px;
}
#Donate .hero-scroll-stage::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #cbd5e1;
  background-clip: padding-box;
}

/* Budget card inside the scrollable stage keeps its white background
   but drops its own border, shadow, and internal scroll */
#Donate .donation-cost-window--budget {
  overflow: visible !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* The paragraph-scroll JS adds padding-bottom:60vh to all .hero-scroll-doc
   elements to create scroll-room for the parallax effect.  The donate
   section does not need that extra space — kill it here. */
#Donate .hero-scroll-doc {
  padding-bottom: 0 !important;
}

/* Donation chart cards fill the scrollable stage so the budget card
   stretches with it and there is no dead space below the content */
#Donate .donation-chart-cards {
  flex: 1 1 auto;
  min-height: 0;
  grid-template-rows: 1fr;
}

.closing-section-stack {
  display: contents;
}

/* In paragraph-scroll-enhanced mode, keep closing sections in normal snapped flow. */
.paragraph-scroll-enhanced #Donate.story-section.paragraph-scroll-section {
  min-height: max(100vh, max-content) !important;
  margin-top: 0 !important;
  overflow: hidden !important;
  overflow: clip !important;
}
.paragraph-scroll-enhanced #Donate.story-section.paragraph-scroll-section > .donation-inner {
  position: relative !important;
  inset: 0 auto auto 0 !important;
  top: auto !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  overflow: clip !important;
  padding: var(--donation-safe-top) clamp(24px, 4vw, 48px) var(--donation-safe-bottom) !important;
  max-width: 1200px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: clamp(18px, 3vh, 32px) !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
}

.paragraph-scroll-enhanced #FAQ.story-section.paragraph-hold-section {
  min-height: max(100vh, max-content) !important;
  margin-top: 0 !important;
  overflow: hidden !important;
}

.paragraph-scroll-enhanced #FAQ.story-section.paragraph-hold-section > .faq-shell {
  position: relative !important;
  inset: 0 auto auto 0 !important;
  top: auto !important;
  height: 100vh !important;
  min-height: 100vh !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: var(--faq-safe-top) clamp(24px, 4vw, 48px) var(--faq-safe-bottom) !important;
  overflow: hidden !important;
}

/* Contact Us — slides over FAQ, then Donate slides over Contact */
.paragraph-scroll-enhanced #Contact.story-section.paragraph-hold-section {
  min-height: max(100vh, max-content) !important;
  margin-top: 0 !important;
  overflow: hidden !important;
}

.paragraph-scroll-enhanced #Contact.story-section.paragraph-hold-section > .faq-shell {
  position: relative !important;
  inset: 0 auto auto 0 !important;
  top: auto !important;
  height: 100vh !important;
  min-height: 100vh !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: var(--faq-safe-top) clamp(24px, 4vw, 48px) var(--faq-safe-bottom) !important;
  overflow: hidden !important;
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */

.donation-hero {
  position: absolute;
  width: 0;
  height: 0;
  overflow: visible;
}

.donation-hero .hero-scroll-kicker {
  color: #c8102e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.donation-hero .hero-scroll-title {
  color: #0f172a;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0 0 6px;
  max-width: none;
  text-align: center;
}

.donation-hero-sub {
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0 0 8px;
  text-align: center;
}

.donation-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.donation-hero-actions .donation-button-area {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: visible !important;
}

.donation-hero-actions .tip-button {
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.donation-tax-note {
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.4;
  max-width: 560px;
  margin: 0;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   SECTION TITLES & FOOTNOTES
   ═══════════════════════════════════════════════════════════ */

.donation-section-title {
  color: #0f172a;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  text-align: center;
}

.donation-footnote {
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: center;
  margin: 24px 0 0;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.donation-chart-block {
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   CHART CARDS — Stacked & tilted from one vanishing point
   ═══════════════════════════════════════════════════════════ */

.donation-chart-cards {
  width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr;
  gap: 24px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}

.paragraph-scroll-enhanced #Donate .donation-chart-cards {
  transform: none;
}

.donation-legal-footer {
  position: absolute;
  right: clamp(24px, 4vw, 48px);
  bottom: max(8px, env(safe-area-inset-bottom));
  left: clamp(24px, 4vw, 48px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: auto;
  flex: 0 0 auto;
}

.donation-legal-footer p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.54rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.donation-legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.donation-legal-links a {
  display: inline;
  color: #64748b;
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.donation-legal-links a:hover {
  color: var(--red);
}

.donation-legal-links a:focus-visible {
  outline: 2px solid rgba(200, 16, 46, 0.38);
  outline-offset: 2px;
}

.donation-cost-window {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  color: #0f172a;
  transition: box-shadow 0.3s ease;
}

.donation-cost-window:hover {
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
}

/* ── Budget card ── */
.donation-cost-window--budget {
  align-self: stretch;
  height: auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  padding: 0 18px;
}

.donation-cost-window--budget::-webkit-scrollbar,
.donation-panel.is-section-panel::-webkit-scrollbar {
  width: 8px;
}

.donation-cost-window--budget::-webkit-scrollbar-thumb,
.donation-panel.is-section-panel::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #cbd5e1;
  background-clip: padding-box;
}

.donation-cost-window--budget.is-collapsing {
  pointer-events: none;
  will-change: transform, opacity;
}

/* ── Transparency card ── */
.donation-window-chrome {
  display: none;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.donation-window-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.18);
}

.donation-window-chrome span:nth-child(2) {
  background: #f59e0b;
}

.donation-window-chrome span:nth-child(3) {
  background: #10b981;
}

.donation-window-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0 8px;
}

.donation-window-head span {
  min-width: 0;
  color: #0f172a;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

.donation-window-head strong {
  flex-shrink: 0;
  color: #0f172a;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 900;
  line-height: 1;
}

/* Card body padding */
.donation-cost-window .donation-donut-group,
.donation-cost-window .donation-hbar-group {
  padding: 8px 18px 18px;
}

.donation-cost-window .donation-budget-desc {
  padding: 0 18px;
  text-align: left;
  max-width: none;
  margin: 0 0 10px;
}

.donation-cost-window .donation-budget-chart {
  padding: 8px 0 0;
  margin-top: 10px;
}

.donation-budget-summary {
  color: #475569;
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.55;
  margin: 18px 0 0;
  padding: 0 0 18px;
  max-width: none;
}

.donation-cost-window .donation-budget-visual {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 8px 0 0;
}

.donation-budget-visual .donation-donut-group,
.donation-budget-visual .donation-budget-chart {
  padding: 0;
  margin-top: 0;
}

.donation-budget-visual .donation-donut-chart {
  width: clamp(150px, 16vw, 200px);
  height: clamp(150px, 16vw, 200px);
}

.donation-cost-window .donation-footnote {
  padding: 0 18px 18px;
  margin: 12px 0 0;
  text-align: left;
  max-width: none;
}

/* Desktop placement keeps transparency beside the consolidated budget card. */

/* ═══════════════════════════════════════════════════════════
   DONUT CHART — Budget Allocation
   ═══════════════════════════════════════════════════════════ */

.donation-donut-group {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
  justify-content: center;
  flex-wrap: nowrap;
}

.donation-donut-chart {
  width: clamp(180px, 28vw, 220px);
  height: clamp(180px, 28vw, 220px);
  flex-shrink: 0;
  position: relative;
}

.donation-donut-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 4px 7px rgba(15, 23, 42, 0.1));
}

.donation-donut-segment {
  stroke: none;
  pointer-events: none;
  transform: translate(0, 0);
  transform-box: view-box;
  transform-origin: 50% 50%;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), filter 260ms ease;
}

.donation-donut-segment.is-hovered,
.donation-donut-segment.is-selected {
  transform: translate(var(--segment-x), var(--segment-y));
  filter: drop-shadow(0 3px 3px rgba(15, 23, 42, 0.2));
}

.donation-donut-hit {
  fill: #000;
  fill-opacity: 0.001;
  stroke: none;
  cursor: pointer;
  pointer-events: visiblePainted;
  outline: none;
}

.donation-donut-segment--mission {
  --segment-x: 2px;
  --segment-y: 4px;
  fill: url(#donationRedGradient);
}

.donation-donut-segment--operations {
  --segment-x: -2px;
  --segment-y: -4px;
  fill: var(--donation-operations);
}

.donation-donut-value {
  fill: #c8102e;
  font-family: "Quicksand", sans-serif;
  font-size: 14px;
  font-weight: 900;
  dominant-baseline: middle;
  text-anchor: middle;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   BUDGET BAR CHART — This Year's Projected National Budget
   ═══════════════════════════════════════════════════════════ */

.donation-budget-desc {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 14px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.donation-budget-chart {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.donation-budget-row {
  display: grid;
  align-items: center;
  gap: 6px 10px;
}

.donation-budget-row--expandable {
  cursor: pointer;
  user-select: none;
  grid-template-columns: 16px minmax(0, 1fr) 100px;
}

.donation-budget-row--expandable:hover .donation-budget-label {
  color: var(--budget-color, #1d4ed8);
}

.donation-budget-row--expandable::before {
  content: "▸";
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--budget-color, #94a3b8);
  transition: transform 0.2s ease;
  justify-self: center;
}
.donation-budget-row--expandable[aria-expanded="true"]::before {
  transform: rotate(90deg);
}

.donation-budget-row--expandable.is-open::before {
  content: "−";
  color: var(--budget-color, #1d4ed8);
}

.donation-budget-detail {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0 14px;
  border-radius: 6px;
  background: #f8fafc;
  border: 0 solid #e2e8f0;
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 500ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 240ms ease,
              padding 420ms ease,
              margin 420ms ease,
              border-width 420ms ease;
}

.donation-budget-row--expandable.is-open .donation-budget-detail {
  margin: 2px 0 8px;
  padding: 12px 14px 18px;
  border-width: 1px;
  max-height: 1000px;
  opacity: 1;
}

.donation-budget-detail p {
  margin: 0;
}

.donation-budget-detail p + p {
  margin-top: 10px;
}

.donation-budget-row--expandable.is-peeking .donation-budget-detail {
  animation: donationBudgetDetailPeek 1800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes donationBudgetDetailPeek {
  0% {
    max-height: 0;
    margin: 0;
    padding: 0 14px;
    border-width: 0;
    opacity: 0;
  }
  30%, 44% {
    max-height: 48px;
    margin: 2px 0 8px;
    padding: 8px 14px;
    border-width: 1px;
    opacity: 0.72;
  }
  100% {
    max-height: 0;
    margin: 0;
    padding: 0 14px;
    border-width: 0;
    opacity: 0;
  }
}

.donation-budget-row--total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 2px solid #e2e8f0;
}

.donation-budget-row--total .donation-budget-label,
.donation-budget-row--total .donation-budget-value {
  font-weight: 900;
  color: #0f172a;
  font-size: 0.9rem;
}

.donation-budget-label {
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 0;
  line-height: 1.3;
}

.donation-budget-value {
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

/* Full amount visible by default; abbreviated version hidden */
.donation-budget-value .donation-value-full { display: inline; }
.donation-budget-value .donation-value-short { display: none; }

.donation-budget-bar {
  grid-column: 1 / -1;
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.donation-budget-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  width: calc(var(--budget-amount) / var(--budget-total) * 100%);
  background: var(--budget-fill, var(--budget-color, #1d4ed8));
  transform-origin: left center;
}

html.js .donation-cost-window--budget:not(.budget-bars-entered) .donation-budget-bar i {
  transform: scaleX(0);
}

.donation-cost-window--budget.budget-bars-entered .donation-budget-bar i {
  animation: donationBudgetBarFill 850ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.donation-cost-window--budget.budget-bars-entered .donation-budget-row:nth-child(2) .donation-budget-bar i {
  animation-delay: 70ms;
}

@keyframes donationBudgetBarFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  html.js .donation-cost-window--budget .donation-budget-bar i {
    animation: none;
    transform: scaleX(1);
  }
}

.donation-budget-row--total .donation-budget-bar i {
  background: #0f172a;
}

@media (max-width: 700px) {
  .donation-cost-window .donation-budget-visual {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ═══════════════════════════════════════════════════════════
   HORIZONTAL BAR — Mission-Focused Allocation
   ═══════════════════════════════════════════════════════════ */

.donation-hbar-group {
  display: grid;
  gap: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.donation-hbar {
  display: grid;
  grid-template-columns: 180px 1fr 48px;
  gap: 12px;
  align-items: center;
}

.donation-hbar-label {
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}

.donation-hbar-track {
  display: block;
  height: 22px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.donation-hbar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  width: var(--hbar-pct);
  background: var(--hbar-color);
  transition: width 0.6s ease;
}

.donation-hbar-pct {
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 900;
}

@media (max-width: 1100px) {
  .donation-cost-window--budget .donation-donut-group {
    flex-direction: column;
    gap: 18px;
  }

  .donation-cost-window--budget .donation-donut-chart {
    width: 170px;
    height: 170px;
  }

}

/* ═══════════════════════════════════════════════════════════
   DONATION PANEL (coin reveal)
   ═══════════════════════════════════════════════════════════ */

.donation-panel {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  transform: scale(0);
  transform-origin: var(--donation-panel-origin-x, 50%) var(--donation-panel-origin-y, 50%);
  opacity: 0;
  pointer-events: none;
  z-index: 2147483602;
  width: min(90vw, 420px);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  padding: 28px 26px 24px;
  overflow: visible;
}

.donation-panel.is-section-panel {
  inset: auto;
  left: 50%;
  translate: -50% 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.donation-panel-body {
  display: grid;
  gap: 18px;
}

.paypal-donate-trigger {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}

.donation-panel-title {
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 900;
  margin: 0;
  text-align: center;
}

.donation-field {
  display: grid;
  gap: 6px;
}

.donation-label {
  color: #475569;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.donation-amount-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.donation-currency {
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 900;
}

.donation-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.donation-input:focus {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

/* ── Amount quick‑select buttons ── */
.donation-amount-btns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.donation-amount-btn {
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease,
              box-shadow 160ms ease;
}

.donation-amount-btn:hover,
.donation-amount-btn:focus-visible {
  border-color: #c8102e;
  color: #c8102e;
  outline: none;
}

.donation-amount-btn.is-active {
  border-color: #c8102e;
  background: linear-gradient(180deg, #ef3d4a 0%, #c8102e 100%);
  color: #fff;
  box-shadow: 0 5px 12px rgba(200, 16, 46, 0.16);
}

.donation-hint {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0;
}

.donation-dedicate-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.donation-submit {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #ef3d4a 0%, #c8102e 100%);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.donation-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(200, 16, 46, 0.24);
}
.donation-submit:active {
  transform: translateY(0);
}

.donation-exit-dialog {
  width: min(92vw, 560px);
  max-width: 560px;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: #0f172a;
  background: transparent;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.donation-exit-dialog::backdrop {
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
}

.donation-exit-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 18px;
  background: #fff;
}

.donation-exit-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #64748b;
  background: #f8fafc;
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
}

.donation-exit-close:hover,
.donation-exit-close:focus-visible {
  color: #c8102e;
  background: #fef2f2;
}

.donation-exit-eyebrow {
  margin: 0;
  color: #c8102e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.donation-exit-dialog h2 {
  margin: 0;
  padding-right: 32px;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  line-height: 1.15;
}

#donationExitDescription {
  display: grid;
  gap: 10px;
  color: #475569;
  font-size: 0.91rem;
  line-height: 1.55;
}

#donationExitDescription p,
.donation-exit-links {
  margin: 0;
}

.donation-exit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.donation-exit-cancel,
.donation-exit-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.donation-exit-cancel {
  border: 1px solid #cbd5e1;
  color: #334155;
  background: #fff;
}

.donation-exit-continue {
  border: 1px solid #c8102e;
  color: #fff;
  background: linear-gradient(180deg, #ef3d4a 0%, #c8102e 100%);
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.2);
}

.donation-exit-cancel:hover,
.donation-exit-cancel:focus-visible {
  border-color: #94a3b8;
  background: #f8fafc;
}

.donation-exit-continue:hover,
.donation-exit-continue:focus-visible {
  background: #a70d27;
}

.donation-exit-links {
  color: #64748b;
  font-size: 0.76rem;
  text-align: center;
}

.donation-exit-links a {
  color: #475569;
}

@media (max-width: 520px) {
  .donation-exit-card {
    padding: 24px 20px 20px;
  }

  .donation-exit-actions {
    flex-direction: column-reverse;
  }

  .donation-exit-cancel,
  .donation-exit-continue {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════
   CUSTOM SELECT
   ═══════════════════════════════════════════════════════════ */

.custom-select {
  position: relative;
  min-width: 0;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.custom-select-chevron {
  width: 8px;
  height: 5px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.custom-select.open .custom-select-chevron {
  transform: rotate(180deg);
}

.custom-select-dropdown {
  position: absolute;
  inset: calc(100% + 4px) 0 auto 0;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  z-index: 100;
  display: none;
  scrollbar-width: none;
}
.custom-select-dropdown::-webkit-scrollbar {
  display: none;
}
.custom-select.open .custom-select-dropdown {
  display: block;
}

.custom-select-option {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: none;
  background: none;
  color: #334155;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s ease;
}
.custom-select-option:hover,
.custom-select-option.selected {
  background: #eff6ff;
  color: #1d4ed8;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .paragraph-scroll-enhanced #FAQ.story-section.paragraph-hold-section > .faq-shell {
    padding-right: 5% !important;
    padding-left: 5% !important;
  }

  .paragraph-scroll-enhanced #Contact.story-section.paragraph-hold-section > .faq-shell {
    padding-right: 5% !important;
    padding-left: 5% !important;
  }

  #Donate .donation-inner {
    gap: 44px !important;
  }

  .donation-chart-cards {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    perspective: none;
  }

  .donation-cost-window {
    position: relative;
    inset: auto;
    width: 100% !important;
    transform: none;
  }

  .donation-donut-group {
    flex-direction: column;
    align-items: center;
  }

  .donation-donut-chart {
    width: 170px;
    height: 170px;
  }

  .donation-hbar {
    grid-template-columns: 120px 1fr 40px;
    gap: 8px;
  }

  .donation-hbar-label {
    font-size: 0.74rem;
  }
}

@media (max-width: 620px) {
  .paragraph-scroll-enhanced #FAQ.story-section.paragraph-hold-section > .faq-shell {
    padding-right: 4% !important;
    padding-left: 4% !important;
  }

  .paragraph-scroll-enhanced #Contact.story-section.paragraph-hold-section > .faq-shell {
    padding-right: 4% !important;
    padding-left: 4% !important;
  }

  #Donate .donation-inner {
    gap: 36px !important;
  }

  .donation-legal-footer p {
    max-width: 32rem;
    text-align: center;
  }

  .donation-legal-footer {
    right: 4%;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 4%;
  }

  .donation-chart-cards {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr;
    gap: 12px;
    align-items: stretch;
    flex: 1 1 auto;
  }

  .donation-budget-row,
  .donation-budget-row--expandable {
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 4px 6px;
  }

  .donation-budget-label {
    font-size: 0.72rem;
    text-align: left;
  }

  .donation-budget-value {
    font-size: 0.72rem;
    text-align: right;
    white-space: nowrap;
  }

  /* On narrow screens swap full dollar amounts for abbreviated */
  .donation-budget-value .donation-value-full { display: none; }
  .donation-budget-value .donation-value-short { display: inline; }

  .donation-hbar {
    grid-template-columns: 90px 1fr 36px;
    gap: 6px;
  }

  .donation-hbar-label {
    font-size: 0.7rem;
  }

  .donation-hbar-pct {
    font-size: 0.78rem;
  }

  .donation-hero-sub {
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  .donation-hbar {
    grid-template-columns: 1fr;
    gap: 4px;
    text-align: center;
  }

  .donation-hbar-label {
    text-align: center;
    grid-column: 1 / -1;
  }

  .donation-hbar-pct {
    text-align: center;
    grid-column: 1 / -1;
  }
}

/* Portrait phones keep Contact and Donate as separate snapped sections. */
@media (orientation: portrait) and (max-width: 900px) {
  .paragraph-scroll-enhanced .closing-section-stack {
    display: contents;
    position: static;
    min-height: 0;
    margin-top: 0 !important;
    overflow: visible;
    isolation: auto;
    z-index: auto;
  }

  .paragraph-scroll-enhanced #FAQ.story-section.paragraph-hold-section {
    position: relative !important;
    top: auto !important;
    height: var(--mobile-card-height, 100dvh) !important;
    min-height: var(--mobile-card-height, 100dvh) !important;
    max-height: var(--mobile-card-height, 100dvh) !important;
    margin-top: 0 !important;
    overflow: hidden !important;
    border-radius: 0;
  }

  .paragraph-scroll-enhanced #FAQ.story-section.paragraph-hold-section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    z-index: 15 !important;
    isolation: isolate;
  }

  .paragraph-scroll-enhanced #Contact.story-section.paragraph-hold-section {
    position: relative !important;
    top: auto !important;
    height: var(--mobile-card-height, 100dvh) !important;
    min-height: var(--mobile-card-height, 100dvh) !important;
    max-height: var(--mobile-card-height, 100dvh) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    z-index: 16 !important;
    isolation: isolate;
  }

  .paragraph-scroll-enhanced #Donate.story-section.paragraph-scroll-section {
    position: relative !important;
    top: auto !important;
    height: var(--mobile-card-height, 100dvh) !important;
    min-height: var(--mobile-card-height, 100dvh) !important;
    max-height: var(--mobile-card-height, 100dvh) !important;
    margin-top: 0 !important;
    overflow: hidden !important;
    overflow: clip !important;
    background: #fff !important;
    z-index: 17 !important;
    isolation: isolate;
  }

  .paragraph-scroll-enhanced #FAQ.story-section.paragraph-hold-section > .faq-shell {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    height: var(--mobile-card-height, 100dvh) !important;
    min-height: var(--mobile-card-height, 100dvh) !important;
    max-height: var(--mobile-card-height, 100dvh) !important;
  }

  .paragraph-scroll-enhanced #Donate.story-section.paragraph-scroll-section > .donation-inner {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    height: var(--mobile-card-height, 100dvh) !important;
    min-height: var(--mobile-card-height, 100dvh) !important;
    max-height: var(--mobile-card-height, 100dvh) !important;
    overflow: hidden !important;
    overflow: clip !important;
  }

  .paragraph-scroll-enhanced #Donate.story-section.paragraph-scroll-section .hero-scroll-doc {
    transform: none !important;
  }

  .paragraph-scroll-enhanced #Contact.story-section.paragraph-hold-section > .faq-shell {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    height: var(--mobile-card-height, 100dvh) !important;
    min-height: var(--mobile-card-height, 100dvh) !important;
    max-height: var(--mobile-card-height, 100dvh) !important;
    background: #fff !important;
    z-index: 2 !important;
  }

  /* The FAQ accordion is an infinite/recycling scroller. When it is allowed
     to own touch scrolling on a phone, it never reaches an edge and the page
     cannot advance to Contact (and therefore Donate). Keep the FAQ viewport
     clipped on portrait phones and let vertical swipes pan the document. */
  .paragraph-scroll-enhanced #FAQ.story-section.paragraph-hold-section > .faq-shell {
    overflow-y: hidden !important;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
  }

  .paragraph-scroll-enhanced #FAQ .faq-accordion,
  .paragraph-scroll-enhanced #FAQ .faq-accordion.faq-scroll-unlocked {
    overflow-y: hidden !important;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
  }

  /* ── Donate section: buttons & footer positioned lower on phone ── */
  .nav-donate-mode .float-nav-donate-wrap {
    bottom: 64px !important;
  }

  .nav-donate-mode .tips-widget {
    bottom: 64px !important;
  }

  #Donate .donation-legal-footer {
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
  }

}

/* FAQ and Contact now share one section. In phone card mode, let that section
   grow so the FAQ panel appears first and the contact form follows it. */
@media (max-width: 900px), (orientation: landscape) and (max-width: 1100px) and (max-height: 650px) {
  .paragraph-scroll-enhanced #FAQ.story-section.paragraph-hold-section {
    --faq-safe-top: calc(68px + env(safe-area-inset-top));
    --faq-safe-bottom: calc(68px + env(safe-area-inset-bottom));
    height: auto !important;
    min-height: calc(var(--mobile-card-height, 100dvh) * 2) !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .paragraph-scroll-enhanced #FAQ.story-section.paragraph-hold-section > .faq-shell {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "faq"
      "contact" !important;
    grid-template-rows: var(--mobile-card-height, 100dvh) var(--mobile-card-height, 100dvh) !important;
    gap: 0 !important;
    height: auto !important;
    min-height: calc(var(--mobile-card-height, 100dvh) * 2) !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .paragraph-scroll-enhanced #FAQ .faq-list-panel {
    width: auto !important;
    height: calc(var(--mobile-card-height, 100dvh) - var(--faq-safe-top) - var(--faq-safe-bottom)) !important;
    margin: var(--faq-safe-top) 5% var(--faq-safe-bottom) !important;
  }

  .paragraph-scroll-enhanced #FAQ .faq-contact-panel {
    width: auto !important;
    height: calc(var(--mobile-card-height, 100dvh) - var(--faq-safe-top) - var(--faq-safe-bottom)) !important;
    margin: var(--faq-safe-top) 5% var(--faq-safe-bottom) !important;
  }

  .paragraph-scroll-enhanced #FAQ .faq-accordion,
  .paragraph-scroll-enhanced #FAQ .faq-accordion.faq-scroll-unlocked {
    overflow-y: auto !important;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .paragraph-scroll-enhanced #FAQ .faq-contact-form {
    height: 100% !important;
  }
}

@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
  /* Compact laptop viewports also match the landscape phone query above.
     Reset the two-card mobile geometry when a desktop pointer is present so
     FAQ/Contact occupy one viewport and Donate follows immediately. */
  .paragraph-scroll-enhanced #FAQ.story-section.paragraph-hold-section {
    --faq-safe-top: clamp(78px, 10vh, 92px);
    --faq-safe-bottom: clamp(94px, calc(10vh + 16px), 108px);
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
  }

  #FAQ > .faq-shell,
  .paragraph-scroll-enhanced #FAQ.story-section.paragraph-hold-section > .faq-shell {
    grid-template-columns: minmax(240px, 35fr) minmax(0, 65fr) !important;
    grid-template-areas: "contact faq" !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: clamp(18px, 3vw, 32px) !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    padding: var(--faq-safe-top) clamp(24px, 4vw, 48px) var(--faq-safe-bottom) !important;
    overflow: hidden !important;
  }

  #FAQ > .faq-shell > .faq-contact-panel,
  #FAQ > .faq-shell > .faq-list-panel {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  #FAQ > .faq-shell > .faq-contact-panel {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  #FAQ > .faq-shell > .faq-list-panel {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }
}
