/* Origin Advisory — cream + navy + terracotta, editorial */

:root {
  --bg: #F2EAD9;
  --bg-2: #EFE5D4;           /* warm beige — cards & insets */
  --paper: #FFFFFF;
  --ink: #0A2540;
  --ink-2: #0E2236;
  --ink-soft: #4A5C73;
  --muted: #7B8694;
  --line: rgba(10, 37, 64, 0.15);
  --line-2: rgba(10, 37, 64, 0.1);
  --accent: #C8531C;
  --accent-2: #C04A22;
  --accent-soft: #E36B3F;
  --rail-w: 68px;
  --serif: "Montserrat", system-ui, sans-serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --rf: 'Source Serif 4', Charter, Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-right: var(--rail-w);
}

h1, h2, h3, h4, .serif {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.0;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(52px, 7.5vw, 110px); }
h2 { font-size: clamp(36px, 4.5vw, 64px); line-height: 1.05; }
h3 { font-size: 20px; line-height: 1.2; font-weight: 700; }
h4 { font-size: 18px; line-height: 1.2; font-weight: 700; }
p  { margin: 0; text-wrap: pretty; color: var(--ink-soft); }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.italic { font-style: italic; }
.accent { color: var(--accent); }

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  display: inline-block;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 64px;
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 1.0s cubic-bezier(.22,.61,.36,1), transform 1.0s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============ SIDE RAIL ============ */
.side-rail {
  position: fixed;
  top: 0; right: 0;
  width: var(--rail-w);
  height: 100vh;
  background: var(--accent);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 36px;
}
.side-rail-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--bg);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 24px;
  left: 32px;
  z-index: 200;
  background: transparent;
}
.nav-inner {
  display: flex;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  height: 54px;
  width: auto;
  border-radius: 8px;
  display: block;
}
.brand-name {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}

/* ============ HERO — full-bleed ============ */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 37, 64, 0.72) 0%,
    rgba(10, 37, 64, 0.42) 45%,
    rgba(10, 37, 64, 0.18) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 100px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-eyebrow span {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 700;
}
.hero h1 {
  color: #fff;
  margin: 0 0 28px;
  max-width: 18ch;
}
.hero h1 .italic-accent {
  font-style: italic;
  color: var(--accent-soft);
  font-weight: 700;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(242, 234, 217, 0.82);
  max-width: 50ch;
  margin-bottom: 44px;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dot {
  width: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: background .4s ease;
}
.hero-dot.active { background: #fff; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--sans);
  border: 0;
  cursor: pointer;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(10, 37, 64, 0.28);
}
.btn-outline:hover { background: rgba(10, 37, 64, 0.05); border-color: var(--ink); }
.btn .arr { display: inline-flex; transition: transform .35s cubic-bezier(.22,.61,.36,1); }
.btn:hover .arr { transform: translateX(5px); }

/* ============ SECTION ============ */
.section { padding: 140px 0; }
.section-head { margin-bottom: 72px; }
.section-head .eyebrow { margin-bottom: 20px; }

/* ============ ABOUT ============ */
.about-text-centered {
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.about-text-centered .eyebrow { margin-bottom: 16px; }
.about-text-centered h2 { margin: 0 0 36px; }
.about-text-centered p { margin-bottom: 18px; font-size: 17px; font-weight: 400; }
.about-text-centered p:last-child { margin-bottom: 0; }

.about-img-wrap {
  max-width: 1100px;
  margin: 100px auto 0;
  padding: 0 80px 28px;
}
.img-editorial-frame {
  position: relative;
}
.img-editorial-frame img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  box-shadow: 20px 20px 0 rgba(10, 37, 64, 0.07), 0 0 0 1px rgba(10, 37, 64, 0.12);
}

/* ============ IMAGE BREAK ============ */
.img-break {
  width: 100%;
  height: 58vh;
  min-height: 440px;
  overflow: hidden;
  position: relative;
  background: var(--ink);
}
.img-break > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.28;
  mix-blend-mode: luminosity;
}
.img-break-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding: 0 80px;
  text-align: center;
}
.img-break-quote {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 30px);
  font-style: italic;
  font-weight: 400;
  color: rgba(242, 234, 217, 0.85);
  max-width: 820px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  margin: 0;
}

/* ============ SERVICES ============ */
.divider-line { border-top: 1px solid var(--line); }
.services .section-head { max-width: 700px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--line-2);
  padding: 40px 34px;
  transition: transform .4s cubic-bezier(.22,.61,.36,1),
              box-shadow .4s ease,
              border-color .4s ease,
              background .4s ease;
}
.service-card:hover {
  background: rgba(255, 255, 255, 0.6);
  border-top-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(10, 37, 64, 0.15);
}
.service-card .num {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
  display: block;
  margin-bottom: 28px;
}
.service-card h3 { margin-bottom: 14px; }
.service-card p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); font-weight: 400; }

/* ============ MAP ============ */
.map-section { padding: 140px 0; }
.section-center {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 56px;
}
.section-center h2 { margin-bottom: 16px; }
.section-center .head-sub {
  font-size: 16px;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: none;
}
.map-centered {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}
.map-frame {
  height: 620px;
  background: #E8E0CC;
  position: relative;
  overflow: hidden;
}
.map-zoom-hint {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(10, 37, 64, 0.12);
  pointer-events: auto;
  animation: hint-fade-in 0.4s ease;
}
.map-zoom-hint-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
}
.map-zoom-hint-close:hover { color: var(--ink); }
@keyframes hint-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.leaflet-container {
  background: #E8E0CC !important;
  font-family: var(--sans) !important;
}
.leaflet-control-attribution {
  background: rgba(242, 234, 217, 0.85) !important;
  font-size: 10px !important;
}
.leaflet-control-zoom a {
  background: var(--bg) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
}
.region-tooltip {
  background: var(--ink) !important;
  color: #fff !important;
  border: 0 !important;
  font-size: 10px !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18) !important;
  font-weight: 700;
  border-radius: 0 !important;
}
.region-tooltip::before { display: none !important; }

/* ============ MAP POPUP ============ */
.region-popup .leaflet-popup-content-wrapper {
  background: #F5EFE6 !important;
  border-radius: 0 !important;
  box-shadow: 0 16px 48px -8px rgba(10, 37, 64, 0.22) !important;
  border: 1px solid rgba(10, 37, 64, 0.1) !important;
  padding: 0 !important;
}
.region-popup .leaflet-popup-tip-container { display: none !important; }
.region-popup .leaflet-popup-content { margin: 0 !important; width: auto !important; }
.mpop { padding: 20px 22px 18px; min-width: 220px; max-width: 280px; }
.mpop-cat {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mpop-forth {
  font-size: 9px;
  letter-spacing: 0.1em;
  background: rgba(200, 83, 28, 0.1);
  color: var(--accent);
  padding: 2px 6px;
}
.mpop-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.mpop-desc {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 14px;
  font-weight: 400;
}
.mpop-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  font-family: var(--sans);
  transition: color 0.2s;
}
.mpop-btn:hover { color: var(--ink); }

/* HDI tooltip */
.hdi-tooltip-wrap {
  background: var(--bg) !important;
  color: var(--ink) !important;
  border: 1px solid rgba(10, 37, 64, 0.22) !important;
  font-size: 12px !important;
  padding: 8px 12px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
  border-radius: 0 !important;
  font-family: var(--sans) !important;
  line-height: 1.55 !important;
  max-width: 220px !important;
}
.hdi-tooltip-wrap::before { display: none !important; }
.leaflet-interactive:focus { outline: none; }
.hdi-tt b { font-weight: 700; font-size: 12px; color: var(--ink); }
.hdi-tt-rank { color: var(--ink-soft); font-size: 11px; font-weight: 400; }
.hdi-tt-country { color: #6b7280; font-size: 11px; font-weight: 400; display: block; margin-top: 1px; margin-bottom: 3px; }
.hdi-tt-tier {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  /* color set inline per tier */
}

/* Map filter row */
.map-filters {
  display: flex;
  gap: 0;
  margin-top: 16px;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 0;
}
.map-filter-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 8px 16px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.map-filter-btn:hover { color: var(--ink); }
.map-filter-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.map-likes-empty {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
  font-style: italic;
}

/* Map legend — two-row layout */
.map-legend-wrap {
  margin-top: 20px;
}
.map-legend-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.map-legend-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--ink-soft);
  padding: 10px 0;
}
.map-legend-divider {
  height: 1px;
  background: var(--line-2);
  margin: 0;
}
.map-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 400;
}
.map-legend-swatch {
  width: 14px; height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.map-legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.dot-red    { background: #e53e3e; }
.dot-orange { background: #C8531C; }
.dot-yellow { background: #d69e2e; }
.dot-green  { background: #38a169; }

.map-attribution {
  font-size: 10px;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 10px;
  line-height: 1.55;
  opacity: 0.7;
}

/* ============ MODAL ============ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 37, 64, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1500; /* must exceed Leaflet pane z-index (~800) */
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: #F5EFE6;
  width: min(700px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(16px);
  opacity: 0;
  transition: transform .5s cubic-bezier(.22,.61,.36,1), opacity .5s ease;
}
.modal-backdrop.open .modal { transform: none; opacity: 1; }
.modal-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.modal-body { padding: 36px 44px 44px; }
.modal-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.modal-forthcoming {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  background: rgba(200, 83, 28, 0.1);
  padding: 3px 8px;
}
.modal-cat {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 6px;
}
.modal-byline {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  font-style: italic;
  font-weight: 400;
}
.modal-body h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 20px;
  line-height: 1.15;
}
.modal-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-weight: 400;
}
.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 0;
  background: rgba(10, 37, 64, 0.08);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, transform .3s;
  z-index: 2;
}
.modal-close:hover { background: rgba(10, 37, 64, 0.16); transform: rotate(90deg); }

/* ============ INSIGHTS ============ */
.insights-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
}
.view-all {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .3s;
}
.view-all:hover { color: var(--accent); }
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.insight-card {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--line-2);
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform .4s cubic-bezier(.22,.61,.36,1),
              box-shadow .4s ease,
              border-color .4s ease;
}
.insight-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--accent);
  box-shadow: 0 20px 48px -24px rgba(10, 37, 64, 0.2);
}
.insight-card .tag {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 20px;
}
.insight-card h4 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}
.insight-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 24px;
  flex: 1;
  font-weight: 400;
}
.read-more {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ============ CONTACT ============ */
.contact-section {
  background: var(--ink);
  color: #C9D2DD;
  padding: 140px 0;
}
.contact-section .eyebrow { color: var(--accent-soft); }
.contact-section h2 {
  color: #fff;
  margin-bottom: 24px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  align-items: start;
}
.contact-left p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
  margin-bottom: 36px;
  max-width: 38ch;
  font-weight: 400;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}
.contact-email .icon-wrap {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
}
.field-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; }
.field label {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
  margin-bottom: 12px;
}
.field input, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 15px;
  font-family: var(--sans);
  font-weight: 400;
  padding: 8px 0 12px;
  outline: none;
  transition: border-color .3s ease;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.28); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent-soft); }
.field textarea { min-height: 90px; resize: vertical; }
.contact-section .btn-primary { margin-top: 8px; justify-self: start; }
.contact-section .btn-primary:hover { background: var(--accent-soft); }

/* ============ FOOTER ============ */
.footer {
  background: var(--ink-2);
  color: rgba(242, 234, 217, 0.75);
  padding: 80px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 28px;
}
.footer h5 {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 20px;
}
.footer-brand .name {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 20px;
  color: #F2EAD9;
  display: block;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(242, 234, 217, 0.55);
  max-width: 36ch;
  line-height: 1.65;
  font-weight: 400;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col li a {
  font-size: 14px;
  color: rgba(242, 234, 217, 0.75);
  font-weight: 400;
  transition: color .3s;
}
.footer-col li a:hover { color: var(--accent-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(242, 234, 217, 0.4);
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 400;
}

/* ============ HAMBURGER ============ */
.hamburger {
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger:hover span { background: #fff; }

/* ============ MENU OVERLAY ============ */
.menu-overlay {
  position: fixed;
  inset: 0;
  right: var(--rail-w);
  background: rgba(242, 234, 217, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }
.menu-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 64px;
  position: relative;
}
.menu-close {
  position: absolute;
  top: -52px; right: 64px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.3s, transform 0.3s;
}
.menu-close:hover { background: rgba(10, 37, 64, 0.06); transform: rotate(90deg); }
.menu-nav { display: flex; flex-direction: column; gap: 4px; }
.menu-link {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: color 0.3s ease, opacity 0.5s ease, transform 0.5s cubic-bezier(.22,.61,.36,1);
  text-decoration: none;
}
.menu-overlay.open .menu-link { opacity: 1; transform: none; }
.menu-link:hover { color: var(--accent); }
.menu-num {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 700;
  padding-bottom: 6px;
  min-width: 26px;
}
.menu-foot {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.menu-email {
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  font-weight: 400;
  transition: color 0.3s;
}
.menu-email:hover { color: var(--accent); }

/* ============ HOW IT WORKS ============ */
.section-intro {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 700px;
  font-weight: 400;
  margin-bottom: 0;
}

/* ============ USE CASES ============ */
.use-cases-section { background: var(--bg-2); }
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.use-case-card { border-top-color: var(--line-2); }
.use-case-card h3 { margin-bottom: 14px; }
.use-case-card p  { font-size: 15px; line-height: 1.65; font-weight: 400; }

/* ============ PRICING TIER ============ */
.tier-price {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}

/* ============ SECTION SUB ============ */
.section-sub {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-top: 14px;
  font-weight: 400;
  line-height: 1.6;
}

/* ============ Responsive ============ */
@media (max-width: 720px) {
  :root { --rail-w: 12px; }
  .side-rail-text { display: none; }
  .hamburger { width: 28px; height: 28px; padding: 4px; }
  .menu-inner { padding: 0 24px; }
  .menu-close { right: 24px; }
}
@media (max-width: 1024px) {
  .container, .nav-inner { padding: 0 32px; }
  .about-img-wrap { padding: 0 32px 20px; }
  .hero-img-wrap { padding: 0 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .use-cases-grid { grid-template-columns: 1fr 1fr; }
  .insights-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .map-centered { padding: 0 32px; }
}
@media (max-width: 640px) {
  .container, .nav-inner { padding: 0 20px; }
  .section { padding: 80px 0; }
  .hero-img-wrap { padding: 0 20px; }
  .about-img-wrap { padding: 0 20px 20px; }
  .insights .section-head, .insights-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .services-grid, .use-cases-grid, .insights-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-dots { padding-bottom: 48px; }
  .img-break-overlay { padding: 0 24px; }
  .map-centered { padding: 0 20px; }
  .modal-body { padding: 28px 24px 32px; }
  .modal-actions { flex-direction: column; }
}

/* ============================================================
   NEW — Modal covered list
   ============================================================ */
.modal-covered {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.modal-covered-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: 12px;
}
.modal-covered-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 9px;
}
.modal-covered-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.5;
}
.modal-covered-item::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

/* ============================================================
   NEW — Home quote (cinematic image + quote)
   ============================================================ */
.home-quote {
  position: relative;
  min-height: 80vh;
  background: var(--ink);
  display: flex;
  align-items: center;
}
.home-quote > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.28;
  mix-blend-mode: luminosity;
  display: block;
}
.home-quote-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 120px 0;
}
.home-quote-text {
  font-family: var(--serif);
  font-size: clamp(20px, 2.8vw, 42px);
  font-style: italic;
  font-weight: 400;
  color: rgba(242, 234, 217, 0.9);
  max-width: 860px;
  line-height: 1.5;
  letter-spacing: 0.005em;
  margin: 0 0 22px;
}
.home-quote-attr {
  font-size: 14px;
  color: rgba(242, 234, 217, 0.45);
  font-weight: 400;
  font-style: normal;
}

/* ============================================================
   NEW — Platform page
   ============================================================ */
.platform-hook {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.platform-hook-text {}

/* Mockup */
.platform-mockup {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 72px -20px rgba(10, 37, 64, 0.14);
  overflow: hidden;
}
.mockup-topbar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-2);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mockup-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
  display: inline-block;
}
.mockup-topbar-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
  margin-left: 8px;
}
.mockup-query-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
  font-size: 13px;
  color: var(--ink);
  font-weight: 400;
}
.mockup-timer {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
  padding: 8px 18px;
  border-bottom: 1px solid var(--line-2);
  text-transform: uppercase;
}
.mockup-result {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-2);
}
.mockup-result:last-child { border-bottom: none; }
.mockup-result-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}
.mockup-result-body {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  font-weight: 400;
}
.mockup-source {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 7px;
  letter-spacing: 0.02em;
}

/* How it works flow */
.how-it-works-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  gap: 0;
}
.how-it-works-flow::before {
  content: '';
  position: absolute;
  top: 23px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
}
.flow-step { padding: 0 40px; }
.flow-step:first-child { padding-left: 0; }
.flow-step:last-child  { padding-right: 0; }
.flow-step-num {
  width: 46px; height: 46px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.flow-step h3 { font-size: 18px; margin-bottom: 12px; }
.flow-step p  { font-size: 15px; line-height: 1.65; }

/* Asymmetric use cases */
.use-cases-asymmetric {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 52px;
}
.uca-img-card {
  position: relative;
  min-height: 360px;
  background: var(--ink);
  overflow: hidden;
}
.uca-img-card > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.42;
  display: block;
  transition: opacity 0.5s ease;
}
.uca-img-card:hover > img { opacity: 0.52; }
.uca-img-content {
  position: absolute;
  inset: 0;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.uca-img-content h3 { color: #fff; font-size: 22px; margin-bottom: 12px; }
.uca-img-content p  { color: rgba(255,255,255,0.72); font-size: 15px; line-height: 1.6; font-weight: 400; }
.uca-text-card {
  background: var(--bg-2);
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.uca-text-card h3 { font-size: 20px; margin-bottom: 14px; }
.uca-text-card p  { font-size: 15px; color: var(--ink-soft); line-height: 1.65; font-weight: 400; }

/* CTA bar */
.cta-bar { background: var(--accent); padding: 72px 0; }
.cta-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-bar h2 { color: #fff; font-size: clamp(22px, 3vw, 40px); }
.btn-white-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-white-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-white-outline .arr { display: inline-flex; transition: transform 0.3s; }
.btn-white-outline:hover .arr { transform: translateX(4px); }

/* ============================================================
   NEW — Access page
   ============================================================ */
.access-header { max-width: 640px; margin-bottom: 0; }
.access-header .eyebrow { margin-bottom: 16px; }
.access-header h2 { margin-bottom: 20px; }
.access-header p  { font-size: 17px; color: var(--ink-soft); font-weight: 400; line-height: 1.65; }

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  align-items: start;
  margin-top: 60px;
}
.tier-card-flat {
  background: var(--bg-2);
  padding: 40px 32px;
}
.tier-card-featured {
  background: #fff;
  padding: 48px 36px;
  border-top: 4px solid var(--accent);
  box-shadow: 0 28px 64px -20px rgba(10, 37, 64, 0.18);
  transform: translateY(-14px);
  position: relative;
  z-index: 1;
}
.tier-most-popular {
  display: block;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}
.tier-icon {
  width: 36px; height: 36px;
  margin-bottom: 20px;
  color: var(--accent);
  display: block;
}
.tier-card-flat h3, .tier-card-featured h3 { font-size: 20px; margin-bottom: 6px; }
.tier-price-large {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.04em;
  margin: 14px 0 18px;
  display: block;
}
.tier-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
  font-weight: 400;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-2);
}
.tier-features {
  list-style: none;
  padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.tier-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.4;
}
.tier-feature-check {
  width: 15px; height: 15px;
  margin-top: 1px;
  flex-shrink: 0;
  color: var(--accent);
}

/* FAQ */
.faq-section { padding: 100px 0; }
.faq-grid { max-width: 820px; margin-top: 48px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.faq-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.3s cubic-bezier(.22,.61,.36,1);
}
.faq-icon.open { transform: rotate(45deg); }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(.22,.61,.36,1);
}
.faq-answer.open { max-height: 320px; }
.faq-answer-inner {
  padding-bottom: 22px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  font-weight: 400;
}

/* ============================================================
   NEW — Insights page
   ============================================================ */
.insights-editorial-head { max-width: 760px; }
.insights-editorial-head .eyebrow { margin-bottom: 16px; }
.insights-editorial-head h2 { margin-bottom: 20px; }

.featured-insight {
  display: grid;
  grid-template-columns: 6fr 4fr;
  min-height: 500px;
}
.featured-insight-image {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.featured-insight-image img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.featured-insight-body {
  background: var(--ink);
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.featured-insight-tag {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 700;
  display: block;
  margin-bottom: 20px;
}
.featured-insight-body h3 {
  color: #fff;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.2;
  margin-bottom: 18px;
}
.featured-insight-body p {
  color: rgba(242,234,217,0.72);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
  flex: 1;
  margin-bottom: 24px;
}
.read-more-white {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.insight-h-heading {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.insight-h-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-2);
  align-items: start;
}
.insight-h-img {
  width: 110px; height: 76px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-2);
}
.insight-h-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.insight-h-body {}
.insight-h-tag {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 7px;
}
.insight-h-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 7px;
  line-height: 1.3;
}
.insight-h-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 10px;
}

/* Newsletter */
.newsletter-bar { background: var(--ink); padding: 88px 0; margin-top: 80px; }
.newsletter-inner { max-width: 520px; margin: 0 auto; text-align: center; }
.newsletter-bar h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.8vw, 34px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}
.newsletter-bar p { color: rgba(242,234,217,0.55); font-size: 14px; margin-bottom: 28px; font-weight: 400; }
.newsletter-form { display: flex; }
.newsletter-input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-right: none;
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.3s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-input:focus { border-color: rgba(255,255,255,0.35); }
.btn-subscribe {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 13px 22px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}
.btn-subscribe:hover { background: var(--accent-2); }

/* ============================================================
   NEW — Contact page
   ============================================================ */
.contact-page-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 100px;
  align-items: start;
}
.contact-page-left .eyebrow { color: var(--accent-soft); }
.contact-page-left h2 { color: #fff; margin-bottom: 20px; }
.contact-page-left p {
  font-size: 16px;
  color: rgba(255,255,255,0.62);
  line-height: 1.65;
  font-weight: 400;
  margin-bottom: 36px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
}
.contact-detail-item a { color: rgba(255,255,255,0.85); }
.contact-prefer-email {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-weight: 400;
  line-height: 1.6;
}
.contact-prefer-email a { color: var(--accent-soft); }

/* ============================================================
   NEW — Responsive additions
   ============================================================ */
@media (max-width: 1024px) {
  .platform-hook { grid-template-columns: 1fr; gap: 48px; }
  .use-cases-asymmetric { grid-template-columns: 1fr; }
  .uca-img-card { min-height: 280px; }
  .featured-insight { grid-template-columns: 1fr; min-height: auto; }
  .featured-insight-image { height: 300px; position: relative; }
  .featured-insight-body { padding: 36px 32px; }
  .tiers-grid { grid-template-columns: 1fr; }
  .tier-card-featured { transform: none; }
  .contact-page-grid { grid-template-columns: 1fr; gap: 56px; }
  .cta-bar-inner { flex-direction: column; align-items: flex-start; }
  .how-it-works-flow::before { display: none; }
}
@media (max-width: 640px) {
  .how-it-works-flow { grid-template-columns: 1fr; }
  .flow-step { padding: 0; margin-bottom: 40px; }
  .flow-step:last-child { margin-bottom: 0; }
  .newsletter-form { flex-direction: column; }
  .newsletter-input { border-right: 1px solid rgba(255,255,255,0.14); }
  .insight-h-card { grid-template-columns: 1fr; }
  .insight-h-img { width: 100%; height: 160px; }
  .home-quote-text { font-size: clamp(18px, 5vw, 28px); }
}

/* ============================================================
   NEW — Live news map: article dots, cluster, indicator, modal
   ============================================================ */

/* Cluster bubble — burnt orange */
.cluster-bubble {
  width: 34px; height: 34px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  border: 2px solid #fff;
  box-shadow: 0 3px 12px rgba(200, 83, 28, 0.45);
  font-family: var(--sans);
  letter-spacing: -0.02em;
}

/* Ring+dot article markers */
.art-dot { cursor: pointer; }
.art-dot-pulse > div:first-child {
  animation: dot-ring-pulse 2s ease-out infinite;
}
@keyframes dot-ring-pulse {
  0%   { transform: scale(1); opacity: 0.35; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Live indicator — above map */
.live-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.live-dot {
  width: 8px; height: 8px;
  background: #e53e3e;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(229, 62, 62, 0.3);
  animation: live-pulse 1.8s ease-out infinite;
}
@keyframes live-pulse {
  0%   { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}
.live-label {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 10px;
}
.live-sep { color: var(--ink-soft); opacity: 0.5; }
.live-count { color: var(--ink); font-weight: 600; letter-spacing: 0.06em; font-size: 10px; }
.live-time  { color: var(--ink-soft); font-weight: 400; font-size: 10px; letter-spacing: 0.06em; }

/* Significance badge */
.significance-badge {
  display: inline-block;
  padding: 3px 9px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 2px;
}
.badge-red    { background: rgba(229, 62, 62, 0.12);  color: #c53030; }
.badge-orange { background: rgba(200, 83, 28, 0.12);  color: var(--accent); }
.badge-yellow { background: rgba(214, 158, 46, 0.12); color: #b7791f; }
.badge-green  { background: rgba(56, 161, 105, 0.12); color: #276749; }

/* Article modal */
.article-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 37, 64, 0.88);
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.article-modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
.article-modal {
  background: var(--bg);
  max-width: 520px;
  width: 100%;
  padding: 0;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}
.article-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(242,234,217,0.85); border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  transition: color 0.2s, background 0.2s;
  z-index: 2;
}
.article-modal-close:hover { background: var(--bg); color: var(--ink); }
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.article-meta-city {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.article-meta-time {
  font-size: 10px;
  color: var(--ink-soft);
  font-weight: 400;
}
.article-modal h3 {
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.article-modal p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
  font-weight: 400;
  margin-bottom: 24px;
}
.article-modal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s;
}
.article-modal-link:hover { gap: 12px; }

/* Article modal image */
.article-modal-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.article-modal-body {
  padding: 28px 40px 40px;
}

/* ── Back button in article modal (when opened from list) ── */
.article-modal-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  font-family: var(--sans);
  transition: color 0.2s;
}
.article-modal-back:hover { color: var(--accent); }

/* ── Tappable country entity spans ── */
.em-country {
  color: var(--ink);
  border-bottom: 1.5px solid rgba(200,83,28,0.4);
  cursor: pointer;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.em-country:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Country sheet (slides up from bottom of article modal) ── */
.country-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,37,64,0.35);
  display: flex;
  align-items: flex-end;
  border-radius: inherit;
  z-index: 10;
}
.country-sheet {
  width: 100%;
  background: var(--paper);
  border-radius: 8px 8px 0 0;
  padding: 24px 24px 32px;
  box-shadow: 0 -4px 32px rgba(10,37,64,0.12);
  animation: slideUpSheet 0.22s ease;
}
@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.country-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.country-sheet-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.country-sheet-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  line-height: 1;
}
.country-sheet-follow {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background .2s;
  margin-bottom: 20px;
}
.country-sheet-follow:hover:not(:disabled) { background: var(--accent-2); }
.country-sheet-follow.followed {
  background: rgba(200,83,28,0.1);
  color: var(--accent);
  cursor: default;
}
.country-sheet-stories-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.country-sheet-story {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
}
.country-sheet-story:last-child { border-bottom: none; }
.country-sheet-story-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 3px;
}
.country-sheet-story-meta {
  font-size: 11px;
  color: var(--muted);
}

/* ── Country aggregate marker (zoom < 7) ── */
.country-agg-marker {
  width: 32px;
  height: 32px;
  background: #C8531C;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(200, 83, 28, 0.55);
  cursor: pointer;
  font-family: var(--sans);
  letter-spacing: -0.02em;
  transition: transform 0.15s;
}
.country-agg-marker:hover { transform: scale(1.1); }

/* ── National articles floating panel (zoom ≥ 7) ── */
.national-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #F5EFE6;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 10px 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  border-radius: 0;
  transition: background 0.2s;
}
.national-panel:hover { background: var(--bg-2); }
.national-panel-count { color: var(--accent); font-weight: 800; }
.national-panel-chevron { color: var(--accent); font-size: 13px; font-weight: 400; }

/* ── Article list modal ── */
.list-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 37, 64, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1550;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.list-modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
.list-modal {
  background: #F5EFE6;
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  position: relative;
  display: flex;
  flex-direction: column;
}
.list-modal-header {
  padding: 36px 44px 24px;
  border-bottom: 1px solid rgba(10, 37, 64, 0.12);
  flex-shrink: 0;
  position: relative;
}
.list-modal-eyebrow {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}
.list-modal-heading {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-family: var(--sans);
  margin: 0;
}
.list-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(10, 37, 64, 0.08);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.list-modal-close:hover { background: rgba(10, 37, 64, 0.16); transform: rotate(90deg); }
.list-modal-tabs {
  display: flex;
  gap: 0;
  padding: 0 44px;
  border-bottom: 1px solid rgba(10, 37, 64, 0.12);
  flex-shrink: 0;
}
.list-modal-tab {
  padding: 14px 0;
  margin-right: 24px;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--sans);
  transition: color 0.2s;
}
.list-modal-tab:hover { color: var(--ink); }
.list-modal-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.list-modal-scroll {
  overflow-y: auto;
  flex: 1;
  padding: 0 44px;
}
.list-article-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(10, 37, 64, 0.1);
  cursor: pointer;
  transition: background 0.15s;
}
.list-article-item:last-child { border-bottom: none; }
.list-article-item:hover .list-article-headline { color: var(--accent); }
.list-article-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  border: 1.5px solid rgba(255,255,255,0.5);
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.list-article-content { flex: 1; min-width: 0; }
.list-article-headline {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
  font-family: var(--sans);
  transition: color 0.15s;
}
.list-article-meta {
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 400;
}

