/* Rekindle Hub Global
   Night and fire for the campaigns, daylight for discipleship.
   Colours come from the logo: flame orange on the night sky of the Basileia flyers,
   with the gold of the Basileia crown. */

@font-face { font-family: "Lora"; src: url("/assets/fonts/Lora-Variable.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/assets/fonts/Lora-Italic-Variable.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/Poppins-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/Poppins-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/Poppins-Medium.woff") format("woff"); font-weight: 500 700; font-display: swap; }

:root {
  --night: #13161E;
  --night-2: #1C202B;
  --night-3: #262B38;
  --night-line: rgba(255, 255, 255, 0.14);
  --ember: #E57522;
  --ember-hot: #F08A3A;
  --ember-ink: #A3470F;
  --gold: #D4AF6A;
  --gold-ink: #7E5F22;
  --day: #FCFBF9;
  --stone: #EFEBE5;
  --ink: #1C1A17;
  --ink-2: #57524B;
  --line: #DCD6CD;
  --on-night: #F4F1EC;
  --on-night-2: #B9B6B0;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 8px;
  --section: clamp(3.5rem, 7vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--day);
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.005em; text-wrap: balance; }
h3 { font-size: var(--step-1); }
ul, ol { padding: 0; margin: 0; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 46rem; margin-inline: auto; }
.center { text-align: center; }
.fine { font-size: var(--step--1); color: var(--ink-2); margin: 0.4em 0 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ember); color: var(--night); padding: 0.6rem 1rem; z-index: 100; font-weight: 500; }
.skip:focus { left: 1rem; top: 1rem; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 2.9rem; padding: 0.65rem 1.4rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 500 0.98rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-small { min-height: 2.4rem; padding: 0.45rem 1.1rem; font-size: 0.92rem; }
.btn-ember { background: var(--ember); color: #1A0E04; }
.btn-ember:hover { background: var(--ember-hot); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: var(--on-night); }
.btn-ghost:hover { border-color: var(--on-night); background: rgba(255, 255, 255, 0.06); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(127, 127, 127, 0.1); }
.btn-dark { background: var(--ink); color: var(--day); }
.btn-outline-ember { border-color: var(--ember); color: var(--ember-hot); background: transparent; }
.btn-outline-ember:hover, .btn-outline-ember[aria-current="page"] { background: rgba(229, 117, 34, 0.14); color: #FFB27A; }
.btn-dark:hover { background: #34302B; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.link-more { font-weight: 500; color: var(--ember-ink); }

/* ---------- header ---------- */
.site-header { background: var(--night); color: var(--on-night); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--night-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 4.25rem; }
.brand { margin-right: auto; }
.brand img { width: 148px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 1.35rem; }
.nav-list a, .nav-more-toggle { text-decoration: none; font: 400 0.95rem/1.2 var(--sans); color: var(--on-night-2); padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.nav-list a:hover, .nav-more-toggle:hover { color: var(--on-night); }
.nav-list a[aria-current="page"], .nav-more-toggle.is-current { color: var(--on-night); border-bottom-color: var(--ember); }
.nav-more { position: relative; }
.nav-more-toggle { background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 0.25rem; }
.nav-more-toggle .icon { transition: transform 0.15s; }
.nav-more-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-more-list { list-style: none; position: absolute; top: calc(100% + 0.9rem); left: -1rem; min-width: 15rem; padding: 0.5rem; background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); display: none; }
.nav-more.is-open .nav-more-list { display: block; }
.nav-more-list a { display: block; padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); border-bottom: 0; color: var(--on-night); }
.nav-more-list a:hover { background: var(--night-3); }
.nav-more-list a[aria-current="page"] { color: var(--ember-hot); }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.join-mobile { display: none; }
.menu-toggle { display: none; }

@media (max-width: 1060px) {
  .join-mobile { display: inline-flex; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.6rem; background: none; border: 1px solid var(--night-line);
    color: var(--on-night); border-radius: 999px; padding: 0.45rem 0.9rem; font: 500 0.92rem var(--sans); cursor: pointer;
  }
  .menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform 0.2s; }
  .menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
  .menu-bars::before { top: -5px; } .menu-bars::after { top: 5px; }
  .menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-5px) rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 4.25rem); overflow-y: auto;
    background: var(--night); border-bottom: 1px solid var(--night-line);
    flex-direction: column; align-items: stretch; gap: 1.25rem; padding: 0.5rem var(--gutter) 1.75rem;
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { display: block; padding: 0.85rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--night-line); }
  .nav-list a[aria-current="page"] { border-bottom-color: var(--night-line); color: var(--ember-hot); }
  .nav-more-toggle { display: none; }
  .nav-more-list { display: block; position: static; min-width: 0; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav-more-list a { padding: 0.85rem 0; border-radius: 0; border-bottom: 1px solid var(--night-line); color: var(--on-night-2); font-size: 1.05rem; }
  .nav-actions { gap: 0.75rem; }
  .nav-actions .btn { flex: 1; }
}
@media (max-width: 400px) { .brand img { width: 124px; } .header-inner { gap: 0.6rem; } .join-mobile { padding-inline: 0.85rem; } .menu-label { display: none; } }

