/* ==========================================================================
   Amazon Discovery — Warm Paper Newsroom Design System
   Palette: Warm Paper / Deep Ink Navy / Emerald Brand / Amber Accent
   Fonts: Inter Tight (headlines) · Inter (UI) · Source Serif 4 (article reading text)
   Brand colors are defaults; admins override them from the CMS Theme tab.
   ========================================================================== */

:root {
  --bg-page: #fbf8f1;
  --bg-ivory: #f5f0e5;
  --bg-warm: #ede6d6;
  --bg-card: #ffffff;
  --ink-primary: #172437;
  --ink-secondary: #3b4859;
  --ink-muted: #5f6a79;
  --brand-emerald: #0b6e57;
  --brand-emerald-dark: #08523f;
  --brand-emerald-soft: #e6f2ed;
  --accent-amber: #d4930f;
  --accent-amber-soft: #fbf1db;
  --border-hairline: #e4ddcd;
  --border-strong: #cdc4b0;
  --shadow-sm: 0 1px 2px rgba(23, 36, 55, 0.06);
  --shadow-md: 0 12px 30px rgba(23, 36, 55, 0.09);
  --shadow-lg: 0 24px 56px rgba(23, 36, 55, 0.14);

  --font-display: "Inter Tight", "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", "Georgia", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1340px;
  --article-width: 740px;
  --wide-width: 1080px;
  --header-offset: 112px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-emerald);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--brand-emerald);
  color: #fff;
  padding: 10px 16px;
  z-index: 9999;
  font-weight: 600;
  border-radius: 4px;
}

.skip-link:focus {
  left: 12px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: 24px;
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1200;
  pointer-events: none;
}

.reading-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-emerald), var(--accent-amber));
  transition: width 0.08s linear;
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border-hairline);
}

.header-topbar {
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-ivory);
  font-size: 12.5px;
  color: var(--ink-muted);
}

.header-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 7px;
  flex-wrap: wrap;
}

.header-topbar__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.header-topbar__links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-topbar__links a:hover {
  color: var(--brand-emerald);
}

.header-masthead {
  padding-block: 16px;
}

.header-masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  background: var(--bg-ivory);
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  padding: 8px 11px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-primary);
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-primary);
}

/* Globe logo mark: emerald sphere, ink meridians, amber orbit */
.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: block;
}
.brand-mark .bm-globe { fill: var(--brand-emerald-soft); stroke: var(--brand-emerald); stroke-width: 2.2; }
.brand-mark .bm-lines { fill: none; stroke: var(--brand-emerald); stroke-width: 1.6; opacity: 0.85; }
.brand-mark .bm-orbit { fill: none; stroke: var(--accent-amber); stroke-width: 2.2; stroke-linecap: round; }
.brand-mark .bm-dot { fill: var(--accent-amber); }

/* Wordmark: soft Fraunces, "Discovery" in emerald italic */
.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.24em;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink-primary);
}

.brand-name em {
  font-style: normal;
  font-weight: 800;
  color: var(--brand-emerald);
}

.brand-name--sm {
  font-size: 1.4rem;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px 4px 3px 12px;
  background: var(--bg-page);
  max-width: 240px;
  width: 100%;
}

.header-search input {
  border: none;
  background: transparent;
  font-size: 13.5px;
  width: 100%;
  color: var(--ink-primary);
  outline: none;
}

.header-search button {
  border: none;
  background: var(--brand-emerald);
  color: #fff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.header-search button:hover {
  background: var(--brand-emerald-dark);
}

/* Sticky Section Bar */
.section-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-hairline);
}

.section-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 8px;
}

.section-nav::-webkit-scrollbar {
  display: none;
}