/* ── National Articles bottom button ── */
.nat-btn-row {
  display: flex;
  justify-content: center;
  margin: 16px 0 0;
}
.nat-articles-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #F5EFE6;
  border: 1.5px solid #0A2540;
  padding: 16px 32px;
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(10,37,64,0.12);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
.nat-articles-btn:hover { background: #0A2540; color: #F5EFE6; }
.nat-articles-btn:hover .live-dot { background: #F5EFE6; box-shadow: none; }
.nat-btn-sep { color: var(--accent); opacity: 0.7; }
.nat-btn-count { color: var(--ink); font-weight: 800; }
.nat-btn-cta { color: var(--accent); }
.nat-articles-btn:hover .nat-btn-cta,
.nat-articles-btn:hover .nat-btn-count,
.nat-articles-btn:hover .nat-btn-sep { color: #F5EFE6; opacity: 1; }

/* ── National Articles modal tabs (allow scroll for many countries) ── */
.nat-modal-tabs {
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nat-modal-tabs::-webkit-scrollbar { display: none; }

/* ============ FUNDING SCAN PAGE ============ */
.scan-form { max-width: 820px; }
.scan-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
  margin-top: 48px;
}
.scan-field { display: flex; flex-direction: column; gap: 8px; }
.scan-field-full { grid-column: 1 / -1; }
.scan-field label {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.scan-field input, .scan-field textarea, .scan-field select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 15px;
  font-family: var(--sans);
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
}
.scan-field input:focus, .scan-field textarea:focus, .scan-field select:focus {
  border-color: var(--accent);
}
.scan-field select { cursor: pointer; }
.scan-disclaimer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--bg-2);
}
.scan-results { max-width: 860px; }
.scan-results-header {
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 32px;
}
.scan-results-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.scan-score-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.scan-score-num { font-size: 72px; font-weight: 800; line-height: 1; color: #fff; }
.scan-score-denom { font-size: 28px; color: rgba(255,255,255,0.4); }
.scan-score-tier { margin-left: 12px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; }
.scan-progress-bar { height: 6px; background: rgba(255,255,255,0.15); border-radius: 3px; overflow: hidden; }
.scan-progress-fill { height: 100%; background: var(--accent-soft); border-radius: 3px; transition: width .8s cubic-bezier(.22,.61,.36,1); }
.scan-results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.scan-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.scan-card-title { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 20px; }
.scan-check-item { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 12px; line-height: 1.45; }
.scan-check-yes span { color: #38a169; font-weight: 700; flex-shrink: 0; }
.scan-check-no span { color: var(--accent); font-weight: 700; flex-shrink: 0; }
.scan-funder-tag { display: inline-block; background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; font-size: 13px; margin: 0 6px 8px 0; }
.scan-step { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; font-size: 14px; line-height: 1.45; }
.scan-step-num { background: var(--accent); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.scan-success { text-align: center; padding: 64px 40px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.scan-success-icon { width: 56px; height: 56px; background: #38a169; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 20px; }
.scan-success h3 { margin-bottom: 12px; }
.scan-success p { color: var(--ink-soft); max-width: 38ch; margin: 0 auto; }

/* ============ FOR NGOs PAGE ============ */
.ngo-use-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.ngo-use-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 24px;
}
.ngo-use-icon { font-size: 20px; color: var(--accent); margin-bottom: 14px; font-weight: 800; }
.ngo-use-card h4 { margin-bottom: 10px; }
.ngo-use-card p { font-size: 15px; color: var(--ink-soft); }

.advisory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.advisory-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.advisory-card-title { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.advisory-card-who { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.advisory-card-who span { font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.advisory-card-desc { font-size: 14px; color: var(--ink-soft); flex: 1; margin-bottom: 20px; }
.advisory-card-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-top: auto; }

/* ============ FOR FUNDERS PAGE ============ */
.coming-soon-pill {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-top: 16px;
  margin-bottom: 4px;
}
.funder-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

/* ============ RESEARCH NETWORK PAGE ============ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.benefit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 24px;
}
.benefit-num { font-size: 10px; letter-spacing: 0.22em; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.benefit-card h4 { margin-bottom: 8px; }
.benefit-card p { font-size: 14px; color: var(--ink-soft); }

.how-steps { max-width: 680px; }
.how-step { display: flex; gap: 28px; align-items: flex-start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.how-step:first-child { border-top: 1px solid var(--line); }
.how-step-num { font-size: 40px; font-weight: 800; color: var(--line); line-height: 1; flex-shrink: 0; width: 48px; }
.how-step-body h4 { margin-bottom: 8px; }
.how-step-body p { font-size: 15px; color: var(--ink-soft); }

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.module-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 24px;
}
.module-num { font-size: 10px; letter-spacing: 0.22em; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.module-card h4 { margin-bottom: 10px; }
.module-card p { font-size: 13px; color: var(--ink-soft); }

.network-signup-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.network-signup-left h2 { line-height: 1.1; }

/* ============ INSIGHTS (EXTENDED) ============ */
.insights-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 36px;
  margin-bottom: 8px;
}
.insights-filter-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: 13px;
  font-family: var(--sans);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .2s;
}
.insights-filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.insights-filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.report-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.report-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.report-card:hover { box-shadow: 0 6px 24px rgba(10,37,64,0.08); transform: translateY(-2px); }
.report-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.report-tag { font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; }
.report-tag-city-brief     { background: rgba(200,83,28,0.1); color: var(--accent); }
.report-tag-district-brief { background: rgba(127,185,53,0.12); color: #4a7c1f; }
.report-tag-sector-report  { background: rgba(14,34,54,0.08); color: var(--ink); }
.report-tag-donor-brief    { background: rgba(232,197,71,0.18); color: #7a6416; }
.report-location { font-size: 12px; color: var(--muted); }
.report-title { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 10px; line-height: 1.3; }
.report-summary { font-size: 13px; color: var(--ink-soft); line-height: 1.6; flex: 1; margin-bottom: 20px; }
.report-card-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; }
.report-meta { display: flex; flex-direction: column; gap: 2px; }
.report-author { font-size: 12px; font-weight: 600; color: var(--ink); }
.report-date { font-size: 11px; color: var(--muted); }

/* ============ PILOT PAGE ============ */
.pilot-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pilot-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 24px;
}
.pilot-card h4 { margin-bottom: 10px; }
.pilot-card > p { font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; }
.pilot-card-meta { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 16px; }
.pilot-label { font-weight: 700; color: var(--ink); margin-right: 4px; }

.pilot-ask-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.pilot-ask-list { list-style: none; padding: 0; margin: 24px 0 0; }
.pilot-ask-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; color: var(--ink-soft); }
.pilot-ask-list li span { color: var(--accent); font-weight: 700; flex-shrink: 0; }
.pilot-cta-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 40px; }
.pilot-cta-box h3 { margin-bottom: 12px; }
.pilot-cta-box > p { color: var(--ink-soft); font-size: 15px; }

/* ============ AI ASSISTANT ============ */
.assistant-wrap {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 1400;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.assistant-panel {
  width: 380px;
  max-height: 540px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(10,37,64,0.18);
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  overflow: hidden;
}
.assistant-header {
  background: var(--ink);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.assistant-title { font-size: 14px; font-weight: 800; }
.assistant-subtitle { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.assistant-close { background: none; border: none; color: rgba(255,255,255,0.6); font-size: 22px; cursor: pointer; line-height: 1; padding: 0; }
.assistant-close:hover { color: #fff; }
.assistant-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.assistant-msg { max-width: 86%; border-radius: 10px; padding: 10px 14px; font-size: 13px; line-height: 1.55; }
.assistant-msg p { margin: 0 0 4px; color: inherit; font-size: inherit; }
.assistant-msg p:last-child { margin-bottom: 0; }
.assistant-bullet { margin: 2px 0; }
.assistant-msg-assistant { background: var(--bg-2); color: var(--ink); align-self: flex-start; }
.assistant-msg-user { background: var(--ink); color: #fff; align-self: flex-end; }
.assistant-msg-user p { color: #fff; }
.assistant-typing { display: flex; gap: 5px; align-items: center; padding: 14px; }
.assistant-typing span { width: 7px; height: 7px; background: var(--muted); border-radius: 50%; animation: typing-dot 1.2s infinite; }
.assistant-typing span:nth-child(2) { animation-delay: 0.2s; }
.assistant-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-dot { 0%,60%,100% { opacity:0.25; transform: scale(1); } 30% { opacity:1; transform: scale(1.2); } }
.assistant-prompts {
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-2);
  background: var(--bg-2);
  flex-shrink: 0;
}
.assistant-prompt-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 11px;
  font-size: 11px;
  font-family: var(--sans);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.assistant-prompt-chip:hover { border-color: var(--accent); color: var(--accent); }
.assistant-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line-2);
  flex-shrink: 0;
}
.assistant-input {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: var(--sans);
  color: var(--ink);
  outline: none;
}
.assistant-input:focus { border-color: var(--accent); }
.assistant-send {
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
}
.assistant-send:hover { background: var(--accent-2); }
.assistant-disclaimer { font-size: 10px; color: var(--muted); padding: 8px 12px; text-align: center; background: var(--bg-2); border-top: 1px solid var(--line-2); flex-shrink: 0; line-height: 1.5; }
.assistant-fab {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--sans);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(10,37,64,0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .2s, transform .2s;
}
.assistant-fab:hover { background: var(--accent); transform: translateY(-2px); }
.assistant-fab-open { background: var(--accent); font-size: 22px; padding: 8px 18px; }
.assistant-fab-label { letter-spacing: -0.01em; }

/* ============ Responsive — new pages ============ */
@media (max-width: 1024px) {
  .ngo-use-grid, .advisory-grid, .benefits-grid, .modules-grid, .report-cards-grid, .pilot-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
  .funder-cta-grid, .pilot-ask-grid, .network-signup-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}
@media (max-width: 720px) {
  .scan-form-grid { grid-template-columns: 1fr; }
  .scan-results-grid { grid-template-columns: 1fr; }
  .ngo-use-grid, .advisory-grid, .benefits-grid, .modules-grid, .report-cards-grid, .pilot-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ Intelligence Hub ============ */
.intel-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 8px;
}
.intel-tool-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--bg-2);
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 28px 24px 22px;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.intel-tool-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(200,83,28,.12); }
.intel-tool-card.active { border-color: var(--accent); background: #fff; box-shadow: 0 6px 28px rgba(200,83,28,.15); }
.intel-tool-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(200,83,28,.1);
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.intel-tool-title { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 8px; line-height: 1.3; }
.intel-tool-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 auto; flex: 1; }
.intel-tool-open { font-size: 12px; font-weight: 600; color: var(--accent); margin-top: 18px; letter-spacing: .02em; }

.intel-form-wrap {
  margin-top: 36px;
  background: #fff;
  border: 1.5px solid rgba(10,37,64,.1);
  border-radius: 12px;
  padding: 36px 40px 40px;
  scroll-margin-top: 120px;
}
.intel-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.intel-form-header h3 { font-size: 22px; font-weight: 700; color: var(--ink); margin: 0; }
.intel-form-close { background: none; border: none; font-size: 24px; color: var(--ink-soft); cursor: pointer; padding: 4px 8px; line-height: 1; }
.intel-form-close:hover { color: var(--ink); }
.intel-disclaimer { font-size: 12px; color: var(--ink-soft); opacity: .75; font-style: italic; line-height: 1.5; }

.intel-loading { display: flex; align-items: center; gap: 16px; margin-top: 32px; padding: 24px; background: var(--bg-2); border-radius: 8px; }
.intel-spinner { width: 24px; height: 24px; border: 3px solid rgba(200,83,28,.2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.intel-loading p { font-size: 14px; color: var(--ink-soft); margin: 0; }

.intel-result-output { margin-top: 36px; padding-top: 36px; border-top: 1.5px solid rgba(10,37,64,.08); scroll-margin-top: 120px; }
.intel-result-header { margin-bottom: 24px; }
.intel-result-header h4 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.intel-result-org { font-size: 13px; color: var(--ink-soft); margin: 0; }
.intel-result-cta { margin-top: 36px; padding: 28px 32px; background: var(--bg-2); border-radius: 10px; }
.intel-result-cta p { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0; }

/* Donor shortlist result */
.intel-donor-list { display: flex; flex-direction: column; gap: 16px; }
.intel-donor-card { background: var(--bg-2); border-radius: 8px; padding: 20px 24px; }
.intel-donor-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.intel-donor-name { font-size: 15px; font-weight: 700; color: var(--ink); display: block; margin-bottom: 3px; }
.intel-donor-type { font-size: 11px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.intel-fit-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.intel-fit-high { background: #d1fae5; color: #065f46; }
.intel-fit-mediumhigh { background: #d1fae5; color: #065f46; }
.intel-fit-medium { background: #fef3c7; color: #92400e; }
.intel-donor-window { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.intel-donor-note { font-size: 13.5px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* Brief generator result */
.intel-brief-doc { background: var(--bg-2); border-radius: 10px; padding: 32px 36px; }
.intel-brief-section { margin-bottom: 24px; }
.intel-brief-section:last-child { margin-bottom: 0; }
.intel-brief-section h5 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin: 0 0 10px; }
.intel-brief-section p { font-size: 14px; color: var(--ink); line-height: 1.7; margin: 0 0 8px; }
.intel-brief-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.intel-brief-table td { padding: 8px 0; border-bottom: 1px solid rgba(10,37,64,.08); color: var(--ink); }
.intel-brief-table td:last-child { text-align: right; }
.intel-brief-table-total td { border-top: 2px solid var(--ink); border-bottom: none; padding-top: 12px; }

/* M&E indicators result */
.intel-indicators { display: flex; flex-direction: column; gap: 20px; }
.intel-indicator-group { border-radius: 10px; overflow: hidden; }
.intel-indicator-output .intel-indicator-level { background: rgba(59,130,246,.12); color: #1d4ed8; }
.intel-indicator-outcome .intel-indicator-level { background: rgba(16,185,129,.12); color: #047857; }
.intel-indicator-impact .intel-indicator-level { background: rgba(200,83,28,.12); color: var(--accent); }
.intel-indicator-level { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: 10px 20px; margin: 0; }
.intel-indicator-row { background: var(--bg-2); padding: 14px 20px; border-bottom: 1px solid rgba(10,37,64,.06); }
.intel-indicator-row:last-child { border-bottom: none; }
.intel-indicator-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.intel-indicator-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--ink-soft); }

/* Sector snapshot result */
.intel-snapshot { display: flex; flex-direction: column; gap: 24px; }
.intel-snapshot-section { background: var(--bg-2); border-radius: 8px; padding: 24px 28px; }
.intel-snapshot-section h5 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin: 0 0 12px; }
.intel-snapshot-section p { font-size: 14px; color: var(--ink); line-height: 1.7; margin: 0; }
.intel-snapshot-actors { display: flex; flex-direction: column; gap: 8px; }
.intel-snapshot-actor { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.intel-snapshot-actor strong { color: var(--ink); }
.intel-snapshot-list { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.intel-snapshot-window { display: flex; align-items: baseline; gap: 12px; font-size: 14px; color: var(--ink-soft); padding: 8px 0; border-bottom: 1px solid rgba(10,37,64,.06); }
.intel-snapshot-window:last-child { border-bottom: none; }
.intel-snapshot-donor { font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; }

/* Pitch reviewer result */
.intel-pitch-review { display: flex; flex-direction: column; gap: 16px; }
.intel-review-section { border-radius: 8px; padding: 20px 24px; }
.intel-review-strong { background: #f0fdf4; border-left: 4px solid #22c55e; }
.intel-review-gaps { background: #fef2f2; border-left: 4px solid #ef4444; }
.intel-review-language { background: #fffbeb; border-left: 4px solid #f59e0b; }
.intel-review-score { background: var(--bg-2); border-left: 4px solid var(--accent); }
.intel-review-section h5 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; color: var(--ink); }
.intel-review-section ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.intel-review-section p { font-size: 14px; color: var(--ink-soft); margin: 0 0 12px; line-height: 1.7; }
.intel-review-rating { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.intel-rating-bar-wrap { flex: 1; max-width: 200px; height: 8px; background: rgba(10,37,64,.1); border-radius: 4px; overflow: hidden; }
.intel-rating-bar { height: 100%; background: var(--accent); border-radius: 4px; }
.intel-review-rating span { font-size: 14px; font-weight: 700; color: var(--ink); }

/* Theory of Change result */
.intel-toc { display: flex; flex-direction: column; gap: 0; }
.toc-stage { position: relative; background: var(--bg-2); border-radius: 8px; padding: 20px 24px; margin-bottom: 4px; }
.toc-inputs .toc-stage-label  { color: #1d4ed8; }
.toc-activities .toc-stage-label { color: #7c3aed; }
.toc-outputs .toc-stage-label { color: #047857; }
.toc-outcomes .toc-stage-label { color: #c2410c; }
.toc-impact .toc-stage-label { color: var(--ink); }
.toc-stage-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.toc-stage-items { margin: 0; padding-left: 18px; }
.toc-stage-items li { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 4px; }
.toc-arrow { text-align: center; font-size: 20px; color: var(--ink-soft); padding: 4px 0; }
.intel-toc-assumptions { margin-top: 20px; background: rgba(200,83,28,.06); border-radius: 8px; padding: 20px 24px; }
.intel-toc-assumptions h5 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin: 0 0 10px; }
.intel-toc-assumptions ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.7; }

/* ============ For Funders — Sample Output ============ */
.intel-sample-output {
  background: #fff;
  border: 1.5px solid rgba(10,37,64,.1);
  border-radius: 12px;
  overflow: hidden;
  max-width: 760px;
}
.intel-sample-header {
  padding: 24px 32px 20px;
  border-bottom: 1px solid rgba(10,37,64,.08);
}
.intel-sample-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 6px; }
.intel-sample-title { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.intel-sample-meta { font-size: 12px; color: var(--ink-soft); }
.intel-sample-body { padding: 24px 32px; }
.intel-sample-section { margin-bottom: 20px; }
.intel-sample-section:last-child { margin-bottom: 0; }
.intel-sample-section h5 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink); margin: 0 0 8px; }
.intel-sample-section p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; margin: 0; }
.intel-sample-section ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.intel-sample-footer { padding: 12px 32px; background: var(--bg-2); font-size: 11px; color: var(--ink-soft); letter-spacing: .04em; text-align: right; }

/* ============ Funder Tiers ============ */
.funder-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.funder-tier-card {
  position: relative;
  background: #fff;
  border: 1.5px solid rgba(10,37,64,.1);
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.funder-tier-featured { border-color: var(--accent); box-shadow: 0 8px 32px rgba(200,83,28,.15); }
.funder-tier-badge { position: absolute; top: -1px; right: 24px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 12px; border-radius: 0 0 8px 8px; }
.funder-tier-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); margin-bottom: 8px; }
.funder-tier-price { font-size: 32px; font-weight: 800; color: var(--ink); line-height: 1; margin-bottom: 6px; }
.funder-tier-timeline { font-size: 12px; color: var(--ink-soft); margin-bottom: 20px; }
.funder-tier-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 24px; }
.funder-tier-features { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.funder-tier-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.funder-tier-features .tier-feature-check { flex-shrink: 0; margin-top: 2px; }

/* ============ Editorial Standards ============ */
.editorial-standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.editorial-standard-card {
  background: var(--bg-2);
  border-radius: 10px;
  padding: 28px 24px;
}
.editorial-standard-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.editorial-standard-card h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.editorial-standard-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.65; margin: 0; }

/* ============ Services Page ============ */
.services-full-list { display: flex; flex-direction: column; gap: 32px; margin-top: 8px; }
.service-full-card {
  background: #fff;
  border: 1.5px solid rgba(10,37,64,.1);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
}
.service-full-top {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 32px;
  padding: 36px 40px 32px;
  border-bottom: 1px solid rgba(10,37,64,.07);
  align-items: start;
}
.service-full-title { font-size: 22px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.service-full-who { font-size: 13.5px; color: var(--ink-soft); margin: 0; line-height: 1.55; }
.service-full-meta { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.service-price-block { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.service-price { font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1; }
.service-timeline-tag { font-size: 12px; color: var(--ink-soft); background: var(--bg-2); padding: 4px 10px; border-radius: 4px; }
.service-full-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-2);
}
.service-includes-col { padding: 28px 40px; border-right: 1px solid rgba(10,37,64,.07); }
.service-sample-col { padding: 28px 40px; }
.service-includes-col h5, .service-sample-col h5 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin: 0 0 14px; }
.service-includes-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.service-includes-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.service-includes-list .tier-feature-check { flex-shrink: 0; margin-top: 2px; }
.service-sample-box { background: #fff; border-radius: 8px; padding: 18px 20px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; font-style: italic; }
.service-sample-box p { margin: 0; }

/* ============ Responsive — Intelligence, Services, Tiers ============ */
@media (max-width: 1024px) {
  .intel-tools-grid { grid-template-columns: 1fr 1fr; }
  .funder-tiers-grid { grid-template-columns: 1fr; }
  .editorial-standards-grid { grid-template-columns: 1fr 1fr; }
  .service-full-top { grid-template-columns: 1fr; }
  .service-full-meta { align-items: flex-start; text-align: left; }
  .service-price-block { align-items: flex-start; }
  .service-full-body { grid-template-columns: 1fr; }
  .service-includes-col { border-right: none; border-bottom: 1px solid rgba(10,37,64,.07); }
}
@media (max-width: 720px) {
  .intel-tools-grid { grid-template-columns: 1fr; }
  .intel-form-wrap { padding: 24px 20px 28px; }
  .editorial-standards-grid { grid-template-columns: 1fr; }
  .intel-sample-header, .intel-sample-body { padding-left: 20px; padding-right: 20px; }
  .intel-sample-footer { padding-left: 20px; padding-right: 20px; }
  .service-full-top, .service-includes-col, .service-sample-col { padding-left: 24px; padding-right: 24px; }
}

/* ============================================================
   Intelligence — Hinge-style flow  (.iq-* / .ir-*)
   ============================================================ */

/* Page wrapper */
.iq-page { position: relative; min-height: 100vh; }

/* Fixed full-screen background */
.iq-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.iq-bg-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.9s ease;
}
.iq-bg-slide.active { opacity: 1; }
.iq-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,37,64,0.72) 0%, rgba(10,37,64,0.15) 60%, rgba(10,37,64,0.0) 100%);
}

/* Fade helpers */
.iq-show { opacity: 1; transition: opacity 0.3s ease; }
.iq-hide { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }

/* ── Question card (bottom-left) ─────────────────────────── */
.iq-card {
  position: fixed;
  bottom: 80px; left: 80px;
  width: 480px; max-width: calc(100vw - 120px);
  max-height: calc(100vh - 180px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(10,37,64,0.28), 0 4px 16px rgba(10,37,64,0.12);
  padding: 32px 36px;
  z-index: 50;
  overflow-y: auto;
}

/* Progress */
.iq-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.iq-progress-track { flex: 1; height: 4px; background: rgba(10,37,64,0.1); border-radius: 2px; overflow: hidden; }
.iq-progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.4s cubic-bezier(.22,.61,.36,1); }
.iq-progress-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-soft); white-space: nowrap; flex-shrink: 0; }

/* Back */
.iq-back {
  display: inline-flex; align-items: center; gap: 4px;
  border: none; background: none; cursor: pointer;
  font-size: 13px; color: var(--ink-soft); padding: 0;
  margin-bottom: 16px; font-family: var(--sans);
}
.iq-back:hover { color: var(--ink); }

/* Typography */
.iq-headline { font-size: 20px; font-weight: 800; color: var(--ink); margin: 0 0 10px; line-height: 1.25; }
.iq-sub { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 16px; }

/* Tool grid */
.iq-tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 6px; }
.iq-tool-btn {
  text-align: left; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--ink);
  font-family: var(--sans); line-height: 1.35;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.iq-tool-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(200,83,28,0.04); }

/* Chips */
.iq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.iq-chip {
  border: 1.5px solid var(--line); border-radius: 100px;
  padding: 8px 16px; font-size: 13px; font-weight: 500;
  cursor: pointer; background: #fff; color: var(--ink);
  font-family: var(--sans); transition: all 0.15s;
}
.iq-chip.sel { background: var(--accent); border-color: var(--accent); color: #fff; }
.iq-chip:not(.sel):hover { border-color: var(--accent); color: var(--accent); }

/* Fields */
.iq-fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.iq-input {
  border: 1.5px solid var(--line); border-radius: 8px;
  padding: 12px 14px; font-size: 14px;
  font-family: var(--sans); color: var(--ink); outline: none;
  transition: border-color 0.15s; width: 100%; box-sizing: border-box;
}
.iq-input:focus { border-color: var(--accent); }
.iq-textarea {
  border: 1.5px solid var(--line); border-radius: 8px;
  padding: 12px 14px; font-size: 14px;
  font-family: var(--sans); color: var(--ink); outline: none;
  transition: border-color 0.15s; width: 100%; box-sizing: border-box;
  min-height: 80px; resize: vertical; margin-bottom: 4px;
}
.iq-textarea:focus { border-color: var(--accent); }

/* Buttons */
.iq-continue {
  width: 100%; background: var(--accent); color: #fff;
  border: none; border-radius: 8px; padding: 14px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: var(--sans); margin-top: 8px;
  transition: opacity 0.15s;
}
.iq-continue:hover { opacity: 0.9; }
.iq-continue:disabled { opacity: 0.4; cursor: not-allowed; }
.iq-btn-row { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.iq-skip {
  background: none; border: none; cursor: pointer;
  font-size: 13px; color: var(--ink-soft); font-family: var(--sans);
  padding: 8px 12px; white-space: nowrap;
}
.iq-skip:hover { color: var(--ink); }

/* ── Loading card (centered) ────────────────────────────── */
.iq-center-card {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff; border-radius: 16px;
  box-shadow: 0 24px 64px rgba(10,37,64,0.28);
  padding: 48px 56px; z-index: 50; text-align: center;
}
@keyframes iq-spin { to { transform: rotate(360deg); } }
.iq-spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(10,37,64,0.1);
  border-top-color: var(--accent);
  border-radius: 50%; margin: 0 auto 24px;
  animation: iq-spin 0.8s linear infinite;
}
.iq-loading-text { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.iq-loading-sub { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* ── Result card (centered, wider) ─────────────────────── */
.iq-result-card {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff; border-radius: 16px;
  box-shadow: 0 24px 64px rgba(10,37,64,0.28);
  width: min(720px, calc(100vw - 200px));
  max-height: calc(100vh - 100px);
  overflow-y: auto; z-index: 50;
}

/* Result interior */
.ir-wrap { padding: 36px 44px; }
.ir-head { margin-bottom: 22px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.ir-label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--accent); display: block; margin-bottom: 6px; }
.ir-org { font-size: 22px; font-weight: 800; color: var(--ink); margin: 0 0 6px; }
.ir-meta { font-size: 13px; color: var(--ink-soft); margin: 0; }
.ir-body { display: flex; flex-direction: column; gap: 16px; }
.ir-body-intro { font-size: 14px; color: var(--ink-soft); margin: 0; }
.ir-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ir-card { background: var(--bg-2); border-radius: 10px; padding: 18px 20px; }
.ir-card-title { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 14px; }

/* Score block */
.ir-score-block { background: var(--ink); border-radius: 12px; padding: 24px 28px; color: #fff; }
.ir-score-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.5; margin-bottom: 10px; }
.ir-score { display: flex; align-items: baseline; gap: 8px; }
.ir-score-num { font-size: 64px; font-weight: 800; line-height: 1; color: #fff; }
.ir-score-denom { font-size: 24px; color: rgba(255,255,255,0.35); }
.ir-score-tier { background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; margin-left: 8px; }

/* Donor cards */
.ir-donor { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.ir-donor-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.ir-donor-name { font-size: 14px; font-weight: 700; color: var(--ink); display: block; }
.ir-donor-type { font-size: 11px; color: var(--ink-soft); margin-left: 8px; }
.ir-donor-window { font-size: 12px; color: var(--accent); margin-bottom: 8px; font-weight: 600; }
.ir-donor-note { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.ir-fit { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; white-space: nowrap; flex-shrink: 0; }
.ir-fit-high { background: rgba(56,161,105,0.12); color: #276749; }
.ir-fit-mediumhigh { background: rgba(237,137,54,0.12); color: #c05e00; }
.ir-fit-medium { background: rgba(10,37,64,0.08); color: var(--ink-soft); }

/* Doc / snap sections */
.ir-doc-section, .ir-snap-section { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ir-doc-section:last-of-type, .ir-snap-section:last-of-type { border-bottom: none; padding-bottom: 0; }
.ir-doc-section h5, .ir-snap-section h5 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.ir-doc-section p, .ir-snap-section p { font-size: 14px; color: var(--ink-soft); margin: 0 0 8px; line-height: 1.6; }
.ir-doc-section p:last-child { margin-bottom: 0; }

/* Disclaimer + CTAs */
.ir-disclaimer { font-size: 12px; color: var(--ink-soft); line-height: 1.5; padding: 16px 0 0; border-top: 1px solid var(--line); margin-top: 20px; font-style: italic; }
.ir-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* Indicator groups */
.intel-indicator-group { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.intel-indicator-level { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; padding: 10px 16px; margin: 0; }
.intel-indicator-output .intel-indicator-level  { background: rgba(56,161,105,0.1);  color: #276749; }
.intel-indicator-outcome .intel-indicator-level { background: rgba(66,153,225,0.1);  color: #2b6cb0; }
.intel-indicator-impact .intel-indicator-level  { background: rgba(200,83,28,0.08);  color: var(--accent); }
.intel-indicator-row { padding: 12px 16px; border-top: 1px solid var(--line); }
.intel-indicator-name { font-size: 13.5px; color: var(--ink); margin-bottom: 6px; }
.intel-indicator-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.intel-indicator-meta span { font-size: 12px; color: var(--ink-soft); }

/* Review sections */
.intel-review-section { border-radius: 10px; border: 1px solid var(--line); padding: 16px 20px; margin-bottom: 10px; }
.intel-review-section h5 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; margin: 0 0 10px; }
.intel-review-section ul { margin: 0 0 0 16px; padding: 0; }
.intel-review-section li { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 6px; line-height: 1.4; }
.intel-review-strong h5 { color: #276749; }
.intel-review-gaps h5    { color: var(--accent); }
.intel-review-language h5 { color: #2b6cb0; }
.intel-review-score h5   { color: var(--ink); }
.intel-review-rating { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.intel-rating-bar-wrap { flex: 1; height: 6px; background: rgba(10,37,64,0.1); border-radius: 3px; overflow: hidden; }
.intel-rating-bar { height: 100%; background: var(--accent); border-radius: 3px; }

/* TOC stages */
.toc-stage { border-radius: 10px; padding: 14px 18px; margin-bottom: 2px; }
.toc-inputs    { background: rgba(56,161,105,0.07); }
.toc-activities{ background: rgba(66,153,225,0.07); }
.toc-outputs   { background: rgba(200,83,28,0.07); }
.toc-outcomes  { background: rgba(128,90,213,0.07); }
.toc-impact    { background: rgba(10,37,64,0.07); }
.toc-inputs    .toc-stage-label { color: #276749; }
.toc-activities .toc-stage-label { color: #2b6cb0; }
.toc-outputs   .toc-stage-label { color: var(--accent); }
.toc-outcomes  .toc-stage-label { color: #6b46c1; }
.toc-impact    .toc-stage-label { color: var(--ink); }
.toc-stage-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; margin-bottom: 8px; }
.toc-stage-items { margin: 0 0 0 16px; padding: 0; }
.toc-stage-items li { font-size: 13.5px; margin-bottom: 4px; line-height: 1.4; color: var(--ink-soft); }
.toc-arrow { text-align: center; font-size: 18px; color: var(--ink-soft); margin: 2px 0; }
.intel-toc-assumptions { border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; }
.intel-toc-assumptions h5 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; margin: 0 0 10px; color: var(--ink); }
.intel-toc-assumptions ul { margin: 0 0 0 16px; padding: 0; }
.intel-toc-assumptions li { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 6px; }

/* Snapshot */
.intel-snapshot-actor { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 8px; line-height: 1.5; }
.intel-snapshot-window { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 8px; }
.intel-snapshot-donor { font-weight: 700; color: var(--ink); flex-shrink: 0; }

/* Brief table */
.intel-brief-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.intel-brief-table td { padding: 8px 0; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.intel-brief-table tr:last-child td { border-bottom: none; }
.intel-brief-table td:first-child { color: var(--ink); font-weight: 600; }
.intel-brief-table td:last-child { text-align: right; }

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .iq-card {
    left: 0; right: 0; bottom: 0;
    width: 100%; max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 80vh;
    padding: 24px 20px;
  }
  .iq-result-card {
    width: 100vw;
    top: auto; bottom: 0; left: 0;
    transform: none;
    border-radius: 16px 16px 0 0;
    max-height: 90vh;
  }
  .iq-center-card {
    width: calc(100vw - 48px);
    padding: 36px 28px;
  }
  .ir-wrap { padding: 24px 20px; }
  .ir-grid-2 { grid-template-columns: 1fr; }
  .iq-tool-grid { grid-template-columns: 1fr; }
  .hrm-modal { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; padding: 28px 20px; }
  .doc-shell { padding: 28px 20px; }
  .doc-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .doc-header-meta { align-items: flex-start; flex-direction: column; gap: 2px; }
  .doc-title { font-size: 18px; }
  .iq-card { width: calc(100vw - 32px); left: 16px; right: 16px; }
}

/* ── Pilot badge ──────────────────────────────────────── */
.iq-pilot-badge {
  display: inline-block;
  background: rgba(200,83,28,0.10);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
  border: 1px solid rgba(200,83,28,0.25);
}

/* ── Draft banner ─────────────────────────────────────── */
.ir-draft-banner {
  background: #fdf6ec;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 18px 20px 14px;
  margin-bottom: 24px;
}
.ir-draft-banner-body { margin-bottom: 14px; }
.ir-draft-banner-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}
.ir-draft-banner-text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}
.ir-review-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 20px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
  width: 100%;
  text-align: center;
}
.ir-review-btn:hover { opacity: 0.88; }

/* ── Bottom human review CTA ──────────────────────────── */
.ir-human-review-cta {
  background: var(--bg-2);
  border-radius: 10px;
  padding: 24px 24px 20px;
  margin-top: 20px;
}
.ir-hrc-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
}
.ir-hrc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ir-hrc-list li {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ir-hrc-check {
  color: #27855a;
  font-weight: 700;
  flex-shrink: 0;
}
.ir-hrc-btn {
  width: 100%;
  text-align: center;
  font-size: 15px;
  padding: 14px 20px;
}
.ir-hrc-reset {
  display: block;
  margin-top: 12px;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  width: 100%;
  text-align: center;
}
.ir-hrc-reset:hover { color: var(--ink); }

/* ── Limitation note ──────────────────────────────────── */
.ir-limitation-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 14px;
  font-style: italic;
  padding: 0 2px;
}

/* ── Human Review Modal ───────────────────────────────── */
.hrm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,37,64,0.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.hrm-modal {
  background: #fff;
  border-radius: 14px;
  padding: 40px 44px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.hrm-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 6px;
  line-height: 1;
  border-radius: 4px;
}
.hrm-close:hover { color: var(--ink); background: var(--bg-2); }
.hrm-heading { font-size: 20px; font-weight: 800; color: var(--ink); margin: 0 0 10px; }
.hrm-sub { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 20px; }
.hrm-context {
  background: var(--bg-2);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 24px;
}
.hrm-context-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 13px;
}
.hrm-context-row:last-of-type { border-bottom: none; }
.hrm-context-label { font-weight: 700; color: var(--ink); min-width: 90px; flex-shrink: 0; }
.hrm-context-val { color: var(--ink-soft); }
.hrm-expand-btn {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  padding: 8px 0 0;
  font-weight: 600;
}
.hrm-draft-note { font-size: 12px; color: var(--ink-soft); margin: 6px 0 0; font-style: italic; }
.hrm-form { display: flex; flex-direction: column; gap: 16px; }
.hrm-field { display: flex; flex-direction: column; gap: 6px; }
.hrm-field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.hrm-optional { font-weight: 400; color: var(--ink-soft); }
.hrm-field input, .hrm-field textarea {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  font-family: inherit;
  transition: border-color 0.2s;
  resize: vertical;
}
.hrm-field input:focus, .hrm-field textarea:focus { outline: none; border-color: var(--accent); }
.hrm-submit { width: 100%; font-size: 15px; padding: 14px; margin-top: 4px; }
.hrm-success {
  text-align: center;
  padding: 24px 0;
}
.hrm-success-icon {
  width: 52px;
  height: 52px;
  background: rgba(39,133,90,0.12);
  color: #27855a;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.hrm-success h3 { font-size: 20px; font-weight: 800; color: var(--ink); margin: 0 0 12px; }
.hrm-success p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin: 0; }

/* ══════════════════════════════════════════════════════════
   DOCUMENT SHELL  (.doc-*)
   ══════════════════════════════════════════════════════════ */

.doc-shell {
  position: relative;
  background: #fff;
  padding: 40px 48px 36px;
  margin: 20px 0;
  border: 1px solid rgba(10,37,64,0.08);
  border-radius: 4px;
  overflow: hidden;
}

/* Header */
.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.doc-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.doc-header-logo {
  height: 28px;
  width: auto;
  display: block;
}
.doc-header-wordmark {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.03em;
}
.doc-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Divider */
.doc-rule {
  border: none;
  border-top: 1px solid rgba(10,37,64,0.12);
  margin: 0 0 24px;
}

/* OA watermark */
.doc-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 200px;
  font-weight: 900;
  color: rgba(10,37,64,0.035);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.06em;
  line-height: 1;
  z-index: 0;
}
.doc-body-inner { position: relative; z-index: 1; }

/* Document title + sub-meta */
.doc-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.25;
  position: relative;
  z-index: 1;
}
.doc-submeta {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0 0 20px;
  position: relative;
  z-index: 1;
}

/* Data sources block */
.doc-data-sources {
  background: rgba(10,37,64,0.04);
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.doc-ds-heading {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}
.doc-ds-body { font-size: 12px; color: var(--ink-soft); margin: 0 0 6px; }
.doc-ds-list {
  margin: 0; padding-left: 16px;
  font-size: 12px; color: var(--ink-soft); line-height: 1.7;
}
.doc-ds-fallback {
  font-size: 12px; color: var(--accent); margin: 6px 0 0; font-style: italic;
}
.doc-ds-fallback-only { background: rgba(200,83,28,0.05); }

/* Section headings inside document */
.doc-section-heading {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(200,83,28,0.2);
}

/* World Bank indicator rows */
.doc-wb-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(10,37,64,0.06);
  font-size: 13px;
}
.doc-wb-row:last-of-type { border-bottom: none; }
.doc-wb-label { color: var(--ink-soft); flex: 1; }
.doc-wb-value { font-weight: 600; color: var(--ink); white-space: nowrap; }
.doc-wb-date  { font-size: 11px; color: var(--muted); font-weight: 400; }
.doc-source-note {
  font-size: 11px; color: var(--muted); margin: 8px 0 0; font-style: italic;
}

/* Budget advisory note */
.doc-budget-note {
  font-size: 12px; color: var(--ink-soft); margin-top: 12px;
  padding: 10px 14px; background: rgba(10,37,64,0.04); border-radius: 6px;
  font-style: italic;
}

/* Document footer */
.doc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-top: 14px;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════
   HYBRID TEXT + CHIPS INPUT  (.iq-hybrid-*)
   ══════════════════════════════════════════════════════════ */

/* Widen card slightly for text input */
.iq-card { width: 520px; max-width: calc(100vw - 120px); }

.iq-hybrid-wrap { margin-bottom: 14px; }
.iq-hybrid-input {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14px;
  font-family: var(--sans);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.iq-hybrid-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,83,28,0.10);
}
.iq-hybrid-input::placeholder { color: rgba(10,37,64,0.35); }

/* Tool button selected state */
.iq-tool-btn-sel {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: rgba(200,83,28,0.06) !important;
}

/* ══════════════════════════════════════════════════════════
   PARSED INTENT CONFIRMATION BANNER  (.iq-confirm-*)
   ══════════════════════════════════════════════════════════ */

.iq-confirm-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  background: rgba(200,83,28,0.07);
  border: 1px solid rgba(200,83,28,0.22);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 12.5px;
}
.iq-confirm-label {
  font-weight: 600;
  color: var(--accent);
  margin-right: 2px;
  flex-shrink: 0;
}
.iq-confirm-tag {
  background: #fff;
  border: 1px solid rgba(200,83,28,0.3);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}
.iq-confirm-edit {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--sans);
  padding: 0;
  margin-left: auto;
  white-space: nowrap;
}
.iq-confirm-edit:hover { text-decoration: underline; }

/* ── Story sort toggle ───────────────────────────────────────────────────── */
.list-modal-sort-row {
  display: flex;
  gap: 6px;
  padding: 8px 24px 0;
  border-bottom: 1px solid rgba(10,37,64,0.08);
  padding-bottom: 10px;
}
.list-sort-btn {
  background: none;
  border: 1px solid rgba(10,37,64,0.18);
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  padding: 4px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.list-sort-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.list-sort-btn:hover:not(.active) {
  border-color: var(--ink);
  color: var(--ink);
}

/* ── Story badges (Trending, Coverage) ──────────────────────────────────── */
.article-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 100px;
  padding: 2px 7px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
  line-height: 1.5;
}
.badge-trending {
  background: rgba(229,62,62,0.10);
  color: #c53030;
  border: 1px solid rgba(229,62,62,0.25);
}
.badge-coverage {
  background: rgba(49,130,206,0.10);
  color: #2b6cb0;
  border: 1px solid rgba(49,130,206,0.25);
}

@media (max-width: 768px) {
  .list-modal-sort-row { padding: 8px 16px 10px; }
  .list-sort-btn { font-size: 11px; padding: 3px 10px; }
  .article-badge { font-size: 9px; padding: 1px 5px; margin-left: 4px; }
}

/* ============ HERO — subscription form & ticker ============ */
.hero-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  opacity: 0.9;
}
.hero-ticker-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: rgba(200, 83, 28, 0.18);
  padding: 3px 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.hero-ticker-text {
  font-size: 13px;
  color: rgba(242,234,217,0.78);
  font-weight: 400;
  line-height: 1.4;
  max-width: 58ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-subscribe {
  display: flex;
  gap: 0;
  max-width: 460px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
}
.hero-subscribe-input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 14px 18px;
  font-size: 14px;
  color: #fff;
  font-family: var(--sans);
  outline: none;
}
.hero-subscribe-input::placeholder { color: rgba(255,255,255,0.5); }
.hero-subscribe-btn {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 14px 22px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  transition: background .3s;
}
.hero-subscribe-btn:hover { background: var(--accent-2); }
.hero-subscribe-btn .arr { display: inline-flex; transition: transform .3s; }
.hero-subscribe-btn:hover .arr { transform: translateX(4px); }
.hero-subscribed {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(242,234,217,0.9);
  font-weight: 400;
  padding: 14px 0;
}
.hero-subscribed-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(56,161,105,0.25);
  color: #68d391;
  border-radius: 50%;
  font-size: 13px;
  flex-shrink: 0;
}
.hero-sub-note {
  margin-top: 12px !important;
  font-size: 11px !important;
  color: rgba(242,234,217,0.38) !important;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 0 !important;
}

/* ============ TODAY'S EDITION ============ */
.edition-section {
  background: var(--bg);
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--line);
}
.edition-masthead {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 56px;
}
.edition-masthead-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.edition-greeting {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
}
.edition-date {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.edition-masthead-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}
.edition-streak {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(200,83,28,0.08);
  border: 1px solid rgba(200,83,28,0.2);
  border-radius: 100px;
  padding: 2px 9px;
  white-space: nowrap;
}
.edition-updated {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.edition-masthead-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.edition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.edition-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}
.edition-num-sm { font-size: 10px; margin-bottom: 0; margin-right: 12px; flex-shrink: 0; }
.edition-lead {
  cursor: pointer;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  transition: border-color .25s, box-shadow .25s;
}
.edition-lead:hover { border-color: rgba(10,37,64,0.25); box-shadow: 0 4px 24px rgba(10,37,64,0.07); }
.edition-lead-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.edition-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.edition-lead-region {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.edition-lead-title {
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 16px;
}
.edition-lead-summary {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 20px;
  font-weight: 400;
}
.edition-read {
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
}
.edition-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.edition-item {
  display: flex;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
  transition: background .2s;
  gap: 0;
}
.edition-item:first-child { border-top: 1px solid var(--line-2); }
.edition-item:hover .edition-item-title { color: var(--accent); }
.edition-item-body { flex: 1; }
.edition-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.edition-item-region, .edition-item-time {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.edition-item-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
  transition: color .2s;
}
.edition-see-all {
  margin-top: 28px;
}
.edition-coverage-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.edition-coverage-badge-sm {
  margin-top: 6px;
}
.edition-big-story {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(200,83,28,0.08);
  border: 1px solid rgba(200,83,28,0.2);
  border-radius: 100px;
  padding: 1px 7px;
}
.edition-item-title-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Named edition sections ── */
.edition-sections {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.edition-named-section {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.edition-named-section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.edition-named-section-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.edition-named-section-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0;
}
.edition-named-section-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.edition-named-item {
  padding: 16px 20px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.edition-named-item:hover {
  border-color: rgba(10,37,64,0.2);
  box-shadow: 0 2px 12px rgba(10,37,64,0.06);
}
.edition-named-item-region {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.edition-named-item-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ============ ARCHIVE ============ */
.archive-section {
  background: var(--ink);
  padding: 100px 0;
}
.archive-section .eyebrow { color: rgba(242,234,217,0.55); }
.archive-section h2 { color: #fff; }
.archive-section .section-intro { color: rgba(242,234,217,0.55); font-size: 16px; max-width: 52ch; margin-top: 16px; }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  margin: 60px 0 64px;
}
.archive-card {
  background: rgba(255,255,255,0.02);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background .2s;
  cursor: default;
}
.archive-card:hover { background: rgba(255,255,255,0.05); }
.archive-card-date {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-soft);
}
.archive-card-headline {
  font-size: 15px;
  font-weight: 700;
  color: rgba(242,234,217,0.88);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0;
}
.archive-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}
.archive-card-meta {
  font-size: 11px;
  color: rgba(242,234,217,0.35);
  font-weight: 400;
}
.archive-card-cta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(242,234,217,0.35);
  text-transform: uppercase;
}
.archive-subscribe-cta {
  text-align: center;
  padding: 48px 0 0;
}
.archive-subscribe-cta p {
  font-size: 22px;
  font-weight: 700;
  color: rgba(242,234,217,0.7);
  letter-spacing: -0.01em;
  margin: 0;
}

/* ============ FLOATING AI ASSISTANT ============ */
.fai-toggle {
  position: fixed;
  bottom: 32px;
  right: calc(var(--rail-w) + 20px);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  box-shadow: 0 4px 20px rgba(10,37,64,0.3);
  transition: background .25s, transform .25s;
}
.fai-toggle:hover { background: var(--accent); transform: scale(1.06); }
.fai-toggle.fai-open { background: var(--ink); }
.fai-card {
  position: fixed;
  bottom: 100px;
  right: calc(var(--rail-w) + 20px);
  width: 380px;
  height: 560px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 16px 60px rgba(10,37,64,0.18);
  z-index: 1099;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.fai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  flex-shrink: 0;
}
.fai-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fai-header-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #68d391;
  flex-shrink: 0;
  animation: fai-pulse 2s ease-in-out infinite;
}
@keyframes fai-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.fai-header-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.fai-close {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color .2s;
}
.fai-close:hover { color: #fff; }
.fai-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
}
.fai-intro {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 20px;
  font-weight: 400;
  line-height: 1.55;
}
.fai-prompts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fai-prompt-btn {
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink);
  font-family: var(--sans);
  cursor: pointer;
  line-height: 1.4;
  transition: background .2s, border-color .2s;
}
.fai-prompt-btn:hover { background: rgba(200,83,28,0.06); border-color: var(--accent); color: var(--accent); }
.fai-thinking {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}
.fai-dots {
  display: flex;
  gap: 5px;
}
.fai-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: fai-bounce 1.2s ease-in-out infinite;
}
.fai-dots span:nth-child(2) { animation-delay: .2s; }
.fai-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes fai-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-7px); opacity: 1; }
}
.fai-result { display: flex; flex-direction: column; gap: 12px; }
.fai-q {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  padding: 10px 12px;
  border-radius: 0 2px 2px 0;
  margin: 0;
}
.fai-response {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
  font-weight: 400;
}
.fai-response p { margin: 3px 0; }
.fai-reset-btn {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 12px;
  color: var(--accent);
  font-family: var(--sans);
  cursor: pointer;
  font-weight: 600;
  margin-top: 8px;
  text-align: left;
}
.fai-reset-btn:hover { color: var(--accent-2); }
.fai-footer {
  display: flex;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.fai-input {
  flex: 1;
  border: 0;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--ink);
  font-family: var(--sans);
  background: transparent;
  outline: none;
}
.fai-input::placeholder { color: var(--muted); }
.fai-send {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-soft);
  transition: color .2s, background .2s;
}
.fai-send:hover { color: var(--accent); background: rgba(200,83,28,0.05); }

