/* One For The Roadmap — main site visual narrative (index.html, topic pages, helplist, etc.) */

:root {
  --bg: #0c1014;
  --surface: #f7f3eb;
  --surface2: #ebe5d9;
  --text: #141a21;
  --text-muted: #3d4756;
  --on-dark: #f0f3f7;
  --on-dark-muted: #b3c0d1;
  --accent: #d94a3d;
  --accent-warm: #ea7a3c;
  --accent-teal: #3db8a6;
  --accent-sky: #5ec4d4;
  --accent-gold: #e8c547;
  --accent-glow: rgba(232, 197, 71, 0.18);
  --accent-glow-teal: rgba(62, 184, 166, 0.14);
  --gold: #c9a227;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 4.25rem;
  /* Fixed bar height (logo + nav) — used for main/hero top padding and index stats offset */
  --header-total: var(--header-h);
  --tap-min: 2.75rem;
  font-size: clamp(16px, 0.35vw + 15px, 18px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 200;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

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

/* A–Z topic pages: search / #fragment targets land above the heading (see div.a2z-jump in HTML) */
.a2z-jump {
  scroll-margin-top: calc(var(--header-total) + 0.75rem);
  height: 0;
  width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
  pointer-events: none;
}

.wrap {
  width: min(1180px, 92vw);
  margin-inline: auto;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

.wrap.narrow {
  width: min(720px, 92vw);
}

@media (max-width: 639px) {
  .wrap {
    width: min(1180px, 100%);
    padding-left: max(2.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(2.25rem, env(safe-area-inset-right, 0px));
  }
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: calc(var(--header-total) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  z-index: 100;
  background: linear-gradient(
    180deg,
    rgba(16, 26, 36, 0.97) 0%,
    rgba(18, 32, 42, 0.88) 35%,
    rgba(14, 22, 32, 0.65) 65%,
    transparent 100%
  );
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(94, 196, 212, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, 92vw);
  margin-left: auto;
  margin-right: auto;
  min-height: var(--header-h);
  flex: 0 0 auto;
}

.logo {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2em;
  text-decoration: none;
  color: inherit;
  transition: filter 0.2s ease;
}

.logo__link:hover {
  filter: brightness(1.06);
}

.logo__link:focus-visible {
  outline: 2px solid var(--accent-sky);
  outline-offset: 4px;
  border-radius: 4px;
}

.logo__wordmark {
  font-size: clamp(0.72rem, 0.35vw + 0.62rem, 0.92rem);
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.logo__one {
  display: inline-block;
  font-size: 1.05em;
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.06em;
  margin-left: 0.02em;
  background: linear-gradient(
    118deg,
    #fde68a 12%,
    #f59e0b 38%,
    #ea580c 62%,
    #2dd4bf 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(45, 212, 191, 0.45))
    drop-shadow(0 2px 4px rgba(234, 88, 12, 0.35));
  position: relative;
}

@supports not (background-clip: text) {
  .logo__one {
    color: var(--accent-gold);
    background: none;
    filter: drop-shadow(0 0 8px rgba(234, 197, 71, 0.5));
  }
}

.nav-mini {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.nav-mini a {
  color: rgba(226, 237, 244, 0.88);
  text-decoration: none;
  font-size: calc(0.82rem * 1.5);
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(94, 196, 212, 0.22);
  background: rgba(255, 255, 255, 0.04);
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.nav-mini a:hover {
  color: #fff;
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.1);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2);
}

.nav-mini a[aria-current="page"] {
  color: #0f172a;
  border-color: transparent;
  background: linear-gradient(135deg, rgba(253, 230, 138, 0.95) 0%, rgba(45, 212, 191, 0.88) 100%);
  box-shadow: 0 4px 20px rgba(45, 212, 191, 0.25);
}

/* Hero */

.hero-visual {
  position: relative;
  min-height: min(88vh, 900px);
  display: grid;
  align-items: end;
  padding: calc(var(--header-total) + env(safe-area-inset-top, 0px) + 2.5rem) 0
    max(4.5rem, env(safe-area-inset-bottom, 0px));
  color: var(--on-dark);
}

@supports (height: 88svh) {
  .hero-visual {
    min-height: min(88svh, 900px);
  }
}

/* Religion sub-topic pages — shorter hero so content starts sooner */
.hero-visual.hero-visual--religion-sub {
  min-height: min(58vh, 560px);
}

@supports (height: 58svh) {
  .hero-visual.hero-visual--religion-sub {
    min-height: min(58svh, 560px);
  }
}

.hero-visual__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-visual__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-visual__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      175deg,
      rgba(8, 14, 22, 0.52) 0%,
      rgba(15, 35, 42, 0.22) 38%,
      rgba(10, 12, 18, 0.78) 100%
    ),
    radial-gradient(ellipse 75% 55% at 12% 18%, var(--accent-glow-teal) 0%, transparent 52%),
    radial-gradient(ellipse 65% 50% at 92% 22%, rgba(251, 146, 60, 0.12) 0%, transparent 48%),
    radial-gradient(ellipse 90% 58% at 50% 100%, var(--accent-glow) 0%, transparent 52%);
}

.hero-visual__inner {
  position: relative;
  z-index: 2;
  padding-bottom: 3rem;
}

.hero-visual__headline {
  margin: 0 0 1rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.9rem, 4.2vw + 0.85rem, 2.85rem);
  font-weight: 600;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #f8fafc;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
  max-width: 26ch;
}

.hero-visual__dot {
  display: inline-block;
  margin: 0 0.28em;
  color: var(--accent-sky);
  font-weight: 700;
  text-shadow: 0 0 20px rgba(94, 196, 212, 0.5);
}

.hero-visual__lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1.12rem;
  line-height: 1.7;
  color: rgba(236, 242, 248, 0.94);
  border-left: 3px solid rgba(94, 196, 212, 0.55);
  padding-left: 1.15rem;
}

.hero-visual .img-credit {
  position: absolute;
  bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
  left: max(1rem, env(safe-area-inset-left, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  z-index: 3;
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}

.hero-visual .img-credit a {
  color: rgba(255, 255, 255, 0.75);
}

/* Split sections */

.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding-top: clamp(3rem, 8vw, 5.5rem);
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
  /* Match .wrap gutters — splits are not inside .wrap, so inset the whole grid */
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

@media (max-width: 639px) {
  .split {
    padding-left: max(2.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(2.25rem, env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 879px) {
  /* Lead with imagery on small screens so the section opens visually before long copy */
  .split--flip .split__figure {
    order: -1;
  }

  .split__text {
    min-width: 0;
  }
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
  }

  .split__text {
    min-width: 0;
  }

  .split--flip .split__text {
    order: 2;
  }

  .split--flip .split__figure {
    order: 1;
  }
}

/* Kinship: text + hero image in a split, then a dedicated two-up gallery (avoids three images fighting one grid row) */
.kinship .split {
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

/* Only set vertical spacing — same element uses .wrap for horizontal gutters (padding shorthand was zeroing left/right). */
.kinship__gallery {
  padding-top: 0;
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.kinship__gallery .dual-strip {
  margin-top: 0;
  max-width: min(920px, 100%);
  margin-inline: auto;
}

.kinship__closing {
  padding-top: 0;
  padding-bottom: clamp(2.5rem, 7vw, 4.5rem);
  max-width: min(720px, 92vw);
  margin-inline: auto;
}

.split__figure {
  margin: 0;
  position: relative;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
}

.split__figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split__figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.45rem 0.65rem;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.75);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
}

.split__figure figcaption a {
  color: #fff;
}

.split__text .section-label {
  display: inline-block;
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.split__text h2 {
  margin: 0 0 1rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.65rem, 2vw + 1rem, 2.25rem);
  font-weight: 600;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.split__text p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}

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

.split__text .emphasis {
  margin-top: 1.25rem;
  padding: 1.2rem 1.35rem;
  border-left: 3px solid var(--accent);
  background: rgba(194, 75, 53, 0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
}

/* Dual imagery strip (family + planet) */

.dual-strip {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 600px) {
  .dual-strip {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
}

.dual-strip figure {
  margin: 0;
  min-width: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.dual-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.dual-strip figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.35rem 0.5rem;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, transparent);
}

.dual-strip figcaption a {
  color: #fff;
}

/* Full-bleed quote / planet band */

.band {
  position: relative;
  min-height: min(72vh, 700px);
  display: grid;
  align-items: center;
  padding: clamp(3rem, 10vw, 6rem) 0;
  color: var(--on-dark);
}

.band__media {
  position: absolute;
  inset: 0;
}

.band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.band__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 14, 20, 0.88) 0%,
    rgba(10, 14, 20, 0.55) 45%,
    rgba(10, 14, 20, 0.75) 100%
  );
}

.band__content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}

.band__content h2 {
  margin: 0 0 1rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.5rem, 2vw + 0.85rem, 2rem);
  font-weight: 600;
  font-variation-settings: "opsz" 72;
  color: #fff;
}

.band__content .emphasis-block {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--on-dark-muted);
}

.band .img-credit {
  position: absolute;
  bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
  left: max(1rem, env(safe-area-inset-left, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  z-index: 2;
  margin: 0;
  max-width: 28rem;
  margin-inline: auto;
  font-size: 0.65rem;
  text-align: center;
  line-height: 1.35;
  text-wrap: balance;
  color: rgba(255, 255, 255, 0.45);
}

.band .img-credit a {
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 639px) {
  .band {
    min-height: min(58vh, 480px);
    padding: clamp(2.25rem, 8vw, 3rem) 0 max(3.5rem, env(safe-area-inset-bottom, 0px));
  }

  @supports (height: 58svh) {
    .band {
      min-height: min(58svh, 480px);
    }
  }

}

/* Reflection card */

.reflect {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: var(--surface2);
}

.reflect .wrap {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

@media (min-width: 820px) {
  .reflect .wrap {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.reflect__visual {
  margin: 0;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

.reflect__body {
  min-width: 0;
}

.reflect__visual img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.reflect__visual figcaption {
  padding: 0.4rem 0.6rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  background: var(--surface);
}

.reflect__visual figcaption a {
  color: var(--accent);
}

.reflect__body h2 {
  margin: 0 0 1rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.55rem, 1.5vw + 1rem, 1.95rem);
  font-weight: 600;
  color: var(--text);
}

.reflect blockquote {
  margin: 0;
  padding: 0;
  border: none;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.reflect blockquote p {
  margin: 0 0 0.9rem;
}

.reflect blockquote p:last-child {
  margin-bottom: 0;
}

/* Closing / intention */

.closing {
  position: relative;
  padding: clamp(3.5rem, 10vw, 6rem) 0
    max(4.75rem, calc(2.75rem + env(safe-area-inset-bottom, 0px)));
  background: var(--bg);
  color: var(--on-dark);
  overflow: hidden;
}

.closing__bg {
  position: absolute;
  inset: 0;
  opacity: 0.45;
}

.closing__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    rgba(12, 16, 20, 0.92) 25%,
    rgba(12, 16, 20, 0.88) 100%
  );
}

.closing .wrap {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.closing h2 {
  margin: 0 0 1rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.65rem, 2vw + 1rem, 2.15rem);
  font-weight: 600;
  color: #fff;
}

.intention-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 1.85rem);
  backdrop-filter: blur(12px);
}

.intention-card p {
  margin: 0 0 1rem;
  color: var(--on-dark-muted);
  font-size: 1.05rem;
}

.intention-card p:last-child {
  margin-bottom: 0;
}

.intention-card .closing-line {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
  font-style: normal;
  color: var(--gold);
}

.closing .img-credit {
  position: absolute;
  bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
  left: max(1rem, env(safe-area-inset-left, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  z-index: 2;
  max-width: 22rem;
  margin-inline: auto;
  font-size: 0.62rem;
  text-align: center;
  line-height: 1.35;
  text-wrap: balance;
  color: rgba(255, 255, 255, 0.35);
}

.closing .img-credit a {
  color: rgba(255, 255, 255, 0.5);
}

/* Footer */

.site-footer {
  padding: 2rem 0 max(2.75rem, env(safe-area-inset-bottom, 0px));
  background: #080a0d;
  color: var(--on-dark-muted);
  text-align: center;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer__intro {
  max-width: 28rem;
}

.footer__brand {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--on-dark);
}

.footer__note {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  max-width: 26rem;
}

.footer__nav a {
  color: var(--on-dark);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.footer__nav a:hover,
.footer__nav a:focus-visible {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.footer__nav a[aria-current="page"] {
  border-color: rgba(201, 162, 46, 0.55);
  color: #fff;
}

.footer__meta {
  max-width: 24rem;
}

.footer__copyright {
  margin: 0;
  font-size: 0.8rem;
  color: var(--on-dark-muted);
}

.footer__dates {
  margin: 0.4rem 0 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(168, 180, 196, 0.9);
}

.footer__disclaimer {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.5;
  opacity: 0.82;
  max-width: 36rem;
  color: var(--on-dark-muted);
}

.footer__pix {
  margin: 0;
  font-size: 0.72rem;
  opacity: 0.75;
  max-width: 42rem;
  line-height: 1.45;
}

.footer__pix a {
  color: var(--on-dark);
}

.footer__dedication {
  margin: 0.25rem 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 500;
  font-style: italic;
  color: rgba(201, 162, 46, 0.92);
  letter-spacing: 0.01em;
}

.footer__dedication a,
.footer__dedication a:link,
.footer__dedication a:hover,
.footer__dedication a:focus,
.footer__dedication a:active {
  color: inherit;
  text-decoration-color: currentColor;
}

.footer__dedication a:visited {
  color: rgba(201, 162, 46, 0.6);
  text-decoration-color: rgba(201, 162, 46, 0.6);
}

/* Contact page (visual edition layout: dark hero + light card) */

.contact-hero {
  position: relative;
  min-height: min(44vh, 440px);
  display: grid;
  align-items: end;
  padding: calc(var(--header-total) + env(safe-area-inset-top, 0px) + 2.25rem) 0 2.75rem;
  color: var(--on-dark);
  overflow: hidden;
  background: #0f1419;
}

@supports (height: 44svh) {
  .contact-hero {
    min-height: min(44svh, 440px);
  }
}

.contact-hero__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    ellipse 90% 60% at 50% 100%,
    rgba(196, 92, 62, 0.22) 0%,
    transparent 55%
  );
  pointer-events: none;
}

.contact-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      175deg,
      rgba(8, 14, 22, 0.58) 0%,
      rgba(15, 35, 42, 0.22) 42%,
      rgba(10, 12, 18, 0.8) 100%
    ),
    radial-gradient(ellipse 75% 55% at 12% 18%, var(--accent-glow-teal) 0%, transparent 52%),
    radial-gradient(ellipse 65% 50% at 92% 22%, rgba(251, 146, 60, 0.11) 0%, transparent 48%),
    radial-gradient(ellipse 90% 58% at 50% 100%, var(--accent-glow) 0%, transparent 52%);
}

.contact-hero__inner {
  position: relative;
  z-index: 2;
}

.contact-hero__title {
  margin: 0 0 0.85rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.15rem, 5vw + 1rem, 3.35rem);
  font-weight: 700;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #f8fafc;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.42);
}

.contact-hero__intro {
  margin: 0;
  max-width: 36rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(236, 242, 248, 0.92);
  border-left: 3px solid rgba(94, 196, 212, 0.55);
  padding-left: 1.12rem;
}

.contact-panel {
  padding: clamp(2.5rem, 7vw, 4rem) 0 clamp(3rem, 9vw, 5.5rem);
  background: var(--surface);
}

.contact-panel__wrap {
  max-width: 32rem;
}

.contact-card {
  background: linear-gradient(145deg, #fdfbf7 0%, #f0ebe3 100%);
  border: 1px solid rgba(26, 31, 38, 0.1);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 4vw, 2rem);
  box-shadow: 0 20px 60px rgba(15, 20, 25, 0.08);
}

.contact-card__label {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-card__email-row {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  margin: 0 0 1rem;
  padding-bottom: 0.2rem;
}

.contact-card__email-row::-webkit-scrollbar {
  height: 4px;
}

.contact-card__email-row::-webkit-scrollbar-thumb {
  background: rgba(26, 31, 38, 0.2);
  border-radius: 4px;
}

.contact-card__email {
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(0.92rem, 2.5vw + 0.55rem, 1.22rem);
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
  line-height: 1.4;
}

.contact-card__email:hover,
.contact-card__email:focus-visible {
  text-decoration: underline;
  outline: none;
}

.contact-card__note {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.contact-card__cta {
  margin: 1.35rem 0 0;
  text-align: center;
}

.contact-helplist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0.65rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc;
  text-decoration: none;
  background: linear-gradient(155deg, #2d9f8f 0%, #238b7e 55%, #1d7370 100%);
  border: 1px solid rgba(26, 31, 38, 0.12);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 24px rgba(15, 20, 25, 0.12);
}

.contact-helplist-btn:hover,
.contact-helplist-btn:focus-visible {
  text-decoration: none;
  filter: brightness(1.06);
  outline: 2px solid rgba(94, 196, 212, 0.65);
  outline-offset: 2px;
}

.contact-helplist {
  margin: 0;
  padding: 0;
  background: transparent;
}

.contact-helplist__title {
  margin: 0 0 1rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw + 0.75rem, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  padding-top: clamp(1rem, 3vw, 1.5rem);
  border-top: 1px solid rgba(26, 31, 38, 0.12);
}

.contact-helplist--standalone .contact-helplist__title {
  border-top: none;
  padding-top: 0;
}

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

.contact-helplist__list li {
  margin: 0 0 0.5rem;
}

.contact-helplist__list li:last-child {
  margin-bottom: 0;
}

@media (min-width: 520px) {
  .contact-helplist__list {
    columns: 2;
    column-gap: clamp(1.15rem, 3vw, 1.75rem);
  }

  .contact-helplist__list li {
    break-inside: avoid;
    padding-right: 0.25rem;
  }
}

.contact-helplist__list a {
  font-size: 1.02rem;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
}

.contact-helplist__list a:hover,
.contact-helplist__list a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.a2zhelp-visual-panel {
  padding: clamp(0.65rem, 2vw, 1rem) 0 clamp(2rem, 6vw, 3.5rem);
  background: var(--surface);
}

/* Full-width topic grid; horizontal gutters come from .wrap (same as religion / A–Z topic pages). */
.a2zhelp-visual-panel .contact-panel__wrap {
  max-width: none;
}

.a2zhelp-visual-panel__title {
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw + 0.75rem, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.a2zhelp-visual-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(10rem, 100%), 1fr));
  gap: 1rem;
}

.a2zhelp-visual-grid li {
  min-width: 0;
}

@media (min-width: 640px) {
  .a2zhelp-visual-grid {
    grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
    gap: 1.15rem;
  }
}

.a2zhelp-visual-card {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 8px 28px rgba(15, 20, 25, 0.14);
  outline: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.a2zhelp-visual-card:hover,
.a2zhelp-visual-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(15, 20, 25, 0.2);
}

.a2zhelp-visual-card:focus-visible {
  outline: 2px solid rgba(94, 196, 212, 0.85);
  outline-offset: 3px;
}

.a2zhelp-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.a2zhelp-visual-card__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 2rem 0.65rem 0.65rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  background: linear-gradient(
    to top,
    rgba(12, 16, 20, 0.92) 0%,
    rgba(12, 16, 20, 0.35) 55%,
    transparent 100%
  );
}

.a2z-page {
  padding: calc(var(--header-total) + env(safe-area-inset-top, 0px) + 2rem) 0 clamp(3rem, 9vw, 5.5rem);
  background: var(--surface);
}

.a2z-page__title {
  margin: 0 0 1rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw + 1rem, 2.85rem);
  font-weight: 700;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
}

.a2z-page__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Religion hub + subpages: topic dropdown (native select = reliable on mobile) */
.religion-topic-panel {
  padding: clamp(1.25rem, 4vw, 2rem) 0 clamp(1.5rem, 4vw, 2.25rem);
  background: var(--surface2);
  border-bottom: 1px solid rgba(26, 31, 38, 0.1);
}

.religion-topic-panel--after-hero {
  margin-top: 0;
}

.religion-topic-panel__title {
  margin: 0 0 0.75rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.05rem, 1.2vw + 0.9rem, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-muted);
}