.section-nav a {
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  padding: 6px 11px;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.section-nav a:hover,
.section-nav a.is-active {
  color: var(--brand-emerald);
  background: var(--brand-emerald-soft);
}

.section-nav a.nav-3d {
  color: var(--accent-amber);
  background: var(--accent-amber-soft);
}

.section-nav a.nav-3d:hover,
.section-nav a.nav-3d.is-active {
  background: var(--accent-amber);
  color: #fff;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  background: var(--bg-ivory);
  border-bottom: 1px solid var(--border-hairline);
  padding: 16px 24px 20px;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.mobile-drawer__grid a {
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

/* Badges & Kickers */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-emerald);
}

.badge-3d {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-amber-soft);
  color: #925400;
  border: 1px solid #f0d096;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-demo {
  display: inline-block;
  background: var(--bg-warm);
  color: var(--ink-muted);
  border: 1px solid var(--border-hairline);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #b91c1c;
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Section Headers */
.band {
  padding-block: 40px;
  border-bottom: 1px solid var(--border-hairline);
}

.band--ivory {
  background: var(--bg-ivory);
}

.band--emerald-tint {
  background: linear-gradient(180deg, #f3f9f7 0%, #ffffff 100%);
}

.band-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink-primary);
}

.band-header__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.band-header__link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-emerald);
  white-space: nowrap;
}

.band-header__link:hover {
  text-decoration: underline;
}

/* Media Frames â€” Strict Non-Cropping Default */
.card-media {
  display: block;
  background: var(--bg-ivory);
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.card-media img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

.card-media--fixed {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-warm);
}

.card-media--fixed img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-media--crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card:hover .card-media img {
  transform: scale(1.015);
}

/* Homepage Hero Grid (Lead + Latest Headlines + Right Rail) */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.lead-story {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lead-story__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.lead-story__title a:hover {
  color: var(--brand-emerald);
}

.lead-story__subtitle {
  margin: 0;
  font-size: 1.125rem;
  color: var(--ink-secondary);
  line-height: 1.55;
}

/* Latest Headlines Rail (CNBC-inspired scannable density) */
.headlines-rail {
  border-left: 1px solid var(--border-hairline);
  padding-left: 28px;
}

.headlines-rail__title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-emerald);
  border-bottom: 2px solid var(--brand-emerald);
  padding-bottom: 8px;
}

.headline-item {
  padding-block: 12px;
  border-bottom: 1px solid var(--border-hairline);
}

.headline-item:last-child {
  border-bottom: none;
}

.headline-item__title {
  margin: 4px 0 4px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 600;
}

.headline-item__title a:hover {
  color: var(--brand-emerald);
}

/* Asymmetric News Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.grid-2-asym {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.story-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.story-card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 700;
}

.story-card__title a:hover {
  color: var(--brand-emerald);
}

.story-card__excerpt {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}

/* Demo Market Strip (Clearly Labeled Demo Data) */
.markets-strip {
  background: var(--bg-page);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 24px;
}

.markets-strip__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--ink-muted);
}

.markets-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.market-cell {
  background: var(--bg-ivory);
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  padding: 10px 12px;
}

.market-cell__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

.market-cell__val {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 2px;
}

.market-cell__delta {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-emerald);
}

.market-cell__delta.is-neg {
  color: #b91c1c;
}

/* Explore in 3D Showcase Cards */
.card-3d {
  background: #fff;
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-3d:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-3d__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-3d__cta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-emerald);
}

/* Newsletter Box */
.newsletter-box {
  background: var(--brand-emerald);
  color: #fff;
  border-radius: 12px;
  padding: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.newsletter-box h2 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.newsletter-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1 1 200px;
  padding: 12px 14px;
  border-radius: 6px;
  border: none;
  font-size: 15px;
}

.newsletter-form button {
  padding: 12px 20px;
  border-radius: 6px;
  border: none;
  background: var(--accent-amber);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
}

/* ==========================================================================
   Article Page & Longform Typography
   ========================================================================== */
.article-header {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 36px 24px 24px;
}