/* ============ RESPONSIVE — new homepage sections ============ */
@media (max-width: 960px) {
  .edition-grid { grid-template-columns: 1fr; gap: 40px; }
  .archive-grid { grid-template-columns: 1fr; }
  .fai-card { width: calc(100vw - var(--rail-w) - 40px); right: calc(var(--rail-w) + 20px); }
}
@media (max-width: 640px) {
  .edition-section { padding: 64px 0 56px; }
  .archive-section { padding: 64px 0; }
  .hero-subscribe { flex-direction: column; }
  .hero-subscribe-input { padding: 12px 16px; }
  .hero-ticker-text { display: none; }
  .fai-toggle { bottom: 20px; right: calc(var(--rail-w) + 12px); }
  .fai-card { bottom: 88px; right: calc(var(--rail-w) + 12px); height: calc(100vh - 120px); }
}

/* ============================================================
   PERSONALISED FEED — /feed page
   ============================================================ */

/* ── Homepage CTA ── */
/* ── Newsletter Section ───────────────────────────────────────────────────── */
.newsletter-section {
  background: var(--bg-2);
  padding: 72px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.nl-inner { max-width: 680px; margin: 0 auto; }
.nl-header p { color: var(--ink-soft); font-size: 15px; margin-top: 10px; max-width: 52ch; }
.nl-generate-btn {
  display: inline-block;
  margin-top: 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.2s;
}
.nl-generate-btn:hover { opacity: 0.88; }
.nl-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 14px;
}
.nl-spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--line-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.nl-error { margin-top: 20px; color: #c0392b; font-size: 14px; }
.nl-content { margin-top: 28px; }
.nl-body { line-height: 1.7; }
.nl-h3 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.nl-h4 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin: 24px 0 8px; color: var(--accent); }
.nl-p  { font-size: 15px; color: var(--ink); margin: 0 0 10px; }
.nl-li { font-size: 15px; color: var(--ink); margin: 0 0 6px 18px; list-style: disc; }
.nl-timestamp { margin-top: 20px; font-size: 11px; color: var(--ink-soft); letter-spacing: 0.06em; text-transform: uppercase; }
.nl-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.nl-act-btn {
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 7px 18px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.nl-act-btn:hover { border-color: var(--ink); color: var(--ink); }
.nl-act-regen { border-color: var(--accent); color: var(--accent); }
.nl-act-regen:hover { background: var(--accent); color: #fff; }
.nl-new-likes {
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.nl-refresh-link, .nl-retry-link {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
}
.nl-refresh-link:hover, .nl-retry-link:hover { opacity: 0.75; }

.feed-cta-section {
  background: var(--bg-2);
  padding: 56px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.feed-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.feed-cta-text h3 { font-size: clamp(20px, 2.5vw, 28px); margin-top: 12px; }
.feed-cta-text p  { color: var(--ink-soft); font-size: 15px; margin-top: 10px; }
.feed-cta-action  { display: flex; flex-direction: column; align-items: flex-start; flex-shrink: 0; }
.feed-cta-stat {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

/* ── Feed page shell ── */
.feed-page {
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: 80px;
}

/* ── Header ── */
.feed-header {
  padding-top: 100px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-2);
  background: var(--bg);
}
.feed-header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.feed-back-link {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s;
}
.feed-back-link:hover { color: var(--accent); }
.feed-title    { font-size: clamp(28px, 4vw, 52px); margin-top: 8px; }
.feed-subtitle { font-size: 16px; color: var(--ink-soft); margin-top: 10px; }
.feed-settings-btn {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-soft);
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
  margin-top: 44px;
}
.feed-settings-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Controls panel ── */
.feed-controls-panel {
  background: var(--paper);
  border-bottom: 1px solid var(--line-2);
  padding: 28px 0;
}
.feed-controls-inner {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.feed-interests-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.feed-interest-chip {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.feed-interest-weight {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}
.feed-controls-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.feed-ctrl-btn {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sans);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.feed-ctrl-btn:hover    { border-color: var(--ink); background: rgba(10,37,64,0.04); }
.feed-ctrl-active       { border-color: var(--accent) !important; color: var(--accent); }
.feed-ctrl-danger       { color: #c0392b; }
.feed-ctrl-danger:hover { border-color: #c0392b; background: rgba(192,57,43,0.04); }

/* ── Shared card parts ── */
.feed-card-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.feed-card-country-tag {
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.feed-card-sector-tag {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.feed-card-sig-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-left: auto;
}
.feed-card-headline {
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.feed-card-summary-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.feed-card-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.feed-card-timestamp {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.feed-why-btn {
  background: none;
  border: none;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.15s;
}
.feed-why-btn:hover { color: var(--ink); }
.feed-why-popup {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.5;
  width: 230px;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(10,37,64,0.22);
}
.feed-why-popup strong { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: 0.04em; }
.feed-why-popup p  { color: rgba(255,255,255,0.78); margin: 0; font-size: 12px; }
.feed-why-popup ul { margin: 4px 0 0 0; padding: 0 0 0 16px; color: rgba(255,255,255,0.82); }
.feed-why-popup ul li { margin-bottom: 3px; font-size: 12px; }
.feed-why-close {
  position: absolute;
  top: 8px; right: 10px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.feed-why-close:hover { color: #fff; }

/* ── Diversity chip ── */
.feed-diversity-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #8B4513;
  color: #F5DEB3;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-style: italic;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 5;
  pointer-events: none;
}
.feed-diversity-chip-desktop {
  position: relative;
  top: auto;
  left: auto;
  display: inline-flex;
  margin-bottom: 6px;
  align-self: flex-start;
}

/* ============================================================
   MOBILE SWIPE DECK
   ============================================================ */
.feed-swipe-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px 24px;
}

/* Progress bar */
.feed-progress-bar {
  width: calc(100% - 32px);
  max-width: 420px;
  height: 3px;
  background: var(--line-2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}
.feed-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.feed-progress-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Card stack */
.feed-deck {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 540px;
  overflow: visible;
}
.feed-mobile-card {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 510px;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(10,37,64,0.13);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  will-change: transform;
  transform-origin: center bottom;
}

/* Tint overlay for swipe feedback */
.feed-card-tint {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  z-index: 3;
  transition: background 0.05s;
}
.feed-card-swipe-label {
  position: absolute;
  top: 20px;
  z-index: 4;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 6px;
  border: 3px solid;
  pointer-events: none;
}
.feed-label-like {
  left: 20px;
  color: #27ae60;
  border-color: #27ae60;
  background: rgba(39,174,96,0.12);
  transform: rotate(-8deg);
}
.feed-label-skip {
  right: 20px;
  color: #e74c3c;
  border-color: #e74c3c;
  background: rgba(231,76,60,0.12);
  transform: rotate(8deg);
}

/* Card image */
.feed-mobile-img-wrap {
  width: 100%;
  height: 210px;
  overflow: hidden;
  flex-shrink: 0;
}
.feed-mobile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feed-mobile-img-placeholder {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--line-2) 100%);
  flex-shrink: 0;
}

/* Card body */
.feed-mobile-card-body {
  flex: 1;
  padding: 18px 18px 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feed-mobile-read-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-left: auto;
}

/* Bottom action buttons (X / link / heart) */
.feed-mobile-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 18px 0 6px;
}
.feed-btn-skip {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2.5px solid rgba(231,76,60,0.4);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  box-shadow: 0 3px 14px rgba(231,76,60,0.15);
}
.feed-btn-like {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2.5px solid rgba(39,174,96,0.4);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  box-shadow: 0 3px 14px rgba(39,174,96,0.15);
}
.feed-btn-skip:hover  { border-color: #e74c3c; background: rgba(231,76,60,0.06); transform: scale(1.08); }
.feed-btn-like:hover  { border-color: #27ae60; background: rgba(39,174,96,0.06); transform: scale(1.08); }
.feed-btn-skip svg    { stroke: #e74c3c; }
.feed-btn-like svg    { stroke: #27ae60; }
.feed-btn-read {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2.5px solid rgba(10,37,64,0.2);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 14px rgba(10,37,64,0.1);
  transition: border-color 0.2s, transform 0.15s;
  text-decoration: none;
}
.feed-btn-read:hover { border-color: var(--ink); transform: scale(1.08); }
.feed-btn-read svg   { stroke: var(--ink-soft); }

/* ============================================================
   DESKTOP FEED
   ============================================================ */
.feed-desktop-wrap {
  max-width: 760px;
  margin: 36px auto 0;
  padding: 0 24px;
}
.feed-keyboard-hint {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.feed-keyboard-hint kbd {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  font-family: var(--sans);
  margin-right: 4px;
  color: var(--ink);
}
.feed-desktop-card {
  background: var(--paper);
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(10,37,64,0.07);
  transition: box-shadow 0.2s, opacity 0.45s ease, transform 0.45s ease;
  overflow: visible;
  position: relative;
}
.feed-desktop-card:hover {
  box-shadow: 0 6px 28px rgba(10,37,64,0.13);
}
.feed-desktop-card-first {
  box-shadow: 0 0 0 2px var(--accent), 0 6px 28px rgba(200,83,28,0.16);
}
.feed-desktop-fly-like {
  opacity: 0;
  transform: translateX(48px) scale(0.97);
  pointer-events: none;
}
.feed-desktop-fly-skip {
  opacity: 0;
  transform: translateX(-48px) scale(0.97);
  pointer-events: none;
}
.feed-desktop-card-inner {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 14px;
}
.feed-desktop-img-wrap {
  width: 148px;
  flex-shrink: 0;
  overflow: hidden;
}
.feed-desktop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feed-desktop-card-body {
  flex: 1;
  padding: 20px 20px 16px;
  min-width: 0;
}
.feed-desktop-headline {
  font-size: 16px;
  margin-bottom: 8px;
}
.feed-desktop-summary {
  font-size: 13px;
}

/* Hover action buttons */
.feed-desktop-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 16px 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  flex-shrink: 0;
  width: 90px;
  border-left: 1px solid var(--line-2);
  background: var(--bg);
}
.feed-desktop-card:hover .feed-desktop-actions {
  opacity: 1;
  pointer-events: auto;
}
.feed-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--sans);
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.feed-like-btn {
  color: #27ae60;
  border-color: rgba(39,174,96,0.3);
  background: rgba(39,174,96,0.05);
}
.feed-like-btn:hover {
  background: rgba(39,174,96,0.12);
  border-color: #27ae60;
  transform: scale(1.04);
}
.feed-skip-btn {
  color: #e74c3c;
  border-color: rgba(231,76,60,0.3);
  background: rgba(231,76,60,0.05);
}
.feed-skip-btn:hover {
  background: rgba(231,76,60,0.12);
  border-color: #e74c3c;
  transform: scale(1.04);
}
.feed-read-btn {
  color: var(--ink-soft);
  border-color: var(--line);
  background: var(--paper);
}
.feed-read-btn:hover {
  background: var(--bg-2);
  border-color: var(--ink-soft);
  transform: scale(1.04);
}

/* ── All-caught-up ── */
.feed-done-state {
  text-align: center;
  padding: 80px 24px;
  max-width: 480px;
  margin: 0 auto;
}
.feed-done-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.feed-done-state h3 { font-size: 24px; margin-bottom: 10px; }
.feed-done-state > p { color: var(--ink-soft); font-size: 15px; }
.feed-done-email-cta {
  margin-top: 36px;
  padding: 28px;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(10,37,64,0.07);
}
.feed-done-email-cta p { font-size: 14px; color: var(--ink-soft); margin-bottom: 0; }

/* ── Empty / loading ── */
.feed-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
}

/* ── Privacy note ── */
.feed-privacy-note {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding: 24px;
  margin-top: 40px;
  letter-spacing: 0.03em;
}

/* ============================================================
   HOME FEED SECTION — single-card view
   ============================================================ */

.home-feed-section {
  padding: 80px 0 72px;
  background: var(--bg);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.home-feed-heading {
  text-align: center;
  margin-bottom: 40px;
}
.home-feed-heading h2 {
  font-size: clamp(26px, 4vw, 46px);
  margin-top: 12px;
}
.home-feed-heading p {
  color: var(--ink-soft);
  font-size: 16px;
  margin-top: 14px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Stage: chevron + card-wrap + chevron ── */
.hf-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 16px;
}

/* ── Card wrap (drag target, 720×720 on desktop) ── */
.hf-card-wrap {
  position: relative;
  width: 900px;
  height: 760px;
  flex-shrink: 0;
  will-change: transform;
}

/* ── Card (display-only, image-top / text-bottom) ── */
.hfc-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #F5EFE6;
  border: 1px solid rgba(10,37,64,0.15);
  box-shadow: 0 4px 24px rgba(10,37,64,0.08);
  overflow: hidden;
  border-radius: 16px;
  animation: hf-card-enter 0.36s ease-out both;
}
@keyframes hf-card-enter {
  from { transform: translateY(32px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

/* ── Image section — top 55% ── */
.hfc-img-section {
  flex: 0 0 55%;
  position: relative;
  overflow: hidden;
  background: #0A2540;
  border-radius: 16px 16px 0 0;
}
.hfc-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.hfc-img-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(10,37,64,0.4), transparent);
  pointer-events: none;
}
.hfc-img-tags {
  position: absolute;
  bottom: 14px;
  left: 16px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  z-index: 2;
}
.hfc-tag-country {
  background: #C8531C;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.3);
}
.hfc-tag-sector {
  background: #F5EFE6;
  color: #0A2540;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.4);
}

/* ── Text section — bottom 45% ── */
.hfc-text-section {
  flex: 0 0 45%;
  background: #F5EFE6;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
}
.hfc-sig-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #C8531C;
}
.hfc-headline {
  font-size: 28px;
  font-weight: 800;
  color: #0A2540;
  line-height: 1.2;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hfc-summary {
  font-size: 16px;
  color: rgba(10,37,64,0.8);
  line-height: 1.6;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hfc-separator {
  height: 1px;
  background: rgba(10,37,64,0.15);
  margin-top: auto;
}
.hfc-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(10,37,64,0.6);
}
.hfc-meta-sep { opacity: 0.5; }

/* ── Drag overlays ── */
.hf-tint {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  transition: background 0.08s;
}
.hf-swipe-badge {
  position: absolute;
  top: 38%;
  z-index: 6;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 4px;
  border: 2.5px solid;
  pointer-events: none;
}
.hf-badge-like {
  right: 24px;
  color: #27ae60;
  border-color: #27ae60;
  background: rgba(39,174,96,0.1);
}
.hf-badge-skip {
  left: 24px;
  color: #c0392b;
  border-color: #c0392b;
  background: rgba(192,57,43,0.1);
}

/* ── Chevrons ── */
.hf-chevron {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #F5EFE6;
  border: 1.5px solid rgba(10,37,64,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0A2540;
  flex-shrink: 0;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.14s;
}
.hf-chevron:hover {
  background: #0A2540;
  color: #F5EFE6;
  border-color: #0A2540;
  transform: scale(1.08);
}
.hf-chev-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Position indicator ── */
.hf-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}
.hf-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 480px;
  justify-content: center;
}
.hf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(10,37,64,0.2);
  transition: background 0.2s, width 0.2s, height 0.2s;
  flex-shrink: 0;
}
.hf-dot-visited { background: rgba(10,37,64,0.5); }
.hf-dot-active {
  width: 10px;
  height: 10px;
  background: #C8531C;
}
.hf-pos-text {
  font-size: 13px;
  color: rgba(10,37,64,0.5);
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ── Action buttons ── */
.hf-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
}
.hf-act {
  height: 44px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  transition: background 0.16s, color 0.16s, transform 0.1s;
  border-radius: 8px;
}
.hf-act:hover { transform: translateY(-1px); }
.hf-act:active { transform: none; }
.hf-act-skip {
  background: #F5EFE6;
  color: #0A2540;
  border: 1.5px solid rgba(10,37,64,0.3);
}
.hf-act-skip:hover { background: rgba(10,37,64,0.07); }
.hf-act-read {
  background: #C8531C;
  color: #fff;
  border: 1.5px solid #C8531C;
  padding: 0 32px;
}
.hf-act-read:hover { background: #a8431a; border-color: #a8431a; }
.hf-act-like {
  background: #F5EFE6;
  color: #0A2540;
  border: 1.5px solid rgba(10,37,64,0.3);
}
.hf-act-like:hover { background: rgba(10,37,64,0.07); }
.hf-act-arr { font-size: 15px; }

/* ── Keyboard hint ── */
.hf-kbd-hint {
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  color: rgba(10,37,64,0.4);
  letter-spacing: 0.04em;
}
.hf-kbd-hint kbd {
  background: #F5EFE6;
  border: 1px solid rgba(10,37,64,0.2);
  border-radius: 3px;
  padding: 2px 7px;
  font-size: 11px;
  font-family: inherit;
  font-weight: 600;
  color: #0A2540;
}

/* ── Loading ── */
.hf-loading {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
  font-size: 15px;
}

/* ── Empty / all-caught-up ── */
.hf-empty {
  text-align: center;
  padding: 60px 24px 52px;
  max-width: 480px;
  margin: 0 auto;
}
.hf-empty h3 {
  font-size: 24px;
  color: #0A2540;
  margin: 0 0 12px;
}
.hf-empty p {
  font-size: 15px;
  color: rgba(10,37,64,0.65);
  line-height: 1.65;
  margin-bottom: 28px;
}
.hf-empty-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hf-btn-reset {
  height: 44px;
  padding: 0 24px;
  background: #F5EFE6;
  color: #0A2540;
  border: 1.5px solid rgba(10,37,64,0.3);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.16s;
}
.hf-btn-reset:hover { background: rgba(10,37,64,0.07); }
.hf-btn-map {
  height: 44px;
  padding: 0 24px;
  background: #C8531C;
  color: #fff;
  border: 1.5px solid #C8531C;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.16s;
}
.hf-btn-map:hover { background: #a8431a; border-color: #a8431a; }

/* ── Laptop (1024–1279px): 85vw, max 880px ── */
@media (max-width: 1279px) and (min-width: 1024px) {
  .hf-card-wrap {
    width: min(85vw, 880px);
    height: min(740px, 85vh);
  }
}

/* ── iPad (768–1023px): 92vw ── */
@media (max-width: 1023px) and (min-width: 768px) {
  .hf-card-wrap {
    width: 92vw;
    height: min(680px, 82vh);
  }
  .hf-chevron { width: 46px; height: 46px; }
  .hfc-headline { font-size: 22px; }
  .hfc-summary  { font-size: 14px; }
  .hfc-text-section { padding: 24px; gap: 8px; }
}

/* ── iPhone (< 768px) ── */
@media (max-width: 767px) {
  .home-feed-section { padding: 56px 0 52px; }
  .home-feed-heading p { font-size: 14px; }
  .hf-stage { gap: 0; padding: 0 12px; }
  .hf-chevron { display: none; }
  .hf-card-wrap {
    width: calc(100vw - 24px);
    height: 600px;
  }
  .hfc-headline { font-size: 20px; }
  .hfc-summary  { font-size: 13.5px; -webkit-line-clamp: 3; }
  .hfc-text-section { padding: 18px 20px 20px; gap: 7px; }
  .hf-action-row { gap: 10px; }
  .hf-act { padding: 0 16px; font-size: 13px; height: 42px; }
  .hf-act-read { padding: 0 20px; }
  .hf-dots { max-width: calc(100vw - 100px); }
}

/* ── Mobile responsive tweaks ── */
@media (max-width: 768px) {
  .feed-cta-inner { flex-direction: column; gap: 24px; }
  .feed-cta-action { width: 100%; }
  .feed-header { padding-top: 80px; padding-bottom: 20px; }
  .feed-header-inner { align-items: center; }
  .feed-title { font-size: 26px; }
  .feed-subtitle { font-size: 14px; }
  .feed-settings-btn { margin-top: 0; }
  .feed-controls-inner { flex-direction: column; gap: 20px; }
  .feed-controls-btns { flex-direction: row; flex-wrap: wrap; }
  .feed-deck { height: 470px; }
  .feed-mobile-card { height: 450px; }
  .feed-mobile-img-wrap { height: 170px; }
  .feed-card-headline { font-size: 15px; }
  .feed-card-summary-text { font-size: 13px; }
  .feed-mobile-card-body { padding: 12px 14px 10px; }
  .container { padding: 0 20px; }
}
@media (max-width: 420px) {
  .feed-deck { height: 440px; }
  .feed-mobile-card { height: 420px; }
  .feed-mobile-img-wrap { height: 150px; }
  .feed-mobile-action-row { gap: 16px; }
  .feed-btn-skip, .feed-btn-like { width: 54px; height: 54px; }
}

/* ============================================================
   PERSONALISED FOR YOU SECTION
   ============================================================ */

.pf-section {
  background: var(--bg);
  padding: 80px 0;
}

/* ── Header ── */
.pf-header {
  margin-bottom: 64px;
}

.pf-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}

.pf-heading {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  text-wrap: balance;
}

.pf-sub {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}


/* ── Featured story (60/40) ── */
.pf-featured {
  display: grid;
  grid-template-columns: 3fr 2fr;
  cursor: pointer;
  margin-bottom: 64px;
  min-height: 480px;
}
.pf-feat-img-wrap {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  background: rgba(10,37,64,0.06);
}
.pf-feat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(.25,.46,.45,.94);
}
.pf-featured:hover .pf-feat-img { transform: scale(1.03); }
.pf-feat-img-ph {
  width: 100%;
  height: 100%;
  min-height: 480px;
  background: rgba(10,37,64,0.07);
}

.pf-feat-body {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
}
.pf-feat-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.pf-tag-dark {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  background: var(--ink);
  color: var(--bg);
}
.pf-tag-sm { font-size: 9px; padding: 3px 8px; }
.pf-tag-sig {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

.pf-feat-headline {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pf-feat-excerpt {
  font-size: 15px;
  color: rgba(10,37,64,0.72);
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 22px;
}
.pf-feat-meta {
  font-size: 11px;
  color: rgba(10,37,64,0.48);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.pf-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.22s, color 0.22s;
}
.pf-read-btn:hover { background: var(--ink); color: var(--bg); }

/* ── 3-column grid ── */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}
.pf-grid-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.pf-grid-img-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: rgba(10,37,64,0.06);
}
.pf-grid-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(.25,.46,.45,.94);
}
.pf-grid-card:hover .pf-grid-img { transform: scale(1.04); }
.pf-grid-img-ph { width: 100%; height: 100%; background: rgba(10,37,64,0.07); }

/* Generic placeholder used by PFFallbackImg when all sources fail */
.pf-img-ph { width: 100%; height: 100%; background: var(--bg-2); }

.pf-grid-country-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  background: var(--bg);
  color: var(--ink);
}

.pf-grid-body {
  padding: 22px 0 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.pf-grid-sig {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}
.pf-grid-headline {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.pf-grid-excerpt {
  font-size: 14px;
  color: rgba(10,37,64,0.70);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  flex: 1;
}
.pf-grid-meta {
  font-size: 11px;
  color: rgba(10,37,64,0.46);
  letter-spacing: 0.04em;
}

/* ── Editorial divider ── */
.pf-divider {
  padding: 0 0 48px;
  text-align: center;
}
.pf-divider-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}
.pf-divider-rule {
  width: 100%;
  height: 1px;
  background: rgba(10,37,64,0.13);
}

/* ── Horizontal list ── */
.pf-list { margin-bottom: 56px; }

.pf-list-row {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(10,37,64,0.08);
  cursor: pointer;
  transition: opacity 0.18s;
}
.pf-list-row:last-child { border-bottom: none; }
.pf-list-row:hover { opacity: 0.75; }

.pf-list-thumb {
  width: 160px;
  height: 100px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  filter: saturate(1.1);
}
.pf-list-thumb-ph {
  width: 160px;
  height: 100px;
  background: rgba(10,37,64,0.07);
  flex-shrink: 0;
}

.pf-list-body { flex: 1; min-width: 0; }
.pf-list-tags { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }
.pf-list-headline {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}
.pf-list-excerpt {
  font-size: 14px;
  color: rgba(10,37,64,0.68);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 7px;
}
.pf-list-meta { font-size: 11px; color: rgba(10,37,64,0.45); letter-spacing: 0.04em; }

/* ── Section footer ── */
.pf-section-foot { text-align: center; padding: 8px 0 0; }
.pf-foot-hint { font-size: 14px; color: rgba(10,37,64,0.50); margin-bottom: 12px; }
.pf-foot-link {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.pf-foot-link:hover { text-decoration: underline; }

/* ── Empty state ── */
.pf-empty {
  text-align: center;
  padding: 48px 0;
  font-size: 15px;
  color: rgba(10,37,64,0.50);
}

/* ── Article modal (PFArticleModal) ── */
.pf-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,37,64,0.58);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(2px);
}
.pf-modal {
  background: var(--bg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.pf-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
  opacity: 0.55;
  z-index: 2;
  transition: opacity 0.18s;
}
.pf-modal-close:hover { opacity: 1; }
.pf-modal-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.pf-modal-body { padding: 32px; }
.pf-modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.pf-modal-country {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  background: var(--ink);
  color: var(--bg);
}
.pf-modal-time { font-size: 12px; color: rgba(10,37,64,0.50); }
.pf-modal-headline {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.pf-modal-summary {
  font-size: 15px;
  color: rgba(10,37,64,0.74);
  line-height: 1.65;
  margin: 0 0 28px;
}
.pf-modal-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pf-modal-read-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.22s;
}
.pf-modal-read-btn:hover { background: var(--ink); }
.pf-modal-like-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(10,37,64,0.22);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
}
.pf-modal-like-btn:hover  { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pf-modal-liked           { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── Responsive: iPad (768–1023px) ── */
@media (max-width: 1023px) {
  .pf-featured      { grid-template-columns: 3fr 2fr; min-height: 360px; }
  .pf-feat-img-wrap { min-height: 360px; }
  .pf-feat-img-ph   { min-height: 360px; }
  .pf-feat-body     { padding: 36px 32px; }
  .pf-feat-headline { font-size: 26px; }
  .pf-grid          { grid-template-columns: repeat(2, 1fr); }
  .pf-grid-img-wrap { height: 240px; }
  .pf-list-thumb, .pf-list-thumb-ph { width: 120px; height: 80px; }
}

/* ── Responsive: Mobile (<768px) ── */
@media (max-width: 767px) {
  .pf-section         { padding: 56px 0; }
  .pf-header          { margin-bottom: 40px; }
  .pf-featured        { grid-template-columns: 1fr; min-height: auto; }
  .pf-feat-img-wrap   { min-height: 260px; height: 260px; }
  .pf-feat-img-ph     { min-height: 260px; }
  .pf-feat-body       { padding: 28px 0 0; }
  .pf-feat-headline   { font-size: 24px; }
  .pf-feat-excerpt    { -webkit-line-clamp: 2; }
  .pf-grid            { grid-template-columns: 1fr; gap: 40px; }
  .pf-grid-img-wrap   { height: 240px; }
  .pf-list-thumb, .pf-list-thumb-ph { width: 80px; height: 60px; }
  .pf-list-row        { gap: 14px; padding: 16px 0; }
  .pf-list-headline   { font-size: 16px; white-space: normal; display: -webkit-box;
                        -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pf-list-excerpt    { display: none; }
  .pf-modal-img       { height: 200px; }
  .pf-modal-body      { padding: 24px; }
  .pf-modal-headline  { font-size: 22px; }
}


/* ============================================================
   GLOBLY — consumer mobile app styles
   ============================================================ */

/* Base reset for app shell */
html, body, #root {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #0F0A1E;
  color: #F8F7FF;
  padding-right: 0 !important;
  margin: 0;
}
* { box-sizing: border-box; }

/* ── App shell ── */
.g-app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  height: 100vh;
  max-width: 430px;
  margin: 0 auto;
  background: #0F0A1E;
  position: relative;
  overflow: hidden;
}

/* ── Top bar ── */
.g-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: #0F0A1E;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  z-index: 10;
}
.g-logo-text {
  font-weight: 800;
  font-size: 18px;
  color: #F8F7FF;
  letter-spacing: -0.03em;
}
.g-streak-badge {
  background: rgba(249,115,22,0.18);
  color: #FB923C;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(249,115,22,0.3);
}

/* ── Main content area ── */
.g-main {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ── Bottom nav ── */
.g-bottom-nav {
  display: flex;
  align-items: stretch;
  background: #1A1340;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  flex-shrink: 0;
}
.g-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 4px 8px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
}
.g-nav-btn:active { background: rgba(255,255,255,0.05); }
.g-nav-icon { font-size: 20px; line-height: 1; }
.g-nav-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
  font-family: 'Inter', sans-serif;
}
.g-nav-btn--active .g-nav-label { color: #A78BFA; }
.g-nav-btn--active .g-nav-icon  { filter: drop-shadow(0 0 6px rgba(167,139,250,0.5)); }
.g-nav-streak {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 9px;
  font-weight: 700;
  color: #FB923C;
}

/* ── Splash / loading ── */
.g-splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100dvh;
  height: 100vh;
  background: #0F0A1E;
  gap: 12px;
}
.g-splash-logo { font-size: 72px; }
.g-splash-name {
  font-size: 32px;
  font-weight: 800;
  color: #F8F7FF;
  letter-spacing: -0.04em;
}
.g-splash-spinner {
  width: 28px; height: 28px;
  border: 2px solid rgba(167,139,250,0.2);
  border-top-color: #7C3AED;
  border-radius: 50%;
  animation: g-spin 0.8s linear infinite;
  margin-top: 8px;
}
@keyframes g-spin { to { transform: rotate(360deg); } }

/* ── Onboarding ── */
.g-onboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100dvh;
  height: 100vh;
  background: #0F0A1E;
  padding: 48px 28px 32px;
  overflow-y: auto;
}
.g-ob-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1;
}
.g-ob-top { text-align: center; margin-bottom: 32px; }
.g-ob-logo { font-size: 56px; margin-bottom: 12px; }
.g-ob-title {
  font-size: 38px;
  font-weight: 900;
  color: #F8F7FF;
  letter-spacing: -0.05em;
  margin: 0 0 8px;
}
.g-ob-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  max-width: 28ch;
  margin: 0 auto;
  line-height: 1.5;
}
.g-ob-step-label {
  font-size: 13px;
  font-weight: 700;
  color: #A78BFA;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  text-align: center;
}
.g-ob-hint {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin: 0 0 22px;
  text-align: center;
}
.g-ob-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
  width: 100%;
}
.g-ob-chips--topics { gap: 12px; }
.g-chip {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 99px;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.15s;
}
.g-chip--topic { font-size: 16px; padding: 12px 22px; width: 47%; text-align: center; border-radius: 16px; }
.g-chip--active {
  background: #7C3AED;
  border-color: #7C3AED;
  color: #fff;
}
.g-ob-next {
  margin-top: auto;
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: none;
  background: #7C3AED;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.g-ob-next:hover { background: #6D28D9; }
.g-ob-next--cta { background: linear-gradient(135deg, #7C3AED, #5B21B6); }
.g-ob-reminder { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 32px; }
.g-ob-note {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-align: center;
  line-height: 1.6;
  max-width: 32ch;
  margin: 0;
}
.g-ob-dots {
  display: flex;
  gap: 8px;
  padding: 24px 0 0;
  flex-shrink: 0;
}
.g-ob-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: inline-block;
  transition: background 0.2s;
}
.g-ob-dot--active { background: #7C3AED; }

/* ── Time input ── */
.g-time-input {
  font-family: 'Inter', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: #F8F7FF;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 12px 20px;
  text-align: center;
  width: 200px;
  letter-spacing: -0.02em;
  cursor: pointer;
}
.g-time-input::-webkit-calendar-picker-indicator { filter: invert(1); }

/* ── Today screen ── */
.g-today {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px 0 0;
}

/* Video banner — rounded card at top of Today screen */
.gs-video-banner {
  flex-shrink: 0;
  margin: 0 12px 12px;
  border-radius: 20px;
  overflow: hidden;
  height: min(25vh, 185px);
  position: relative;
  background: #111;
}
.gs-video-banner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Landing page variant — sits above the grain overlay */
.g-lp-video {
  margin: 0 12px;
  z-index: 2;
}

/* Landing page linear layout blocks */
.g-lp-header {
  flex-shrink: 0;
  padding: 18px 24px 14px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}
.g-lp-text-group {
  flex-shrink: 0;
  padding: 20px 24px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.g-lp-card-zone {
  flex-shrink: 0;
  padding: 8px 24px 0;
  position: relative;
  z-index: 2;
}

.g-today-empty, .g-today-done {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  text-align: center;
}
.g-done-icon { font-size: 56px; }
.g-done-title { font-size: 24px; font-weight: 800; color: #F8F7FF; margin: 0; }
.g-done-sub { font-size: 15px; color: rgba(255,255,255,0.5); margin: 0; }
.g-done-streak {
  font-size: 20px;
  font-weight: 700;
  color: #FB923C;
  background: rgba(249,115,22,0.12);
  padding: 10px 20px;
  border-radius: 99px;
}

/* Progress bar */
.g-progress-bar-wrap {
  padding: 0 20px 10px;
  flex-shrink: 0;
}
.g-progress-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  margin-bottom: 5px;
  letter-spacing: 0.04em;
}
.g-progress-track {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  overflow: hidden;
}
.g-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7C3AED, #A78BFA);
  border-radius: 99px;
  transition: width 0.4s ease;
}

/* Card stack */
.g-card-stack {
  flex: 1;
  position: relative;
  min-height: 0;
  margin: 0 16px;
  touch-action: pan-y;
}
.g-card {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #1A1340;
  transform-origin: bottom center;
  will-change: transform;
}
.g-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.g-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,5,30,0.97) 0%,
    rgba(10,5,30,0.65) 50%,
    rgba(10,5,30,0.2) 100%
  );
}
.g-card-overlay--solid { background: rgba(20,10,45,0.98); }
.g-card-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 22px 20px;
}
.g-card-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.g-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(124,58,237,0.35);
  color: #C4B5FD;
  border: 1px solid rgba(124,58,237,0.5);
}
.g-tag--country {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.15);
}
.g-card-headline {
  font-size: clamp(19px, 5vw, 24px);
  font-weight: 800;
  line-height: 1.22;
  color: #F8F7FF;
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}
.g-card-takeaway {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(248,247,255,0.65);
  margin: 0 0 14px;
  font-weight: 400;
}
.g-card-source {
  font-size: 11px;
  font-weight: 600;
  color: #A78BFA;
  text-decoration: none;
  letter-spacing: 0.03em;
}