.religion-topic-panel__select-wrap {
  position: relative;
  width: 100%;
  max-width: min(36rem, 100%);
}

.religion-topic-panel__search-hint {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.religion-topic-panel__search-label,
.religion-topic-panel__select-label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.religion-topic-panel__search-wrap {
  width: 100%;
  max-width: min(36rem, 100%);
  margin-bottom: 1.15rem;
}

.religion-topic-search-input {
  display: block;
  width: 100%;
  min-height: var(--tap-min);
  padding: 0.65rem 1rem;
  font-family: inherit;
  font-size: clamp(1rem, 0.5vw + 0.95rem, 1.125rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  background-color: #fff;
  border: 2px solid rgba(26, 31, 38, 0.18);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(15, 20, 25, 0.06);
}

.religion-topic-search-input::placeholder {
  color: rgba(61, 71, 86, 0.55);
}

.religion-topic-search-input:focus {
  outline: none;
  border-color: rgba(94, 196, 212, 0.85);
  box-shadow: 0 0 0 3px rgba(94, 196, 212, 0.28);
}

.religion-topic-select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: var(--tap-min);
  padding: 0.65rem 2.75rem 0.65rem 1rem;
  font-family: inherit;
  font-size: clamp(1rem, 0.5vw + 0.95rem, 1.125rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233d4756' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.1rem auto;
  border: 2px solid rgba(26, 31, 38, 0.18);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(15, 20, 25, 0.06);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.religion-topic-select:focus {
  outline: none;
  border-color: rgba(94, 196, 212, 0.85);
  box-shadow: 0 0 0 3px rgba(94, 196, 212, 0.28);
}

.religion-subpage-hero {
  padding: clamp(2rem, 6vw, 3.25rem) 0 clamp(1rem, 3vw, 1.5rem);
  background: linear-gradient(180deg, var(--surface2) 0%, var(--surface) 100%);
}

.religion-subpage-hero h1 {
  margin: 0 0 0.65rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.75rem, 3vw + 1rem, 2.35rem);
  font-weight: 700;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.religion-subpage-hero__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.religion-subpage-article {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(2.5rem, 7vw, 4rem);
  background: var(--surface);
}

.religion-subpage-article h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.2rem, 1.5vw + 0.9rem, 1.45rem);
  font-weight: 600;
  margin: 1.75rem 0 0.65rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.religion-subpage-article h2:first-child {
  margin-top: 0;
}

.religion-subpage-article p {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: var(--text);
}

.religion-subpage-article h3 {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.25rem 0 0.35rem;
  color: var(--text);
}

.religion-subpage-article ul,
.religion-subpage-article ol {
  margin: 0 0 1rem 1.25rem;
  line-height: 1.65;
  color: var(--text);
}

.religion-subpage-article li {
  margin-bottom: 0.35rem;
}

.religion-subpage-article .table-scroll {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.religion-subpage-article table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.religion-subpage-article caption {
  font-weight: 600;
  text-align: left;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.religion-subpage-article th,
.religion-subpage-article td {
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.5rem 0.65rem;
  vertical-align: top;
}

.religion-subpage-article thead th {
  background: rgba(255, 255, 255, 0.05);
}

.mindful-guide-lead {
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
  color: var(--text);
}

/* ── Podcast featured episode ─────────────────────────────────────── */
.podcast-episode {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(2.5rem, 7vw, 4rem);
  background: var(--surface);
}

.podcast-episode__heading {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.2rem, 1.5vw + 0.9rem, 1.5rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.podcast-episode__link {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1rem;
  margin: 0 0 1rem;
}

.podcast-episode__link a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.podcast-episode__link a:hover {
  text-decoration: none;
}

.podcast-episode__desc {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

/* ── A–Z topic back ───────────────────────────────────────────────── */
.a2z-topic {
  padding: 0 0 clamp(2.5rem, 7vw, 4.5rem);
  background: var(--surface);
}

.a2z-topic__inner {
  max-width: 38rem;
  margin-inline: auto;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

@media (max-width: 639px) {
  .a2z-topic__inner {
    padding-left: max(2.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(2.25rem, env(safe-area-inset-right, 0px));
  }
}

.a2z-page + .a2z-topic {
  margin-top: -0.75rem;
}

.a2z-topic h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.3rem, 1.8vw + 0.85rem, 1.72rem);
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.a2z-topic h2:first-child {
  margin-top: 0;
}

.a2z-topic p {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: var(--text);
}

.a2z-topic ul {
  margin: 0 0 1.25rem 1.15rem;
  padding: 0;
  line-height: 1.65;
  color: var(--text);
}

.a2z-topic li {
  margin-bottom: 0.45rem;
}

.a2z-topic__callout {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid rgba(94, 196, 212, 0.55);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.a2z-topic__switch {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26, 31, 38, 0.12);
}

.a2z-topic__switch a {
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
}

.a2z-topic__switch a:hover,
.a2z-topic__switch a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.a2z-topic__back {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  font-size: 1em;
  line-height: inherit;
  color: #1d4ed8;
  text-decoration: none;
  cursor: pointer;
}

.a2z-topic__back:hover,
.a2z-topic__back:focus-visible {
  text-decoration: underline;
  outline: none;
}

.a2z-topic__switch--solo {
  margin-top: 0;
}

/* Two-sided nav row: e.g. Back on the left, related page link on the right. */
.a2z-topic__switch--split {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.updates-panel {
  padding: clamp(2rem, 6vw, 3.5rem) 0 clamp(3rem, 9vw, 5rem);
  background: var(--surface);
}

/* Gutters: parent has .wrap (same horizontal padding as religion / A–Z pages). */
.updates-panel__inner {
  max-width: 40rem;
  margin-inline: auto;
}

.updates-intro {
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(26, 31, 38, 0.12);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.updates-intro strong {
  color: var(--text);
  font-weight: 600;
}

.updates-item {
  margin: 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(26, 31, 38, 0.1);
}

.updates-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.updates-item__date {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.updates-item h2 {
  margin: 0 0 0.65rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.2rem, 1.5vw + 0.75rem, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.updates-item p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.hero-visual__lead a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.hero-visual__lead a:hover,
.hero-visual__lead a:focus-visible {
  text-decoration-thickness: 2px;
  outline: none;
}

@media (max-width: 639px) {
  .contact-hero {
    min-height: min(36vh, 380px);
    padding: calc(var(--header-total) + env(safe-area-inset-top, 0px) + 1.75rem) 0 2rem;
  }

  .contact-hero__title {
    font-size: clamp(1.85rem, 6vw + 0.85rem, 2.75rem);
  }

  .contact-hero__intro {
    font-size: 1.02rem;
  }

  .contact-card__email {
    font-size: clamp(0.78rem, 2.4vw + 0.55rem, 1rem);
  }

  :root {
    --header-h: clamp(5.75rem, 21vw + 2.35rem, 7.6rem);
  }

  .site-header .wrap {
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    width: min(1180px, 100%);
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  .logo {
    width: 100%;
    text-align: center;
  }

  .logo__link {
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 0.15em;
    font-size: calc(clamp(1.825rem, 5.5vw + 1.175rem, 2.675rem) * 1.2);
  }

  .logo__wordmark {
    font-size: 1em;
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.95;
    background: linear-gradient(
      100deg,
      #ffffff 0%,
      #fef08a 18%,
      #fdba74 38%,
      #7dd3fc 58%,
      #fef9c3 82%,
      #ffffff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 18px rgba(125, 211, 252, 0.35))
      drop-shadow(0 2px 12px rgba(251, 191, 36, 0.3));
  }

  .logo__one {
    font-size: 1.22em;
    font-weight: 800;
    background: linear-gradient(
      125deg,
      #facc15 0%,
      #fb923c 18%,
      #fb7185 40%,
      #c084fc 58%,
      #22d3ee 78%,
      #4ade80 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.55))
      drop-shadow(0 0 16px rgba(34, 211, 238, 0.45))
      drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  }

  @supports not (background-clip: text) {
    .logo__wordmark {
      color: #fff;
      background: none;
      filter: none;
    }

    .logo__one {
      color: #fbbf24;
      background: none;
    }
  }

  .nav-mini {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.34rem;
  }

  /* ~20% larger than the compact mobile nav size, for easier tapping and reading */
  .nav-mini a {
    flex: 0 1 auto;
    min-width: unset;
    min-height: 2.35rem;
    padding: 0.24rem 0.5rem;
    font-size: calc(0.6rem * 1.5 * 1.2);
    font-weight: 600;
    line-height: 1.25;
    border-width: 1px;
  }

  .index-stats__intro {
    font-size: 0.98rem;
  }
}

@media (max-width: 479px) {
  .hero-visual__headline {
    font-size: clamp(1.65rem, 5.5vw + 0.65rem, 2.85rem);
  }

  .hero-visual__lead {
    font-size: 1.02rem;
  }

  .split {
    padding-top: clamp(2.25rem, 7vw, 5.5rem);
    padding-bottom: clamp(2.25rem, 7vw, 5.5rem);
    padding-left: max(2.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(2.25rem, env(safe-area-inset-right, 0px));
  }

  .split__text p,
  .split__text .emphasis {
    font-size: 1rem;
  }

}

/* A–Z helplist password gate (a2zhelp.html — client-side only, not high-security) */

html:not(.a2zhelp-unlocked) body.a2zhelp-gate-page {
  overflow: hidden;
}

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

.a2zhelp-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1.25rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: radial-gradient(ellipse 120% 80% at 50% 120%, rgba(45, 159, 143, 0.18), transparent 55%),
    linear-gradient(180deg, #0b1016 0%, #121c26 45%, #0f1419 100%);
  color: #e8eef4;
}

html.a2zhelp-unlocked .a2zhelp-gate {
  display: none;
}

.a2zhelp-gate__panel {
  width: min(22rem, 100%);
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: var(--radius);
  background: rgba(18, 28, 38, 0.92);
  border: 1px solid rgba(94, 196, 212, 0.2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.a2zhelp-gate__brand {
  margin: 0 0 0.35rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.88);
  letter-spacing: 0.02em;
}

.a2zhelp-gate__title {
  margin: 0 0 0.75rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.35rem, 3vw + 0.9rem, 1.65rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.a2zhelp-gate__intro {
  margin: 0 0 0.6rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(200, 210, 222, 0.92);
}

.a2zhelp-gate__hint {
  margin: 0 0 1.15rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.95);
  font-style: italic;
}

.a2zhelp-gate__form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.a2zhelp-gate__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.a2zhelp-gate__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid rgba(26, 31, 38, 0.2);
  border-radius: var(--radius-sm);
  min-height: var(--tap-min, 44px);
}

.a2zhelp-gate__input:focus {
  outline: none;
  border-color: rgba(94, 196, 212, 0.85);
  box-shadow: 0 0 0 3px rgba(94, 196, 212, 0.28);
}

.a2zhelp-gate__submit {
  margin-top: 0.15rem;
  padding: 0.7rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  background: linear-gradient(135deg, rgba(253, 230, 138, 0.96) 0%, rgba(45, 212, 191, 0.92) 100%);
  border: 1px solid rgba(26, 31, 38, 0.12);
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: var(--tap-min, 44px);
}

.a2zhelp-gate__submit:hover,
.a2zhelp-gate__submit:focus-visible {
  filter: brightness(1.04);
}

.a2zhelp-gate__submit:focus-visible {
  outline: 2px solid rgba(94, 196, 212, 0.85);
  outline-offset: 2px;
}

.a2zhelp-gate__error {
  margin: 0 0 0.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fecaca;
  line-height: 1.4;
}

.a2zhelp-gate__error[hidden] {
  display: none;
}

@media (max-width: 639px) {
  .a2zhelp-gate {
    padding-left: max(2.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(2.25rem, env(safe-area-inset-right, 0px));
  }
}

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

  .nav-mini a,
  .footer__nav a {
    transition: none;
  }
}

/* Home: live page view + “viewing now” strip (index.html) — dark text on light panel (contrast on any host) */
.index-stats {
  margin-top: calc(var(--header-total) + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  background: #d8e2f0;
}

.index-stats__inner {
  padding: 0.75rem 0 0.7rem;
}

/* Build / updates nudge (home only) — same panel as visitor line */
.index-stats__intro {
  margin: 0 0 0.6rem;
  padding: 0 0 0.7rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  text-align: center;
  font-size: clamp(0.9rem, 0.2vw + 0.85rem, 1.02rem);
  line-height: 1.45;
  color: #0f172a;
  font-weight: 500;
}

.index-stats__intro a {
  color: #0f766e;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-weight: 700;
}

.index-stats__intro a:hover,
.index-stats__intro a:focus-visible {
  color: #115e59;
  text-decoration-thickness: 2px;
  outline: 2px solid rgba(15, 118, 110, 0.45);
  outline-offset: 2px;
}

.index-stats__row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #1e293b;
  text-align: center;
}

.index-stats__item strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

.index-stats__label {
  color: #334155;
  font-weight: 600;
}

.index-stats__dot {
  color: #64748b;
  user-select: none;
}

.index-stats__note {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #475569;
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.index-stats__note[hidden] {
  display: none;
}

#index-stats-explain[hidden] {
  display: none;
}

/* -------------------------------------------------------------------------- */
/* A–Z helplist: search (a2zhelp.html) — was inline; lives here for one source of truth */
/* -------------------------------------------------------------------------- */

.a2zhelp-search {
  margin: 0 auto;
  max-width: 38rem;
  position: relative;
  z-index: 40;
}

.a2zhelp-search__label {
  display: block;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.45rem;
  color: var(--text-primary, #e8edf4);
}

.a2zhelp-search__field {
  position: relative;
  overflow: visible;
}

.a2zhelp-search__field input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(13, 18, 30, 0.72);
  color: #f3f7ff;
  font-family: inherit;
  font-size: 1rem;
}

.a2zhelp-search__field input[type="search"]::placeholder {
  color: rgba(232, 237, 244, 0.45);
}

.a2zhelp-search__field input[type="search"]:focus {
  outline: 2px solid rgba(212, 175, 55, 0.55);
  outline-offset: 2px;
}

.a2zhelp-search__results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  max-height: min(18rem, 45vh);
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 16, 24, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  z-index: 20;
}

.a2zhelp-search__results li[role="option"] {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.a2zhelp-search__results li[role="option"]:last-child {
  border-bottom: none;
}

.a2zhelp-search__results li[role="option"]:hover,
.a2zhelp-search__results li[role="option"].is-active {
  background: rgba(212, 175, 55, 0.12);
}

.a2zhelp-search__hit {
  font-weight: 600;
  color: #f3f7ff;
  font-size: 0.95rem;
  line-height: 1.3;
}

.a2zhelp-search__meta {
  font-size: 0.78rem;
  color: rgba(232, 237, 244, 0.55);
}

.a2zhelp-search__empty {
  padding: 0.65rem 0.75rem;
  color: rgba(232, 237, 244, 0.65);
  font-size: 0.9rem;
}

.a2zhelp-search__hint {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: rgba(232, 237, 244, 0.65);
  line-height: 1.45;
}

/* -------------------------------------------------------------------------- */
/* Topic pages: page-specific (were inline in <head>) */
/* -------------------------------------------------------------------------- */

.money-page .split__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
}

.money-page .brand-logo-figure {
  background: #f2f2f2;
}

.money-page .brand-logo-figure img {
  aspect-ratio: auto;
  object-fit: contain;
  height: auto;
  background: #f2f2f2;
}

.money-page .brand-logo-figure figcaption {
  position: static;
  background: #f2f2f2;
  color: #273244;
}

.money-page .brand-logo-figure figcaption a {
  color: #273244;
}

@media (max-width: 700px) {
  .money-page .brand-logo-figure {
    border-radius: 14px;
  }

  .money-page .brand-logo-figure img {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .money-page .brand-logo-figure figcaption {
    font-size: 0.78rem;
    line-height: 1.35;
    padding: 0.6rem 0.75rem;
  }
}

.police-map-wrap {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  aspect-ratio: 16 / 10;
  background: rgba(16, 26, 34, 0.6);
}

.police-map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.police-data-status {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: rgba(232, 237, 244, 0.85);
}

.police-data-status--error {
  color: #f0b090;
}

.police-crime-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  line-height: 1.55;
}

.learning-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

.learning-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
  background: rgba(255, 255, 255, 0.06);
}

.learning-table th,
.learning-table td {
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.learning-table th {
  font-weight: 700;
  background: rgba(12, 16, 20, 0.65);
}

.coding-page .split__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
}

/* -------------------------------------------------------------------------- */
/* Internal maintenance: podcast link archive (root html, not in main nav) */
/* -------------------------------------------------------------------------- */

body.internal-podcast-links-page {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 1.5rem;
  line-height: 1.45;
  background: #fff;
  color: #111;
  overflow-x: auto;
}

.internal-podcast-links-page h1 {
  margin: 0 0 1rem;
}

.internal-podcast-links-page table {
  border-collapse: collapse;
  width: 100%;
}

.internal-podcast-links-page th,
.internal-podcast-links-page td {
  border: 1px solid #ccc;
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.internal-podcast-links-page th {
  background: #f2f2f2;
}

/* Inline code: allow long tokens (paths, filenames, URLs) to wrap on very
   narrow screens (e.g. 320px) instead of forcing horizontal page overflow. */
code {
  overflow-wrap: anywhere;
}

.internal-podcast-links-page code {
  word-break: break-all;
}