/* ---------- glow ---------- */
.hero, .page-hero-night, .partner-band, .section-night { position: relative; isolation: isolate; overflow: hidden; }
.hero-glow {
  position: absolute; inset: auto -10% -40% -10%; height: 70%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 45% 55% at 30% 100%, rgba(229, 117, 34, 0.30), transparent 70%),
    radial-gradient(ellipse 35% 45% at 75% 100%, rgba(212, 175, 106, 0.16), transparent 70%);
}

/* ---------- home hero ---------- */
.hero { background: var(--night); color: var(--on-night); padding: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-inner { max-width: var(--wrap); }
.hero-title { font-size: var(--step-4); line-height: 1.04; max-width: 27ch; margin-bottom: 0.35em; font-weight: 600; }
.hero-text { font-size: var(--step-1); color: var(--on-night-2); max-width: 38rem; line-height: 1.6; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: 0; }
.stats div { display: flex; flex-direction: column-reverse; border-top: 1px solid currentColor; padding-top: 0.9rem; border-color: var(--line); }
.stats dd { margin: 0; font-family: var(--serif); font-size: var(--step-3); font-weight: 600; line-height: 1.05; }
.stats dt { font-size: 0.92rem; color: var(--ink-2); margin-top: 0.3rem; }
.stats-hero { margin-top: 2.75rem; }
.hero .stats div, .page-hero-night .stats div, .section-night .stats div { border-color: var(--night-line); }
.hero .stats dt, .page-hero-night .stats dt, .section-night .stats dt { color: var(--on-night-2); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; } }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section-day { background: var(--day); }
.section-stone { background: var(--stone); }
.section-night { background: var(--night); color: var(--on-night); }
.section-night p { color: var(--on-night-2); }
.section-title { font-size: var(--step-3); margin-bottom: 1.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head .section-title { margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 820px) { .grid-2, .split { grid-template-columns: 1fr; } }

/* ---------- event cards ---------- */
.event-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; align-items: flex-start;
}
.event-card .btn { margin-top: auto; }
.event-card .btn-row { margin-top: auto; padding-top: 0.5rem; }
.event-card > .btn { margin-top: 1.25rem; }
.event-when { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; color: var(--ember-ink); margin-bottom: 0.6rem; font-size: 0.95rem; }
.event-title { font-size: var(--step-2); margin-bottom: 0.15em; }
.event-title a { text-decoration: none; }
.event-title a:hover { text-decoration: underline; }
.event-place { color: var(--ink-2); margin-bottom: 1rem; }
.meta-line { display: flex; gap: 0.55rem; align-items: flex-start; margin: 0 0 0.5rem; }
.meta-line .icon { margin-top: 0.3em; color: var(--ember-ink); }
.schedule { list-style: none; width: 100%; margin: 0.75rem 0 0; border-top: 1px solid var(--line); }
.schedule li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.schedule li span:last-child { font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .schedule li { flex-direction: column; gap: 0; } }
.event-card .fine { margin-bottom: 1rem; }
.event-card > p:last-of-type:not(.fine) { margin-bottom: 0; }

.meeting-card { background: var(--night); color: var(--on-night); border-color: var(--night); }
.meeting-card .event-when { color: var(--gold); }
.meeting-card .event-place, .meeting-card .fine { color: var(--on-night-2); }
.meeting-blurb { color: var(--on-night-2); margin-bottom: 1.25rem; }
.meeting-time { width: 100%; border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); padding: 1rem 0; margin-bottom: 1.25rem; }
.meeting-next { font-size: 0.9rem; color: var(--on-night-2); margin: 0 0 0.2rem; }
.meeting-local { font-family: var(--serif); font-size: var(--step-2); font-weight: 600; line-height: 1.25; margin: 0; }
.meeting-card .btn-line { color: var(--on-night); }
.meeting-card .is-live { color: var(--ember-hot); }

/* ---------- two arms ---------- */
.arms { padding-top: 0; background: var(--day); }
.arm { border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 3rem); display: flex; flex-direction: column; align-items: flex-start; }
.arm h2 { font-size: var(--step-3); }
.arm p { max-width: 34rem; }
.arm .btn { margin-top: auto; }
.arm-night { background: var(--night); color: var(--on-night); }
.arm-night p { color: var(--on-night-2); }
.arm-day { background: var(--stone); }
.arm-crown { width: 40px; height: auto; margin-bottom: 1.25rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 2rem; }
.tags li { font-size: 0.85rem; padding: 0.3rem 0.8rem; border-radius: 999px; border: 1px solid currentColor; opacity: 0.85; }
.arm-night .tags li { border-color: rgba(212, 175, 106, 0.55); color: var(--gold); opacity: 1; }
.arm-day .tags li { border-color: var(--line); background: var(--day); }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.pillar h3 { font-size: var(--step-2); }
.pillar p { color: var(--ink-2); }
.pillar-flame { width: 22px; height: auto; color: var(--ember); margin-bottom: 1rem; }
.pillars-more { margin-top: 1rem; }
.pillars-more a { font-weight: 500; color: var(--ember-ink); }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tiles { grid-template-columns: 1fr; } }
.tile { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.tile-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.tile-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--night); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-type { position: relative; display: flex; align-items: flex-end; padding: 1.25rem 1.4rem; color: var(--on-night); }
.tile-type::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70%; background: radial-gradient(ellipse 70% 80% at 85% 100%, rgba(229, 117, 34, 0.35), transparent 70%); }
.tile-city { position: relative; z-index: 1; font-family: var(--serif); font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); font-weight: 600; line-height: 1; }
.tile-flame { position: absolute; right: 1.4rem; top: 1.25rem; width: 26px; height: auto; color: var(--ember); z-index: 1; }
.tile-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.tile-meta { font-size: 0.88rem; color: var(--ink-2); margin-bottom: 0.4rem; }
.tile-title { font-size: var(--step-1); margin-bottom: 0.5rem; }
.tile-text { font-size: 0.95rem; color: var(--ink-2); }
.tile-more { margin-top: auto; font-weight: 500; color: var(--ember-ink); font-size: 0.95rem; }
.tile-link:hover .tile-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