/* Swipe stamps */
.g-swipe-stamp {
  position: absolute;
  top: 28px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 6px 12px;
  border-radius: 8px;
  border: 2px solid;
  z-index: 20;
  opacity: 0.9;
}
.g-swipe-stamp--like  { right: 18px; color: #34D399; border-color: #34D399; transform: rotate(10deg); }
.g-swipe-stamp--skip  { left: 18px;  color: #F87171; border-color: #F87171; transform: rotate(-10deg); }

/* Swipe hint row */
.g-swipe-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 12px;
  flex-shrink: 0;
}
.g-swipe-btn {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 99px;
  cursor: pointer;
  letter-spacing: 0.03em;
}
.g-swipe-btn--skip { color: #F87171; background: rgba(248,113,113,0.1); }
.g-swipe-btn--next { color: #A78BFA; background: rgba(167,139,250,0.1); }
.g-swipe-hint-text { font-size: 11px; color: rgba(255,255,255,0.25); }

/* ── Game screen ── */
.g-game, .g-game-done, .g-game-empty {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 32px;
  display: flex;
  flex-direction: column;
}
.g-game-header { flex-shrink: 0; margin-bottom: 20px; }
.g-game-progress {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  margin-bottom: 6px;
}
.g-game-track {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  overflow: hidden;
}
.g-game-fill {
  height: 100%;
  background: linear-gradient(90deg, #7C3AED, #A78BFA);
  border-radius: 99px;
  transition: width 0.4s ease;
}
.g-game-card {
  background: #1A1340;
  border-radius: 20px;
  padding: 22px 20px 20px;
  margin-bottom: 16px;
}
.g-game-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #A78BFA;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.g-game-q {
  font-size: 20px;
  font-weight: 800;
  color: #F8F7FF;
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
.g-options { display: flex; flex-direction: column; gap: 10px; }
.g-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #F8F7FF;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}
.g-option:active:not(:disabled) { background: rgba(124,58,237,0.2); border-color: #7C3AED; }
.g-option--correct { background: rgba(52,211,153,0.15); border-color: #34D399; color: #34D399; font-weight: 700; }
.g-option--wrong   { background: rgba(248,113,113,0.12); border-color: #F87171; color: #F87171; }
.g-option--dim     { opacity: 0.38; }
.g-option-letter {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.g-option-text { flex: 1; }
.g-option-tick { font-weight: 800; flex-shrink: 0; }
.g-explain {
  margin-top: 16px;
  padding: 14px;
  background: rgba(167,139,250,0.1);
  border-radius: 10px;
  border-left: 3px solid #7C3AED;
}
.g-explain-text { font-size: 14px; color: rgba(248,247,255,0.8); line-height: 1.6; margin: 0; }
.g-next-btn {
  margin-top: auto;
  padding: 16px;
  border-radius: 14px;
  border: none;
  background: #7C3AED;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.g-next-btn:hover { background: #6D28D9; }

/* Game done */
.g-game-done { align-items: center; text-align: center; padding-top: 32px; gap: 14px; overflow-y: auto; }
.g-game-done-emoji { font-size: 64px; }
.g-game-done-title { font-size: 30px; font-weight: 900; color: #F8F7FF; letter-spacing: -0.04em; margin: 0; }
.g-game-done-squares { display: flex; gap: 6px; }
.g-result-sq { font-size: 26px; }
.g-share-btn {
  padding: 14px 28px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #7C3AED, #5B21B6);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.g-game-done-sub { font-size: 13px; color: rgba(255,255,255,0.4); margin: 0; }
.g-game-review { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; text-align: left; }
.g-review-item {
  padding: 12px 14px;
  border-radius: 12px;
  border-left: 3px solid;
}
.g-review-item--correct { background: rgba(52,211,153,0.08); border-color: #34D399; }
.g-review-item--wrong   { background: rgba(248,113,113,0.08); border-color: #F87171; }
.g-review-q   { font-size: 13px; font-weight: 700; color: #F8F7FF; margin-bottom: 4px; }
.g-review-a   { font-size: 12px; font-weight: 600; color: #34D399; margin-bottom: 3px; }
.g-review-explain { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.5; }

/* ── Discover screen ── */
.g-discover { flex: 1; overflow-y: auto; padding: 0 16px 32px; }
.g-discover-header { padding: 20px 4px 16px; }
.g-discover-title { font-size: 24px; font-weight: 900; color: #F8F7FF; letter-spacing: -0.04em; margin: 0 0 4px; }
.g-discover-sub { font-size: 13px; color: rgba(255,255,255,0.4); margin: 0; }
.g-dyk-list { display: flex; flex-direction: column; gap: 12px; }
.g-dyk-card {
  background: linear-gradient(135deg, #1A1340 0%, #231558 100%);
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: 20px;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.g-dyk-emoji { font-size: 36px; }
.g-dyk-stat {
  font-size: 20px;
  font-weight: 800;
  color: #F8F7FF;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.g-dyk-context { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.55; font-weight: 400; }
.g-dyk-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(167,139,250,0.4);
  margin-top: 4px;
}

/* ── Profile screen ── */
.g-profile { flex: 1; overflow-y: auto; padding: 20px 20px 40px; display: flex; flex-direction: column; gap: 20px; }
.g-profile-streak-card {
  background: linear-gradient(135deg, rgba(249,115,22,0.15), rgba(249,115,22,0.05));
  border: 1px solid rgba(249,115,22,0.25);
  border-radius: 20px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.g-profile-flame { font-size: 48px; }
.g-profile-streak-num { font-size: 56px; font-weight: 900; color: #FB923C; letter-spacing: -0.05em; line-height: 1; }
.g-profile-streak-label { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.5); }
.g-profile-longest { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 4px; }
.g-profile-section {
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.g-profile-section-title { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.g-profile-reminder-row { display: flex; align-items: center; gap: 12px; }
.g-saved-badge { font-size: 12px; font-weight: 600; color: #34D399; }
.g-profile-note { font-size: 12px; color: rgba(255,255,255,0.35); line-height: 1.6; margin: 0; }
.g-profile-interests { display: flex; flex-wrap: wrap; gap: 8px; }
.g-interest-tag {
  font-size: 12px; font-weight: 600;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(124,58,237,0.2);
  color: #C4B5FD;
  border: 1px solid rgba(124,58,237,0.3);
}
.g-interest-tag--topic {
  background: rgba(52,211,153,0.1);
  color: #6EE7B7;
  border-color: rgba(52,211,153,0.25);
}
.g-reset-btn {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1.5px solid rgba(124,58,237,0.4);
  background: transparent;
  color: #A78BFA;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
}
.g-time-input {
  font-size: 28px;
  width: auto;
  padding: 8px 14px;
  border-radius: 10px;
}

/* ── Version tap + debug panel ─────────────────────────────────── */
.g-version-tap {
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  cursor: pointer;
  font-family: 'Figtree', sans-serif;
  letter-spacing: 0.04em;
  user-select: none;
}
.g-debug-panel {
  margin: 0 16px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.g-debug-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}
.g-debug-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}
.g-debug-section {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.28);
  margin-top: 6px;
}
.g-debug-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.g-debug-label {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  width: 108px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g-debug-bar-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.g-debug-bar {
  height: 100%;
  background: #A78BFA;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.g-debug-val {
  font-size: 11px;
  color: rgba(255,255,255,0.40);
  width: 30px;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}


/* ============================================================
   GLOBLY — phone frame (desktop centring fix)
   ============================================================ */

/* Body becomes the desktop surround */
html {
  height: 100%;
  overflow: hidden;
}
body {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  height: 100% !important;
  min-height: 100vh !important;
  overflow: hidden !important;
  padding-right: 0 !important;
  background: #070511 !important;
}
#root {
  width: 100%;
  max-width: 430px;
  height: 100vh;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

/* On wide screens, add a subtle device shadow so it reads as a phone */
@media (min-width: 500px) {
  #root {
    box-shadow:
      0 0 0 1px rgba(255,255,255,0.07),
      0 32px 80px rgba(0,0,0,0.7);
  }
}

/* The frame div wrapping all Globly screens */
.g-phone-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background: #0F0A1E;
}

/* Override 100vh/dvh inside the frame — use 100% since the frame is sized */
.g-app {
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
.g-splash {
  height: 100% !important;
}
.g-onboard {
  height: 100% !important;
  max-height: 100% !important;
}

/* ============================================================
   GLOBLY — welcome / landing screen
   ============================================================ */

/* Full-screen container inside the phone frame */
.g-welcome {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a0a0a;
}

/* Photo background — fills frame, centre-cropped */
.g-welcome-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  /* Slight zoom so photo fills portrait frame with no bars */
  transform: scale(1.05);
}

/* Video background — sits on top of photo, same cropping */
.g-welcome-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  display: block;
}

/* Gradient overlay — darkens bottom heavily for auth box contrast,
   lighter at top so sky/landscape reads through */
.g-welcome-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.28) 0%,
      rgba(0,0,0,0.10) 30%,
      rgba(0,0,0,0.50) 60%,
      rgba(0,0,0,0.82) 100%
    );
}

/* Branding — top-left, text-shadow for legibility over any photo */
.g-welcome-brand {
  position: absolute;
  top: max(44px, env(safe-area-inset-top, 44px));
  left: 24px;
  z-index: 3;
}
.g-welcome-logo-emoji {
  font-size: 36px;
  display: block;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.g-welcome-title {
  font-size: 42px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 0 0 10px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}
.g-welcome-tagline {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
  max-width: 22ch;
}

/* Auth box — white card, bottom-left, not full-width */
.g-auth-box {
  position: absolute;
  bottom: max(36px, env(safe-area-inset-bottom, 36px));
  left: 20px;
  width: min(300px, calc(100% - 40px));
  background: #ffffff;
  border-radius: 20px;
  padding: 22px 20px 20px;
  z-index: 3;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.35),
    0 2px 8px rgba(0,0,0,0.2),
    0 0 0 1px rgba(0,0,0,0.06);
}
.g-auth-headline {
  font-size: 18px;
  font-weight: 800;
  color: #0f0a1e;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
  line-height: 1.2;
}
.g-auth-sub {
  font-size: 13px;
  color: #6b6880;
  margin: 0 0 18px;
  font-weight: 400;
}
.g-auth-btn-primary {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: none;
  background: #7C3AED;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: -0.01em;
}
.g-auth-btn-primary:active { background: #6D28D9; transform: scale(0.98); }
.g-auth-btn-secondary {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid #e0dce8;
  background: transparent;
  color: #0f0a1e;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: -0.01em;
}
.g-auth-btn-secondary:active { background: #f5f3ff; transform: scale(0.98); }

/* ============================================================
   GLOBLY — editorial landing page (v2)
   ============================================================ */

/* Root container */
.g-lp {
  position: absolute;
  inset: 0;
  background: #0A0A0A;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  font-family: 'Figtree', system-ui, sans-serif;
}

/* ── Film grain ── */
.g-lp-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  background-repeat: repeat;
  opacity: 0.032;
  mix-blend-mode: overlay;
}

/* ── Ticker bar ── */
.g-ticker {
  flex-shrink: 0;
  height: 30px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}
.g-ticker-track {
  display: flex;
  align-items: center;
  animation: g-ticker-scroll 28s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
@keyframes g-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.g-ticker-item {
  display: inline-flex;
  align-items: center;
}
.g-ticker-tag {
  font-family: 'Figtree', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 0 12px;
}
.g-ticker-sep {
  color: rgba(255,255,255,0.12);
  font-size: 10px;
}

/* ── Main body (vertically centred) ── */
.g-lp-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 28px;
  gap: 18px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

/* ── Logo row ── */
.g-lp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.9);
}
.g-globe-svg {
  flex-shrink: 0;
  opacity: 0.85;
}
.g-lp-wordmark {
  font-family: 'Figtree', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
}

/* ── Hero headline ── */
.g-lp-headline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(38px, 10vw, 50px);
  font-weight: 400;
  line-height: 1.12;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.01em;
}
.g-lp-headline em {
  font-style: italic;
  color: rgba(255,255,255,0.82);
}

/* ── Subtitle ── */
.g-lp-subtitle {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,0.42);
  margin: 0;
  letter-spacing: 0.01em;
}

/* ── Preview card ── */
.g-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.g-preview-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  padding: 16px 18px;
  min-height: 88px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.g-preview-inner {
  width: 100%;
  transition: opacity 0.35s ease;
}
.g-preview-in  { opacity: 1; }
.g-preview-out { opacity: 0; }
.g-preview-tags {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}
.g-preview-tag {
  font-family: 'Figtree', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}
.g-preview-tag--topic { color: rgba(255,255,255,0.55); }
.g-preview-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.g-preview-text {
  font-family: 'Figtree', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
  margin: 0;
  letter-spacing: -0.005em;
}

/* Dot indicators */
.g-preview-dots {
  display: flex;
  gap: 5px;
  padding-left: 2px;
}
.g-pdot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: background 0.3s, transform 0.3s;
  display: inline-block;
}
.g-pdot--active {
  background: rgba(255,255,255,0.7);
  transform: scale(1.2);
}

/* ── CTA buttons ── */
.g-lp-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.g-lp-btn-primary {
  width: 100%;
  padding: 15px 20px;
  border-radius: 10px;
  border: none;
  background: #F5F5F0;
  color: #0A0A0A;
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.12s ease;
}
.g-lp-btn-primary:hover  { background: #FFFFFF; }
.g-lp-btn-primary:active { transform: scale(0.98); background: #E8E8E3; }

.g-lp-btn-ghost {
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.12s;
}
.g-lp-btn-ghost:hover  { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.75); }
.g-lp-btn-ghost:active { transform: scale(0.98); }

/* ── Footer ── */
.g-lp-footer {
  flex-shrink: 0;
  padding: 12px 24px max(20px, env(safe-area-inset-bottom, 20px));
  font-family: 'Figtree', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 2;
}

/* ── Staggered fade-in ── */
.g-fi {
  opacity: 0;
  transform: translateY(14px);
  animation: g-fadein 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.g-fi-1 { animation-delay: 0.08s; }
.g-fi-2 { animation-delay: 0.18s; }
.g-fi-3 { animation-delay: 0.28s; }
.g-fi-4 { animation-delay: 0.38s; }
.g-fi-5 { animation-delay: 0.50s; }
.g-fi-6 { animation-delay: 0.62s; }

@keyframes g-fadein {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   GLOBLY PHASE 1 — App shell, top bar, bottom nav
   ============================================================ */

/* Design tokens */
:root {
  --g-bg:      #0E0E10;
  --g-surface: #19191D;
  --g-border:  rgba(255,255,255,0.07);
  --g-text:    #F0F0F2;
  --g-muted:   rgba(255,255,255,0.38);
  --g-accent:  #7C3AED;
  --g-accent2: #9D6EFF;
  --g-pad:     24px;
  --g-nav-h:   64px;
  --g-top-h:   56px;
}

/* Override body/root background for shell */
.g-phone-frame { background: var(--g-bg); }

/* ── Shell wrapper ── */
.gs-shell {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--g-bg);
  font-family: 'Figtree', system-ui, sans-serif;
  overflow: hidden;
}

/* ── Top bar ── */
.gs-topbar {
  flex-shrink: 0;
  height: var(--g-top-h);
  padding: 0 var(--g-pad);
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--g-bg);
  border-bottom: 1px solid var(--g-border);
  position: relative;
  z-index: 10;
}
.gs-topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
}
.gs-topbar-freshness {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.gs-topbar-brand .g-globe-svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}
.gs-topbar-wordmark {
  font-family: 'Figtree', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
}

/* Streak pill */
.gs-streak-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 99px;
  padding: 5px 12px 5px 10px;
  cursor: pointer;
  transition: background 0.2s;
  color: #B794FF;
}
.gs-streak-pill:hover { background: rgba(124,58,237,0.25); }
.gs-streak-num {
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #B794FF;
  letter-spacing: -0.02em;
}

/* ── Scrollable body ── */
.gs-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ── Bottom nav ── */
.gs-nav {
  flex-shrink: 0;
  height: calc(var(--g-nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  align-items: stretch;
  background: rgba(14,14,16,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--g-border);
  position: relative;
  z-index: 10;
}
.gs-nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 4px 8px;
  color: var(--g-muted);
  transition: color 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.gs-nav-tab:active { opacity: 0.7; }
.gs-nav-tab--on { color: var(--g-accent2); }
.gs-nav-label {
  font-family: 'Figtree', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* ── Streak modal ── */
.gs-streak-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--g-pad);
}
.gs-streak-modal {
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  border-radius: 20px;
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 280px;
}
.gs-streak-modal-flame {
  font-size: 48px;
  color: #B794FF;
  margin-bottom: 4px;
}
.gs-streak-modal-flame svg { width: 40px; height: 46px; }
.gs-streak-modal-num {
  font-family: 'Instrument Serif', serif;
  font-size: 64px;
  font-weight: 400;
  color: var(--g-text);
  line-height: 1;
  letter-spacing: -0.04em;
}
.gs-streak-modal-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--g-muted);
  margin-bottom: 4px;
}
.gs-streak-modal-best {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  margin-bottom: 8px;
}
.gs-streak-modal-nudge {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-align: center;
  line-height: 1.45;
  margin-bottom: 16px;
}
.gs-streak-modal-close {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  border: 1px solid var(--g-border);
  background: transparent;
  color: var(--g-muted);
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.gs-streak-modal-close:hover { background: rgba(255,255,255,0.06); }

/* ── Feed stub / placeholder ── */
.gs-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--g-muted);
}
.gs-placeholder svg { opacity: 0.35; width: 36px; height: 36px; }
.gs-placeholder-label {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.01em;
}

/* ── Splash update (no emoji) ── */
.g-splash-logo svg {
  width: 52px;
  height: 52px;
  color: rgba(255,255,255,0.6);
}
.g-splash-name {
  font-family: 'Figtree', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3em !important;
  color: rgba(255,255,255,0.45) !important;
}

/* ── Landing page top/bottom split ── */
.g-lp-top {
  flex-shrink: 0;
  padding: 20px 28px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 2;
}
.g-lp-spacer {
  flex: 1;
  min-height: 20px;
}
.g-lp-bot {
  flex-shrink: 0;
  padding: 0 28px max(20px, env(safe-area-inset-bottom, 20px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
}
/* Footer is now inside .g-lp-bot — remove its own bottom padding */
.g-lp-bot .g-lp-footer {
  padding: 0;
}

/* ticker sits in normal flow between tagline and card — no offset needed */

/* ============================================================
   GLOBLY — Onboarding steps redesign + feed height fix
   ============================================================ */

/* ── Fix: gs-body must be a flex container so TodayScreen gets height ── */
.gs-body {
  display: block !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
/* Screens — gs-body is now the scroll container; screens just need min-height */
.g-game, .g-game-done, .g-game-empty,
.g-profile, .g-discover {
  min-height: 100%;
}
/* Feed card screen fills body */
.g-today {
  flex: 1 !important;
  min-height: 0 !important;
  height: 0 !important;          /* paired with flex:1 — forces flex height */
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 12px 0 0 !important;
}
.g-card-stack {
  flex: 1 !important;
  min-height: 0 !important;
  position: relative !important;
  margin: 0 16px !important;
  touch-action: pan-y !important;
}
/* Cards fill the stack */
.g-card {
  position: absolute !important;
  inset: 0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #16141A !important;   /* matches landing palette */
}
.g-card-overlay {
  background: linear-gradient(
    to top,
    rgba(8,6,12,0.97) 0%,
    rgba(8,6,12,0.6)  50%,
    rgba(8,6,12,0.15) 100%
  ) !important;
}
.g-card-overlay--solid {
  background: rgba(14,12,20,0.97) !important;
}
/* Card typography to match landing palette */
.g-card-headline {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-size: clamp(20px, 5.5vw, 26px) !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,0.92) !important;
  letter-spacing: -0.01em !important;
  line-height: 1.25 !important;
  margin: 0 0 10px !important;
}
.g-card-takeaway {
  font-family: 'Figtree', sans-serif !important;
  font-size: 13.5px !important;
  color: rgba(255,255,255,0.52) !important;
  line-height: 1.55 !important;
  font-weight: 400 !important;
}
.g-tag {
  font-family: 'Figtree', sans-serif !important;
  font-size: 9px !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  background: rgba(255,255,255,0.07) !important;
  color: rgba(255,255,255,0.45) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 4px !important;
  padding: 3px 8px !important;
}
.g-card-source {
  font-family: 'Figtree', sans-serif !important;
  font-size: 11px !important;
  color: rgba(255,255,255,0.3) !important;
}
/* Progress bar — landing palette */
.g-progress-fill {
  background: rgba(255,255,255,0.6) !important;
}
.g-progress-track {
  background: rgba(255,255,255,0.08) !important;
}
.g-progress-label {
  font-family: 'Figtree', sans-serif !important;
  color: rgba(255,255,255,0.3) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}
/* Swipe hint */
.g-swipe-btn--skip, .g-swipe-btn--next {
  background: rgba(255,255,255,0.05) !important;
  color: rgba(255,255,255,0.35) !important;
  border-radius: 99px !important;
}
.g-swipe-hint-text {
  font-family: 'Figtree', sans-serif !important;
  font-size: 10px !important;
  color: rgba(255,255,255,0.18) !important;
}
/* Done screen */
.g-today-done {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  gap: 10px !important;
  padding: 40px !important;
  text-align: center !important;
}
.g-done-title {
  font-family: 'Instrument Serif', serif !important;
  font-size: 32px !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,0.85) !important;
  margin: 0 !important;
}
.g-done-sub {
  font-family: 'Figtree', sans-serif !important;
  font-size: 14px !important;
  color: rgba(255,255,255,0.35) !important;
  margin: 0 !important;
}
.g-done-streak {
  font-family: 'Figtree', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,0.25) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 99px !important;
  padding: 6px 16px !important;
  background: none !important;
  margin-top: 8px !important;
}

/* ── Onboarding preference steps — full redesign ── */
/* ── Onboarding wallpaper — absolute inside ob-page, behind slide content ── */
.ob-wallpaper {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.ob-wp-tag {
  position: absolute;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  line-height: 1;
}

.ob-page {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: #0A0A0A;
  font-family: 'Figtree', sans-serif;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

/* Step indicator */
.ob-indicator {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}
.ob-dots {
  display: flex;
  gap: 6px;
}
.ob-dot {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: rgba(255,255,255,0.12);
  transition: background 0.3s;
}
.ob-dot--on {
  background: rgba(255,255,255,0.6);
}
.ob-step-count {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
}

/* Heading */
.ob-head {
  flex-shrink: 0;
  padding: 0 0 14px;
}
.ob-headline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(28px, 8vw, 38px);
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.ob-hint {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.32);
  line-height: 1.5;
  margin: 0;
}

/* Options list */
.ob-options {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Option card */
.ob-option {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: rgba(255,255,255,0.65);
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.ob-option:active { opacity: 0.75; }
.ob-option--on {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.ob-option-label { flex: 1; }
.ob-option-check {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  margin-left: 12px;
}

/* Reminder step */
.ob-reminder-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding-top: 8px;
}
.ob-time-input {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 48px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 20px;
  width: 100%;
  letter-spacing: -0.02em;
  cursor: pointer;
}
.ob-time-input::-webkit-calendar-picker-indicator { filter: invert(0.6); }
.ob-reminder-note {
  font-size: 12px;
  color: rgba(255,255,255,0.22);
  line-height: 1.6;
  margin: 0;
}

/* Bottom button */
.ob-foot {
  flex-shrink: 0;
  padding: 16px 24px max(24px, env(safe-area-inset-bottom, 24px));
}
.ob-btn {
  width: 100%;
  padding: 15px 20px;
  border-radius: 10px;
  border: none;
  background: #F5F5F0;
  color: #0A0A0A;
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.ob-btn:hover  { background: #fff; }
.ob-btn:active { transform: scale(0.98); background: #E8E8E3; }

/* ── Onboarding wrapper — match landing black bg ── */
.g-onboard { background: #0A0A0A !important; }

/* ============================================================
   GLOBLY — unified muted palette  (source of truth)
   Adjust values here to repaint the entire app.
   ============================================================ */

:root {
  /* Primary action accent — muted slate-blue */
  --c-accent:     #6E84A3;
  --c-accent-bg:  rgba(110,132,163,0.10);
  --c-accent-bd:  rgba(110,132,163,0.22);
  --c-accent-hi:  rgba(110,132,163,0.18);

  /* Category / tag family — all low saturation */
  --c-slate:  #6E84A3;   /* muted slate-blue  */
  --c-sage:   #8AA399;   /* faded sage green  */
  --c-clay:   #B08968;   /* dusty clay        */
  --c-plum:   #8A7596;   /* muted plum        */
  --c-stone:  #A8A29E;   /* soft stone        */

  /* Game outcome — desaturated but still directional */
  --c-correct:    #7A9688;
  --c-correct-bg: rgba(122,150,136,0.10);
  --c-correct-bd: rgba(122,150,136,0.28);
  --c-wrong:      #A07878;
  --c-wrong-bg:   rgba(160,120,120,0.10);
  --c-wrong-bd:   rgba(160,120,120,0.28);
}

/* ── Shell & navigation ── */
.gs-streak-pill {
  background: var(--c-accent-bg) !important;
  border-color: var(--c-accent-bd) !important;
  color: var(--c-accent) !important;
}
.gs-streak-num { color: var(--c-accent) !important; }
.gs-streak-modal-flame svg { color: var(--c-clay) !important; }
.gs-streak-modal-num { color: rgba(255,255,255,0.80) !important; }
.gs-nav-tab--on { color: var(--c-accent) !important; }
.gs-streak-modal-close { color: rgba(255,255,255,0.35) !important; }

/* ── Landing page ── */
.g-pdot--active { background: var(--c-accent) !important; }
.g-lp .g-ticker-tag { color: #333333 !important; }
.g-preview-tag--topic { color: var(--c-stone) !important; }

/* ── Onboarding preference steps ── */
.ob-dot--on { background: var(--c-accent) !important; }
.ob-option--on {
  border-color: var(--c-accent-bd) !important;
  background: var(--c-accent-bg) !important;
  color: rgba(255,255,255,0.88) !important;
}
.ob-option-check { color: var(--c-accent) !important; }

/* ── Old onboarding classes (still referenced) ── */
.g-chip--active { background: var(--c-accent) !important; border-color: var(--c-accent) !important; }
.g-ob-next,
.g-ob-next--cta { background: var(--c-accent) !important; }
.g-ob-dot--active { background: var(--c-accent) !important; }

/* ── Progress bars ── */
.g-progress-fill  { background: var(--c-accent) !important; }
.g-game-fill      { background: var(--c-accent) !important; }

/* ── Feed / article cards ── */
.g-swipe-stamp--like { color: var(--c-sage) !important; border-color: var(--c-sage) !important; }
.g-swipe-stamp--skip { color: var(--c-stone) !important; border-color: var(--c-stone) !important; }
.g-swipe-btn--skip   { color: var(--c-stone) !important; background: rgba(168,162,158,0.08) !important; }
.g-swipe-btn--next   { color: var(--c-slate) !important; background: var(--c-accent-bg) !important; }

/* Card region/topic tags — each gets a distinct muted tone */
.g-tag { color: var(--c-stone) !important; border-color: rgba(168,162,158,0.14) !important; background: rgba(168,162,158,0.06) !important; }
.g-tag--country { color: rgba(255,255,255,0.28) !important; border-color: rgba(255,255,255,0.07) !important; background: transparent !important; }
.g-card-source { color: var(--c-stone) !important; }
.g-card-source:hover { color: var(--c-slate) !important; }

/* Streak done state */
.g-done-streak { color: var(--c-clay) !important; border-color: rgba(176,137,104,0.2) !important; }

/* ── Daily game ── */
.g-option--correct {
  background: var(--c-correct-bg) !important;
  border-color: var(--c-correct-bd) !important;
  color: var(--c-correct) !important;
}
.g-option--wrong {
  background: var(--c-wrong-bg) !important;
  border-color: var(--c-wrong-bd) !important;
  color: var(--c-wrong) !important;
}
.g-explain {
  border-left-color: var(--c-accent) !important;
  background: var(--c-accent-bg) !important;
}
.g-explain-text { color: rgba(255,255,255,0.62) !important; }
.g-next-btn {
  background: var(--c-accent) !important;
  color: #fff !important;
}
.g-next-btn:hover { background: #5A6E8A !important; }
.g-share-btn {
  background: var(--c-accent) !important;
  color: #fff !important;
}
.g-result-sq { font-size: 22px !important; }
.g-game-done-title { color: rgba(255,255,255,0.85) !important; }
.g-review-item--correct { border-color: var(--c-correct-bd) !important; background: var(--c-correct-bg) !important; }
.g-review-item--wrong   { border-color: var(--c-wrong-bd) !important;   background: var(--c-wrong-bg) !important; }
.g-review-a   { color: var(--c-correct) !important; }
.g-game-label { color: var(--c-slate) !important; }
.g-game-progress { color: rgba(255,255,255,0.25) !important; }

/* ── Discover "Did you know" cards ── */
.g-dyk-card { border-color: rgba(255,255,255,0.07) !important; background: linear-gradient(135deg, #14131A 0%, #1A1820 100%) !important; }
.g-dyk-stat { color: rgba(255,255,255,0.82) !important; }
.g-dyk-context { color: rgba(255,255,255,0.38) !important; }
.g-dyk-brand { color: rgba(255,255,255,0.14) !important; }

/* ── Profile screen ── */
.g-profile-streak-card { border-color: rgba(176,137,104,0.2) !important; background: rgba(176,137,104,0.06) !important; }
.g-profile-flame svg { color: var(--c-clay) !important; }
.g-profile-streak-num { color: var(--c-clay) !important; }
.g-saved-badge { color: var(--c-sage) !important; }
.g-interest-tag { background: var(--c-accent-bg) !important; color: var(--c-accent) !important; border-color: var(--c-accent-bd) !important; }
.g-interest-tag--topic { background: rgba(138,163,153,0.10) !important; color: var(--c-sage) !important; border-color: rgba(138,163,153,0.22) !important; }
.g-reset-btn { border-color: var(--c-accent-bd) !important; color: var(--c-accent) !important; }
.g-profile-section-title { color: rgba(255,255,255,0.25) !important; }

/* ── Old shell nav (replaced but may still render) ── */
.g-nav-btn--active .g-nav-label { color: var(--c-accent) !important; }
.g-streak-badge { background: var(--c-accent-bg) !important; border-color: var(--c-accent-bd) !important; color: var(--c-accent) !important; }

/* ── Badge colours (significance) ── */
.badge-green  { background: var(--c-correct-bg) !important; color: var(--c-correct) !important; }
.badge-red    { background: var(--c-wrong-bg) !important;   color: var(--c-wrong) !important; }
.badge-orange { background: rgba(176,137,104,0.10) !important; color: var(--c-clay) !important; }
.beacon-tender-badge--urgent { background: var(--c-wrong-bg) !important;   color: var(--c-wrong) !important; }
.beacon-tender-badge--soon   { background: rgba(176,137,104,0.10) !important; color: var(--c-clay) !important; }
.beacon-tender-badge--open   { background: var(--c-correct-bg) !important; color: var(--c-correct) !important; }


/* ============================================================
   GLOBLY — expanded onboarding (15 steps)
   ============================================================ */

/* Slim progress bar replaces dots */
.ob-bar {
  flex-shrink: 0;
  height: 2px;
  background: rgba(255,255,255,0.07);
  margin: 0;
}
.ob-bar-fill {
  height: 100%;
  background: rgba(255,255,255,0.38);
  transition: width 0.5s cubic-bezier(0.22,1,0.36,1);
}

/* Centred content zone — headline + body vertically centred between bar and button */
.ob-content-zone {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 24px 8px;
}

/* Eyebrow label */
.ob-eyebrow {
  font-family: 'Figtree', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin: 0 0 10px;
}

/* Body area — sits below headline inside the centred zone */
.ob-body {
  flex-shrink: 0;
  padding: 4px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Sub-label inside option card */
.ob-option-sub {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.28);
  margin-left: 8px;
  flex-shrink: 0;
}
.ob-option--on .ob-option-sub { color: rgba(255,255,255,0.45); }

/* ── Step 0: Social proof ── */
.ob-avatars {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.ob-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ob-stat-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ob-stat-num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 40px;
  font-weight: 400;
  color: rgba(255,255,255,0.80);
  letter-spacing: -0.03em;
  line-height: 1;
}
.ob-stat-label {
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
}

/* ── Step 0: Quote screen ── */
.ob-quote-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ob-quote-mark {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 72px;
  line-height: 0.6;
  color: rgba(255,255,255,0.25);
  margin-bottom: 4px;
}
.ob-quote-text {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  margin: 0;
  letter-spacing: -0.01em;
}
.ob-quote-attr {
  font-family: 'Figtree', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.40);
  margin: 0;
  letter-spacing: 0.01em;
}
.ob-quote-globly {
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  margin: 10px 0 0;
  line-height: 1.5;
  letter-spacing: 0.01em;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

/* ── Step 1: Fact screen ── */
.ob-fact-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ob-fact-sub {
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255,255,255,0.58);
  margin: 0;
}
.ob-fact-source {
  font-family: 'Figtree', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.28);
  font-style: italic;
  margin: 0;
}

/* ── Step 1: Habit illustration (kept for reference) ── */
.ob-icon-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.ob-big-icon {
  width: 88px;
  height: 88px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ob-icon-caption {
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  font-weight: 400;
  font-style: italic;
}

/* ── Step 2: Comparison ── */
.ob-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  width: 100%;
  align-items: start;
}
.ob-compare-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ob-compare-divider {
  width: 1px;
  background: rgba(255,255,255,0.07);
  margin: 0 16px;
  align-self: stretch;
}
.ob-compare-label {
  font-family: 'Figtree', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ob-compare-label--muted  { color: rgba(255,255,255,0.25); }
.ob-compare-label--accent { color: var(--c-accent); }
.ob-compare-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ob-compare-item {
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  line-height: 1.4;
}
.ob-compare-col--right .ob-compare-item { color: rgba(255,255,255,0.75); }

/* ── Step 3: Big stat ── */
.ob-big-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ob-big-stat-num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 72px;
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  letter-spacing: -0.04em;
  line-height: 1;
}
.ob-big-stat-line {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
}
.ob-big-stat-source {
  font-size: 11px;
  color: rgba(255,255,255,0.18);
  font-style: italic;
}

/* ── Step 5: Affirmation ── */
.ob-affirm-pill {
  display: inline-block;
  padding: 10px 20px;
  background: var(--c-accent-bg);
  border: 1px solid var(--c-accent-bd);
  border-radius: 99px;
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-accent);
  letter-spacing: 0.02em;
}

/* ── Step 11: Feature list ── */
.ob-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ob-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ob-feature-icon {
  font-size: 8px;
  color: var(--c-accent);
  margin-top: 6px;
  flex-shrink: 0;
}
.ob-feature-text {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.62);
  font-weight: 400;
  line-height: 1.5;
}

/* ── Step 14: Final ── */
.ob-final {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px 16px;
  gap: 16px;
}
.ob-final-globe {
  color: rgba(255,255,255,0.25);
}
.ob-final-globe svg { width: 40px; height: 40px; }
.ob-final-headline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(32px, 9vw, 44px);
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
.ob-final-headline em { font-style: italic; color: rgba(255,255,255,0.60); }
.ob-final-sub {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.32);
  font-weight: 400;
  margin: 0;
  line-height: 1.55;
}

/* Disabled button state */
.ob-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ── Comparison table (step 2 redesign) ── */
.ob-vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(255,255,255,0.06);   /* gap colour = grid lines */
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
}
.ob-vs-hd {
  padding: 11px 16px;
  font-family: 'Figtree', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ob-vs-hd--left {
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.28);
}
.ob-vs-hd--right {
  background: rgba(110,132,163,0.10);
  color: var(--c-accent);
}
.ob-vs-cell {
  padding: 12px 16px;
  font-family: 'Figtree', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.35;
}
.ob-vs-cell--left {
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.32);
}
.ob-vs-cell--right {
  background: rgba(110,132,163,0.04);
  color: rgba(255,255,255,0.72);
}

/* ============================================================
   GLOBLY — DARK THEME  (charcoal, Headway-style)
   ============================================================ */

/* ── Design tokens ── */
:root {
  --lt-bg:       #1C1C1E;
  --lt-grad:     linear-gradient(160deg, #1C1C1E 0%, #222226 100%);
  --ob-bg:       radial-gradient(ellipse 130% 110% at 50% 28%, #1C2A3A 0%, #1C2030 22%, #1C1E28 45%, #1C1C20 68%, #1C1C1E 100%);
  --lt-surface:  #2A2A2E;
  --lt-text:     #F2F3F5;
  --lt-text2:    #BCC2CC;
  --lt-text3:    #9BA0A8;
  --lt-border:   rgba(255,255,255,0.08);
  --lt-shadow:   0 2px 16px rgba(0,0,0,0.50), 0 1px 4px rgba(0,0,0,0.30);
  --lt-amber:    #E0A458;
  --lt-amber-bg: rgba(224,164,88,0.14);
  --lt-amber-bd: rgba(224,164,88,0.30);
  --lt-amber-tx: #E0A458;
  --lt-green:    #5DA87A;
  --lt-green-bg: rgba(93,168,122,0.14);
  --lt-green-bd: rgba(93,168,122,0.30);
  --lt-red:      #DC6060;
  --lt-red-bg:   rgba(220,96,96,0.14);
  --lt-red-bd:   rgba(220,96,96,0.30);

  /* Keep dark palette tokens aligned */
  --g-bg:        var(--lt-bg);
  --g-surface:   var(--lt-surface);
  --g-border:    var(--lt-border);
  --g-text:      var(--lt-text);
  --g-muted:     var(--lt-text3);
  --g-accent:    var(--lt-amber);
  --g-accent2:   #EBB96A;

  --c-accent:     var(--lt-amber);
  --c-accent-bg:  var(--lt-amber-bg);
  --c-accent-bd:  var(--lt-amber-bd);
  --c-correct:    var(--lt-green);
  --c-correct-bg: var(--lt-green-bg);
  --c-correct-bd: var(--lt-green-bd);
  --c-wrong:      var(--lt-red);
  --c-wrong-bg:   var(--lt-red-bg);
  --c-wrong-bd:   var(--lt-red-bd);
  --c-sage:       var(--lt-green);
  --c-clay:       var(--lt-amber);
  --c-slate:      #7A95B8;
  --c-stone:      var(--lt-text3);
}

/* ── Global / frame ── */
body          { background: #1C1C1E !important; }
#root         { box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 20px 60px rgba(0,0,0,0.80) !important; }
.g-phone-frame{ background: var(--lt-bg) !important; }

/* ── Headlines: Nunito heavy everywhere ── */
.g-lp-headline, .ob-headline, .ob-final-headline, .ob-big-stat-num,
.ob-stat-num, .g-game-q, .g-done-title, .g-discover-title,
.gs-streak-modal-num {
  font-family: 'Nunito', 'Figtree', system-ui, sans-serif !important;
  font-weight: 900 !important;
  font-style:  normal !important;
}
.g-lp-headline em, .ob-final-headline em { font-family: inherit !important; font-weight: 900 !important; }

/* ── Logo images — white-on-transparent PNG, no filter needed ── */
.g-lp-logo-img     { height: 28px; width: auto; object-fit: contain; display: block; opacity: 0.90; }
.gs-logo-img       { height: 22px; width: auto; object-fit: contain; display: block; opacity: 0.85; }
.g-splash-logo-img { height: 36px; width: auto; object-fit: contain; display: block; margin-bottom: 20px; opacity: 0.90; }

/* ── Splash ── */
.g-splash              { background: var(--ob-bg) !important; }
.g-splash-logo svg     { color: rgba(255,255,255,0.9) !important; }
.g-splash-name         { color: var(--lt-text3) !important; }
.g-splash-spinner      { border-color: rgba(255,255,255,0.10) !important; border-top-color: rgba(255,255,255,0.7) !important; }

/* ── Landing page ── */
.g-lp                  { background: var(--ob-bg) !important; }
.g-lp-grain            { display: none !important; }
.g-ticker              { border-bottom-color: rgba(255,255,255,0.07) !important; border-top: 1px solid rgba(255,255,255,0.05) !important; }
.g-ticker-tag          { color: rgba(255,255,255,0.55) !important; }
.g-ticker-sep          { color: rgba(255,255,255,0.20) !important; }
.g-globe-svg           { color: rgba(255,255,255,0.60) !important; opacity: 1 !important; }
.g-lp-wordmark         { color: rgba(255,255,255,0.40) !important; }
.g-lp-headline         { color: var(--lt-text) !important; }
.g-lp-headline em      { color: var(--lt-text2) !important; }
.g-lp-subtitle         { color: var(--lt-text2) !important; }
.g-preview-card        { background: var(--lt-surface) !important; border-color: rgba(255,255,255,0.08) !important; box-shadow: var(--lt-shadow) !important; }
.g-preview-text        { color: var(--lt-text) !important; }
.g-preview-tag         { color: var(--lt-text3) !important; }
.g-preview-tag--topic  { color: var(--lt-text2) !important; }
.g-preview-dot         { background: rgba(255,255,255,0.18) !important; }
.g-preview-inner       {}
.g-pdot                { background: rgba(255,255,255,0.15) !important; }
.g-pdot--active        { background: rgba(255,255,255,0.85) !important; }
/* Primary CTA = white pill with dark text (flipped) */
.g-lp-btn-primary      { background: #FFFFFF !important; color: #0F1115 !important; border-radius: 99px !important; }
.g-lp-btn-primary:hover{ background: #E8E8E3 !important; }
.g-lp-btn-ghost        { border-color: rgba(255,255,255,0.22) !important; background: transparent !important; color: rgba(255,255,255,0.65) !important; }
.g-lp-btn-ghost:hover  { border-color: rgba(255,255,255,0.42) !important; color: rgba(255,255,255,0.90) !important; }
.g-lp-footer           { color: var(--lt-text3) !important; }

/* ── Onboarding steps ── */
.ob-page               { background: var(--ob-bg) !important; }
.g-onboard             { background: var(--ob-bg) !important; }
.ob-bar                { background: rgba(255,255,255,0.08) !important; }
.ob-bar-fill           { background: rgba(255,255,255,0.55) !important; }
.ob-eyebrow            { color: rgba(255,255,255,0.30) !important; }
.ob-headline           { color: var(--lt-text) !important; }
.ob-hint               { color: var(--lt-text2) !important; }
.ob-step-count         { color: rgba(255,255,255,0.25) !important; }
/* Option cards */
.ob-option             { background: var(--lt-surface) !important; border-color: rgba(255,255,255,0.10) !important; color: var(--lt-text) !important; box-shadow: 0 1px 8px rgba(0,0,0,0.35) !important; }
.ob-option:hover       { border-color: rgba(255,255,255,0.22) !important; }
.ob-option--on         { border-color: var(--lt-amber) !important; border-width: 1.5px !important; background: rgba(224,164,88,0.08) !important; color: var(--lt-text) !important; }
.ob-option-sub         { color: var(--lt-text3) !important; }
.ob-option-check       { color: var(--lt-amber) !important; }
/* Continue button = white pill with dark text */
.ob-btn                { background: #FFFFFF !important; color: #0F1115 !important; border-radius: 99px !important; }
.ob-btn:hover          { background: #E8E8E3 !important; }
.ob-btn:disabled       { background: rgba(255,255,255,0.15) !important; color: rgba(255,255,255,0.40) !important; }
/* Quote screen */
.ob-quote-mark         { color: rgba(255,255,255,0.14) !important; }
.ob-quote-text         { color: rgba(255,255,255,0.88) !important; }
.ob-quote-attr         { color: rgba(255,255,255,0.35) !important; }
.ob-quote-globly       { color: rgba(255,255,255,0.50) !important; border-top-color: rgba(255,255,255,0.08) !important; }
/* Fact screen */
.ob-fact-sub           { color: rgba(255,255,255,0.62) !important; }
.ob-fact-source        { color: rgba(255,255,255,0.28) !important; }
/* Social proof */
.ob-stat-num           { color: rgba(255,255,255,0.85) !important; }
.ob-stat-label         { color: rgba(255,255,255,0.38) !important; }
/* Habit icon */
.ob-big-icon           { background: rgba(255,255,255,0.04) !important; border-color: rgba(255,255,255,0.08) !important; }
.ob-big-icon svg       { stroke: rgba(255,255,255,0.55) !important; }
.ob-icon-caption       { color: rgba(255,255,255,0.30) !important; }
/* Comparison table */
.ob-vs                 { background: rgba(255,255,255,0.06) !important; border-color: rgba(255,255,255,0.07) !important; }
.ob-vs-hd--left        { background: rgba(255,255,255,0.02) !important; color: rgba(255,255,255,0.28) !important; }
.ob-vs-hd--right       { background: var(--lt-amber-bg) !important; color: var(--lt-amber) !important; }
.ob-vs-cell--left      { background: rgba(0,0,0,0.25) !important; color: rgba(255,255,255,0.32) !important; }
.ob-vs-cell--right     { background: rgba(224,164,88,0.06) !important; color: rgba(255,255,255,0.75) !important; }
/* Big stat */
.ob-big-stat-num       { color: rgba(255,255,255,0.85) !important; }
.ob-big-stat-line      { color: rgba(255,255,255,0.45) !important; }
.ob-big-stat-source    { color: rgba(255,255,255,0.22) !important; }
/* Affirmation pill */
.ob-affirm-pill        { background: var(--lt-amber-bg) !important; border-color: var(--lt-amber-bd) !important; color: var(--lt-amber) !important; }
/* Features */
.ob-feature-icon       { color: var(--lt-amber) !important; }
.ob-feature-text       { color: rgba(255,255,255,0.62) !important; }
/* Reminder */
.ob-time-input         { background: var(--lt-surface) !important; border-color: rgba(255,255,255,0.10) !important; color: var(--lt-text) !important; font-family: 'Nunito','Figtree',sans-serif !important; box-shadow: 0 1px 8px rgba(0,0,0,0.35) !important; font-size: 32px !important; letter-spacing: -0.03em !important; }
.ob-time-input::-webkit-calendar-picker-indicator { filter: invert(1) !important; opacity: 0.55 !important; cursor: pointer !important; }
.ob-reminder-note      { color: var(--lt-text3) !important; }
/* Final */
.ob-final              { }
.ob-final-globe svg    { color: rgba(255,255,255,0.20) !important; }
.ob-final-headline     { color: rgba(255,255,255,0.90) !important; }
.ob-final-headline em  { color: rgba(255,255,255,0.65) !important; }
.ob-final-sub          { color: rgba(255,255,255,0.55) !important; }

/* ── Shell ── */
.gs-shell              { background: var(--lt-bg) !important; }
.gs-topbar             { background: rgba(15,17,21,0.95) !important; border-bottom-color: rgba(255,255,255,0.06) !important; backdrop-filter: blur(14px) !important; -webkit-backdrop-filter: blur(14px) !important; }
.gs-topbar-brand       { color: rgba(255,255,255,0.80) !important; }
.gs-topbar-wordmark    { color: rgba(255,255,255,0.35) !important; }
.gs-topbar-brand .g-globe-svg { color: rgba(255,255,255,0.55) !important; opacity: 1 !important; }
.gs-streak-pill        { background: var(--lt-amber-bg) !important; border-color: var(--lt-amber-bd) !important; color: var(--lt-amber) !important; }
.gs-streak-num         { color: var(--lt-amber) !important; }
/* Nav */
.gs-nav                { background: rgba(15,17,21,0.96) !important; border-top-color: rgba(255,255,255,0.06) !important; backdrop-filter: blur(14px) !important; -webkit-backdrop-filter: blur(14px) !important; }
.gs-nav-tab            { color: rgba(255,255,255,0.35) !important; }
.gs-nav-tab--on        { color: var(--lt-amber) !important; }
.gs-nav-label          { color: inherit !important; }
/* Streak modal */
.gs-streak-modal-backdrop { background: rgba(0,0,0,0.60) !important; backdrop-filter: blur(8px) !important; }
.gs-streak-modal       { background: #1C1E24 !important; border-color: rgba(255,255,255,0.08) !important; }
.gs-streak-modal-flame svg { color: var(--lt-amber) !important; }
.gs-streak-modal-num   { color: rgba(255,255,255,0.90) !important; }
.gs-streak-modal-label { color: rgba(255,255,255,0.50) !important; }
.gs-streak-modal-best  { color: rgba(255,255,255,0.35) !important; }
.gs-streak-modal-close { color: rgba(255,255,255,0.40) !important; border-color: rgba(255,255,255,0.10) !important; }
/* Placeholder */
.gs-placeholder        { background: var(--lt-bg) !important; }
.gs-placeholder svg    { color: rgba(255,255,255,0.15) !important; }
.gs-placeholder-label  { color: rgba(255,255,255,0.20) !important; }

/* ── Feed / Today screen ── */
.g-today               { background: var(--lt-bg) !important; }
.g-today-empty, .g-today-done { background: var(--lt-bg) !important; color: var(--lt-text) !important; }
.g-done-title          { color: var(--lt-text) !important; }
.g-done-sub            { color: var(--lt-text2) !important; }
.g-done-streak         { color: var(--lt-amber) !important; border-color: var(--lt-amber-bd) !important; background: none !important; }
.g-progress-label      { color: var(--lt-text3) !important; }
.g-progress-track      { background: rgba(255,255,255,0.08) !important; }
.g-progress-fill       { background: rgba(255,255,255,0.7) !important; }
.g-swipe-btn--skip     { background: rgba(255,255,255,0.06) !important; color: var(--lt-text3) !important; }
.g-swipe-btn--next     { background: rgba(255,255,255,0.06) !important; color: var(--lt-text2) !important; }
.g-swipe-hint-text     { color: rgba(255,255,255,0.18) !important; }
/* Article swipe cards */
.g-card                { background: var(--lt-surface) !important; box-shadow: 0 4px 20px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.22) !important; }
.g-card-bg             { bottom: 56% !important; }
.g-card-overlay        { background: linear-gradient(to bottom, rgba(0,0,0,0.14), rgba(0,0,0,0)) !important; }
.g-card-overlay--solid { background: var(--lt-surface) !important; }
.g-card-body           { top: 43% !important; background: var(--lt-surface) !important; justify-content: flex-start !important; border-radius: 0 0 18px 18px !important; padding: 14px 20px 20px !important; }
.g-card-headline       { color: var(--lt-text) !important; font-family: 'Nunito','Figtree',sans-serif !important; font-weight: 800 !important; }
.g-card-takeaway       { color: var(--lt-text2) !important; }
.g-card-source         { color: var(--lt-text3) !important; }
.g-tag                 { background: var(--lt-amber-bg) !important; color: var(--lt-amber) !important; border-color: var(--lt-amber-bd) !important; }
.g-tag--country        { background: rgba(255,255,255,0.06) !important; color: rgba(255,255,255,0.45) !important; border-color: rgba(255,255,255,0.08) !important; }
.g-swipe-stamp--like   { color: var(--lt-green) !important; border-color: var(--lt-green) !important; }
.g-swipe-stamp--skip   { color: var(--lt-red) !important; border-color: var(--lt-red) !important; }

/* ── Game screen ── */
.g-game, .g-game-done, .g-game-empty { background: var(--lt-bg) !important; }
.g-game-track          { background: rgba(255,255,255,0.08) !important; }
.g-game-fill           { background: rgba(255,255,255,0.70) !important; }
.g-game-progress       { color: var(--lt-text3) !important; }
.g-game-card           { background: var(--lt-surface) !important; border-color: rgba(255,255,255,0.08) !important; box-shadow: var(--lt-shadow) !important; }
.g-game-label          { color: rgba(255,255,255,0.32) !important; }
.g-game-q              { color: var(--lt-text) !important; }
.g-option              { background: var(--lt-surface) !important; border-color: rgba(255,255,255,0.10) !important; color: var(--lt-text) !important; box-shadow: 0 1px 4px rgba(0,0,0,0.25) !important; }
.g-option--correct     { background: var(--lt-green-bg) !important; border-color: var(--lt-green-bd) !important; color: var(--lt-green) !important; }
.g-option--wrong       { background: var(--lt-red-bg) !important;   border-color: var(--lt-red-bd) !important;   color: var(--lt-red) !important; }
.g-option--dim         { opacity: 0.3 !important; }
.g-option-letter       { background: rgba(255,255,255,0.07) !important; color: rgba(255,255,255,0.45) !important; }
.g-explain             { background: var(--lt-amber-bg) !important; border-left-color: var(--lt-amber) !important; }
.g-explain-text        { color: rgba(255,255,255,0.65) !important; }
/* Action buttons = white pill with dark text */
.g-next-btn            { background: #FFFFFF !important; color: #0F1115 !important; border-radius: 99px !important; }
.g-next-btn:hover      { background: #E8E8E3 !important; }
.g-game-done-title     { color: var(--lt-text) !important; }
.g-game-done-sub       { color: var(--lt-text2) !important; }
.g-share-btn           { background: #FFFFFF !important; color: #0F1115 !important; border-radius: 99px !important; }
.g-review-item         { background: var(--lt-surface) !important; }
.g-review-q            { color: var(--lt-text) !important; }
.g-review-a            { color: var(--lt-green) !important; }
.g-review-explain      { color: var(--lt-text3) !important; }

/* ── Discover ── */
.g-discover            { background: var(--lt-bg) !important; }
.g-discover-title      { color: var(--lt-text) !important; }
.g-discover-sub        { color: var(--lt-text2) !important; }
.g-dyk-card            { background: var(--lt-surface) !important; border-color: rgba(255,255,255,0.07) !important; box-shadow: var(--lt-shadow) !important; }
.g-dyk-stat            { color: var(--lt-text) !important; }
.g-dyk-context         { color: var(--lt-text2) !important; }
.g-dyk-brand           { color: rgba(255,255,255,0.10) !important; }

/* ── Profile ── */
.g-profile             { background: var(--lt-bg) !important; }
.g-profile-streak-card { background: var(--lt-amber-bg) !important; border-color: var(--lt-amber-bd) !important; }
.g-profile-flame svg   { color: var(--lt-amber) !important; }
.g-profile-streak-num  { color: var(--lt-amber) !important; }
.g-profile-streak-label{ color: rgba(255,255,255,0.55) !important; }
.g-profile-longest     { color: rgba(255,255,255,0.35) !important; }
.g-profile-section     { background: var(--lt-surface) !important; border-color: rgba(255,255,255,0.07) !important; }
.g-profile-section-title { color: rgba(255,255,255,0.28) !important; }
.g-profile-note        { color: var(--lt-text3) !important; }
.g-saved-badge         { color: var(--lt-green) !important; }
.g-interest-tag        { background: var(--lt-amber-bg) !important; color: var(--lt-amber) !important; border-color: var(--lt-amber-bd) !important; }
.g-interest-tag--topic { background: var(--lt-green-bg) !important; color: var(--lt-green) !important; border-color: var(--lt-green-bd) !important; }
.g-reset-btn           { border-color: rgba(255,255,255,0.14) !important; color: rgba(255,255,255,0.55) !important; background: transparent !important; }
.g-time-input          { background: var(--lt-surface) !important; border-color: rgba(255,255,255,0.10) !important; color: var(--lt-text) !important; }
.g-time-input::-webkit-calendar-picker-indicator { filter: invert(1) !important; }

/* ============================================================
   TODAY SCREEN — sectioned scrollable layout
   ============================================================ */

/* Page wrapper — scrolled by gs-body */
.gt-page {
  width: 100%;
  padding-top: 12px;
  padding-bottom: calc(var(--g-nav-h, 64px) + env(safe-area-inset-bottom, 0px) + 20px);
  position: relative;
}

/* Video banner top margin in the new layout */
.gt-video {
  margin-top: 12px;
}

/* ── Section shell ── */
.gt-section {
  padding: 32px 0 8px;
}
.gt-section-hd {
  padding: 0 18px 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.gt-section-hd-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.gt-section-title {
  font-family: 'Nunito', 'Figtree', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #111;
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.gt-section-sub {
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 12px;
  color: #8A8A94;
  margin: 0;
  font-weight: 400;
}

/* ── Horizontal scroll row ── */
.gt-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 18px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gt-row::-webkit-scrollbar { display: none; }

.gt-empty {
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  color: #8A8A94;
  padding: 8px 0;
  margin: 0;
}

/* ── Story cards (Today's briefs) ── */
.gt-story-card {
  flex-shrink: 0;
  width: 175px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.09), 0 1px 3px rgba(0,0,0,0.05);
  scroll-snap-align: start;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gt-story-card:active {
  transform: scale(0.97);
  box-shadow: 0 1px 6px rgba(0,0,0,0.09);
}
.gt-story-img {
  width: 100%;
  height: 100px;
  background-size: cover;
  background-position: center;
  background-color: #DCEAF7;
  flex-shrink: 0;
}
.gt-story-body {
  padding: 10px 11px 13px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.gt-story-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.gt-tag {
  font-family: 'Figtree', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A8A94;
}
.gt-tag--country { color: #5A7A9A; }
.gt-story-title {
  font-family: 'Figtree', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Game card ── */
.gt-game-card {
  flex-shrink: 0;
  width: min(280px, calc(100vw - 56px));
  border-radius: 18px;
  background: #111;
  color: #fff;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  border: none;
  text-align: left;
  scroll-snap-align: start;
  box-shadow: 0 4px 18px rgba(0,0,0,0.22);
  transition: transform 0.15s ease;
}
.gt-game-card:active { transform: scale(0.97); }
.gt-game-icon  { font-size: 28px; line-height: 1; margin-bottom: 6px; }
.gt-game-label {
  font-family: 'Nunito', 'Figtree', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.gt-game-desc {
  font-family: 'Figtree', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.gt-game-cta {
  margin-top: 14px;
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
}

/* ── Explainer cards (Understand the world) ── */
.gt-explainer-card {
  flex-shrink: 0;
  width: 148px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.09), 0 1px 3px rgba(0,0,0,0.05);
  padding: 16px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  border: none;
  text-align: left;
  scroll-snap-align: start;
  transition: transform 0.15s ease;
}
.gt-explainer-card:active { transform: scale(0.97); }
.gt-explainer-icon { font-size: 26px; line-height: 1; }
.gt-explainer-title {
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
}
.gt-explainer-meta {
  font-family: 'Figtree', sans-serif;
  font-size: 11px;
  color: #8A8A94;
}

/* ── Topic / Region pill cards ── */
.gt-pill-card {
  flex-shrink: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  scroll-snap-align: start;
  transition: transform 0.15s ease;
  min-width: 80px;
}
.gt-pill-card:active { transform: scale(0.97); }
.gt-pill-icon  { font-size: 20px; line-height: 1; }
.gt-pill-label {
  font-family: 'Figtree', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
}

/* ── DYK cards (Did you know?) ── */
.gt-dyk-card {
  flex-shrink: 0;
  width: 155px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.09), 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  overflow: hidden;
}
.gt-dyk-art {
  width: 100%;
  height: 86px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  padding: 10px 13px;
}
.gt-dyk-stat {
  font-family: 'Nunito', 'Figtree', sans-serif;
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}
.gt-dyk-body {
  padding: 9px 13px 14px;
  flex: 1;
}
.gt-dyk-text {
  font-family: 'Figtree', sans-serif;
  font-size: 12px;
  color: #4A4A52;
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Bottom padding ── */
.gt-bottom-pad { height: 20px; }

/* ── Explainer overlay (bottom sheet) ── */
.gt-overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.42);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.gt-overlay {
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 24px 22px 40px;
  width: 100%;
  max-width: 430px;
  max-height: 82vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  box-shadow: 0 -6px 32px rgba(0,0,0,0.18);
  animation: gt-overlay-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes gt-overlay-in {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.gt-overlay-progress {
  display: flex;
  gap: 5px;
  padding-right: 36px;
}
.gt-overlay-pip {
  height: 3px;
  flex: 1;
  border-radius: 99px;
  background: rgba(0,0,0,0.1);
  transition: background 0.25s;
}
.gt-overlay-pip--on { background: #111; }
.gt-overlay-icon { font-size: 34px; line-height: 1; }
.gt-overlay-heading {
  font-family: 'Nunito', 'Figtree', sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}
.gt-overlay-body {
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  color: #4A4A52;
  line-height: 1.65;
  margin: 0;
}
.gt-overlay-why {
  background: #F0F6FB;
  border-radius: 12px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gt-overlay-why-label {
  font-family: 'Figtree', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8A8A94;
}
.gt-overlay-why-text {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  color: #333;
  line-height: 1.55;
  margin: 0;
  font-style: italic;
}
.gt-overlay-btn {
  width: 100%;
  padding: 15px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 99px;
  font-family: 'Nunito', 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.gt-overlay-btn:hover { background: #2A2A2A; }
.gt-overlay-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(0,0,0,0.06);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Mission / streak bar ── */
.gt-mission-bar {
  margin: 16px 18px 4px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.gt-mission-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.gt-mission-flame { font-size: 18px; line-height: 1; }
.gt-mission-count {
  font-family: 'Nunito', 'Figtree', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
}
.gt-mission-label {
  font-family: 'Figtree', sans-serif;
  font-size: 12px;
  color: #8A8A94;
  margin: 0;
}

/* ── Goal section title (replaces gt-section-title for goal rows) ── */
.gt-goal-title {
  font-family: 'Nunito', 'Figtree', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #111;
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* ── Mixed card — base ── */
.gt-mixed-card {
  flex-shrink: 0;
  width: 160px;
  min-height: 188px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  position: relative;
  cursor: pointer;
  border: none;
  text-align: left;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.gt-mixed-card:active { transform: scale(0.97); }

/* BRIEF variant */
.gt-mixed-card--brief {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.09), 0 1px 3px rgba(0,0,0,0.05);
}
.gt-mixed-img {
  width: 100%;
  height: 92px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: #DCEAF7;
}
.gt-mixed-body {
  padding: 9px 11px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gt-mixed-region {
  font-family: 'Figtree', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A8A94;
}
.gt-mixed-title {
  font-family: 'Figtree', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* READ variant */
.gt-mixed-card--read {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.09), 0 1px 3px rgba(0,0,0,0.05);
  padding: 36px 14px 16px;
  gap: 8px;
  justify-content: flex-start;
}
.gt-mixed-icon { font-size: 28px; line-height: 1; }
.gt-mixed-meta {
  font-family: 'Figtree', sans-serif;
  font-size: 11px;
  color: #8A8A94;
  margin-top: auto;
}
/* Override gt-mixed-title inside READ */
.gt-mixed-card--read .gt-mixed-title {
  font-size: 13px;
  font-weight: 700;
  -webkit-line-clamp: 3;
}

/* FACT variant */
.gt-mixed-card--fact {
  background: linear-gradient(145deg, #D8EAF6 0%, #E8F3FB 100%);
  box-shadow: 0 2px 10px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
  padding: 36px 14px 16px;
  gap: 8px;
  justify-content: flex-start;
}
.gt-mixed-stat {
  font-family: 'Nunito', 'Figtree', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: #1A3A5C;
  letter-spacing: -0.03em;
  line-height: 1;
}
/* Override gt-mixed-title inside FACT */
.gt-mixed-card--fact .gt-mixed-title {
  font-size: 12px;
  font-weight: 500;
  color: #2C4A6A;
  -webkit-line-clamp: 4;
}

/* ── Type badge (top-left pill on every card) ── */
.gt-card-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  font-family: 'Figtree', sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 5px;
  z-index: 2;
  line-height: 1.4;
}
.gt-card-badge--brief {
  background: rgba(0,0,0,0.55);
  color: #fff;
}
.gt-card-badge--read {
  background: rgba(224,164,88,0.18);
  color: #7A4F10;
}
.gt-card-badge--fact {
  background: rgba(93,157,210,0.22);
  color: #2D6A9F;
}

/* ── Fact overlay stat ── */
.gt-fact-modal-stat {
  font-family: 'Nunito', 'Figtree', sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: #111;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* ============================================================
   BRIEF DETAIL SCREEN  (gbd-)
   Full-screen in-app story summary — never leaves the app.
   "Read full story" is the only external link.
   ============================================================ */

/* Backdrop — dims full viewport, centers the sheet */
.gbd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 490;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
/* Sheet — constrained to the phone column */
.gbd-screen {
  width: 100%;
  max-width: 430px;
  height: 96vh;
  background: #F7F8FA;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: gbd-slidein 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes gbd-slidein {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* ── Top bar ── */
.gbd-topbar {
  flex-shrink: 0;
  height: 52px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F7F8FA;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.gbd-topbar-label {
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #8A8A94;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gbd-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background 0.15s;
  flex-shrink: 0;
}
.gbd-icon-btn:hover  { background: rgba(0,0,0,0.10); }
.gbd-icon-btn:active { background: rgba(0,0,0,0.14); }

/* ── Scrollable body ── */
.gbd-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Hero image ── */
.gbd-hero {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: #DCEAF7;
  flex-shrink: 0;
}

/* ── Content area ── */
.gbd-content {
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Tags */
.gbd-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.gbd-tag {
  font-family: 'Figtree', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6A8AA8;
  background: rgba(93,157,210,0.12);
  padding: 3px 9px;
  border-radius: 5px;
}

/* Headline */
.gbd-headline {
  font-family: 'Nunito', 'Figtree', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #111;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0;
}

/* Source + date */
.gbd-meta {
  display: flex;
  align-items: center;
  gap: 5px;
}
.gbd-source {
  font-family: 'Figtree', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #8A8A94;
}
.gbd-meta-sep { color: rgba(0,0,0,0.2); font-size: 10px; }
.gbd-date {
  font-family: 'Figtree', sans-serif;
  font-size: 12px;
  color: #8A8A94;
}

/* Stat chips row */
.gbd-stat-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.gbd-stat-chip {
  font-family: 'Figtree', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #5A7A9A;
  background: rgba(93,157,210,0.10);
  padding: 4px 10px;
  border-radius: 99px;
}

/* Section label + bullets */
.gbd-section { display: flex; flex-direction: column; gap: 10px; }
.gbd-section-label {
  font-family: 'Figtree', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8A8A94;
  margin-bottom: 2px;
}
.gbd-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gbd-bullet {
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  line-height: 1.72;
  color: #222;
  padding-left: 18px;
  position: relative;
}
.gbd-bullet::before {
  content: "◆";
  position: absolute;
  left: 0;
  font-size: 7px;
  top: 7px;
  color: var(--gbd-bullet-color, #DCEAF7);
}

/* Summary depth tabs */
.gbd-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 2px;
}
.gbd-tab {
  flex: 1;
  padding: 8px 0;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  background: transparent;
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.45);
  cursor: pointer;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.gbd-tab--on {
  background: rgba(0,0,0,0.07);
  color: rgba(0,0,0,0.82);
  border-color: rgba(0,0,0,0.18);
}
.gbd-deeper-empty {
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  color: rgba(0,0,0,0.4);
  font-style: italic;
  margin: 0;
}

/* Coverage */
.gbd-stat-chip--coverage {
  background: rgba(94,106,210,0.12);
  color: #6B79DE;
}
.gbd-coverage {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 10px;
  overflow: hidden;
}
.gbd-coverage-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 14px;
  background: rgba(0,0,0,0.025);
  border: none;
  cursor: pointer;
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.75);
  text-align: left;
}
.gbd-coverage-chevron {
  transition: transform 0.18s ease;
  flex-shrink: 0;
  color: rgba(0,0,0,0.4);
}
.gbd-coverage-chevron--open { transform: rotate(180deg); }
.gbd-coverage-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.gbd-coverage-item {
  border-top: 1px solid rgba(0,0,0,0.06);
}
.gbd-coverage-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  text-decoration: none;
}
.gbd-coverage-link:hover { background: rgba(0,0,0,0.03); }
.gbd-coverage-name {
  font-family: 'Figtree', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
}
.gbd-coverage-title {
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.75);
  line-height: 1.35;
}

/* Story timeline */
.gbd-timeline {
  display: flex;
  flex-direction: column;
}
.gbd-tl-item {
  display: grid;
  grid-template-columns: 62px 18px 1fr;
  gap: 0 6px;
  align-items: start;
  text-decoration: none;
  padding: 4px 0;
}
.gbd-tl-item:not(:last-child) {
  padding-bottom: 0;
}
.gbd-tl-date {
  font-family: 'Figtree', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: rgba(0,0,0,0.38);
  text-align: right;
  padding-top: 3px;
  white-space: nowrap;
}
.gbd-tl-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
}
.gbd-tl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0,0,0,0.22);
  flex-shrink: 0;
  margin-top: 3px;
}
.gbd-tl-item--canonical .gbd-tl-dot {
  background: rgba(0,0,0,0.55);
  width: 9px;
  height: 9px;
  margin-top: 2px;
}
.gbd-tl-item:not(:last-child) .gbd-tl-line::after {
  content: "";
  flex: 1;
  width: 1px;
  min-height: 14px;
  background: rgba(0,0,0,0.10);
  margin-top: 4px;
}
.gbd-tl-title {
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.72);
  line-height: 1.35;
  padding-top: 1px;
  padding-bottom: 12px;
}
.gbd-tl-item--canonical .gbd-tl-title {
  font-weight: 700;
  color: rgba(0,0,0,0.82);
}
.gbd-tl-item:hover .gbd-tl-title {
  text-decoration: underline;
}

/* Copyright note */
.gbd-copyright-note {
  font-family: 'Figtree', sans-serif;
  font-size: 11px;
  color: #ABABAB;
  margin: 0;
  font-style: italic;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 12px;
}

/* ── Bottom CTA ── */
.gbd-foot {
  flex-shrink: 0;
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  background: #F7F8FA;
  border-top: 1px solid rgba(0,0,0,0.07);
}
.gbd-read-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 99px;
  font-family: 'Nunito', 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s;
  box-sizing: border-box;
}
.gbd-read-btn:hover { background: #2A2A2A; }

/* ── Fact popup variant — wash comes from makeWash(FACT_ACCENT) inline style ── */
.gbd-topbar--fact {
  background: transparent !important;
  border-bottom-color: rgba(0,0,0,0.06) !important;
}
.gbd-fact-scroll {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 28px 24px;
}
.gbd-fact-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.gbd-fact-icon {
  font-size: 52px;
  line-height: 1;
}
.gbd-fact-text {
  font-family: 'Figtree', sans-serif;
  font-size: 17px;
  line-height: 1.68;
  color: #222;
  margin: 0;
}
.gbd-foot--fact {
  background: transparent !important;
  border-top: 1px solid rgba(0,0,0,0.08) !important;
}

/* ── Shared transparent topbar/foot (read + fact sheets) ── */
.gbd-topbar--clear {
  background: transparent !important;
  border-bottom-color: rgba(0,0,0,0.06) !important;
}
.gbd-foot--clear {
  background: transparent !important;
  border-top: 1px solid rgba(0,0,0,0.07) !important;
}

/* ── Explainer READ full-height sheet — premium airy treatment ── */
.gbd-read-scroll {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
/* Subtle progress pips */
.gbd-read-pips {
  display: flex;
  gap: 5px;
}
.gbd-read-pip {
  height: 2px;
  flex: 1;
  border-radius: 99px;
  background: rgba(0,0,0,0.09);
  transition: background 0.3s;
}
.gbd-read-pip--on { background: rgba(0,0,0,0.38); }
/* Large icon — matches FACT icon size */
.gbd-read-icon { font-size: 52px; line-height: 1; }
/* Headline — identical treatment to FACT stat */
.gbd-read-heading {
  font-family: 'Nunito', 'Figtree', sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: #111;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}
/* Body copy — matches FACT body */
.gbd-read-body {
  font-family: 'Figtree', sans-serif;
  font-size: 17px;
  color: #222;
  line-height: 1.68;
  margin: 0;
}
/* Why it matters box */
.gbd-read-why {
  background: rgba(0,0,0,0.045);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gbd-read-why-label {
  font-family: 'Figtree', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9A9AA4;
}
.gbd-read-why-text {
  font-family: 'Figtree', sans-serif;
  font-size: 14.5px;
  color: #333;
  line-height: 1.62;
  margin: 0;
  font-style: italic;
}

/* ── Topbar right group (streak + profile) ── */
.gs-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gs-profile-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.06);
  color: #555;
  flex-shrink: 0;
  transition: background 0.15s;
}
.gs-profile-btn:hover  { background: rgba(0,0,0,0.10); }
.gs-profile-btn:active { background: rgba(0,0,0,0.14); }
.gs-profile-btn svg    { width: 17px; height: 17px; }

/* ── Globe tab — HDI choropleth ── */
.gs-hdi-wrap {
  position: relative;
  width: 100%;
  height: calc(100vh - 120px);
  height: calc(100dvh - var(--g-top-h) - var(--g-nav-h) - env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 44%, #0d2444 0%, #071428 55%, #03080f 100%);
}
.gs-hdi-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.gs-hdi-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.28);
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  pointer-events: none;
  z-index: 5;
}
/* Legend */
.gs-hdi-legend {
  position: absolute;
  bottom: 28px;
  left: 14px;
  z-index: 10;
  background: rgba(8,8,14,0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 11px 13px 10px;
  min-width: 166px;
  pointer-events: none;
}
.gs-hdi-legend-head {
  font-family: 'Figtree', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 7px;
}
.gs-hdi-legend-bar {
  height: 6px;
  border-radius: 3px;
  margin-bottom: 9px;
  background: linear-gradient(to right,
    hsl(0,70%,38%),
    hsl(30,70%,38%),
    hsl(60,70%,38%),
    hsl(90,70%,38%),
    hsl(120,70%,38%)
  );
}
.gs-hdi-legend-rows { display: flex; flex-direction: column; gap: 4px; }
.gs-hdi-legend-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Figtree', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.68);
  line-height: 1;
}
.gs-hdi-sw {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
  display: inline-block;
}
.gs-hdi-val {
  color: rgba(255,255,255,0.35);
  font-size: 10px;
}
.gs-hdi-source {
  margin-top: 9px;
  font-family: 'Figtree', sans-serif;
  font-size: 9px;
  color: rgba(255,255,255,0.24);
  line-height: 1.4;
}
/* Hover readout */
.gs-hdi-readout {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8,8,14,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 99px;
  padding: 7px 16px;
  white-space: nowrap;
  pointer-events: none;
}
.gs-hdi-readout-name {
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #f0f0f5;
}
.gs-hdi-readout-val {
  font-family: 'Figtree', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.gs-hdi-readout-band {
  font-family: 'Figtree', sans-serif;
  font-size: 11px;
  font-weight: 600;
}

/* ============================================================
   DARK OVERRIDES — Today screen (gt-*) + popups (gbd-*)
   ============================================================ */

/* ── Mission bar ── */
.gt-mission-bar        { background: var(--lt-surface) !important; box-shadow: var(--lt-shadow) !important; }
.gt-mission-count      { color: var(--lt-text) !important; }
.gt-mission-label      { color: var(--lt-text3) !important; }

/* ── Section headings ── */
.gt-section-title      { color: var(--lt-text) !important; }
.gt-section-sub        { color: var(--lt-text3) !important; }
.gt-goal-title         { color: var(--lt-text) !important; }
.gt-empty              { color: var(--lt-text3) !important; }
.gt-tag                { color: var(--lt-text3) !important; }
.gt-tag--country       { color: var(--lt-text2) !important; }

/* ── Story cards ── */
.gt-story-card         { background: var(--lt-surface) !important; box-shadow: var(--lt-shadow) !important; }
.gt-story-img          { background-color: #1A2535 !important; }
.gt-story-title        { color: var(--lt-text) !important; }

/* ── Game card — already dark-on-dark, just adjust text ── */
.gt-game-card          { background: #1C1E24 !important; box-shadow: 0 4px 18px rgba(0,0,0,0.55) !important; border: 1px solid rgba(255,255,255,0.08) !important; }
.gt-game-desc          { color: rgba(255,255,255,0.42) !important; }
.gt-game-cta           { color: rgba(255,255,255,0.65) !important; }

/* ── Explainer cards ── */
.gt-explainer-card     { background: var(--lt-surface) !important; box-shadow: var(--lt-shadow) !important; }
.gt-explainer-title    { color: var(--lt-text) !important; }
.gt-explainer-meta     { color: var(--lt-text3) !important; }

/* ── Pill cards (region / topic) ── */
.gt-pill-card          { background: var(--lt-surface) !important; box-shadow: var(--lt-shadow) !important; border: 1px solid rgba(255,255,255,0.07) !important; }
.gt-pill-label         { color: var(--lt-text) !important; }

/* ── DYK cards ── */
.gt-dyk-card           { background: var(--lt-surface) !important; box-shadow: var(--lt-shadow) !important; }
.gt-dyk-stat           { color: #fff !important; }
.gt-dyk-body           { }
.gt-dyk-text           { color: var(--lt-text2) !important; }

/* ── Mixed cards (Brief / Read / Fact) ── */
/* background + badge colour set via inline style (topic tint) — no !important to allow override */
.gt-mixed-card--brief  { background: var(--lt-surface); box-shadow: var(--lt-shadow) !important; }
.gt-mixed-img          { background-color: #1A2535 !important; }
.gt-mixed-region       { color: var(--lt-text3); }       /* no !important — topic colour set inline */
.gt-mixed-title        { color: var(--lt-text) !important; }
.gt-mixed-meta         { color: rgba(255,255,255,0.50) !important; }
.gt-mixed-card--read   { background: var(--lt-surface); box-shadow: var(--lt-shadow) !important; }
.gt-mixed-card--fact   { background: var(--lt-surface); box-shadow: var(--lt-shadow) !important; }
.gt-mixed-stat         { color: var(--lt-text) !important; }

/* Overlay (bottom sheet for explainer on Today) */
.gt-overlay            { background: var(--lt-surface) !important; box-shadow: 0 -6px 32px rgba(0,0,0,0.55) !important; }
.gt-overlay-step-title { color: var(--lt-text) !important; }
.gt-overlay-step-body  { color: var(--lt-text2) !important; }
.gt-overlay-why-label  { color: var(--lt-text3) !important; }
.gt-overlay-why-text   { color: var(--lt-text2) !important; }
.gt-overlay-btn        { background: #FFFFFF !important; color: #0F1115 !important; }
.gt-overlay-pip        { background: rgba(255,255,255,0.12) !important; }
.gt-overlay-pip--on    { background: rgba(255,255,255,0.65) !important; }
.gt-overlay-close      { background: rgba(255,255,255,0.08) !important; color: rgba(255,255,255,0.65) !important; }

/* Card type badges — no !important so topic-colour inline styles win */
.gt-card-badge--brief  { background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.80); }
.gt-card-badge--read   { background: rgba(224,164,88,0.18); color: var(--lt-amber); }
.gt-card-badge--fact   { background: rgba(93,157,210,0.20); color: #8BBDE0; }

/* Profile button */
.gs-profile-btn        { background: rgba(255,255,255,0.08) !important; color: rgba(255,255,255,0.60) !important; }

/* ── Topic tiles ── */
.td-topic-tile-count   { color: rgba(255,255,255,0.45) !important; }

/* ── Topic feed screen ── */
.tfs-header            { background: rgba(15,17,21,0.95) !important; }
.tfs-back              { color: rgba(255,255,255,0.50) !important; }
.tfs-story-count       { color: rgba(255,255,255,0.30) !important; }
.tfs-title             { color: rgba(255,255,255,0.90) !important; }
.tfs-row               { border-bottom-color: rgba(255,255,255,0.07) !important; }

/* ── Streak modal nudge ── */
.gs-streak-modal-nudge { color: rgba(255,255,255,0.45) !important; }
.gs-profile-btn:hover  { background: rgba(255,255,255,0.13) !important; }

/* ============================================================
   DARK POPUPS — Brief / Fact / Read sheets (gbd-*)
   ============================================================ */

/* Base sheet — charcoal, not light grey */
.gbd-screen            { box-shadow: 0 -8px 40px rgba(0,0,0,0.60) !important; }

/* Topbar */
.gbd-topbar            { background: transparent !important; border-bottom-color: rgba(255,255,255,0.07) !important; }
.gbd-topbar-label      { color: rgba(255,255,255,0.40) !important; }
.gbd-icon-btn          { background: rgba(255,255,255,0.08) !important; color: rgba(255,255,255,0.70) !important; }
.gbd-icon-btn:hover    { background: rgba(255,255,255,0.14) !important; }
.gbd-icon-btn:active   { background: rgba(255,255,255,0.18) !important; }

/* Hero image placeholder */
.gbd-hero              { background-color: #1A2535 !important; }

/* Tags */
.gbd-tag               { color: #8BBDE0 !important; background: rgba(93,157,210,0.14) !important; }

/* Headline + body */
.gbd-headline          { color: var(--lt-text) !important; }
.gbd-source            { color: var(--lt-text3) !important; }
.gbd-date              { color: var(--lt-text3) !important; }
.gbd-meta-sep          { color: rgba(255,255,255,0.15) !important; }
.gbd-stat-chip         { color: #8BBDE0 !important; background: rgba(93,157,210,0.12) !important; }
.gbd-section-label     { color: var(--lt-text3) !important; }
.gbd-bullet            { color: var(--lt-text2) !important; }
.gbd-bullet::before    { color: var(--lt-text3) !important; }
.gbd-copyright-note    { color: rgba(255,255,255,0.25) !important; border-top-color: rgba(255,255,255,0.07) !important; }

/* Footer */
.gbd-foot              { background: transparent !important; border-top-color: rgba(255,255,255,0.07) !important; }
/* Read-full / action button = white pill */
.gbd-read-btn          { background: #FFFFFF !important; color: #0F1115 !important; }
.gbd-read-btn:hover    { background: #E8E8E3 !important; }

/* FACT popup specifics */
.gbd-fact-text         { color: var(--lt-text2) !important; }
.gt-fact-modal-stat    { color: var(--lt-text) !important; }

/* READ popup specifics */
.gbd-read-pip          { background: rgba(255,255,255,0.10) !important; }
.gbd-read-pip--on      { background: rgba(255,255,255,0.60) !important; }
.gbd-read-heading      { color: var(--lt-text) !important; }
.gbd-read-body         { color: var(--lt-text2) !important; }
.gbd-read-why          { background: rgba(255,255,255,0.05) !important; }
.gbd-read-why-label    { color: var(--lt-text3) !important; }
.gbd-read-why-text     { color: var(--lt-text2) !important; }

/* Fix: gbd-screen base without !important so makeWash inline style wins */
.gbd-screen { background: #1C1E24; }

/* ── Hero card ── */
.gt-hero-wrap {
  padding: 16px 18px 8px;
}
.gt-hero-card {
  width: 100%;
  height: 260px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: #1A2535;
  box-shadow: 0 6px 24px rgba(0,0,0,0.55);
  transition: transform 0.15s ease;
}
.gt-hero-card:active { transform: scale(0.98); }
.gt-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.gt-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,8,14,0.90) 0%, rgba(5,8,14,0.35) 55%, rgba(5,8,14,0.05) 100%);
}
.gt-hero-body {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gt-hero-region {
  font-family: 'Figtree', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.gt-hero-title {
  font-family: 'Nunito', 'Figtree', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gt-hero-cta {
  font-family: 'Figtree', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
}

/* ── Featured collection card ── */
.gt-featured-wrap {
  padding: 8px 18px 4px;
}
.gt-featured-card {
  width: 100%;
  border-radius: 18px;
  background: linear-gradient(135deg, #1A2338 0%, #222840 100%);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 4px 20px rgba(0,0,0,0.45);
  padding: 20px 18px 20px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease;
}
.gt-featured-card:active { transform: scale(0.98); }
.gt-featured-eye {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
}
.gt-featured-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.gt-featured-label {
  font-family: 'Figtree', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lt-amber, #E0A458);
}
.gt-featured-title {
  font-family: 'Nunito', 'Figtree', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #F2F3F5;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}
.gt-featured-sub {
  font-family: 'Figtree', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.42);
  margin: 0;
}
.gt-featured-arrow {
  font-size: 18px;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
}

/* ============================================================
   COUNTRY GUESSER  (cg-*)
   ============================================================ */
.cg-screen {
  min-height: 100%;
  padding: 20px 18px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background:
    radial-gradient(ellipse 160% 50% at 50% 0%, rgba(94,106,210,0.14) 0%, rgba(60,70,180,0.05) 45%, transparent 70%),
    linear-gradient(180deg, #0C0D1C 0%, #0F1115 120px, #0F1115 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cg-done {
  align-items: center;
  text-align: center;
}

/* Header */
.cg-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.cg-title {
  font-family: 'Nunito','Figtree',sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--lt-text,#F2F3F5);
  letter-spacing: -0.03em;
  margin: 0 0 2px;
}
.cg-subtitle {
  font-family: 'Figtree',sans-serif;
  font-size: 13px;
  color: var(--lt-text3,#9BA0A8);
  margin: 0;
}
.cg-count {
  font-family: 'Figtree',sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--lt-text3,#9BA0A8);
  padding-top: 3px;
}

/* Input area */
.cg-input-wrap { position: relative; }
.cg-input-row { display: flex; gap: 8px; }
.cg-input {
  flex: 1;
  background: var(--lt-surface,#1C1E24);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: 'Figtree',sans-serif;
  font-size: 15px;
  color: var(--lt-text,#F2F3F5);
  outline: none;
  transition: border-color .15s;
}
.cg-input:focus { border-color: #5E6AD2; }
.cg-input::placeholder { color: rgba(255,255,255,0.22); }
.cg-btn {
  background: #5E6AD2;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0 20px;
  font-family: 'Figtree',sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s;
}
.cg-btn:disabled { opacity: 0.38; cursor: default; }
.cg-btn:not(:disabled):hover { opacity: 0.85; }

/* Autocomplete dropdown */
.cg-sugg {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 80px;
  background: #23262E;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  overflow: hidden;
  z-index: 30;
  box-shadow: 0 8px 24px rgba(0,0,0,0.60);
}
.cg-sugg-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--lt-text,#F2F3F5);
  font-family: 'Figtree',sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background .1s;
}
.cg-sugg-item:last-child { border-bottom: none; }
.cg-sugg-item:hover { background: rgba(255,255,255,0.07); }

.cg-err {
  font-family: 'Figtree',sans-serif;
  font-size: 12px;
  color: #DC6060;
  margin: 5px 0 0;
}

/* Guess rows */
.cg-rows { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.cg-row-hd {
  display: grid;
  grid-template-columns: 50px 1fr 96px 62px;
  gap: 6px;
  padding: 0 6px 4px;
  font-family: 'Figtree',sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}
.cg-row {
  display: grid;
  grid-template-columns: 50px 1fr 96px 62px;
  gap: 6px;
  align-items: center;
  background: var(--lt-surface,#1C1E24);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 9px 10px;
  animation: cg-in .28s cubic-bezier(.22,1,.36,1);
}
.cg-row--win {
  border-color: rgba(34,197,94,0.45) !important;
  background: rgba(34,197,94,0.07) !important;
}
@keyframes cg-in {
  from { opacity:0; transform:translateY(-6px); }
  to   { opacity:1; transform:none; }
}

/* Proximity dot */
.cg-prox {
  width: 46px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Figtree',sans-serif;
  font-size: 11px;
  font-weight: 700;
}
.cg-prox--exact { background: rgba(34,197,94,0.22); color: #22C55E; }
.cg-prox--near  { background: rgba(132,204,22,0.18); color: #84CC16; }
.cg-prox--mild  { background: rgba(234,179,8,0.18);  color: #EAB308; }
.cg-prox--far   { background: rgba(249,115,22,0.18); color: #F97316; }
.cg-prox--cold  { background: rgba(239,68,68,0.16);  color: #EF4444; }

.cg-rname {
  font-family: 'Figtree',sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--lt-text,#F2F3F5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cg-rdist {
  font-family: 'Figtree',sans-serif;
  font-size: 12px;
  color: var(--lt-text2,#BCC2CC);
  text-align: right;
  white-space: nowrap;
}
.cg-rarrow { font-size: 14px; margin-left: 3px; }
.cg-rhdi {
  font-family: 'Figtree',sans-serif;
  font-size: 12px;
  color: var(--lt-text2,#BCC2CC);
  text-align: right;
  white-space: nowrap;
}
.cg-hdi--up   .cg-hdi-arrow { color: #22C55E; }
.cg-hdi--down .cg-hdi-arrow { color: #EF4444; }
.cg-hdi-arrow { font-size: 11px; }

/* Hint box (empty state) */
.cg-hint-box {
  background: var(--lt-surface,#1C1E24);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cg-hint-hd {
  font-family: 'Figtree',sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin: 0;
}
.cg-hint-item {
  font-family: 'Figtree',sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.52);
  margin: 0;
}

/* Done screen */
.cg-done-icon { font-size: 54px; line-height: 1; margin-bottom: 4px; }
.cg-done-title {
  font-family: 'Nunito','Figtree',sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--lt-text,#F2F3F5);
  letter-spacing: -0.03em;
  margin: 0;
}
.cg-done-ans {
  font-family: 'Figtree',sans-serif;
  font-size: 15px;
  color: var(--lt-text2,#BCC2CC);
  margin: 0;
}
.cg-done-ans strong { color: var(--lt-text,#F2F3F5); }
.cg-done-hdi { font-size: 13px; color: var(--lt-text3,#9BA0A8); }
.cg-share-btn {
  width: 100%;
  background: #FFFFFF;
  color: #0F1115;
  border: none;
  border-radius: 99px;
  padding: 15px;
  font-family: 'Figtree',sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
.cg-share-btn:hover { opacity: .88; }
.cg-done-sub {
  font-family: 'Figtree',sans-serif;
  font-size: 12px;
  color: var(--lt-text3,#9BA0A8);
  margin: 0;
}

/* ============================================================
   PLAY HUB  (ph-)
   ============================================================ */
/* ── Play hub landing ── */
.ph-screen {
  height: 100%;
  padding: 20px 16px 24px;
  background: var(--lt-bg,#0F1115);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
}
.ph-header { flex-shrink: 0; }
.ph-title {
  font-family: 'Nunito','Figtree',sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--lt-text,#F2F3F5);
  letter-spacing: -0.03em;
  margin: 0 0 2px;
}
.ph-sub {
  font-family: 'Figtree',sans-serif;
  font-size: 13px;
  color: var(--lt-text3,#9BA0A8);
  margin: 0;
}

/* ── Hero card: Daily Challenge ── */
.ph-hero {
  flex: 0 0 auto;
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(224,164,88,0.18);
  overflow: hidden;
  padding: 20px 20px 18px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 190px;
  transition: transform 0.15s ease, opacity 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.ph-hero:active { transform: scale(0.975); opacity: 0.92; }
@media (prefers-reduced-motion: reduce) { .ph-hero { transition: none !important; } }

.ph-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 180% 130% at 8% 55%, rgba(224,164,88,0.22) 0%, rgba(160,110,30,0.08) 50%, transparent 75%),
    linear-gradient(155deg, #1C1306 0%, #231708 22%, #191006 55%, #100D07 80%, #0D0D10 100%);
  pointer-events: none;
}

.ph-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}
.ph-hero-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(224,164,88,0.60);
  text-transform: uppercase;
  padding-top: 2px;
}
.ph-hero-title {
  font-family: 'Figtree',sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #F2F3F5;
  line-height: 1.15;
  letter-spacing: -0.03em;
  position: relative;
}
.ph-hero-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.48);
  line-height: 1.4;
  position: relative;
}
.ph-hero-state { position: relative; }
.ph-hero-ready {
  font-size: 13px;
  font-weight: 600;
  color: rgba(224,164,88,0.88);
}
.ph-hero-score {
  font-size: 12px;
  color: rgba(255,255,255,0.42);
}
.ph-hero-cta {
  margin-top: auto;
  padding-top: 4px;
  position: relative;
}
.ph-hero-btn {
  display: inline-block;
  background: #E0A458;
  color: #110D04;
  font-family: 'Figtree',sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 99px;
  letter-spacing: 0.01em;
}

/* ── Secondary game cards: Guess the Country + Higher or Lower ── */
/* Same layout language as ph-hero; ~60% of its height (no flex:1 stretch) */
.ph-card {
  flex-shrink: 0;
  position: relative;
  border-radius: 18px;
  border: 1px solid transparent;
  overflow: hidden;
  padding: 16px 18px 15px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: transform 0.15s ease, opacity 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.ph-card:active { transform: scale(0.975); opacity: 0.92; }
@media (prefers-reduced-motion: reduce) { .ph-card { transition: none !important; } }

/* Per-game border tint */
.ph-card--country { border-color: rgba(94,106,210,0.20); }
.ph-card--hilo    { border-color: rgba(34,197,94,0.18);  }

/* Full-bleed gradient backgrounds */
.ph-card-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ph-card--country .ph-card-bg {
  /* Deep midnight navy with indigo bloom at lower-left — same muted register as amber hero */
  background:
    radial-gradient(ellipse 180% 130% at 8% 60%, rgba(94,106,210,0.24) 0%, rgba(40,50,160,0.08) 50%, transparent 74%),
    linear-gradient(155deg, #0C0D1C 0%, #0E1022 22%, #0B0C18 55%, #070912 80%, #0D0D10 100%);
}
.ph-card--hilo .ph-card-bg {
  /* Deep forest green with teal bloom at lower-left */
  background:
    radial-gradient(ellipse 180% 130% at 8% 60%, rgba(34,197,94,0.20) 0%, rgba(14,80,40,0.07) 50%, transparent 74%),
    linear-gradient(155deg, #0A140A 0%, #0C1A0B 22%, #081009 55%, #050C06 80%, #0D0D10 100%);
}

/* Card internals — mirrors ph-hero-* naming */
.ph-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}
.ph-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 2px;
}
.ph-card--country .ph-card-label { color: rgba(94,106,210,0.65); }
.ph-card--hilo    .ph-card-label { color: rgba(34,197,94,0.65);  }

.ph-card-title {
  font-family: 'Figtree',sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: #F2F3F5;
  line-height: 1.15;
  letter-spacing: -0.03em;
  position: relative;
}
.ph-card-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.42);
  line-height: 1.4;
  position: relative;
}
.ph-card-state { position: relative; }
.ph-card-ready {
  font-size: 12px;
  font-weight: 600;
}
.ph-card-score {
  font-size: 11px;
  color: rgba(255,255,255,0.38);
}
.ph-card-cta {
  margin-top: 2px;
  position: relative;
}
.ph-card-btn {
  display: inline-block;
  font-family: 'Figtree',sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 99px;
  letter-spacing: 0.01em;
}
.ph-card-btn--country { background: #5E6AD2; color: #02030F; }
.ph-card-btn--hilo    { background: #22C55E; color: #020E05; }

/* ── In-game back button — sticky glass pill ── */
.ph-back {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  align-self: flex-start;
  z-index: 10;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(12px) saturate(1.6);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 99px;
  padding: 7px 16px;
  font-family: 'Figtree',sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  cursor: pointer;
  margin-bottom: 8px;
  display: inline-block;
  transition: background 0.15s;
}
.ph-back:hover { background: rgba(255,255,255,0.10); color: #fff; }

/* ============================================================
   DAILY QUIZ  (qz-)
   ============================================================ */
.qz-screen {
  min-height: 100%;
  padding: 20px 18px 48px;
  background:
    radial-gradient(ellipse 160% 50% at 50% 0%, rgba(224,164,88,0.13) 0%, rgba(180,120,40,0.05) 45%, transparent 70%),
    linear-gradient(180deg, #100E08 0%, #0F1115 120px, #0F1115 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.qz-done {
  align-items: center;
  text-align: center;
}
.qz-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.qz-progress {
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.qz-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--lt-amber,#E0A458);
  transition: width .35s ease;
}
.qz-question {
  font-family: 'Figtree',sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--lt-text,#F2F3F5);
  line-height: 1.5;
  margin: 4px 0 2px;
}
.qz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qz-opt {
  background: var(--lt-surface,#1C1E24);
  border: 1.5px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: 'Figtree',sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--lt-text,#F2F3F5);
  text-align: left;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.qz-opt:not(:disabled):hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.18); }
.qz-opt--correct { background: rgba(34,197,94,0.18) !important; border-color: rgba(34,197,94,0.55) !important; color: #22C55E !important; }
.qz-opt--wrong   { background: rgba(239,68,68,0.15)  !important; border-color: rgba(239,68,68,0.45)  !important; color: #EF4444 !important; }
.qz-opt--dim     { opacity: 0.38; }
.qz-opt:disabled { cursor: default; }
.qz-explain {
  background: var(--lt-surface,#1C1E24);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qz-explain-label {
  font-family: 'Figtree',sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lt-text3,#9BA0A8);
}
.qz-explain-text {
  font-family: 'Figtree',sans-serif;
  font-size: 13px;
  color: var(--lt-text2,#BCC2CC);
  line-height: 1.5;
  margin: 0;
}
.qz-next-btn {
  background: var(--lt-amber,#E0A458);
  color: #0F1115;
  border: none;
  border-radius: 99px;
  padding: 12px 20px;
  font-family: 'Figtree',sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-end;
  transition: opacity .15s;
}
.qz-next-btn:hover { opacity: .85; }
.qz-done-icon { font-size: 52px; line-height: 1; }
.qz-done-title {
  font-family: 'Nunito','Figtree',sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--lt-text,#F2F3F5);
  letter-spacing: -0.03em;
  margin: 0;
}
.qz-done-sub {
  font-family: 'Figtree',sans-serif;
  font-size: 14px;
  color: var(--lt-text3,#9BA0A8);
  margin: 0 0 12px;
}

/* ============================================================
   HIGHER OR LOWER  (hl-)
   ============================================================ */
.hl-screen {
  min-height: 100%;
  padding: 20px 18px 48px;
  background:
    radial-gradient(ellipse 160% 50% at 50% 0%, rgba(34,197,94,0.12) 0%, rgba(14,80,40,0.05) 45%, transparent 70%),
    linear-gradient(180deg, #080E09 0%, #0F1115 120px, #0F1115 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hl-done { align-items: center; text-align: center; }
.hl-prompt {
  font-family: 'Figtree',sans-serif;
  font-size: 15px;
  color: var(--lt-text2,#BCC2CC);
  margin: 0;
  text-align: center;
}
.hl-prompt strong { color: var(--lt-text,#F2F3F5); }
.hl-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--lt-surface,#1C1E24);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 22px 14px;
  cursor: pointer;
  min-height: 140px;
  transition: background .15s, border-color .15s, transform .15s;
}
.hl-card:not(:disabled):hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.16); }
.hl-card:not(:disabled):active { transform: scale(0.97); }
.hl-card:disabled { cursor: default; }
.hl-card--correct { background: rgba(34,197,94,0.14) !important; border-color: rgba(34,197,94,0.50) !important; }
.hl-card--wrong   { background: rgba(239,68,68,0.12) !important; border-color: rgba(239,68,68,0.45) !important; }
.hl-country {
  font-family: 'Figtree',sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--lt-text,#F2F3F5);
  text-align: center;
  line-height: 1.25;
}
.hl-hdi {
  font-family: 'Nunito','Figtree',sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #22C55E;
  letter-spacing: -0.02em;
}
.hl-hdi--hidden { color: rgba(255,255,255,0.20) !important; font-size: 14px; font-weight: 500; }
.hl-tap {
  font-family: 'Figtree',sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hl-result-badge {
  font-family: 'Figtree',sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
}
.hl-result-badge--correct { background: rgba(34,197,94,0.25); color: #22C55E; }
.hl-result-badge--wrong   { background: rgba(239,68,68,0.20);  color: #EF4444; }
.hl-hint {
  font-family: 'Figtree',sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.28);
  text-align: center;
  margin: 0;
}
.hl-done-reveal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin: 4px 0 12px;
}
.hl-done-card {
  background: var(--lt-surface,#1C1E24);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hl-done-card--win { border-color: rgba(34,197,94,0.45) !important; background: rgba(34,197,94,0.10) !important; }
.hl-done-country { font-family:'Figtree',sans-serif; font-size:13px; font-weight:700; color:var(--lt-text,#F2F3F5); text-align:center; }
.hl-done-hdi { font-family:'Nunito','Figtree',sans-serif; font-size:17px; font-weight:900; color:var(--lt-amber,#E0A458); }
.hl-done-higher { font-family:'Figtree',sans-serif; font-size:11px; font-weight:700; color:#22C55E; text-transform:uppercase; letter-spacing:0.07em; }
.hl-play-again {
  background: var(--lt-surface,#1C1E24);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 99px;
  padding: 13px 28px;
  font-family: 'Figtree',sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--lt-text2,#BCC2CC);
  cursor: pointer;
  transition: background .15s;
  margin-top: 4px;
}
.hl-play-again:hover { background: rgba(255,255,255,0.08); }

/* ============================================================
   GLOBLY FEED — Phase 3 vertical swipe feed
   ============================================================ */

/* Wrapper: fills gs-body exactly — backdrop child is positioned relative to this */
.gf-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0D0D10; /* fallback only — screen backdrop paints over this */
  position: relative;
  isolation: isolate;
}

/* ── Floating "For you / Saved" pill — glass morphism, overlays the reel ── */
.gf-tabs {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px) saturate(1.6);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  white-space: nowrap;
}
.gf-tab {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 7px 18px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.gf-tab--on {
  color: #fff;
  background: rgba(255, 255, 255, 0.20);
}

/* ── Vertical scroll-snap reel — transparent so screen backdrop shows through ── */
.gf-reel {
  flex: 1;
  min-height: 0;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  position: relative;
  z-index: 1;
  background: transparent;
}
.gf-reel::-webkit-scrollbar { display: none; }

/* ── Single full-height item ── */
.gf-item {
  height: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0D0D10;
}
/* Top scrim — reinforces the floating pill's legibility over bright card imagery */
.gf-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 130px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.40) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Per-item ambient backdrop — absolute z-0, fills the item; content sits at z-1 */
.gf-item-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
/* Layer 1: colour-gradient wash — dominant-colour gradient or topic fallback */
.gf-item-bg-grad {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* Layer 2: blurred article image — texture only; opacity set inline per-item */
.gf-item-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.4);
  transform-origin: center center;
  filter: blur(62px) saturate(0.70) brightness(0.95);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
/* Layer 3: text-contrast vignette bands — dark at top and bottom, transparent mid */
.gf-item-bg-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── Decorative heading (big, top-left, white) ── */
.gf-heading {
  flex-shrink: 0;
  /* Top padding clears the floating glass pill (safe-area + pill offset + pill height + gap) */
  padding: calc(env(safe-area-inset-top, 0px) + 70px) 72px 6px 20px;
  font-size: 34px;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-family: 'Figtree', system-ui, sans-serif;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 14px rgba(0,0,0,0.85);
}
.gf-deck-wrap { position: relative; z-index: 1; }
.gf-dots      { position: relative; z-index: 1; }
.gf-rail      { position: relative; z-index: 1; }

/* ── Deck container (horizontal snap) ── */
.gf-deck-wrap {
  flex: 1;
  min-height: 0;
  padding: 8px 16px 0;
  display: flex;
  flex-direction: column;
}
.gf-deck {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.gf-deck::-webkit-scrollbar { display: none; }

/* ── Individual card — transparent, no panel: content floats on item backdrop ── */
.gf-card {
  flex-shrink: 0;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
}
.gf-card::-webkit-scrollbar { display: none; }

/* ── Ambient blur backdrop ── */
/* Absolutely-positioned inside .gf-card at z-index:-1 so card content sits above.
   Card must have background:transparent (set inline) when image is present. */
.gf-amb {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
}
.gf-amb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.35);
  transform-origin: center center;
  filter: blur(52px) saturate(0.58) brightness(0.88);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.gf-amb-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── Thumbnail in brief meta row ── */
.gf-brief-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Card type label */
.gf-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
  flex-shrink: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.80);
}

/* FACT cards */
.gf-fact-stat {
  font-size: 54px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  flex-shrink: 0;
  text-shadow: 0 2px 16px rgba(0,0,0,0.80);
}
.gf-fact-text {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,0.90);
  line-height: 1.45;
  text-shadow: 0 1px 10px rgba(0,0,0,0.75);
}
.gf-fact-emoji {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.gf-fact-context {
  font-size: 14px;
  color: rgba(255,255,255,0.68);
  line-height: 1.6;
  margin-top: 14px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.75);
}

/* READ / explainer cards */
.gf-step-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
  margin-bottom: 12px;
  flex-shrink: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.80);
}
.gf-step-heading {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 14px;
  flex-shrink: 0;
  text-shadow: 0 1px 12px rgba(0,0,0,0.80);
}
.gf-step-body {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0,0,0,0.75);
}

/* BRIEF cards */
.gf-brief-region {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  flex-shrink: 0;
}
/* .gf-brief-headline is now defined in the brief-v2 section below */
.gf-brief-hint {
  margin-top: auto;
  padding-top: 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.03em;
}
.gf-brief-summary {
  font-size: 15px;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  text-shadow: 0 1px 8px rgba(0,0,0,0.75);
}
.gf-source-domain {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.90);
  margin-bottom: 4px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.80);
}
.gf-source-date {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 22px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.75);
}
.gf-source-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 12px 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s;
  align-self: flex-start;
}
.gf-source-link:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* ── Pagination dots ── */
.gf-dots {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 0 14px;
}
.gf-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.18);
  transition: all 0.22s;
  flex-shrink: 0;
}
.gf-dot--on {
  width: 20px;
  background: rgba(255,255,255,0.80);
  border-radius: 3px;
}
.gf-dot-next {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: rgba(255,255,255,0.70);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  transition: all 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.gf-dot-next:hover { color: #fff; background: rgba(255,255,255,0.10); }

/* ── Right action rail ── */
.gf-rail {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 10;
}
.gf-rail-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(20,20,24,0.70);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,0.65);
  font-size: 20px;
  transition: all 0.18s;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gf-rail-btn:active { transform: scale(0.90); }
.gf-rail-btn--liked  { color: #e05270; border-color: rgba(224,82,112,0.40); }
.gf-rail-btn--saved  { color: #9D6EFF; border-color: rgba(157,110,255,0.40); }

/* ── Empty / loading state ── */
.gf-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px;
  text-align: center;
}
.gf-empty-icon  { font-size: 44px; }

/* ── BRIEF card — 3-zone redesign ─────────────────────────────────────────── */
/* ── Brief card v2: clean panel, no scene strip ── */
.gf-card.gf-card--brief-v2 {
  justify-content: space-between;
}
.gf-brief-top-v2 {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  padding-bottom: 8px;
}
.gf-brief-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  flex-shrink: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.80);
}
.gf-brief-headline {
  font-family: var(--rf);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.24;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  text-shadow: 0 1px 14px rgba(0,0,0,0.85);
}
.gf-brief-teaser {
  font-family: var(--rf);
  font-size: 16px;
  line-height: 1.56;
  color: rgba(255,255,255,0.72);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  flex-shrink: 1;
  text-shadow: 0 1px 10px rgba(0,0,0,0.80);
}

/* ── Brief meta row (source · time · swipe) ── */
.gf-brief-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px 14px;
  flex-shrink: 0;
}
/* Brief-v2 card supplies its own padding — zero out the meta's built-in offset */
.gf-card--brief-v2 .gf-brief-meta {
  padding: 0;
}

.gf-brief-meta-source {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.80);
}

.gf-brief-meta-sep {
  font-size: 12px;
  color: rgba(255,255,255,0.30);
  flex-shrink: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.80);
}

.gf-brief-meta-time {
  font-size: 12px;
  color: rgba(255,255,255,0.52);
  flex-shrink: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.80);
}

.gf-brief-meta-swipe {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.03em;
  flex-shrink: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.80);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TODAY-SCREEN CARD COMPONENTS  (td- prefix)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── HeroCard ──────────────────────────────────────────────────────────────── */
.td-hero-wrap {
  padding: 0 18px 4px;
}
.td-hero-card {
  position: relative;
  display: block;
  width: 100%;
  height: 300px;
  border-radius: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.td-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.40) 50%,
    rgba(0,0,0,0.00) 100%);
  pointer-events: none;
}
.td-hero-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.td-hero-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.td-hero-title {
  font-size: 21px;
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin: 0;
  text-align: left;
}
.td-hero-cta {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.72);
}

/* ── PortraitCard ──────────────────────────────────────────────────────────── */
.td-portrait-card {
  flex: 0 0 155px;
  width: 155px;
  height: 240px;
  border-radius: 14px;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background: var(--lt-surface);
  -webkit-tap-highlight-color: transparent;
}
.td-portrait-art {
  flex: 0 0 144px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.td-portrait-icon { font-size: 32px; }
.td-portrait-stat {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}
.td-portrait-body {
  flex: 1;
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--lt-surface);
  overflow: hidden;
}
.td-portrait-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.td-portrait-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--lt-text);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

/* ── SplitCard ─────────────────────────────────────────────────────────────── */
.td-split-wrap {
  padding: 0 18px 4px;
}
.td-split-card {
  display: flex;
  width: 100%;
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--lt-surface);
  -webkit-tap-highlight-color: transparent;
}
.td-split-left {
  flex: 0 0 48%;
  background-size: cover;
  background-position: center;
}
.td-split-right {
  flex: 1;
  padding: 14px 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  overflow: hidden;
  text-align: left;
}
.td-split-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.td-split-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--lt-text);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.td-split-summary {
  font-size: 11px;
  color: var(--lt-text2);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── TopicChip ─────────────────────────────────────────────────────────────── */
.td-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 4px;
}
.td-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  border: 1.5px solid transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.td-chip-icon {
  font-size: 16px;
  line-height: 1;
}
.td-chip-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ── Topic tile grid (Browse by Topic) ────────────────────────────────────── */
.td-topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 18px 4px;
}
.td-topic-tile {
  border-radius: 16px;
  border: 1.5px solid transparent;
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  text-align: left;
  min-height: 110px;
  transition: opacity 0.15s;
}
.td-topic-tile:active { opacity: 0.75; }
.td-topic-tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.td-topic-tile-name {
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}
.td-topic-tile-count {
  font-family: 'Figtree', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.01em;
}

/* ── SquareCard ────────────────────────────────────────────────────────────── */
.td-square-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 18px 4px;
}
.td-square-card {
  border-radius: 14px;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background: var(--lt-surface);
  height: 180px;
  -webkit-tap-highlight-color: transparent;
}
.td-square-art {
  flex: 0 0 108px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.td-square-icon { font-size: 28px; }

/* ── ContentIcon shared wrapper ── */
.ci-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 7px;
  flex-shrink: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
button:hover .ci-wrap,
button:active .ci-wrap {
  transform: scale(1.08);
}
@media (prefers-reduced-motion: reduce) {
  .ci-wrap { transition: none !important; }
}
.td-square-stat {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}
.td-square-body {
  flex: 1;
  padding: 7px 9px 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
  text-align: left;
}
.td-square-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.td-square-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--lt-text);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── ListRow ───────────────────────────────────────────────────────────────── */
.td-list-col {
  display: flex;
  flex-direction: column;
  padding: 0 18px 4px;
}
.td-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 84px;
  padding: 10px 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  -webkit-tap-highlight-color: transparent;
}
.td-list-row:last-child {
  border-bottom: none;
}
.td-list-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.td-list-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
  text-align: left;
}
.td-list-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.td-list-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--lt-text);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── TopicFeedScreen ───────────────────────────────────────────────────────── */
.tfs-page {
  padding-top: 0 !important;
}
.tfs-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 10px;
  position: sticky;
  top: 0;
  background: rgba(15,17,21,0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 5;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tfs-back {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.tfs-topic-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid transparent;
  flex-shrink: 0;
}
.tfs-story-count {
  font-size: 12px;
  color: rgba(255,255,255,0.30);
  margin-left: auto;
  flex-shrink: 0;
}
.tfs-list {
  display: flex;
  flex-direction: column;
  padding: 4px 18px 20px;
}
.tfs-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 84px;
  padding: 10px 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  -webkit-tap-highlight-color: transparent;
  text-align: left;
}
.tfs-row:last-child { border-bottom: none; }
.tfs-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}
.tfs-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}
.tfs-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.tfs-title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.90);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tfs-empty {
  font-size: 14px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  padding: 40px 0;
  margin: 0;
}

/* ── QuizCard ──────────────────────────────────────────────────────────────── */
.td-quiz-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 36px);
  height: 130px;
  margin: 0 18px;
  padding: 0 20px;
  border-radius: 16px;
  border: 1.5px solid rgba(232,146,62,0.35);
  cursor: pointer;
  background: linear-gradient(135deg,
    rgba(232,146,62,0.22) 0%,
    rgba(232,146,62,0.10) 100%);
  -webkit-tap-highlight-color: transparent;
}
.td-quiz-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.td-quiz-icon { font-size: 32px; }
.td-quiz-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}
.td-quiz-label {
  font-size: 17px;
  font-weight: 900;
  color: var(--lt-text);
}
.td-quiz-meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--lt-text2);
}
.td-quiz-cta {
  font-size: 14px;
  font-weight: 800;
  color: #E8923E;
}

/* ── StatTile ──────────────────────────────────────────────────────────────── */
.td-stat-tile {
  flex: 0 0 150px;
  width: 150px;
  height: 150px;
  border-radius: 16px;
  border: none;
  padding: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  -webkit-tap-highlight-color: transparent;
}
.td-stat-number {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.td-stat-caption {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  line-height: 1.35;
  margin: 0;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Reel player ─────────────────────────────────────────────────────────── */

/* Ken Burns pan+zoom on reel photo backgrounds */
@keyframes gf-kenburns {
  0%   { transform: scale(1.42) translate(0px, 0px); }
  50%  { transform: scale(1.54) translate(-10px, 5px); }
  100% { transform: scale(1.48) translate(5px, -5px); }
}
.gf-item--reel .gf-item-bg-img--kenburns {
  animation: gf-kenburns 30s ease-in-out infinite alternate;
}

/* AI-generated cinematic video background */
.gf-item-bg-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) brightness(0.72);
  pointer-events: none;
  user-select: none;
}

/* "AI-generated visual" label — bottom-left corner, always visible */
.gf-reel-ai-label {
  position: absolute;
  bottom: 80px;
  left: 16px;
  z-index: 12;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.32);
  pointer-events: none;
  user-select: none;
}

/* Reel player layout — fills the full gf-item area */
.gf-reel-player {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  z-index: 10;
  padding: 56px 22px 72px 22px;
  pointer-events: none;
}
.gf-reel-player > * { pointer-events: auto; }

/* Header: badge + topic */
.gf-reel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.gf-reel-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 4px;
  padding: 3px 8px;
}
.gf-reel-topic {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Karaoke caption body */
.gf-reel-caption {
  flex: 1;
  overflow: hidden;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.52;
  color: rgba(255,255,255,0.50);
}
.gf-reel-player--somber .gf-reel-caption {
  font-size: 20px;
}
.gf-reel-word {
  display: inline;
  color: inherit;
  transition: color 0.08s ease, opacity 0.08s ease;
}
.gf-reel-word--past {
  color: rgba(255,255,255,0.70);
}
.gf-reel-word--active {
  font-weight: 700;
  color: inherit; /* overridden inline by hex */
}

/* Footer: progress track + controls */
.gf-reel-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gf-reel-progress-track {
  height: 2px;
  background: rgba(255,255,255,0.14);
  border-radius: 2px;
  overflow: hidden;
}
.gf-reel-progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.08s linear;
  min-width: 2px;
}
.gf-reel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 30px;
}
.gf-reel-audio-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 6px 14px;
  color: rgba(255,255,255,0.80);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}
.gf-reel-audio-btn:active { background: rgba(255,255,255,0.18); }
.gf-reel-caption-badge {
  font-size: 11px;
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.04em;
}

/* ── Story card (feed item) ─────────────────────────────────────────── */
.gf-item--story {
  cursor: pointer;
}
.gf-story-card {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 24px 88px 24px;
  pointer-events: none;
}
.gf-story-card-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 12px;
}
.gf-story-card-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 14px;
}
.gf-story-card-badge-num {
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}
.gf-story-card-badge-word {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.60);
  text-transform: lowercase;
}
.gf-story-card-headline {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.30;
  color: rgba(255,255,255,0.95);
  margin: 0 0 10px 0;
}
.gf-story-card-teaser {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.52);
  margin: 0 0 18px 0;
}
.gf-story-card-cta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

/* ── Story sheet (full-screen overlay) ─────────────────────────────── */
.gf-story-sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0d0e12;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 env(safe-area-inset-bottom, 24px) 0;
  animation: gf-sheet-in 0.28s cubic-bezier(0.32,0.72,0,1) both;
}
@keyframes gf-sheet-in {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.gf-story-sheet-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px 20px;
  background: #0d0e12;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.gf-story-sheet-src {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gf-story-sheet-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.50);
  cursor: pointer;
  padding: 4px;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}
.gf-story-sheet-close:active { color: #fff; }
.gf-story-sheet-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.32;
  color: rgba(255,255,255,0.95);
  padding: 20px 20px 0 20px;
  margin: 0 0 4px 0;
}
.gf-story-sec {
  padding: 20px 20px 0 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 20px;
}
.gf-story-sec--last {
  padding-bottom: 40px;
}
.gf-story-sec-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.gf-story-brief-text {
  font-size: 16px;
  line-height: 1.62;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

/* Mode tabs */
.gf-story-modes-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.gf-story-mode-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.50);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.gf-story-mode-btn--on {
  background: rgba(255,255,255,0.10);
  color: #fff;
}
.gf-story-mode-btn:active { opacity: 0.7; }
.gf-story-mode-body {
  min-height: 80px;
}
.gf-story-facts-list {
  margin: 0;
  padding: 0 0 0 18px;
}
.gf-story-facts-list li {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.80);
  margin-bottom: 8px;
}
.gf-story-mode-para {
  font-size: 15px;
  line-height: 1.62;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

/* Perspectives */
.gf-story-persp-pair {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gf-story-persp-item {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 14px;
}
.gf-story-persp-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 6px;
}
.gf-story-persp-item p {
  font-size: 14px;
  line-height: 1.58;
  color: rgba(255,255,255,0.72);
  margin: 0;
}

/* Timeline */
.gf-story-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.gf-story-tl-row {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  position: relative;
}
.gf-story-tl-row::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 16px;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.10);
}
.gf-story-tl-row:last-child::before { display: none; }
.gf-story-tl-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.gf-story-tl-body { flex: 1; }
.gf-story-tl-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  margin-bottom: 3px;
}
.gf-story-tl-title {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255,255,255,0.72);
}

/* Sources */
.gf-story-src-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
  color: inherit;
}
.gf-story-src-item--primary {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 14px;
  border-bottom: none;
  margin-bottom: 6px;
}
.gf-story-src-outlet {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  grid-column: 1;
  grid-row: 1;
}
.gf-story-src-item--primary .gf-story-src-outlet {
  color: inherit;
}
.gf-story-src-title {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255,255,255,0.80);
  grid-column: 1;
  grid-row: 2;
}
.gf-story-src-time {
  font-size: 11px;
  color: rgba(255,255,255,0.30);
  grid-column: 1;
  grid-row: 3;
  margin-top: 3px;
}
.gf-story-src-arrow {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  color: rgba(255,255,255,0.25);
  font-size: 16px;
}
.gf-story-src-item:active .gf-story-src-arrow { color: rgba(255,255,255,0.70); }

/* ============================================================
   GLOBLY WEBSITE — Responsive layout (≥1024px)
   body.desktop is set on ALL tabs when viewport ≥1024px.
   body.tab-* tracks the active tab for per-tab overrides.
   Mobile layout (<1024px) is fully unchanged.
   ============================================================ */

/* ── Mobile only: hide topbar on Feed (Feed has full-bleed immersive header) ── */
@media (max-width: 1023px) {
  body.tab-feed .gs-topbar { display: none !important; }
}

@media (min-width: 1024px) {

  /* ── 1. Full-viewport root — no dead black gutters ── */
  body.desktop {
    background: #0B0B10 !important;
    align-items: flex-start !important;
  }
  body.desktop #root {
    max-width: none !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
  }

  /* ── 2. Shell: CSS grid — topbar spans full width, nav is left sidebar ── */
  body.desktop .gs-shell {
    display: grid !important;
    grid-template-columns: 220px 1fr !important;
    grid-template-rows: 56px 1fr !important;
    grid-template-areas:
      "topbar  topbar"
      "sidebar content" !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
  }
  body.desktop .gs-topbar {
    grid-area: topbar !important;
    height: 56px !important;
    padding-top: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  }
  body.desktop .gs-body {
    grid-area: content !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    display: block !important;
  }

  /* ── 3. GloblyNav → left sidebar on every tab ── */
  body.desktop .gs-nav {
    grid-area: sidebar !important;
    flex-direction: column !important;
    align-items: stretch !important;
    height: 100% !important;
    width: 220px !important;
    border-top: none !important;
    border-right: 1px solid rgba(255,255,255,0.07) !important;
    padding: 24px 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    position: static !important;
    bottom: auto !important;
  }
  body.desktop .gs-nav-tab {
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 24px !important;
    height: auto !important;
    width: 100% !important;
    border-radius: 0 !important;
    font-size: 14px !important;
  }
  body.desktop .gs-nav-label {
    font-size: 14px !important;
    letter-spacing: 0.01em !important;
    line-height: 1 !important;
    display: block !important;
    font-weight: 500 !important;
  }
  body.desktop .gs-nav-tab--on {
    background: rgba(235,185,106,0.08) !important;
    border-left: 3px solid var(--g-accent2) !important;
    padding-left: 21px !important;
    color: var(--g-accent2) !important;
  }
  body.desktop .gs-nav-tab--on .gs-nav-label { color: var(--g-accent2) !important; }
}

/* ── TODAY TAB (desktop) ──────────────────────────────────── */
@media (min-width: 1024px) {
  body.desktop.tab-today .gt-page,
  body.desktop.tab-topic-feed .gt-page {
    padding: 40px 64px 80px !important;
    max-width: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  /* Hero: full content width, tall */
  body.desktop.tab-today .td-hero-wrap { padding: 0 0 32px !important; }
  body.desktop.tab-today .td-hero-card {
    height: 500px !important;
    border-radius: 20px !important;
  }
  body.desktop.tab-today .td-hero-title { font-size: 34px !important; line-height: 1.2 !important; }
  body.desktop.tab-today .td-hero-body  { padding: 28px 32px 36px !important; }

  /* Strip mobile side gutters from all sections */
  body.desktop.tab-today .gt-section-hd,
  body.desktop.tab-today .td-split-wrap,
  body.desktop.tab-today .td-chips-row,
  body.desktop.tab-today .td-topic-grid,
  body.desktop.tab-today .td-square-grid,
  body.desktop.tab-today .td-list-col {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* For You: 3-column grid (not horizontal scroll) */
  body.desktop.tab-today .gt-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    overflow-x: visible !important;
    padding: 4px 0 18px !important;
    gap: 16px !important;
    scroll-snap-type: none !important;
  }
  body.desktop.tab-today .gt-row > * {
    flex: none !important;
    width: 100% !important;
    scroll-snap-align: none !important;
  }
  body.desktop.tab-today .td-portrait-card { width: 100% !important; height: 280px !important; }
  body.desktop.tab-today .td-portrait-art  { flex: 0 0 160px !important; }
  body.desktop.tab-today .gt-row .td-stat-tile { width: 100% !important; flex: none !important; height: 160px !important; }

  /* Story of the day */
  body.desktop.tab-today .td-split-card  { height: 220px !important; }
  body.desktop.tab-today .td-split-title { font-size: 17px !important; }

  /* Browse by Topic: 4 cols */
  body.desktop.tab-today .td-topic-grid  { grid-template-columns: repeat(4, 1fr) !important; }

  /* Economy section: 4 cols */
  body.desktop.tab-today .td-square-grid { grid-template-columns: repeat(4, 1fr) !important; }
  body.desktop.tab-today .td-square-card { height: 200px !important; }

  /* Conflict/list section: 2-column grid */
  body.desktop.tab-today .td-list-col {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 24px !important;
  }
  body.desktop.tab-today .td-list-row {
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  }
}

/* ── FEED TAB (desktop) — Particle-style card grid ─────────── */
@media (min-width: 1024px) {
  /* Outer wrap: let gs-body handle scroll; gf-wrap just sizes to content */
  body.desktop.tab-feed .gf-wrap {
    overflow: visible !important;
    height: auto !important;
    min-height: 100% !important;
  }

  /* Pill tabs: pull out of absolute position, sit normally above the grid */
  body.desktop.tab-feed .gf-tabs {
    position: static !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    margin: 28px 48px 20px !important;
    display: inline-flex !important;
    background: rgba(255,255,255,0.05) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-color: rgba(255,255,255,0.10) !important;
  }

  /* Reel → 3-column story card grid */
  body.desktop.tab-feed .gf-reel {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    padding: 0 48px 56px !important;
    height: auto !important;
    max-height: none !important;
    overflow: unset !important;
    scroll-snap-type: none !important;
    flex-direction: unset !important;
  }

  /* Items: fixed card height, rounded, hover lift */
  body.desktop.tab-feed .gf-item {
    height: 380px !important;
    border-radius: 16px !important;
    scroll-snap-align: none !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  }
  body.desktop.tab-feed .gf-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.55) !important;
  }
  /* Reduce the top scrim (was for floating tab pill) */
  body.desktop.tab-feed .gf-item::before { height: 70px !important; }

  /* Action rail: pin to top-right of card */
  body.desktop.tab-feed .gf-rail {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    flex-direction: row !important;
    gap: 4px !important;
  }

  /* Story card text sizing */
  body.desktop.tab-feed .gf-story-card         { padding: 16px 20px !important; }
  body.desktop.tab-feed .gf-story-card-headline {
    font-size: 18px !important;
    line-height: 1.3 !important;
    -webkit-line-clamp: 3 !important;
  }
  body.desktop.tab-feed .gf-story-card-teaser  { font-size: 13px !important; }
  body.desktop.tab-feed .gf-story-card-badge   { font-size: 12px !important; }
  body.desktop.tab-feed .gf-story-card-cta     { font-size: 13px !important; }

  /* Brief card deck: show first card only, no horizontal swipe */
  body.desktop.tab-feed .gf-deck {
    height: 100% !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
    flex-shrink: 0 !important;
  }
  body.desktop.tab-feed .gf-card {
    position: static !important;
    height: 100% !important;
    border-radius: 0 !important;
    scroll-snap-align: none !important;
  }
  body.desktop.tab-feed .gf-brief-headline { font-size: 16px !important; }

  /* Reel player: compact text layout in grid card */
  body.desktop.tab-feed .gf-reel-player {
    padding: 16px 20px !important;
  }
  body.desktop.tab-feed .gf-reel-caption    { font-size: 14px !important; }
  body.desktop.tab-feed .gf-reel-footer     { padding: 0 0 12px !important; }

  /* Empty state: center in grid area */
  body.desktop.tab-feed .gf-empty {
    grid-column: 1 / -1 !important;
    padding: 80px 0 !important;
  }
}

/* ── GLOBE TAB (desktop) — full-height globe + side legend ── */
@media (min-width: 1024px) {
  body.desktop.tab-globe .gs-hdi-wrap {
    height: 100% !important;
  }
  /* Legend: move to upper-right corner panel */
  body.desktop.tab-globe .gs-hdi-legend {
    bottom: auto !important;
    left: auto !important;
    top: 28px !important;
    right: 28px !important;
    min-width: 210px !important;
    background: rgba(6,6,12,0.90) !important;
    border-radius: 16px !important;
    padding: 16px 18px !important;
    pointer-events: auto !important;
  }
  /* Hover readout: center at bottom */
  body.desktop.tab-globe .gs-hdi-readout {
    bottom: 28px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
  }
}

/* ── PLAY TAB (desktop) — dashboard grid ────────────────────── */
@media (min-width: 1024px) {
  body.desktop.tab-play .ph-screen {
    max-width: 880px !important;
    margin: 0 auto !important;
    padding: 40px 48px 80px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    align-items: start !important;
  }
  /* Header: full width */
  body.desktop.tab-play .ph-header {
    grid-column: 1 / -1 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
  }
  /* Hero quiz card: full width */
  body.desktop.tab-play .ph-hero {
    grid-column: 1 / -1 !important;
    height: 220px !important;
    flex: none !important;
    margin: 0 !important;
    border-radius: 20px !important;
  }
  /* Secondary game cards: one column each */
  body.desktop.tab-play .ph-card {
    height: 200px !important;
    flex: none !important;
    margin: 0 !important;
  }
}

/* ── TABLET (768–1023px): sensible intermediate ── */
@media (min-width: 768px) and (max-width: 1023px) {
  #root { max-width: 780px !important; }
  body.tab-today .td-topic-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  body.tab-today .gt-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    gap: 12px !important;
  }
  body.tab-today .gt-row > * { flex: none !important; width: 100% !important; }
}

/* END GLOBLY WEBSITE */

/* ============================================================
   GLOBLY — PHASE 1 DESIGN SYSTEM (Today page v2)
   Tokens + components: gt2-* namespace
   Never touches existing td-* / gt-* / gs-* CSS.
   ============================================================ */

/* ── Design tokens ──────────────────────────────────────────── */
:root {
  --gds-font:       'Inter', 'Figtree', system-ui, sans-serif;
  --gds-bg:         #0D0F14;
  --gds-surface:    #15171E;
  --gds-surface-2:  #1C1F28;
  --gds-border:     rgba(255,255,255,0.07);
  --gds-border-2:   rgba(255,255,255,0.12);
  --gds-text:       rgba(255,255,255,0.94);
  --gds-text-2:     rgba(255,255,255,0.62);
  --gds-text-3:     rgba(255,255,255,0.38);
  --gds-radius-sm:  8px;
  --gds-radius-md:  12px;
  --gds-radius-lg:  16px;
  --gds-radius-xl:  20px;
  --gds-shadow-card: 0 2px 16px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.25);
  --gds-shadow-hero: 0 8px 48px rgba(0,0,0,0.55);
  /* Topic palette */
  --gds-conflict:   #E05A4D;
  --gds-health:     #E0568A;
  --gds-economy:    #5E6AD2;
  --gds-climate:    #3FA34D;
  --gds-trade:      #E8923E;
  --gds-politics:   #9B5DE5;
}

/* ── Page shell ─────────────────────────────────────────────── */
.gt2-page {
  font-family: var(--gds-font);
  color: var(--gds-text);
  min-height: 100%;
  padding-bottom: 0;
  background: var(--g-bg, #1C1C1E);
}

/* ── Section wrapper ─────────────────────────────────────────── */
.gt2-section {
  padding: 0 16px 32px;
}

.gt2-section-hd {
  padding-bottom: 14px;
}

.gt2-section-title {
  font-family: var(--gds-font);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gds-text);
  margin: 0 0 2px;
  line-height: 1.2;
}

.gt2-section-sub {
  font-size: 13px;
  color: var(--gds-text-3);
  margin: 0;
  line-height: 1.4;
  font-weight: 400;
}

/* ── Hero card ──────────────────────────────────────────────── */
.gt2-hero {
  position: relative;
  min-height: 340px;
  background-size: cover;
  background-position: center top;
  cursor: pointer;
  overflow: hidden;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  -webkit-tap-highlight-color: transparent;
  transition: filter 0.18s;
}
.gt2-hero:active { filter: brightness(0.94); }

/* Sober variant: no hover brightening, darker overlay */
.gt2-hero--sober { cursor: default; }
.gt2-hero--sober:active { filter: none; }

.gt2-hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.gt2-hero-body {
  position: relative;
  z-index: 2;
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gt2-hero-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
}

.gt2-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gt2-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid transparent;
  line-height: 1.4;
  text-transform: uppercase;
}

.gt2-pill--region {
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

.gt2-hero-title {
  font-family: var(--gds-font);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}

.gt2-hero-summary {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gt2-hero-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.42);
  font-weight: 500;
}

.gt2-meta-dot {
  opacity: 0.5;
}

.gt2-hero-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 9px 18px;
  border-radius: var(--gds-radius-md);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.85);
  font-family: var(--gds-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.gt2-hero-cta:hover { background: rgba(255,255,255,0.16); transform: translateY(-1px); }
.gt2-hero-cta:active { transform: translateY(0); }
.gt2-hero-cta--sober {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
}
.gt2-hero-cta--sober:hover { background: rgba(255,255,255,0.10); transform: none; }

/* Hero skeleton */
.gt2-hero-skeleton {
  min-height: 340px;
  background: var(--gds-surface);
  position: relative;
  overflow: hidden;
}
.gt2-skeleton-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.04) 50%,
    rgba(255,255,255,0) 100%);
  animation: gt2-shimmer 1.6s infinite;
}
@keyframes gt2-shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* ── Learning blocks ─────────────────────────────────────────── */
.gt2-learn-section {
  padding: 4px 16px 28px;
}

.gt2-learn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gt2-learn-block {
  background: var(--gds-surface);
  border: 1px solid var(--gds-border);
  border-radius: var(--gds-radius-lg);
  padding: 14px 14px 16px;
  position: relative;
  overflow: hidden;
}

.gt2-learn-block--sober {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
}

.gt2-learn-block--facts {
  grid-column: 1 / -1;
}

.gt2-learn-accent {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 8px;
  opacity: 0.85;
}

.gt2-learn-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gds-text-3);
  margin-bottom: 6px;
}

.gt2-learn-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--gds-text-2);
  margin: 0;
}

.gt2-learn-facts {
  margin: 0;
  padding: 0 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gt2-learn-facts li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--gds-text-2);
}

/* ── Story grid ──────────────────────────────────────────────── */
.gt2-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ── Story card ──────────────────────────────────────────────── */
.gt2-scard {
  border-radius: var(--gds-radius-lg);
  overflow: hidden;
  background: var(--gds-surface);
  border: 1px solid var(--gds-border);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--gds-shadow-card);
}
.gt2-scard:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0,0,0,0.55); }
.gt2-scard--sober:hover { transform: none; box-shadow: var(--gds-shadow-card); }
.gt2-scard:active { transform: translateY(0); }

/* Large card spans both columns */
.gt2-scard--large {
  grid-column: 1 / -1;
}

.gt2-scard-img-wrap {
  position: relative;
  overflow: hidden;
}
.gt2-scard--large .gt2-scard-img-wrap  { height: 180px; }
.gt2-scard--medium .gt2-scard-img-wrap { height: 130px; }
.gt2-scard--small .gt2-scard-img-wrap  { height: 100px; }

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

.gt2-scard-gradient {
  width: 100%;
  height: 100%;
}

.gt2-scard-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.55) 100%);
}
.gt2-scard-img-overlay--sober {
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.60) 100%);
}

.gt2-scard-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 99px;
  border: 1px solid transparent;
}

.gt2-scard-body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gt2-scard-title {
  font-family: var(--gds-font);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--gds-text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gt2-scard--large .gt2-scard-title {
  font-size: 15px;
  -webkit-line-clamp: 2;
}

.gt2-scard-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--gds-text-3);
  font-weight: 500;
}

.gt2-scard-country {
  color: var(--gds-text-3);
}
.gt2-scard-time {
  color: var(--gds-text-3);
}

/* ── Daily row: quiz · fact · globe ─────────────────────────── */
.gt2-daily-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gt2-daily-card {
  border-radius: var(--gds-radius-lg);
  border: 1px solid var(--gds-border);
  padding: 18px 18px 20px;
  background: var(--gds-surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--gds-shadow-card);
}

.gt2-daily-card-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gds-text-3);
}

/* Quiz */
.gt2-daily-card--quiz {
  background: linear-gradient(135deg, rgba(94,106,210,0.12) 0%, var(--gds-surface) 100%);
  border-color: rgba(94,106,210,0.20);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.gt2-daily-card--quiz:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0,0,0,0.50); }
.gt2-daily-card--quiz:active { transform: translateY(0); }
.gt2-daily-card--quiz .gt2-daily-card-eyebrow { color: rgba(157,110,255,0.75); }

.gt2-daily-card-q {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--gds-text);
  margin: 0;
  font-style: italic;
}

.gt2-daily-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: rgba(157,110,255,0.85);
  margin-top: 4px;
}

/* Fact */
.gt2-daily-card--fact {
  background: linear-gradient(135deg,
    rgba(var(--gt2-fact-rgb, 94,106,210), 0.10) 0%,
    var(--gds-surface) 100%);
  border-color: rgba(var(--gt2-fact-rgb, 94,106,210), 0.18);
}

.gt2-daily-fact-stat {
  font-family: var(--gds-font);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gds-text);
  line-height: 1;
}

.gt2-daily-fact-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--gds-text-2);
  margin: 0;
}

.gt2-daily-card-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--gds-text-2);
  margin: 0;
}

/* Globe */
.gt2-daily-card--globe {
  background: linear-gradient(135deg, rgba(63,163,77,0.09) 0%, var(--gds-surface) 100%);
  border-color: rgba(63,163,77,0.18);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.gt2-daily-card--globe:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0,0,0,0.50); }