.article-header__title {
  margin: 10px 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.article-header__subtitle {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  color: var(--ink-secondary);
  line-height: 1.5;
  max-width: 820px;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 14px;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  font-size: 14px;
  color: var(--ink-muted);
}

.share-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-outline {
  background: #fff;
  border: 1px solid var(--border-strong);
  color: var(--ink-primary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--brand-emerald);
  color: var(--brand-emerald);
}

.article-hero-media {
  max-width: var(--wide-width);
  margin: 0 auto 32px;
  padding-inline: 24px;
}

.article-body {
  padding-bottom: 48px;
}

.block-column {
  max-width: var(--article-width);
  margin: 0 auto 24px;
  padding-inline: 24px;
}

.block-wide {
  max-width: var(--wide-width);
  margin: 28px auto;
  padding-inline: 24px;
}

.block-full-bleed {
  width: 100%;
  max-width: 100%;
  margin: 32px auto;
  padding-inline: 0;
}

.prose p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.78;
  color: var(--ink-primary);
  margin: 0 0 18px;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  line-height: 1.22;
  margin: 32px 0 14px;
  scroll-margin-top: var(--header-offset);
}

.prose h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 24px 0 10px;
}

.prose ul,
.prose ol {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.7;
  padding-left: 24px;
}

.prose a {
  color: var(--brand-emerald);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.editorial-quote {
  border-left: 4px solid var(--brand-emerald);
  background: var(--bg-ivory);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
}

.editorial-quote p {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  margin: 0 0 8px;
  line-height: 1.5;
}

.editorial-quote cite {
  font-size: 13.5px;
  font-style: normal;
  color: var(--ink-muted);
  font-weight: 600;
}

.editorial-callout {
  background: var(--brand-emerald-soft);
  border: 1px solid #c5e0d8;
  border-radius: 8px;
  padding: 20px 24px;
}

.editorial-callout h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--brand-emerald-dark);
}

.editorial-callout p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  margin: 0;
}

/* Full-size Media Figure (NEVER cropped) */
.media-figure {
  margin: 0;
}

.media-figure__frame {
  background: var(--bg-ivory);
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  overflow: hidden;
  cursor: zoom-in;
}

.media-figure__frame img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.media-figure figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.5;
  padding-inline: 4px;
}

.media-credit {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 3px;
}

/* Multi-aspect Gallery */
.editorial-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: start;
}

.editorial-gallery__item {
  background: var(--bg-ivory);
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  padding: 10px;
}

.editorial-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  cursor: zoom-in;
}

/* Video Wrapper */
.video-wrap {
  background: #101312;
  border-radius: 8px;
  overflow: hidden;
}

.video-wrap video,
.video-wrap iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* Data Tables */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
}

.editorial-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: #fff;
}

.editorial-table caption {
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  background: var(--bg-ivory);
  border-bottom: 1px solid var(--border-hairline);
}

.editorial-table th,
.editorial-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-hairline);
}

.editorial-table th {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  background: #fcfbf9;
}

/* ==========================================================================
   3D WebGL Interactive Stage & Scrollytelling Chapters
   ========================================================================== */
.scene3d-shell {
  background: #f5f3ee;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.scene3d-shell.is-sticky-stage {
  position: sticky;
  top: 58px;
  z-index: 20;
}

.scene3d-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-hairline);
}

.scene3d-toolbar__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}

.scene3d-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.scene3d-btn {
  background: var(--bg-ivory);
  border: 1px solid var(--border-strong);
  color: var(--ink-primary);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.scene3d-btn:hover {
  border-color: var(--brand-emerald);
  color: var(--brand-emerald);
}

.scene3d-btn.is-active {
  background: var(--brand-emerald);
  border-color: var(--brand-emerald);
  color: #fff;
}

.scene3d-viewport {
  position: relative;
  width: 100%;
  height: clamp(360px, 58vh, 580px);
  background: radial-gradient(circle at 50% 35%, #eef4f1 0%, #dce6e1 100%);
  touch-action: pan-y;
}

.scene3d-viewport.is-explore-active {
  touch-action: none;
}

.scene3d-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.scene3d-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(250, 248, 244, 0.92);
  z-index: 5;
  padding: 20px;
  text-align: center;
}

.scene3d-loading.is-hidden {
  display: none;
}

.scene3d-progress-track {
  width: 220px;
  height: 6px;
  background: var(--border-hairline);
  border-radius: 999px;
  overflow: hidden;
}

.scene3d-progress-fill {
  height: 100%;
  width: 15%;
  background: var(--brand-emerald);
  transition: width 0.2s ease;
}

.scene3d-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.hotspot-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--brand-emerald);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hotspot-pin:hover,
.hotspot-pin.is-selected {
  background: var(--accent-amber);
  transform: translate(-50%, -50%) scale(1.12);
}