/* ---------- quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; }
.quote { margin: 0; padding: 1.75rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 1.25rem; font-family: var(--serif); font-size: 1.15rem; line-height: 1.55; }
.quote blockquote p::before { content: "\201C"; } .quote blockquote p::after { content: "\201D"; }
.quote figcaption { margin-top: auto; display: flex; gap: 0.75rem; align-items: center; font-size: 0.95rem; }
.quote-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* ---------- partner band ---------- */
.partner-band { background: var(--night); color: var(--on-night); padding: var(--section) 0; }
.partner-band h2 { font-size: var(--step-3); }
.partner-band p { color: var(--on-night-2); font-size: var(--step-1); line-height: 1.55; margin-bottom: 1.75rem; }
.band-flame { width: 34px; height: auto; color: var(--ember); margin: 0 auto 1.25rem; }

/* ---------- inner page heroes ---------- */
.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { font-size: var(--step-4); max-width: 18ch; line-height: 1.05; }
.page-hero .lede { font-size: var(--step-1); max-width: 40rem; line-height: 1.6; margin-bottom: 0; }
.page-hero-night { background: var(--night); color: var(--on-night); }
.page-hero-night .lede { color: var(--on-night-2); }
.page-hero-day { background: var(--day); border-bottom: 1px solid var(--line); }
.page-hero-day .lede { color: var(--ink-2); }
.page-hero .stats { margin-top: 2.75rem; }
.page-hero .btn-row { margin-top: 2rem; }
.crumbs { font-size: 0.92rem; margin-bottom: 1rem; }
.crumbs a { color: var(--gold); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.facts { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; color: var(--on-night); }
.facts .meta-line { margin: 0; }
.facts .meta-line .icon { color: var(--gold); }
.flame-icon { color: var(--gold); width: 0.85em; }
.cover { margin-top: 2.5rem; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 7; }
.cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- prose ---------- */
.prose { max-width: 42rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--ember); }
.prose strong { font-weight: 500; color: var(--ink); }
.prose em { font-family: var(--serif); font-style: italic; font-size: 1.05em; }
.prose blockquote { margin: 1.5em 0; padding-left: 1.25rem; border-left: 3px solid var(--ember); font-family: var(--serif); font-size: 1.15rem; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose a { color: var(--ember-ink); }

/* ---------- power invasion ---------- */
.checklist { list-style: none; display: grid; gap: 0.25rem; align-self: center; }
.checklist li { display: flex; align-items: center; gap: 0.9rem; font-family: var(--serif); font-size: var(--step-2); font-weight: 600; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.check-flame { width: 16px; height: auto; color: var(--ember); flex: none; }
.history-year { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; border-top: 2px solid var(--ink); padding-top: 1rem; margin-bottom: 2.5rem; }
.history-year > h3 { font-size: var(--step-2); }
.history { list-style: none; }
.history li { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.history li:first-child { padding-top: 0.2rem; }
.history-month { color: var(--ink-2); font-size: 0.95rem; }
.history-main strong { font-weight: 500; }
.history-main a { text-decoration: none; }
.history-main a:hover { text-decoration: underline; }
.history-place { color: var(--ink-2); }
.history-note { display: block; color: var(--ink-2); font-size: 0.95rem; margin-top: 0.25rem; }
.history-link a { color: var(--ember-ink); font-weight: 500; }
@media (max-width: 700px) {
  .history-year { grid-template-columns: 1fr; gap: 0.25rem; }
  .history li { grid-template-columns: 1fr auto; gap: 0.15rem 1rem; }
  .history-month { grid-column: 1 / -1; font-size: 0.88rem; }
}

/* ---------- discipleship ---------- */
.disc-top .meeting-card { margin-top: 0.25rem; }
.stat-inline { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-2); }
.stat-inline strong { font-family: var(--serif); font-size: var(--step-2); color: var(--ink); font-weight: 600; margin-right: 0.2rem; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; background: var(--day); border-radius: var(--radius); padding: 1.5rem; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--ink); color: var(--day); font-weight: 500; margin-bottom: 1rem; }
.steps p { color: var(--ink-2); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.youtube-note { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 1.75rem; max-width: 46rem; }
.youtube-note .icon { margin-top: 0.3em; color: var(--ember-ink); }
.youtube-note a { color: var(--ember-ink); font-weight: 500; }

/* ---------- forms ---------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 820px) { .form-wrap { grid-template-columns: 1fr; } }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3.5vw, 2.25rem); display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.35rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 500; font-size: 0.95rem; padding: 0; }
.field legend { margin-bottom: 0.5rem; }
.optional { font-weight: 400; color: var(--ink-2); }
.hint { margin: 0; font-size: 0.88rem; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--day);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0.7rem 0.85rem; min-height: 2.9rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(229, 117, 34, 0.2); }
.check { display: flex; align-items: center; gap: 0.65rem; font-weight: 400 !important; padding: 0.35rem 0; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; min-height: 0; accent-color: var(--ember); margin: 0; }
.form .btn { justify-self: start; margin-top: 0.25rem; }
.hp { position: absolute; left: -5000px; }
.ways { list-style: none; display: grid; gap: 1.1rem; margin: 0 0 2rem; }
.ways h3 { margin: 0 0 0.15rem; font-size: var(--step-1); }
.ways p { margin: 0; color: var(--ink-2); }
.note { background: var(--stone); border-radius: var(--radius); padding: 1.1rem 1.25rem; font-size: 0.95rem; color: var(--ink-2); }
.small-title { font-size: var(--step-1); margin-top: 2rem; }
.plain-links { list-style: none; display: grid; gap: 0.4rem; }
.plain-links a { color: var(--ember-ink); font-weight: 500; }

/* ---------- about ---------- */
.leaders { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 820px) { .leaders { grid-template-columns: 1fr; max-width: 22rem; } }
.leader-photo { width: 100%; max-width: 15rem; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin-bottom: 1rem; background: var(--stone); }
.leader-initials { display: grid; place-items: center; width: 7rem; height: 7rem; aspect-ratio: 1; border-radius: 50%; font-family: var(--serif); font-size: 2.1rem; font-weight: 600; color: var(--ember-ink); background: var(--stone); }
.leader h3 { margin-bottom: 0.15rem; }
.leader-place { color: var(--ink-2); }

/* ---------- media ---------- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--night); }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play { position: absolute; inset: 0; margin: auto; width: 4.25rem; height: 4.25rem; border-radius: 50%; border: 0; background: var(--ember); color: #1A0E04; display: grid; place-items: center; cursor: pointer; }
.video-play .icon { width: 1.8rem; height: 1.8rem; margin-left: 0.2rem; }
.video-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.video-title { margin-top: 0.6rem; font-weight: 500; }
.gallery { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
.gallery figcaption { font-size: 0.88rem; color: var(--ink-2); margin-top: 0.4rem; }
.empty { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.empty p { margin: 0; color: var(--ink-2); }

/* ---------- footer ---------- */
.site-footer { background: #0D0F15; color: var(--on-night-2); padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
.footer-brand img { width: 150px; height: auto; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 22rem; }
.footer-title { font-family: var(--sans); font-size: 0.95rem; font-weight: 500; color: var(--on-night); margin: 0 0 0.75rem; }
.footer-title:not(:first-child) { margin-top: 1.75rem; }
.footer-links { list-style: none; display: grid; gap: 0.4rem; }
.footer-links a, .site-footer p a { text-decoration: none; color: var(--on-night-2); }
.footer-links a:hover, .site-footer p a:hover { color: var(--on-night); text-decoration: underline; }
.site-footer p a:not(.btn) { color: var(--gold); }
.site-footer .btn-ember { color: #1A0E04; }
.footer-social { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.footer-base { border-top: 1px solid var(--night-line); margin-top: 3rem; padding-top: 1.25rem; font-size: 0.88rem; }
.footer-base p { margin: 0; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- day theme ---------- */
.theme-day .page-hero-day h1 { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- small utilities ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { font-size: 0.95rem; font-weight: 500; color: var(--gold); margin: 0 0 0.75rem; }
.page-hero-day .kicker { color: var(--gold-ink); }
.section-intro { color: var(--ink-2); max-width: 40rem; margin: -0.75rem 0 2rem; }
.center-row { justify-content: center; }
.narrow-left { max-width: 46rem; }
.icon-sm { width: 0.95em; height: 0.95em; }
.field select { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--day); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0.7rem 0.85rem; min-height: 2.9rem; }
.field select:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(229, 117, 34, 0.2); }

/* ---------- home: story, portals, routes ---------- */
.story-split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); }
.story .prose p:first-child { font-family: var(--serif); font-size: var(--step-1); line-height: 1.55; }
.portals { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
@media (max-width: 980px) { .portals { grid-template-columns: 1fr; } }
.portal { border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; align-items: flex-start; min-height: 21rem; }
.portal h3 { font-size: var(--step-2); }
.portal p { flex: 1; }
.portal .btn-row { margin-top: 0.5rem; }
.portal-mark { width: 40px; height: auto; margin-bottom: 1.25rem; }
.portal-invasion { background: var(--night); color: var(--on-night); }
.portal-invasion p { color: var(--on-night-2); }
.portal-community { background: var(--stone); }
.portal-doam { background: #0E0E0E; color: #F2F2F2; }
.portal-doam p { color: #C9C9C9; font-family: var(--serif); font-size: 1.1rem; }
.portal-logo { width: min(230px, 100%); height: auto; margin: 0.25rem 0 1.5rem; }
.involved-title { font-size: var(--step-3); max-width: 22ch; }
.routes { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2rem; border-top: 1px solid var(--night-line); margin-top: 1rem; }
.routes a { display: block; padding: 1.5rem 0; border-bottom: 1px solid var(--night-line); text-decoration: none; height: 100%; }
.route-title { display: block; font-family: var(--serif); font-size: var(--step-2); font-weight: 600; color: var(--on-night); line-height: 1.2; margin-bottom: 0.35rem; }
.route-text { color: var(--on-night-2); font-size: 0.95rem; }
.routes a:hover .route-title { color: var(--ember-hot); }
@media (max-width: 900px) { .routes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .routes { grid-template-columns: 1fr; } }

/* ---------- photo breaks ---------- */
.photo-break { display: grid; gap: 6px; background: var(--night); }
.photo-break figure { margin: 0; position: relative; overflow: hidden; }
.photo-break img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-break figcaption { position: absolute; left: 1rem; bottom: 0.8rem; color: #fff; font-size: 0.85rem; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
.pb-wide img { aspect-ratio: 21 / 9; }
.pb-pair { grid-template-columns: 1fr 1fr; } .pb-pair img { aspect-ratio: 4 / 3; }
.pb-trio { grid-template-columns: 2fr 1fr 1fr; } .pb-trio img { aspect-ratio: 3 / 4; } .pb-trio figure:first-child img { aspect-ratio: auto; }
.pb-strip { grid-auto-flow: column; grid-auto-columns: minmax(260px, 32%); overflow-x: auto; } .pb-strip img { aspect-ratio: 4 / 3; }
@media (max-width: 700px) {
  .pb-wide img { aspect-ratio: 4 / 3; }
  .pb-pair, .pb-trio { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 85%; overflow-x: auto; }
}


/* ---------- outreaches: snake, stories ---------- */
.snake-svg { display: block; width: 100%; height: auto; overflow: visible; }
.sn-line { fill: none; stroke: var(--ember); stroke-width: 2.5; }
.sn-line.is-upcoming { stroke: var(--gold); stroke-dasharray: 7 7; }
.sn-halo { fill: rgba(229, 117, 34, 0.14); }
.sn-dot { fill: var(--ember); stroke: var(--stone); stroke-width: 3; }
.sn-node.is-upcoming .sn-halo { fill: none; }
.sn-node.is-upcoming .sn-dot { fill: var(--stone); stroke: var(--gold); stroke-width: 2.5; }
.sn-city { font-family: var(--serif); font-weight: 600; font-size: 19px; fill: var(--ink); }
.sn-date { font-size: 13px; fill: var(--ink-2); }
.sn-node.is-upcoming .sn-date { fill: var(--gold-ink); }
.sn-node a:hover .sn-city { fill: var(--ember-ink); }
.sn-node a:focus { outline: none; }
.sn-node a:focus-visible .sn-halo { stroke: var(--ink); stroke-width: 2; }
.vline { display: none; list-style: none; }
.vline li { position: relative; padding: 0 0 1.4rem 2.1rem; }
.vline li::before { content: ""; position: absolute; left: 8px; top: 12px; bottom: -8px; width: 2.5px; background: var(--ember); }
.vline li.is-upcoming::before { background: repeating-linear-gradient(var(--gold) 0 6px, transparent 6px 12px); }
.vline li:last-child::before { display: none; }
.vline li::after { content: ""; position: absolute; left: 1px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ember); border: 2px solid var(--stone); }
.vline li.is-upcoming::after { background: var(--stone); border: 2.5px solid var(--gold); }
.vline a, .vline li > span { text-decoration: none; display: block; }
.vline b { display: block; font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; }
.vline span span { font-size: 0.88rem; color: var(--ink-2); }
.vline a span { font-size: 0.88rem; color: var(--ink-2); }
.vline .is-upcoming span { color: var(--gold-ink); }
@media (max-width: 760px) { .snake-svg { display: none; } .vline { display: block; } }
.stories { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.story-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.story-row.is-flipped .story-media { order: 2; }
.story-media { display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--night); }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-media .tile-type { height: 100%; padding: 1.5rem 1.75rem; }
.story-media .tile-city { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); }
.story-body h3 { font-size: var(--step-3); }
.story-body h3 a { text-decoration: none; }
.story-body h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.story-links { display: flex; align-items: baseline; gap: 1rem; }
@media (max-width: 760px) { .story-row { grid-template-columns: 1fr; } .story-row.is-flipped .story-media { order: 0; } }
.also { list-style: none; display: grid; gap: 0.75rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.also li { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; }
.also li span { color: var(--ink-2); }
.also li .fine { flex-basis: 100%; margin: 0; }
.notes { list-style: none; }
.notes li { border-left: 2px solid var(--ember); padding-left: 1.25rem; margin-bottom: 2rem; }
.notes h3 { margin-bottom: 0.4rem; }
.docs { list-style: none; display: grid; gap: 0.6rem; }
.docs a { display: inline-flex; gap: 0.6rem; align-items: center; color: var(--ember-ink); font-weight: 500; }
.pager { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: 2.5rem; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: var(--step-1); }
.pager a:hover { color: var(--ember-ink); }
.pager .fine { font-family: var(--sans); font-weight: 400; margin: 0 0 0.2rem; }
.pager-next { text-align: right; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.gallery a:hover img { opacity: 0.9; }

/* ---------- lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(8, 9, 12, 0.95); color: #fff; }
.lightbox::backdrop { background: rgba(8, 9, 12, 0.95); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 4.5rem 2rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; border-radius: 6px; }
.lightbox figcaption { margin-top: 0.9rem; color: #ddd; font-size: 0.95rem; text-align: center; }
.lb-btn { position: absolute; background: rgba(255, 255, 255, 0.1); color: #fff; border: 0; border-radius: 999px; width: 3rem; height: 3rem; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.2); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox figure { padding: 4rem 0.75rem 5rem; } .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; } }

/* ---------- Diary of a Missionary ---------- */
.theme-doam main { background: #0E0E0E; }
.doam-hero { background: #0E0E0E; color: #F2F2F2; padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.doam-logo { width: min(460px, 82%); height: auto; margin-bottom: 2.25rem; }
.doam-lede { font-family: var(--serif); font-size: var(--step-2); line-height: 1.45; max-width: 42rem; color: #D6D6D6; }
.doam-hero h1 { font-size: var(--step-4); line-height: 1.05; }
.doam-hero .crumbs a { color: #bbb; }
.doam-hero .tile-meta { color: #aaa; }
.doam-feature { background: #0E0E0E; color: #F2F2F2; padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.doam-feature .kicker { color: #bdbdbd; }
.video-cinema { aspect-ratio: 21 / 9; border-radius: var(--radius); }
.doam-ep-title { font-size: var(--step-3); margin: 1.25rem 0 0.25rem; max-width: 30ch; }
.doam-feature .fine, .doam-episodes .fine { color: #9a9a9a; }
.doam-episodes { background: #161616; color: #EDEDED; }
.doam-episodes .link-more { color: #F08A3A; }
.episode-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; margin-bottom: 2rem; }
.episode-list .video-title { font-family: var(--serif); font-size: 1.1rem; margin: 0.75rem 0 0.2rem; }
@media (max-width: 860px) { .episode-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .episode-list { grid-template-columns: 1fr; } }
.doam-entries { background: var(--day); }
.entries { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 2rem; }
.entries a { text-decoration: none; display: block; }
.entries img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; margin-bottom: 0.9rem; }
.entries h3 { font-size: var(--step-2); }
.entries a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; }
.empty-dark { border-color: #333; } .empty-dark p { color: #bbb; }

/* ---------- resources and testimonies ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 0.45rem 1rem; font: 500 0.9rem var(--sans); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--day); border-color: var(--ink); }
.library { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 2rem 1.75rem; }
.library [hidden], .quotes [hidden] { display: none; }
.res h3 { font-size: var(--step-1); margin: 0.2rem 0 0.4rem; }
.res-video .video { margin-bottom: 0.8rem; }
.res-book { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.res-cover img { border-radius: 4px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.res-author { color: var(--ink-2); margin-top: -0.3rem; }
.lib-more { margin-top: 2rem; }
.quote .video { margin-bottom: 1rem; }
@media (max-width: 820px) { .story-split { grid-template-columns: 1fr; gap: 0.5rem; } }


/* ---------- the opening map ("Where the fire has gone") ---------- */
.hero-atlas { padding: 0 0 clamp(2.5rem, 5vw, 4rem); }
.atlas {
  --edge: max(var(--gutter), (100% - var(--wrap)) / 2);
  position: relative; height: calc(90vh - 4.25rem); height: calc(90svh - 4.25rem); min-height: 34rem; overflow: hidden;
  background: radial-gradient(ellipse 70% 80% at 68% 45%, #19202D 0%, var(--night) 75%);
}
.atlas-stage { position: absolute; inset: 0; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.atlas-stage.is-dragging { cursor: grabbing; }
.atlas-stage:focus-visible { outline: 2px solid var(--ember); outline-offset: -4px; border-radius: 0; }
.atlas-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.land-shadow { fill: none; stroke: rgba(4, 6, 10, 0.4); stroke-width: 8px; stroke-linejoin: round; }
.land-rim { fill: none; stroke: rgba(170, 186, 222, 0.30); stroke-width: 2.4px; stroke-linejoin: round; }
.land-fill { fill: #232A39; }
.land-border { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 0.7px; }
.tint { transition: opacity 0.6s, fill 0.35s; }
.tint.is-past { fill: rgba(229, 117, 34, 0.17); stroke: rgba(229, 117, 34, 0.38); stroke-width: 0.8px; }
.tint.is-upcoming { fill: rgba(212, 175, 106, 0.09); stroke: rgba(212, 175, 106, 0.32); stroke-width: 0.8px; }
.tint.is-active { fill: rgba(229, 117, 34, 0.32); }
.tint.is-upcoming.is-active { fill: rgba(212, 175, 106, 0.22); }
.tint.is-off { opacity: 0; }
.route { fill: none; stroke: var(--ember); stroke-width: 1.6px; stroke-linecap: round; opacity: 0.75; }
.route.is-upcoming { stroke: var(--gold); stroke-dasharray: 5 6; opacity: 0.85; }
.atlas.is-live .atlas-nojs { display: none; }
.atlas.is-instant .mk, .atlas.is-instant .mk-label, .atlas.is-instant .tint { transition: none; }
.atlas-nojs circle { fill: var(--ember); }
.atlas-nojs circle.is-upcoming { fill: var(--gold); }

.atlas-marks { position: absolute; inset: 0; pointer-events: none; }
.atlas .mk { position: absolute; left: 0; top: 0; z-index: 2; width: 34px; height: 34px; margin: -17px 0 0 -17px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; transition: opacity 0.4s; }
.atlas .mk.is-off, .atlas .mk-label.is-off { opacity: 0; pointer-events: none; }
.mk-dot { position: relative; width: 11px; height: 11px; border-radius: 50%; background: #FF9A4D; box-shadow: 0 0 6px 2px rgba(240, 138, 58, 0.75), 0 0 18px 6px rgba(229, 117, 34, 0.35); transition: transform 0.25s, box-shadow 0.25s; }
.mk.is-upcoming .mk-dot { background: rgba(212, 175, 106, 0.25); border: 2px solid #E9C98A; box-shadow: 0 0 10px 3px rgba(212, 175, 106, 0.45); }
.mk.is-next .mk-dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #E9C98A; opacity: 0; }
.mk:hover .mk-dot, .mk:focus-visible .mk-dot, .mk.is-active .mk-dot { transform: scale(1.45); box-shadow: 0 0 8px 3px rgba(240, 138, 58, 0.9), 0 0 28px 10px rgba(229, 117, 34, 0.45); }
.mk.is-upcoming:hover .mk-dot, .mk.is-upcoming:focus-visible .mk-dot, .mk.is-upcoming.is-active .mk-dot { box-shadow: 0 0 14px 5px rgba(212, 175, 106, 0.6); }
.mk.is-lit .mk-dot { animation: ignite 0.7s ease-out; }
.atlas .mk:focus-visible { outline: 2px solid var(--on-night); outline-offset: 0; }
.atlas .mk-label { position: absolute; left: 0; top: 0; z-index: 1; font-family: var(--serif); font-weight: 600; font-size: 0.95rem; line-height: 1.1; color: var(--on-night); white-space: nowrap; pointer-events: none; text-shadow: 0 1px 6px var(--night), 0 0 3px var(--night); transition: opacity 0.3s, color 0.2s; }
.atlas .mk-label small { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.72em; color: var(--on-night-2); margin-top: 0.15em; }
.atlas .mk-label.is-upcoming small { color: var(--gold); }
.atlas .mk-label.is-hl { color: var(--ember-hot); }

.atlas-shade { position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    linear-gradient(90deg, rgba(19, 22, 30, 0.92) 0, rgba(19, 22, 30, 0.82) calc(var(--edge) + 22rem), rgba(19, 22, 30, 0) calc(var(--edge) + 36rem)),
    linear-gradient(0deg, var(--night) 0, rgba(19, 22, 30, 0) 22%),
    linear-gradient(180deg, rgba(19, 22, 30, 0.6) 0, rgba(19, 22, 30, 0) 12%); }
.atlas-text { position: absolute; z-index: 3; left: var(--edge); top: clamp(2rem, 7vh, 4.5rem); width: min(31rem, 44%); pointer-events: none; color: var(--on-night); }
.atlas-text > * { pointer-events: auto; }
.atlas-title { font-size: clamp(2.2rem, 1.3rem + 2.6vw, 3.7rem); line-height: 1.05; margin-bottom: 0.4em; }
.atlas-lede { font-size: var(--step-1); color: var(--on-night-2); line-height: 1.6; margin-bottom: 0; max-width: 28rem; }
.atlas-text .btn-row { margin-top: 1.5rem; }

.atlas-bar { position: absolute; z-index: 3; left: var(--edge); right: var(--edge); bottom: clamp(1rem, 3vh, 1.75rem); display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; pointer-events: none; }
.atlas-bar > * { pointer-events: auto; }
.atlas-caption { margin: 0; min-height: 1.5em; font-size: 0.95rem; color: var(--on-night); text-shadow: 0 1px 8px var(--night); transition: opacity 0.4s; pointer-events: none; }
.atlas-caption b { font-family: var(--serif); font-weight: 600; font-size: 1.15em; margin-right: 0.35em; }
.atlas-caption .is-next { color: #E9C98A; }
.atlas-caption.is-hidden { opacity: 0; }
.atlas-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0.5rem; }
.atlas-regions { display: flex; gap: 0.4rem; }
.atlas-chip, .atlas-btn { font: 500 0.85rem/1 var(--sans); color: var(--on-night); background: rgba(19, 22, 30, 0.72); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 0.55rem 0.85rem; cursor: pointer; white-space: nowrap; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color 0.15s, background-color 0.15s; }
.atlas-chip:hover, .atlas-btn:hover { border-color: rgba(255, 255, 255, 0.5); }
.atlas-chip[aria-pressed="true"] { border-color: var(--ember); color: #FFB27A; }
.atlas-zoom { display: flex; gap: 0.3rem; }
.atlas-btn { width: 2.2rem; height: 2.2rem; padding: 0; font-size: 1.2rem; display: grid; place-items: center; }
.atlas-replay span[aria-hidden] { display: inline-block; margin-right: 0.2em; }
.atlas .map-card { position: absolute; z-index: 5; }

.atlas-after { position: relative; z-index: 3; margin-top: -0.5rem; }
.atlas-after-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 2rem; margin-bottom: 1.1rem; }
.hero-map-title { font-family: var(--sans); font-size: 0.95rem; font-weight: 500; color: var(--gold); letter-spacing: 0.01em; margin: 0; }
.atlas-after .map-hint { margin: 0; }
.atlas-all { margin-left: 1rem; color: var(--on-night); font-weight: 500; }
.atlas-after .stats-map { margin-top: 0; }
.map-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; color: var(--on-night-2); font-size: 0.9rem; }
.legend-dot, .legend-ring { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #FF9A4D; box-shadow: 0 0 8px rgba(240, 138, 58, 0.7); }
.legend-ring { background: transparent; box-shadow: 0 0 6px rgba(212, 175, 106, 0.5); border: 2px solid #E9C98A; margin-left: 0.6rem; }

.map-card { width: min(19rem, 86vw); background: var(--day); color: var(--ink); border-radius: var(--radius); padding: 1rem 1.15rem 1.1rem; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); }
.map-card p { color: var(--ink-2); }
.map-card .map-card-status { font-size: 0.8rem; font-weight: 500; color: var(--ember-ink); margin: 0 0 0.2rem; }
.map-card .map-card-text { color: var(--ink); }
.map-card.is-upcoming .map-card-status { color: var(--gold-ink); }
.map-card-title { font-size: 1.2rem; margin: 0 0 0.15rem; }
.map-card-meta { font-size: 0.9rem; color: var(--ink-2); margin: 0 0 0.5rem; }
.map-card-text { font-size: 0.92rem; margin: 0 0 0.6rem; }
.map-card-text:empty { display: none; }
.map-card-link { font-weight: 500; color: var(--ember-ink); }

@keyframes ignite { 0% { transform: scale(0.2); box-shadow: 0 0 0 0 rgba(255, 170, 90, 1); } 45% { transform: scale(1.9); box-shadow: 0 0 24px 12px rgba(255, 150, 70, 0.8); } 100% { transform: scale(1); } }
@keyframes next-pulse { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(3.4); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .mk.is-next .mk-dot::after { animation: next-pulse 1.9s ease-out infinite; }
}

/* phones and small tablets: the words sit on top of the map, the controls along the bottom */
@media (max-width: 760px) {
  .atlas { height: calc(88vh - 4.25rem); height: calc(88svh - 4.25rem); min-height: 31rem; }
  .atlas-shade { background:
    linear-gradient(180deg, rgba(19, 22, 30, 0.94) 0, rgba(19, 22, 30, 0.86) 34%, rgba(19, 22, 30, 0) 52%),
    linear-gradient(0deg, var(--night) 0, rgba(19, 22, 30, 0) 16%); }
  .atlas-text { left: var(--gutter); right: var(--gutter); top: 1.25rem; width: auto; }
  .atlas-title { font-size: clamp(1.9rem, 1.2rem + 3.4vw, 2.4rem); }
  .atlas-lede { font-size: 1rem; line-height: 1.5; }
  .atlas-text .btn-row { margin-top: 1rem; gap: 0.6rem; }
  .atlas-text .btn { min-height: 2.6rem; padding: 0.5rem 1.05rem; font-size: 0.92rem; }
  .atlas-bar { left: 0; right: 0; bottom: 0.75rem; flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .atlas-caption { padding: 0 var(--gutter); font-size: 0.9rem; }
  .atlas-controls { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 0.15rem var(--gutter); scrollbar-width: none; }
  .atlas-controls::-webkit-scrollbar { display: none; }
  .atlas-zoom, .atlas-wide { display: none; }
  .atlas .map-card { left: var(--gutter) !important; right: var(--gutter); top: auto !important; bottom: 4.25rem; width: auto; }
  .atlas-after { margin-top: 0.75rem; }
  .atlas-after-head { flex-direction: column; align-items: flex-start; }
  .atlas-all { margin-left: 0; width: 100%; }
}