.gt2-daily-card--globe:active { transform: translateY(0); }
.gt2-daily-card--globe .gt2-daily-card-eyebrow { color: rgba(63,163,77,0.75); }
.gt2-daily-card--globe .gt2-daily-card-cta { color: rgba(63,163,77,0.85); }

.gt2-globe-card-icon {
  color: rgba(63,163,77,0.55);
  margin: 4px 0;
}
.gt2-globe-card-icon svg { display: block; }

/* ── Topic pills ─────────────────────────────────────────────── */
.gt2-topics-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gt2-topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.gt2-topic-pill:hover {
  background: rgba(var(--gt2-pill-rgb, 255,255,255), 0.10);
  border-color: rgba(var(--gt2-pill-rgb, 255,255,255), 0.22);
}
.gt2-topic-pill:active { opacity: 0.75; }

.gt2-topic-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gt2-topic-pill-name {
  font-family: var(--gds-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--gds-text-2);
  letter-spacing: 0.01em;
}

.gt2-topic-pill-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--gds-text-3);
}

/* ── Bottom pad ──────────────────────────────────────────────── */
.gt2-bottom-pad {
  height: 48px;
}

/* ============================================================
   PHASE 1 — DESKTOP (≥1024px) OVERRIDES
   Within the body.desktop grid the content area is to the
   right of the 220px sidebar. Max-content 1080px, centered.
   ============================================================ */