.scene3d-info-card {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: 340px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
  z-index: 6;
}

.scene3d-info-card.is-hidden {
  display: none;
}

.scene3d-info-card__kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-emerald);
}

.scene3d-info-card__title {
  margin: 4px 0 6px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.scene3d-info-card__body {
  margin: 0;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.scene3d-info-card__meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-muted);
  border-top: 1px solid var(--border-hairline);
  padding-top: 6px;
}

.scene3d-helpbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-ivory);
  border-top: 1px solid var(--border-hairline);
  font-size: 12.5px;
  color: var(--ink-muted);
}

.scene3d-fallback {
  padding: 20px;
  background: var(--bg-ivory);
  text-align: center;
}

.scene3d-fallback img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 12px;
}

.chapter-card {
  background: #fff;
  border: 1px solid var(--border-hairline);
  border-left: 4px solid var(--border-strong);
  border-radius: 8px;
  padding: 24px 28px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.chapter-card.is-active-chapter {
  border-left-color: var(--brand-emerald);
  box-shadow: var(--shadow-sm);
}

/* Article Footer: References, Corrections, Copyright */
.article-footer-box {
  max-width: var(--article-width);
  margin: 32px auto 0;
  padding: 24px;
  border-top: 1px solid var(--border-hairline);
}

.correction-box {
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
}

.copyright-statement {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-hairline);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-secondary);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 17, 0.94);
  z-index: 2000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__controls {
  position: fixed;
  top: 16px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 2005;
}

.lightbox__btn {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.lightbox__stage {
  max-width: 94vw;
  max-height: 80vh;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  transition: transform 0.2s ease;
}

.lightbox__caption {
  color: #e5e7eb;
  font-size: 14px;
  margin-top: 12px;
  max-width: 780px;
  text-align: center;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 10;
  background: rgba(250, 248, 244, 0.98);
  border-top: 2px solid var(--ink-primary);
  padding: 48px 0 32px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-hairline);
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-emerald);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.footer-col a:hover {
  color: var(--brand-emerald);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Pagination & Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  background: var(--bg-ivory);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border-hairline);
}

.filter-bar input,
.filter-bar select {
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}

.filter-bar button {
  padding: 9px 18px;
  background: var(--brand-emerald);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.pagination a,
.pagination span {
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.pagination .is-current {
  background: var(--brand-emerald);
  border-color: var(--brand-emerald);
  color: #fff;
}

/* Responsive Breakpoints (360, 390, 768, 1024, 1440, 1920) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .headlines-rail {
    border-left: none;
    border-top: 1px solid var(--border-hairline);
    padding-left: 0;
    padding-top: 24px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .markets-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newsletter-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding-inline: 16px;
  }

  .header-masthead__inner {
    grid-template-columns: auto 1fr auto;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .header-search {
    display: none;
  }

  .grid-3,
  .grid-2-asym {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .article-header,
  .article-hero-media,
  .block-column,
  .block-wide {
    padding-inline: 16px;
  }

  .scene3d-shell.is-sticky-stage {
    position: relative;
    top: 0;
  }

  .scene3d-info-card {
    position: static;
    max-width: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

@media (max-width: 480px) {

  .markets-strip__grid,
  .footer-grid,
  .mobile-drawer__grid {
    grid-template-columns: 1fr;
  }

  .newsletter-box {
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .story-card:hover .card-media img {
    transform: none;
  }
}

/* ==========================================================================
   Modern, firm headline typography (site-wide)
   ========================================================================== */
.lead-story__title,
.headline-item__title,
.story-card__title,
.band-header__title,
.article-header__title,
.prose h2,
.prose h3,
.chapter-card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.article-header__title {
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.article-header__subtitle {
  font-family: var(--font-sans);
  font-weight: 450;
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .header-left .btn-outline { display: none; }
  .brand-name { font-size: 1.3rem; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-wordmark { gap: 8px; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 1.12rem; }
}