@media (min-width: 1024px) {

  /* Reset phone-specific padding and constrain content */
  body.desktop.tab-today .gt2-page {
    padding: 0;
    max-width: none;
  }

  /* Hero: full content width, editorial tall */
  body.desktop.tab-today .gt2-hero {
    min-height: 520px;
    max-height: 600px;
    border-radius: 0;
  }

  body.desktop.tab-today .gt2-hero-body {
    padding: 40px 64px 48px;
    max-width: 860px;
    gap: 12px;
  }

  body.desktop.tab-today .gt2-hero-title {
    font-size: 38px;
    line-height: 1.12;
    letter-spacing: -0.03em;
    max-width: 740px;
  }

  body.desktop.tab-today .gt2-hero-summary {
    font-size: 16px;
    line-height: 1.6;
    max-width: 640px;
    -webkit-line-clamp: 4;
  }

  /* Sections: inner max-width, centered */
  body.desktop.tab-today .gt2-section,
  body.desktop.tab-today .gt2-learn-section {
    padding-left: 64px;
    padding-right: 64px;
    max-width: 1200px;
    box-sizing: border-box;
  }

  body.desktop.tab-today .gt2-section-title { font-size: 22px; }

  /* Story grid: 3-column on desktop */
  body.desktop.tab-today .gt2-story-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Large card: single column (first slot) */
  body.desktop.tab-today .gt2-scard--large {
    grid-column: 1 / 1;
    grid-row: 1 / 3;
  }

  body.desktop.tab-today .gt2-scard--large .gt2-scard-img-wrap { height: 100%; min-height: 200px; }

  body.desktop.tab-today .gt2-scard--medium .gt2-scard-img-wrap { height: 150px; }

  /* Learning blocks: 3 cols on desktop */
  body.desktop.tab-today .gt2-learn-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  body.desktop.tab-today .gt2-learn-block--facts { grid-column: auto; }

  /* Daily row: horizontal on desktop */
  body.desktop.tab-today .gt2-daily-row {
    flex-direction: row;
    align-items: stretch;
  }
  body.desktop.tab-today .gt2-daily-card {
    flex: 1;
  }

  /* Topics: row */
  body.desktop.tab-today .gt2-topics-wrap {
    flex-wrap: wrap;
  }
  body.desktop.tab-today .gt2-topic-pill {
    padding: 9px 18px;
  }
}

/* ============================================================
   PHASE 1 — TABLET (768–1023px) OVERRIDES
   ============================================================ */
@media (min-width: 768px) and (max-width: 1023px) {

  .gt2-hero { min-height: 420px; }
  .gt2-hero-body { padding: 28px 32px 36px; gap: 12px; }
  .gt2-hero-title { font-size: 28px; }

  .gt2-section,
  .gt2-learn-section { padding-left: 24px; padding-right: 24px; }

  /* 3-col story grid on tablet */
  .gt2-story-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .gt2-scard--large { grid-column: 1 / -1; }
  .gt2-scard--large .gt2-scard-img-wrap { height: 220px; }
  .gt2-scard--medium .gt2-scard-img-wrap { height: 150px; }

  /* Daily row: horizontal on tablet */
  .gt2-daily-row { flex-direction: row; }
  .gt2-daily-card { flex: 1; }

  /* 3-col learn grid */
  .gt2-learn-grid { grid-template-columns: 1fr 1fr 1fr; }
  .gt2-learn-block--facts { grid-column: auto; }
}

/* END GLOBLY PHASE 1 */

/* ═══════════════════════════════════════════════════════════════════════════════
   GLOBLY — PHASE 2 REDESIGN
   Story detail (gbd2-*) · Feed grid (gf2-*) · Play hub (ph overrides) ·
   Globe layout (gs2-*)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── STORY DETAIL (BriefDetailScreen) ─────────────────────────────────────── */

.gbd2-screen {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 96vh;
  background: #0E0E11;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.50);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: gbd-slidein 0.30s cubic-bezier(0.22,1,0.36,1) both;
}
.gbd2-screen--sober { background: #0A0A0D; }

/* Hero */
.gbd2-hero {
  position: relative;
  flex-shrink: 0;
  min-height: 280px;
  background-size: cover;
  background-position: center top;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.gbd2-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(10,10,14,0.97) 0%,
    rgba(10,10,14,0.72) 32%,
    rgba(10,10,14,0.30) 62%,
    rgba(10,10,14,0.12) 100%
  );
}
.gbd2-hero-overlay--sober {
  background: linear-gradient(
    0deg,
    rgba(6,6,8,0.98) 0%,
    rgba(6,6,8,0.78) 35%,
    rgba(6,6,8,0.42) 65%,
    rgba(6,6,8,0.15) 100%
  );
}

/* Floating controls */
.gbd2-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 14px 0;
  display: flex;
  align-items: center;
  z-index: 2;
}
.gbd2-ctrl-spacer { flex: 1; }
.gbd2-ctrl-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.gbd2-ctrl-btn:hover { background: rgba(0,0,0,0.60); }

/* Hero body (bottom of hero) */
.gbd2-hero-body {
  position: relative;
  z-index: 1;
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gbd2-hero-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.gbd2-pill {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.10);
}
.gbd2-pill--region {
  color: rgba(255,255,255,0.60);
  background: rgba(255,255,255,0.08);
}
.gbd2-hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0;
}
.gbd2-hero-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
}
.gbd2-meta-dot { opacity: 0.4; }

/* Scroll area */
.gbd2-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 8px;
}
.gbd2-scroll-pad { height: 40px; }
.gbd2-scroll::-webkit-scrollbar { width: 3px; }
.gbd2-scroll::-webkit-scrollbar-track { background: transparent; }
.gbd2-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

/* Stat row */
.gbd2-stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gbd2-stat-chip {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.04em;
}
.gbd2-depth-toggle {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.gbd2-depth-btn {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: rgba(255,255,255,0.40);
  cursor: pointer;
  transition: all 0.15s;
}
.gbd2-depth-btn--on {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.20);
}

/* Content sections */
.gbd2-section {
  padding: 18px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gbd2-section + .gbd2-section { border-top: 1px solid rgba(255,255,255,0.05); }
.gbd2-section-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.gbd2-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gbd2-bullet {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.88);
  line-height: 1.55;
  padding-left: 16px;
  position: relative;
}
.gbd2-bullet::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.30);
}
.gbd2-body-text {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.82);
  line-height: 1.60;
  margin: 0;
}

/* Coverage accordion */
.gbd2-coverage-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  transition: background 0.15s;
}
.gbd2-coverage-toggle:hover { background: rgba(255,255,255,0.07); }
.gbd2-chev {
  color: rgba(255,255,255,0.35);
  transition: transform 0.18s;
  flex-shrink: 0;
}
.gbd2-chev--open { transform: rotate(180deg); }
.gbd2-coverage-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gbd2-coverage-item { display: block; }
.gbd2-coverage-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.12s;
}
.gbd2-coverage-link:hover { background: rgba(255,255,255,0.05); }
.gbd2-cov-name {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
}
.gbd2-cov-title {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.42);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Timeline */
.gbd2-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.gbd2-tl-item {
  display: grid;
  grid-template-columns: 68px 20px 1fr;
  gap: 0 8px;
  align-items: flex-start;
  padding: 6px 0;
  text-decoration: none;
  color: inherit;
}
.gbd2-tl-date {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.32);
  padding-top: 3px;
  text-align: right;
}
.gbd2-tl-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 5px;
  position: relative;
}
.gbd2-tl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  flex-shrink: 0;
}
.gbd2-tl-item--main .gbd2-tl-dot {
  width: 9px;
  height: 9px;
  background: rgba(255,255,255,0.70);
  margin-top: -1px;
}
.gbd2-tl-item:not(:last-child) .gbd2-tl-line::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: calc(100% + 12px);
  background: rgba(255,255,255,0.10);
}
.gbd2-tl-title {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.60);
  line-height: 1.4;
}
.gbd2-tl-item--main .gbd2-tl-title { color: rgba(255,255,255,0.82); }
.gbd2-tl-item:hover .gbd2-tl-title { color: rgba(255,255,255,0.90); }

/* Copyright */
.gbd2-copyright {
  margin: 18px 20px 0;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.20);
}

/* CTA footer */
.gbd2-foot {
  flex-shrink: 0;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #0E0E11;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.gbd2-read-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.88);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
  border: 1px solid rgba(255,255,255,0.12);
}
.gbd2-read-btn:hover { background: rgba(255,255,255,0.15); }

/* Desktop: story detail expands to centered panel */
@media (min-width: 768px) {
  .gbd-backdrop { align-items: center; }
  .gbd2-screen {
    max-width: 680px;
    height: 88vh;
    border-radius: 16px;
  }
  .gbd2-hero { min-height: 340px; }
  .gbd2-hero-title { font-size: 26px; }
  .gbd2-hero-body { padding: 0 32px 28px; }
  .gbd2-stat-row,
  .gbd2-section,
  .gbd2-copyright { padding-left: 32px; padding-right: 32px; }
  .gbd2-foot { padding-left: 32px; padding-right: 32px; }
}

/* ─── FEED GRID (gf2-*) ────────────────────────────────────────────────────── */

.gf2-page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Filter pills scroll row */
.gf2-filters {
  flex-shrink: 0;
  padding: 14px 16px 0;
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(to bottom, #0E0E11 80%, transparent 100%);
}
.gf2-filter-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 12px;
}
.gf2-filter-scroll::-webkit-scrollbar { display: none; }
.gf2-filter {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.50);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.gf2-filter:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.80); }
.gf2-filter--on {
  font-weight: 600;
}

/* Card grid */
.gf2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 12px;
  flex: 1;
}

/* Card wrappers for size and save button */
.gf2-card-wrap {
  position: relative;
}
.gf2-card-wrap--large {
  grid-column: 1 / -1;
}
.gf2-card-wrap--medium {}
.gf2-card-wrap--small {}

/* Save button overlay */
.gf2-save-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.60);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  pointer-events: all;
}
.gf2-save-btn:hover { background: rgba(0,0,0,0.62); color: #fff; }
.gf2-save-btn--on { color: #fff; background: rgba(0,0,0,0.55); }

/* Large card taller image */
.gf2-card-wrap--large .gt2-scard-img-wrap { height: 240px; }
.gf2-card-wrap--medium .gt2-scard-img-wrap { height: 150px; }
.gf2-card-wrap--small  .gt2-scard-img-wrap { height: 110px; }

/* Empty state */
.gf2-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 32px;
  text-align: center;
}
.gf2-empty-icon { opacity: 0.4; }
.gf2-empty-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  max-width: 260px;
  line-height: 1.5;
}

.gf2-bottom-pad { height: 32px; }

/* Desktop feed grid */
@media (min-width: 1024px) {
  body.desktop.tab-feed .gf2-filters {
    padding-left: 40px;
    padding-right: 40px;
  }
  body.desktop.tab-feed .gf2-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 16px 40px;
    gap: 14px;
  }
  body.desktop.tab-feed .gf2-card-wrap--large {
    grid-column: 1 / -1;
  }
  body.desktop.tab-feed .gf2-card-wrap--large .gt2-scard-img-wrap { height: 300px; }
  body.desktop.tab-feed .gf2-card-wrap--medium .gt2-scard-img-wrap { height: 180px; }
}

/* ─── PLAY HUB — visual upgrades (preserve all logic) ──────────────────────── */

/* Richer hero card */
.ph-hero {
  border: none !important;
  border-radius: 14px !important;
}
.ph-hero-bg {
  background: linear-gradient(135deg,
    #1a0a00 0%,
    #3d1a00 30%,
    #6b3100 58%,
    #3a1800 80%,
    #110600 100%
  ) !important;
}
.ph-hero-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
}
.ph-hero-sub {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  color: rgba(255,255,255,0.55) !important;
}
.ph-hero-btn {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 10px 24px !important;
  border-radius: 10px !important;
  background: #E0A458 !important;
  color: #0A0500 !important;
}
.ph-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #fff !important;
}
.ph-sub {
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  color: rgba(255,255,255,0.45) !important;
}
/* Game cards */
.ph-card {
  border: none !important;
  border-radius: 14px !important;
}
.ph-card--country { background: transparent !important; }
.ph-card--hilo    { background: transparent !important; }
.ph-card--country .ph-card-bg {
  background: linear-gradient(135deg,
    #050514 0%,
    #0d0d40 35%,
    #1a1a80 62%,
    #0a0a35 82%,
    #020208 100%
  ) !important;
}
.ph-card--hilo .ph-card-bg {
  background: linear-gradient(135deg,
    #011207 0%,
    #023d16 35%,
    #046b27 62%,
    #022a0f 82%,
    #000a04 100%
  ) !important;
}
.ph-card-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
}
.ph-card-sub {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  color: rgba(255,255,255,0.48) !important;
}
.ph-card-btn {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 8px 20px !important;
  border-radius: 8px !important;
}

/* Desktop play hub */
@media (min-width: 1024px) {
  body.desktop.tab-play .ph-screen {
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 0 32px;
  }
  body.desktop.tab-play .ph-title { font-size: 40px !important; }
}

/* ─── GLOBE PAGE (gs2-*) ────────────────────────────────────────────────────── */

.gs2-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.gs2-header {
  flex-shrink: 0;
  padding: 16px 16px 8px;
}
.gs2-title {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}
.gs2-sub {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  margin: 0;
}

/* Globe + sidebar layout */
.gs2-layout {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.gs2-globe-wrap {
  position: absolute;
  inset: 0;
}
.gs2-canvas {
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 46%, #0d2444 0%, #071428 55%, #03080f 100%);
}
.gs2-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.28);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  pointer-events: none;
  z-index: 5;
}

/* Sidebar: floats over globe on mobile, sits beside on desktop */
.gs2-sidebar {
  position: absolute;
  bottom: 16px;
  left: 12px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 180px;
}
.gs2-legend {
  background: rgba(8,8,14,0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 12px 14px;
}
.gs2-legend-head {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.36);
  margin-bottom: 8px;
}
.gs2-legend-bar {
  height: 5px;
  border-radius: 3px;
  margin-bottom: 9px;
  background: linear-gradient(to right,
    hsl(0,70%,38%),
    hsl(30,70%,38%),
    hsl(60,70%,38%),
    hsl(90,70%,38%),
    hsl(120,70%,38%)
  );
}
.gs2-legend-rows { display: flex; flex-direction: column; gap: 5px; }
.gs2-legend-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.gs2-legend-sw {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
  display: inline-block;
}
.gs2-legend-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  flex: 1;
  white-space: nowrap;
}
.gs2-legend-range {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: rgba(255,255,255,0.28);
  white-space: nowrap;
}
.gs2-legend-src {
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: rgba(255,255,255,0.22);
}

/* Hovered country readout */
.gs2-readout {
  background: rgba(8,8,14,0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gs2-readout--idle { border-style: dashed; border-color: rgba(255,255,255,0.07); }
.gs2-readout-idle-text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  line-height: 1.4;
}
.gs2-readout-name {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.gs2-readout-hdi {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.gs2-readout-val {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.gs2-readout-key {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.gs2-readout-band {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
}
.gs2-readout-nodata {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.32);
}

/* Desktop globe — sidebar beside the globe */
@media (min-width: 1024px) {
  body.desktop.tab-globe .gs2-page {
    overflow: visible;
  }
  body.desktop.tab-globe .gs2-header {
    padding: 24px 40px 12px;
  }
  body.desktop.tab-globe .gs2-title { font-size: 28px; }
  body.desktop.tab-globe .gs2-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 0;
    position: relative;
    overflow: hidden;
    flex: 1;
  }
  body.desktop.tab-globe .gs2-globe-wrap {
    position: relative;
    inset: unset;
    height: 100%;
  }
  body.desktop.tab-globe .gs2-sidebar {
    position: relative;
    bottom: unset;
    left: unset;
    max-width: none;
    padding: 20px 24px 20px 0;
    border-left: 1px solid rgba(255,255,255,0.06);
    background: rgba(8,8,14,0.60);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  body.desktop.tab-globe .gs2-legend {
    border: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0 0 0 20px;
    border-radius: 0;
  }
  body.desktop.tab-globe .gs2-readout {
    margin: 0 24px 0 20px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: rgba(255,255,255,0.07);
  }
  body.desktop.tab-globe .gs2-readout--idle {
    background: transparent;
  }
}

/* END GLOBLY PHASE 2 */
