/* ─────────────────────────────────────────────────────────────────────────
   Gently Yonder — style-v2.css
   Mobile-first, vanilla CSS. No external dependencies.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --bg:          #f6f2ea;
  --surface:     #ffffff;
  --surface-soft:#fbfaf7;
  --ink:         #172033;
  --muted:       #647084;
  --line:        #e6dfd3;
  --line-dark:   #d7cbbb;
  --navy:        #172033;
  --navy-2:      #25314a;
  --blue:        #2f5f8f;
  --gold:        #b8945f;
  --gold-soft:   #efe4d1;
  --shadow:      0 18px 50px rgba(23,32,51,.10);
  --shadow-soft: 0 10px 30px rgba(23,32,51,.07);
  --radius-lg:   28px;
  --radius-md:   20px;
  --radius-sm:   14px;
  --trans:       0.22s ease;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
               BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ── Global page background ─────────────────────────────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(246,242,234,.90), rgba(246,242,234,.96)),
    radial-gradient(circle at 18% 22%, rgba(184,148,95,.20), transparent 28rem),
    radial-gradient(circle at 82% 14%, rgba(47,95,143,.13),  transparent 30rem),
    repeating-linear-gradient(18deg,
      rgba(23,32,51,.035) 0px, rgba(23,32,51,.035) 1px, transparent 1px, transparent 46px),
    repeating-linear-gradient(104deg,
      rgba(184,148,95,.045) 0px, rgba(184,148,95,.045) 1px, transparent 1px, transparent 64px),
    var(--bg);
}

/* ── Animated mesh layer — slowly drifting soft gradient blobs ──────────── */
body::after {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40rem 30rem at 20% 80%, rgba(47, 95, 143, 0.10), transparent 70%),
    radial-gradient(36rem 28rem at 80% 30%, rgba(184, 148, 95, 0.13), transparent 70%),
    radial-gradient(28rem 22rem at 50% 50%, rgba(184, 148, 95, 0.06), transparent 70%);
  filter: blur(20px);
  animation: meshDrift 28s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes meshDrift {
  0%   { transform: translate3d(0, 0, 0)        scale(1); }
  25%  { transform: translate3d(-2%, 1.5%, 0)   scale(1.06); }
  50%  { transform: translate3d(1.5%, -2%, 0)   scale(1.04); }
  75%  { transform: translate3d(-1%, -1.5%, 0)  scale(1.08); }
  100% { transform: translate3d(2%, 2%, 0)      scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}

/* ── Typography ─────────────────────────────────────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.label::before, .label::after {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
  opacity: .55;
}

h1 {
  max-width: 700px;
  margin: 18px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: .95;
  letter-spacing: -.055em;
  color: var(--navy);
}
h2, h3, h4 { color: var(--navy); letter-spacing: -.02em; }

.subtitle {
  max-width: 560px;
  margin: 0 0 34px;
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--muted);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.01em;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 24px rgba(23,32,51,.18);
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(23,32,51,.22);
}
.button.primary-glow {
  background: linear-gradient(135deg, #1e3560, var(--navy-2));
  box-shadow: 0 10px 24px rgba(23,32,51,.22), 0 0 0 0 rgba(184,148,95,0);
  animation: glowPulse 3.2s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(23,32,51,.20), 0 0 0 0 rgba(184,148,95,0); }
  50%       { box-shadow: 0 14px 32px rgba(23,32,51,.26), 0 0 22px 4px rgba(184,148,95,.22); }
}
.button.secondary {
  background: rgba(255,255,255,.72);
  color: var(--navy);
  border: 1px solid var(--line-dark);
  box-shadow: none;
  backdrop-filter: blur(10px);
  animation: none;
}
.button.secondary:hover {
  background: rgba(255,255,255,.92);
  box-shadow: 0 6px 18px rgba(23,32,51,.10);
}
.button.sm {
  min-height: 38px;
  padding: 9px 16px;
  font-size: .9rem;
}

.buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  /* Full-bleed cinematic hero — edge to edge, very tall */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 0;
  max-width: none;
  min-height: 88vh;
  padding: clamp(60px, 8vh, 120px) clamp(24px, 5vw, 80px);
  border-radius: 0;
  background: #0d1421;
  border: none;
  box-shadow: none;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg,
      rgba(13,20,33,.45) 0%,
      rgba(13,20,33,.30) 35%,
      rgba(13,20,33,.55) 75%,
      rgba(13,20,33,.85) 100%),
    url('https://images.unsplash.com/photo-1488085061387-422e29b40080?w=800&q=75&fm=webp&auto=format') center/cover no-repeat;
  pointer-events: none;
  animation: heroKenBurns 28s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  0%   { transform: scale(1.00) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1.5%, 1.5%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}
.hero .hero-inner {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 1100px;
}
.hero-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-center .label { justify-content: center; }
.hero-center .subtitle {
  margin-left: auto;
  margin-right: auto;
  max-width: 680px;
}
.hero-center .buttons { justify-content: center; }
.hero-center .hero-stats { justify-content: center; }

/* Scroll cue at bottom of hero */
.hero-scroll-cue {
  position: absolute;
  bottom: clamp(20px, 4vh, 40px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.78);
}
.scroll-cue-line {
  width: 1.5px;
  height: 38px;
  background: linear-gradient(to bottom, transparent 0%, rgba(229,199,107,.9) 100%);
}
.scroll-cue-label {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.hero-left { display: flex; flex-direction: column; }
.hero-left h1 { margin-bottom: 16px; }

/* ── Cinematic hero: legible text + CTAs on the dark photo ──────────────── */
.hero-cinematic .label {
  color: #E5C76B;
  font-size: 0.92rem;
  letter-spacing: 0.32em;
  margin-bottom: 28px;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.hero-cinematic .hero-headline {
  color: #ffffff;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 1000px;
  margin: 0 0 28px;
  text-shadow: 0 4px 36px rgba(0,0,0,.6), 0 2px 10px rgba(0,0,0,.4);
}
.hero-cinematic .subtitle {
  color: #e7edf5;
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  line-height: 1.6;
  margin-bottom: 40px;
  text-shadow: 0 1px 12px rgba(0,0,0,.5);
}
.hero-cinematic .buttons { margin-bottom: 44px; }
.hero-cinematic .hero-stats { margin-top: 0; gap: 36px; }
.hero-cinematic .hero-stats .stat { color: rgba(255,255,255,.86); font-size: 0.82rem; }
.hero-cinematic .hero-stats .stat span {
  color: #E5C76B;
  font-size: 1.85rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

.button.hero-cta-primary {
  background: linear-gradient(135deg, #E5C76B 0%, #C9A84C 100%);
  color: #15203a;
  border: none;
  min-height: 54px;
  padding: 16px 30px;
  font-size: 1.04rem;
  box-shadow: 0 14px 36px rgba(201,168,76,.40), 0 2px 6px rgba(0,0,0,.3);
  animation: none;
}
.button.hero-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(201,168,76,.55), 0 4px 10px rgba(0,0,0,.35);
}
.button.hero-cta-ghost {
  background: rgba(255,255,255,.10);
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,.55);
  min-height: 54px;
  padding: 16px 30px;
  font-size: 1.04rem;
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: none;
}
.button.hero-cta-ghost:hover {
  background: rgba(255,255,255,.20);
  border-color: rgba(255,255,255,.92);
  transform: translateY(-3px);
}

/* ── Checklist preview section (the widget, now standalone) ─────────────── */
.checklist-preview-section {
  background: linear-gradient(180deg, #f7efe2 0%, #fbf7ef 100%);
  padding: clamp(64px, 9vw, 110px) 0;
  border-bottom: 1px solid rgba(215,203,187,.5);
}
.checklist-preview-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.checklist-preview-intro .label { margin-bottom: 18px; }
.checklist-preview-intro h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--navy);
}
.checklist-preview-lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  max-width: 480px;
}
.hero-widget--standalone {
  margin: 0;
}
@media (max-width: 880px) {
  .checklist-preview-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Stats row */
.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  font-size: .78rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .02em;
}
.stat span {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 3px;
}

/* ── Hero widget ────────────────────────────────────────────────────────── */
.hero-widget {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: 0 24px 60px rgba(23,32,51,.13), 0 4px 12px rgba(23,32,51,.06);
  backdrop-filter: blur(10px);
  transition: box-shadow var(--trans), transform var(--trans);
}
.hero-widget:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 72px rgba(23,32,51,.16);
}

/* Window chrome dots */
.widget-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.widget-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line-dark);
}
.widget-dot:nth-child(1) { background: #ff6057; }
.widget-dot:nth-child(2) { background: #ffbd2e; }
.widget-dot:nth-child(3) { background: #27c93f; }
.widget-title {
  margin-left: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Chip rows */
.chip-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--line-dark);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
  white-space: nowrap;
}
.chip:hover { border-color: var(--gold); color: var(--navy); background: var(--gold-soft); }
.chip.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 12px rgba(23,32,51,.18);
}

/* Mock progress bar */
.mock-progress-wrap {
  margin: 14px 0 6px;
}
.mock-progress-track {
  height: 5px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.mock-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #d4a96a);
  border-radius: 99px;
  width: 0%;
  transition: width .7s cubic-bezier(.4,0,.2,1);
}
.mock-progress-text {
  font-size: .78rem;
  color: var(--muted);
  margin: 5px 0 12px;
}
.mock-progress-text strong { color: var(--navy); }

/* Mock checklist items */
.mock-items { margin-bottom: 18px; }
.mock-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: .86rem;
  color: #334155;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.mock-item.visible { opacity: 1; transform: none; }
.mock-item:last-child { border-bottom: none; }
.mock-item input[type="checkbox"] {
  flex-shrink: 0;
  width: 15px; height: 15px;
  margin-top: 2px;
  accent-color: var(--navy);
  cursor: default;
  pointer-events: none;
}
.mock-item.checked { color: var(--muted); text-decoration: line-through; opacity: .5; }
.mock-item.checked.visible { opacity: .45; }

.mock-cta { width: 100%; text-align: center; margin-top: 4px; }

/* ── Scroll-reveal ──────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
[data-reveal].revealed { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .mock-item,
  .mock-progress-fill,
  .button,
  .card,
  .hero-widget { transition: none !important; animation: none !important; transform: none !important; opacity: 1 !important; }
}

/* ── Main layout ────────────────────────────────────────────────────────── */
main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Disclosure ─────────────────────────────────────────────────────────── */
.disclosure {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 32px;
  font-size: .88rem;
  color: var(--muted);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}
.disclosure p { margin: 0; }

/* ── Section shells ─────────────────────────────────────────────────────── */
.categories, .list, .about, .featured-guide, .money-path, .article {
  position: relative;
}
.categories h2, .list h2, .featured-guide h2, .money-path h2, .about h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.05;
  margin: 8px 0 20px;
}

/* ── Cards & surfaces ───────────────────────────────────────────────────── */
.card, .list, .about, .featured-guide, .money-path, .article {
  background: rgba(255,255,255,.84);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}
.card {
  padding: 24px;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-dark);
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.card p  { margin: 0 0 14px; color: var(--muted); }
.card a, footer a, .related-link, .back-link a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}
.card a:hover, footer a:hover, .related-link:hover, .back-link a:hover {
  text-decoration: underline;
}

/* ── Grid ───────────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 18px;
}

/* ── Featured / Money-path sections ────────────────────────────────────── */
.featured-guide, .money-path {
  margin: 32px auto;
  padding: 34px;
  overflow: hidden;
}
.featured-guide {
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(251,250,247,.86)),
    var(--surface);
}
.money-path {
  border-color: rgba(184,148,95,.35);
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(239,228,209,.42)),
    var(--surface);
}
.featured-guide p, .money-path > p, .about p {
  color: var(--muted);
  line-height: 1.75;
  max-width: 780px;
}

/* ── How it works stepper ───────────────────────────────────────────────── */
.how-it-works {
  margin: 36px 0;
  padding: 36px 36px 28px;
  background: rgba(255,255,255,.84);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}
.how-it-works > .label { margin-bottom: 6px; }
.how-it-works > h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 8px 0 28px;
  line-height: 1.05;
}

.steps-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.step-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--surface-soft);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color var(--trans), background var(--trans), box-shadow var(--trans);
}
.step-btn:hover {
  border-color: var(--line-dark);
  background: #fff;
  box-shadow: 0 4px 14px rgba(23,32,51,.07);
}
.step-btn.active {
  border-color: var(--navy);
  background: var(--navy);
  box-shadow: 0 8px 22px rgba(23,32,51,.18);
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: #7a5a2c;
  font-size: .75rem;
  font-weight: 900;
  flex-shrink: 0;
}
.step-btn.active .step-num {
  background: rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
}
.step-label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.step-btn.active .step-label { color: #fff; }
.step-desc {
  font-size: .74rem;
  color: var(--muted);
  line-height: 1.4;
}
.step-btn.active .step-desc { color: rgba(255,255,255,.72); }

.steps-content { min-height: 90px; }
.step-panel {
  display: none;
  animation: fadeUp .3s ease;
}
.step-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.step-panel-text h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}
.step-panel-text p {
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
  font-size: .97rem;
}
.step-panel-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-soft), #faf5ec);
  border-radius: var(--radius-md);
  border: 1px solid rgba(184,148,95,.25);
  min-height: 110px;
  font-size: 2.8rem;
  letter-spacing: .1em;
}

/* ── Popular topics filter ──────────────────────────────────────────────── */
.topics-section {
  margin: 36px 0;
}
.topics-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.topics-header h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0;
  line-height: 1.05;
}
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.filter-chip {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line-dark);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--gold); color: var(--navy); }
.filter-chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 4px 14px rgba(23,32,51,.18);
}

/* Cards that get filtered */
.topic-card {
  transition: opacity .25s ease, transform .25s ease, display .25s ease;
}
.topic-card.hidden {
  display: none;
}

/* ── Product sections ───────────────────────────────────────────────────── */
.list {
  margin-top: 26px;
  padding: 34px;
}
.list > p { color: var(--muted); margin-top: -4px; }
.list ul { display: grid; gap: 8px; padding-left: 1.25rem; }
.list li { color: #334155; }
.list h3 {
  margin-top: 30px;
  font-size: 1.0rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.product-card {
  background: linear-gradient(180deg, #fff, var(--surface-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(23,32,51,.05);
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184,148,95,.5);
  box-shadow: 0 18px 36px rgba(23,32,51,.10);
}
.product-card h4 { margin: 0 0 8px; font-size: 1.02rem; }
.product-card p  { margin: 0 0 16px; color: var(--muted); font-size: .94rem; flex: 1; }

.product-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  font-size: .88rem;
  box-shadow: 0 8px 18px rgba(23,32,51,.16);
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
}
.product-link:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(23,32,51,.18);
}

/* ── About section ──────────────────────────────────────────────────────── */
.about { padding: 30px; margin-top: 32px; }

/* ── Article pages ──────────────────────────────────────────────────────── */
.article-hero { padding-bottom: 46px; }
.article {
  max-width: 850px;
  margin: 42px auto;
  padding: clamp(28px,5vw,48px);
}
.article h1, .article h2 { font-family: Georgia, "Times New Roman", serif; }
.article h2 { margin-top: 36px; font-size: 1.65rem; }
.article p, .article li { color: #334155; line-height: 1.8; }
.article ol, .article ul { padding-left: 1.4rem; }
.article li + li { margin-top: 6px; }

.tip-box {
  margin-top: 34px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f5ead8, #fbf7ef);
  border: 1px solid rgba(184,148,95,.35);
  color: #533f22;
  line-height: 1.75;
}
.back-link { margin-top: 34px; }
.article-products { margin-top: 20px; }

/* Article figures (inline photos) ─────────────────────────────────── */
.article-figure {
  margin: 28px auto;
  padding: 0;
  max-width: 560px;
}
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(23, 32, 51, 0.10), 0 1px 3px rgba(23, 32, 51, 0.05);
}
.article-figure figcaption {
  margin-top: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #64748b;
  text-align: center;
}
.article-figure .photo-credit {
  display: inline-block;
  margin-left: 6px;
  font-style: normal;
  font-size: 0.7rem;
  color: #94a3b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.article-figure .photo-credit a {
  color: #94a3b8;
  text-decoration: none;
  border-bottom: 1px dotted #cbd5e1;
}
.article-figure .photo-credit a:hover { color: #475569; }

/* Wide variant: slightly larger but still constrained */
.article-figure.figure-wide {
  max-width: 640px;
}
.article-figure.figure-wide img {
  max-height: 360px;
}

@media (max-width: 640px) {
  .article-figure,
  .article-figure.figure-wide { max-width: 100%; }
  .article-figure img { max-height: 240px; }
}

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #7a5a2c;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.related-link { display: inline-block; margin-top: 10px; font-size: .92rem; }

/* ── Sticky mobile CTA ──────────────────────────────────────────────────── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  padding: 12px 20px 16px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: 0 -4px 24px rgba(23,32,51,.18);
  border-top: 1px solid rgba(255,255,255,.1);
}
.sticky-cta .button { width: 100%; font-size: 1rem; }
.sticky-cta.hidden { display: none !important; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 54px 24px;
  background:
    linear-gradient(135deg, rgba(23,32,51,.96), rgba(37,49,74,.96)),
    var(--navy);
  color: rgba(255,255,255,.82);
}
footer p { margin: 0; }

/* ─────────────────────────────────────────────────────────────────────────
   CHECKLIST GENERATOR PAGE — inline styles
   ───────────────────────────────────────────────────────────────────────── */

/* Trip progress steps */
.trip-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
}
.tp-step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.tp-step + .tp-step::before {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--line);
  margin: 0 8px;
}
.tp-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 900;
  flex-shrink: 0;
  transition: background var(--trans), border-color var(--trans);
  border: 2px solid var(--line-dark);
  background: var(--surface-soft);
  color: var(--muted);
}
.tp-dot.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.tp-dot.done {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: #7a5a2c;
}
.tp-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.tp-step.active .tp-label { color: var(--navy); }

/* Form layout */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 20px;
  margin: 24px 0 28px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field input[type="text"],
.form-field select {
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
  -webkit-appearance: none;
}
.form-field input[type="text"]:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47,95,143,.14);
}
.form-field input[type="text"]::placeholder { color: var(--muted); opacity: .65; }
.form-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23647084' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.form-field .field-hint {
  font-size: .76rem;
  color: var(--muted);
  margin-top: -2px;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
}

/* Option chips (travel style, flight length) */
.option-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.option-chip {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-dark);
  background: var(--surface-soft);
  color: var(--navy);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  min-width: 80px;
}
.option-chip span { font-size: 1.3rem; line-height: 1; }
.option-chip:hover { border-color: var(--gold); background: var(--gold-soft); }
.option-chip.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 18px rgba(23,32,51,.18);
}

/* Checklist output */
.cl-summary {
  margin: 28px 0 0;
  padding: 24px 28px;
  background: rgba(255,255,255,.84);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}
.cl-summary-text {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--navy);
  margin: 6px 0 6px;
}
.cl-progress-text {
  font-size: .9rem;
  color: var(--muted);
  margin: 0 0 14px;
}
.cl-progress-bar {
  height: 6px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 4px;
}
.cl-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy), var(--blue));
  border-radius: 99px;
  width: 0%;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}

.cl-items {
  display: flex;
  flex-direction: column;
  margin: 16px 0 4px;
}
.cl-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity .2s ease;
}
.cl-item:last-child { border-bottom: none; }
.cl-cb {
  flex-shrink: 0;
  width: 17px; height: 17px;
  margin-top: 4px;
  cursor: pointer;
  accent-color: var(--navy);
}
.cl-lbl {
  flex: 1;
  font-size: .96rem;
  color: #334155;
  line-height: 1.55;
  cursor: pointer;
  transition: opacity .18s ease;
}
.cl-lbl.done { opacity: .38; text-decoration: line-through; }

.cl-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* Save bar */
.save-bar {
  margin: 16px 0 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(47,95,143,.07), rgba(255,255,255,.9));
  border: 1px solid rgba(47,95,143,.22);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.save-bar-text strong { display: block; font-size: .96rem; color: var(--navy); }
.save-bar-text p { margin: 4px 0 0; font-size: .84rem; color: var(--muted); }
.save-bar-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }

/* Style panel */
.style-panel {
  margin: 16px 0 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f5ead8, #fbf7ef);
  border: 1px solid rgba(184,148,95,.35);
  border-radius: var(--radius-md);
  color: #533f22;
}
.style-panel strong {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.style-panel ul { margin: 0; padding-left: 1.1rem; font-size: .91rem; line-height: 1.75; }
.style-panel li + li { margin-top: 3px; }
.style-panel a { color: #7a5a2c; font-weight: 800; text-decoration: none; }
.style-panel a:hover { text-decoration: underline; }

/* Next-step cards */
.next-steps {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.next-steps-heading {
  font-size: 1.0rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 14px;
}
.next-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 14px;
}
.next-step-card {
  background: linear-gradient(135deg, rgba(239,228,209,.65), rgba(251,250,247,.85));
  border: 1px solid rgba(184,148,95,.28);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--trans), box-shadow var(--trans), transform var(--trans);
}
.next-step-card:hover {
  border-color: rgba(184,148,95,.55);
  box-shadow: 0 10px 24px rgba(23,32,51,.09);
  transform: translateY(-3px);
}
.next-step-card .ns-icon { font-size: 1.4rem; margin-bottom: 7px; }
.next-step-card h4 { margin: 0 0 5px; font-size: .95rem; color: var(--navy); line-height: 1.3; }
.next-step-card p  { margin: 0 0 12px; font-size: .84rem; color: var(--muted); line-height: 1.5; flex: 1; }
.next-step-card a  { font-size: .84rem; font-weight: 800; color: var(--blue); text-decoration: none; margin-top: auto; }
.next-step-card a:hover { text-decoration: underline; }

/* Output section animation */
.cl-section-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .45s ease, transform .45s ease;
}
.cl-section-reveal.visible { opacity: 1; transform: none; }

/* Generating spinner */
.generating {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px;
  background: rgba(255,255,255,.84);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-top: 28px;
  color: var(--muted);
  font-weight: 600;
}
.spinner {
  width: 22px; height: 22px;
  border: 2.5px solid var(--line-dark);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Print */
@media print {
  .hero, #form-section, .disclosure, footer,
  .cl-actions, .save-bar, .about, .tip-box,
  .sticky-cta { display: none !important; }
  body, body::before { background: white !important; }
  .list { box-shadow: none !important; border: 1px solid #ccc !important; }
  .cl-summary, .product-card, .next-step-card { box-shadow: none !important; }
  .style-panel { background: #f9f5ee !important; }
}

/* ─────────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .steps-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  .step-panel.active {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero.hero-cinematic {
    min-height: 78vh;
    padding: 48px 20px 80px;
    margin: 0;
    border-radius: 0;
  }
  .hero-cinematic .hero-headline {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
    letter-spacing: -.03em;
  }
  .hero-cinematic .subtitle { font-size: 1rem; }
  .hero-cinematic .hero-stats { gap: 22px; }
  .hero-cinematic .hero-stats .stat span { font-size: 1.45rem; }
  .hero-scroll-cue { display: none; }
  h1 {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
    letter-spacing: -.04em;
  }
  main { padding: 0 16px 100px; } /* bottom padding for sticky CTA */

  .featured-guide, .money-path, .list, .about, .article,
  .how-it-works { padding: 22px 20px; border-radius: 22px; }

  .product-grid, .grid { grid-template-columns: 1fr; }

  .steps-nav { grid-template-columns: 1fr; gap: 8px; }
  .step-btn { flex-direction: row; align-items: center; }
  .step-panel.active { grid-template-columns: 1fr; }
  .step-panel-visual { display: none; }

  .sticky-cta { display: block; }

  .trip-progress { display: none; }
  .option-chips { flex-direction: row; }
  .option-chip { flex: 1; min-width: 0; padding: 10px 8px; }

  .form-grid { grid-template-columns: 1fr; }
  .form-field--full { grid-column: 1; }

  .save-bar { flex-direction: column; align-items: flex-start; }
  .save-bar-actions .button { flex: 1; }

  .next-step-grid { grid-template-columns: 1fr; }

  .filter-bar { gap: 6px; }
  .filter-chip { font-size: .76rem; padding: 6px 12px; }
}

/* ── Breadcrumb navigation ───────────────────────────────────────────────── */
.breadcrumb {
  max-width: 1180px;
  margin: 20px auto 0;
  padding: 0 clamp(16px, 4vw, 32px);
  font-size: .85rem;
  color: var(--muted);
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb li + li::before {
  content: "›";
  color: var(--line-dark);
  font-weight: 700;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--trans);
}
.breadcrumb a:hover {
  color: var(--gold);
}
.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ── Article meta (date, reading time) ──────────────────────────────────── */
.article-meta {
  margin-top: 18px;
  font-size: .85rem;
  color: var(--muted);
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}
.article-meta .meta-dot {
  color: var(--line-dark);
  font-weight: 700;
}

/* ── Article lede paragraph ─────────────────────────────────────────────── */
.article-lede {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--ink);
  margin: 0 0 28px;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
}
.article-lede strong { color: var(--navy); }

/* ── FAQ section (with details/summary) ─────────────────────────────────── */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.faq details {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.faq details[open] {
  border-color: rgba(184, 148, 95, .45);
  box-shadow: var(--shadow-soft);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  color: var(--navy);
  list-style: none;
  position: relative;
  padding-right: 28px;
  line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform var(--trans);
}
.faq details[open] summary::after {
  content: "−";
  color: var(--navy);
}
.faq details p {
  margin: 12px 0 0;
  color: #334155;
  line-height: 1.8;
}

/* ── Related articles block ─────────────────────────────────────────────── */
.related-articles {
  margin-top: 48px;
  padding: 28px;
  background: linear-gradient(135deg, #fbf7ef, var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.related-articles h2 {
  margin: 0 0 14px;
  font-size: 1.3rem;
}
.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.related-articles li {
  padding-left: 22px;
  position: relative;
}
.related-articles li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 700;
}
.related-articles a {
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--trans), color var(--trans);
}
.related-articles a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ── All guides grid (homepage) ─────────────────────────────────────────── */
.all-guides {
  margin-top: 56px;
  padding: clamp(28px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.all-guides > h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  font-family: Georgia, "Times New Roman", serif;
}
.all-guides > p.intro {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1rem;
}
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.guide-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(184, 148, 95, .4);
}
.guide-card .guide-tag {
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gold);
  margin-bottom: 8px;
}
.guide-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.35;
}
.guide-card p {
  margin: 0 0 14px;
  color: #475569;
  font-size: .95rem;
  line-height: 1.6;
  flex-grow: 1;
}
.guide-card .guide-cta {
  font-size: .9rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .01em;
}
.guide-card:hover .guide-cta {
  color: var(--navy);
}

/* ── Plan-your-trip hub (Booking.com-inspired interactive search) ─────── */
.plan-hub {
  position: relative;
  max-width: 1160px;
  margin: 56px auto 0;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 56px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 168, 76, 0.22), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(23, 32, 51, 0.06), transparent 60%),
    linear-gradient(135deg, #FBF4E6 0%, #F8E8D4 50%, #F4DCC0 100%);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -24px rgba(23, 32, 51, 0.18);
  overflow: hidden;
}
@media (max-width: 1208px) {
  .plan-hub {
    margin-left: 24px;
    margin-right: 24px;
  }
}

.plan-hub-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto clamp(28px, 4vw, 44px);
}
.plan-hub-eyebrow {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.plan-hub-title {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.plan-hub-lead {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #475569;
  line-height: 1.55;
}

.plan-hub-widget {
  max-width: 880px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 22px;
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 32px 80px -24px rgba(23, 32, 51, 0.28),
              0 8px 22px rgba(23, 32, 51, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 1);
  border: 1px solid rgba(23, 32, 51, 0.06);
}

.plan-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.plan-row:first-of-type {
  padding-top: 6px;
}
.plan-row:last-of-type {
  border-bottom: none;
  padding-bottom: 22px;
}
.plan-row-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Override chip styles inside the plan hub */
.plan-hub .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.plan-hub .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(23, 32, 51, 0.12);
  background: var(--surface-soft);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
  font-family: inherit;
}
.plan-hub .chip:hover {
  border-color: var(--gold);
  background: #FFFBEF;
  transform: translateY(-1px);
}
.plan-hub .chip.active {
  background: var(--navy);
  color: var(--surface);
  border-color: var(--navy);
  box-shadow: 0 4px 14px rgba(23, 32, 51, 0.28);
}

.plan-preview {
  margin-top: 26px;
  padding: 22px 24px;
  background: linear-gradient(180deg, #FCF8EE 0%, #FDFAF3 100%);
  border-radius: 14px;
  border: 1px dashed rgba(201, 168, 76, 0.45);
}
.plan-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.plan-preview-meta {
  font-size: 0.95rem;
  color: var(--navy);
}
.plan-preview-meta strong {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}
.plan-preview-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}
.plan-preview-progress .mock-progress-track {
  width: 90px;
  height: 6px;
  background: rgba(23, 32, 51, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.plan-preview-progress .mock-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #E5C76B);
  border-radius: 4px;
  transition: width 400ms ease;
}

/* Mock-items rendered by existing JS — restyled to match the new card */
.plan-hub .mock-items {
  margin: 0;
  padding: 0;
}
.plan-hub .mock-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(23, 32, 51, 0.06);
  font-size: 0.94rem;
  color: var(--navy);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 200ms ease, transform 200ms ease, color 200ms ease;
}
.plan-hub .mock-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.plan-hub .mock-item:last-child {
  border-bottom: none;
}
.plan-hub .mock-item input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(23, 32, 51, 0.32);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 180ms ease, border-color 180ms ease;
  position: relative;
}
.plan-hub .mock-item input[type="checkbox"]:checked {
  background: var(--navy);
  border-color: var(--navy);
}
.plan-hub .mock-item input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--surface);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
.plan-hub .mock-item.checked {
  opacity: 0.55;
}
.plan-hub .mock-item.checked span {
  text-decoration: line-through;
}

.plan-hub-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 26px;
  padding: 18px 28px;
  background: linear-gradient(135deg, var(--gold), #E5C76B);
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 10px 24px -6px rgba(201, 168, 76, 0.55),
              0 2px 6px rgba(23, 32, 51, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.plan-hub-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -6px rgba(201, 168, 76, 0.65),
              0 4px 10px rgba(23, 32, 51, 0.1);
}
.plan-hub-cta-arrow {
  display: inline-block;
  transition: transform 220ms ease;
}
.plan-hub-cta:hover .plan-hub-cta-arrow {
  transform: translateX(4px);
}

.plan-hub-microcopy {
  text-align: center;
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .plan-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .plan-row-label {
    padding-top: 0;
  }
  .plan-hub-cta {
    font-size: 1rem;
    padding: 16px 24px;
  }
}

/* ── IMF-style directory (grouped link lists) ──────────────────────────── */
.directory-section {
  margin-top: 56px;
  padding: clamp(28px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.directory-section > h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  font-family: Georgia, "Times New Roman", serif;
}
.directory-section > p.intro {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 1rem;
}
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 44px;
}
.directory-col h3 {
  margin: 0 0 6px;
  padding-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
}
.directory-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.directory-col li {
  border-bottom: 1px solid var(--line);
}
.directory-col li:last-child {
  border-bottom: none;
}
.directory-col li a {
  display: block;
  padding: 10px 0;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.94rem;
  line-height: 1.4;
  transition: color 200ms ease, padding 200ms ease;
}
.directory-col li a:hover {
  color: var(--gold);
  padding-left: 4px;
}
.directory-col li a::after {
  content: "  →";
  color: rgba(23, 32, 51, 0.3);
  font-size: 0.85em;
  transition: color 200ms ease;
}
.directory-col li a:hover::after {
  color: var(--gold);
}

/* ── Citation marks + researcher notes (Nikkei-style footnotes) ────────── */
.citation-mark {
  font-size: 0.65em;
  font-weight: 700;
  margin-left: 1px;
  vertical-align: super;
  line-height: 0;
}
.citation-mark a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: none;
}
.citation-mark a:hover {
  color: var(--navy);
}
.researcher-notes {
  margin: 48px 0 32px;
  padding: 24px 28px;
  background: var(--surface-soft);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
}
.researcher-notes h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  color: var(--navy);
}
.researcher-notes-intro {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}
.researcher-notes-list {
  margin: 0;
  padding-left: 22px;
  color: #475569;
}
.researcher-notes-list li {
  margin-bottom: 10px;
  font-size: 0.9rem;
  line-height: 1.65;
  scroll-margin-top: 80px;
}
.researcher-notes-list li:target {
  background: rgba(201, 168, 76, 0.08);
  padding: 4px 8px;
  border-radius: 4px;
}
.researcher-notes-list li em {
  font-style: italic;
}

/* ── Article carousel (BOJ-style image slider) ─────────────────────────── */
.article-carousel {
  margin-top: 56px;
  padding: clamp(28px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.article-carousel > h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
}
.article-carousel > p.intro {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 1rem;
  text-align: center;
}
.article-carousel .carousel {
  position: relative;
}
.article-carousel .carousel-viewport {
  overflow: hidden;
  scrollbar-width: none;
  margin: 0 -8px;
}
.article-carousel .carousel-viewport::-webkit-scrollbar { display: none; }
.article-carousel .carousel-track {
  display: flex;
  gap: 20px;
  padding: 12px 8px;
  list-style: none;
  margin: 0;
  transition: transform 600ms cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.article-carousel .carousel-slide {
  flex: 0 0 calc((100% - 40px) / 3);
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy);
  transition: transform 400ms ease, opacity 400ms ease, box-shadow 400ms ease;
  opacity: 0.45;
  transform: scale(0.92);
}
.article-carousel .carousel-slide.is-active {
  opacity: 1;
  transform: scale(1.02);
  box-shadow: 0 18px 40px rgba(23, 32, 51, 0.28);
  z-index: 2;
}
.article-carousel .carousel-slide a {
  display: block;
  position: relative;
  text-decoration: none;
  color: var(--surface);
  aspect-ratio: 2 / 3;
}
.article-carousel .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-carousel .carousel-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 22px 24px;
  background: linear-gradient(
    to top,
    rgba(13, 20, 33, 0.95) 0%,
    rgba(13, 20, 33, 0.65) 55%,
    rgba(13, 20, 33, 0) 100%
  );
}
.article-carousel .carousel-tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 6px;
}
.article-carousel .carousel-caption h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  color: var(--surface);
  line-height: 1.32;
}
.article-carousel .carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(248, 244, 233, 0.95);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  display: grid;
  place-items: center;
  transition: background 200ms ease, transform 200ms ease;
  padding: 0;
}
.article-carousel .carousel-arrow:hover {
  background: var(--surface);
  transform: translateY(-50%) scale(1.06);
}
.article-carousel .carousel-prev { left: -4px; }
.article-carousel .carousel-next { right: -4px; }
.article-carousel .carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}
.article-carousel .carousel-dots {
  display: flex;
  gap: 8px;
}
.article-carousel .carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(23, 32, 51, 0.22);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 200ms ease, transform 200ms ease;
}
.article-carousel .carousel-dot.is-active {
  background: var(--gold);
  transform: scale(1.45);
}
.article-carousel .carousel-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.85rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background 200ms ease;
}
.article-carousel .carousel-toggle:hover {
  background: var(--surface-soft);
}

@media (max-width: 900px) {
  .article-carousel .carousel-slide {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}
@media (max-width: 560px) {
  .article-carousel .carousel-slide {
    flex: 0 0 80%;
  }
  .article-carousel .carousel-prev { left: 4px; }
  .article-carousel .carousel-next { right: 4px; }
}

/* ── Print-friendly tweaks ──────────────────────────────────────────────── */
@media print {
  .breadcrumb,
  .article-hero .buttons,
  .sticky-cta,
  .related-articles {
    display: none;
  }
  .faq details {
    border: none;
    padding: 8px 0;
  }
  .faq summary::after { content: ""; }
  .faq details p { display: block; }
}

/* ── GSAP enhancements: hero word reveal ─────────────────────────────────── */
.hero-headline .word {
  display: inline-block;
  will-change: transform, opacity, filter;
}

/* ── Vanilla-tilt: card containers need transform-style for proper 3D ───── */
.topic-card[data-tilt],
.guide-card[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}
.topic-card[data-tilt] > *,
.guide-card[data-tilt] > * {
  transform: translateZ(0);  /* lift children slightly for depth */
}

/* The glare effect injected by vanilla-tilt needs containment */
.topic-card[data-tilt],
.guide-card[data-tilt] {
  overflow: hidden;
  position: relative;
}

/* ── Magnetic button setup ──────────────────────────────────────────────── */
[data-magnetic] {
  will-change: transform;
  transition: box-shadow 0.3s ease;  /* keep shadow transition, GSAP handles position */
}

/* ── Numbers in stats: tabular nums so counting doesn't jitter ───────────── */
.hero-stats .stat span {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ── Reduce all motion if user prefers it ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-headline .word { filter: none !important; }
  [data-tilt] { transform: none !important; }
  [data-magnetic] { transform: none !important; }
}

/* ── Newsletter CTA (Tally-powered) ─────────────────────────────────────── */
.newsletter-cta {
  margin: 56px auto 0;
  padding: clamp(36px, 6vw, 60px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(201, 168, 76, 0.18), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(47, 95, 143, 0.15), transparent 40%);
  pointer-events: none;
}
.newsletter-cta .newsletter-inner {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
}
.newsletter-cta .newsletter-label {
  display: inline-block;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 5px 14px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.08);
}
.newsletter-cta h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  margin: 0 0 14px;
  color: #fff;
  line-height: 1.3;
  letter-spacing: 0.005em;
}
.newsletter-cta .newsletter-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 28px;
}
.newsletter-cta .newsletter-btn {
  display: inline-block;
  padding: 16px 36px;
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s ease;
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.25);
}
.newsletter-cta .newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 168, 76, 0.4);
  background: #d8b75c;
}
.newsletter-cta .newsletter-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 16px 0 0;
}

/* Article version: slightly tighter */
.article .newsletter-cta {
  margin: 48px 0 32px;
  padding: clamp(28px, 5vw, 44px);
}
.article .newsletter-cta h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
}

/* Compact footer version */
.footer-newsletter {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.25);
}
.footer-newsletter p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}
.footer-newsletter .button {
  font-size: 0.88rem;
  padding: 8px 22px;
}

/* ── Hero: isolate so the photo ::before stays contained ────────────────── */
.hero { isolation: isolate; }

/* ── 3D Globe section (premium dark) ───────────────────────────────────── */
section.globe-section {
  position: relative;
  margin: 72px auto 0;
  padding: clamp(56px, 8vw, 96px) clamp(28px, 6vw, 80px);
  border-radius: 32px;
  background: linear-gradient(135deg, #0B1424 0%, #172033 45%, #1F2D4A 100%);
  color: #FFFFFF;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(11, 20, 36, 0.35);
}

/* Animated starfield using CSS */
section.globe-section .globe-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 28% 52%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 41% 28%, rgba(201,168,76,0.8), transparent),
    radial-gradient(1px 1px at 67% 14%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 78% 64%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 92% 30%, rgba(201,168,76,0.6), transparent),
    radial-gradient(1px 1px at 15% 78%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 55% 88%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 88% 82%, rgba(201,168,76,0.5), transparent),
    radial-gradient(1px 1px at 35% 9%, rgba(255,255,255,0.55), transparent);
  background-size: 100% 100%;
  opacity: 0.9;
  pointer-events: none;
  animation: starsTwinkle 8s ease-in-out infinite alternate;
}
@keyframes starsTwinkle {
  0%   { opacity: 0.5; }
  100% { opacity: 1;   }
}

/* Soft gold spotlight from the right */
section.globe-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40rem 32rem at 78% 50%, rgba(201,168,76,0.10), transparent 65%),
    radial-gradient(28rem 22rem at 18% 30%, rgba(47,95,143,0.14),  transparent 65%);
  pointer-events: none;
  z-index: 0;
}

section.globe-section .globe-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* Text column */
section.globe-section .globe-text {
  color: #FFFFFF;
}
section.globe-section .globe-label {
  display: inline-block;
  margin: 0 0 22px;
  color: #C9A84C;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
section.globe-section .globe-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 22px;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}
section.globe-section .globe-title em {
  font-style: italic;
  color: #C9A84C;
  font-weight: 400;
}
section.globe-section .globe-desc {
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 36px;
  max-width: 480px;
}

/* Stats row */
section.globe-section .globe-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 32px;
  flex-wrap: wrap;
}
section.globe-section .globe-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
section.globe-section .globe-stat-num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.6vw, 2.4rem);
  font-weight: 800;
  color: #C9A84C;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
section.globe-section .globe-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
section.globe-section .globe-stat-divider {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, rgba(201,168,76,0.4), transparent);
}

/* City chip row */
section.globe-section .globe-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
section.globe-section .globe-city {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 999px;
  transition: all 0.25s ease;
}
section.globe-section .globe-city:hover {
  background: rgba(201, 168, 76, 0.10);
  border-color: rgba(201, 168, 76, 0.5);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Globe canvas wrap */
section.globe-section .globe-canvas-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 440px;
}
section.globe-section .globe-canvas-glow {
  position: absolute;
  inset: 10% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.22) 0%, rgba(47,95,143,0.12) 40%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
  animation: globeBreathe 6s ease-in-out infinite alternate;
}
@keyframes globeBreathe {
  0%   { transform: scale(0.92); opacity: 0.6; }
  100% { transform: scale(1.08); opacity: 0.9; }
}
section.globe-section #globe-canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  height: 460px;
  display: block;
}

@media (max-width: 880px) {
  section.globe-section {
    border-radius: 24px;
  }
  section.globe-section .globe-inner {
    grid-template-columns: 1fr;
  }
  section.globe-section .globe-canvas-wrap {
    order: -1;
    min-height: 320px;
  }
  section.globe-section #globe-canvas {
    max-width: 320px;
    height: 320px;
  }
  section.globe-section .globe-title {
    font-size: 1.7rem;
  }
  section.globe-section .globe-stat-divider {
    display: none;
  }
  section.globe-section .globe-stats {
    gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  section.globe-section .globe-stars,
  section.globe-section .globe-canvas-glow {
    animation: none;
  }
}

/* ── Editorial sources list ─────────────────────────────────────────────── */
.article-sources {
  list-style: none;
  padding: 24px 28px;
  margin: 28px 0;
  background: var(--surface-soft);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  font-size: 0.93rem;
  line-height: 1.75;
  color: #475569;
}
.article-sources li {
  margin: 0 0 10px;
  padding-left: 0;
  position: relative;
}
.article-sources li:last-child { margin-bottom: 0; }
.article-sources em {
  color: var(--navy);
  font-style: italic;
}

/* ── Country profile: practical "Travel prep for X" section ────────────── */
.country-prep {
  margin: 48px 0;
  padding: clamp(24px, 4vw, 36px);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-soft) 100%);
  border-radius: 18px;
  border: 1px solid var(--line);
}
.country-prep h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.6vw, 1.7rem);
  color: var(--navy);
}
.country-prep > p {
  font-size: 1rem;
  line-height: 1.75;
  color: #334155;
}
.country-prep .article-products {
  margin: 22px 0 6px;
}
.country-prep ul {
  padding-left: 1.2rem;
  margin: 8px 0 14px;
}
.country-prep ul li {
  margin: 6px 0;
  font-size: 0.96rem;
  line-height: 1.65;
}

/* ── Article prep tables (Australia-style structured tables) ───────────── */
.article .prep-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 0.96rem;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(23, 32, 51, 0.05);
}
.article .prep-table thead {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
}
.article .prep-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.92rem;
}
.article .prep-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: #334155;
  line-height: 1.6;
  vertical-align: top;
}
.article .prep-table tbody tr:nth-child(even) {
  background: var(--surface-soft);
}
@media (max-width: 720px) {
  .article .prep-table { font-size: 0.88rem; }
  .article .prep-table th,
  .article .prep-table td { padding: 9px 11px; }
}

/* ── Country profile: 2-column layout with sticky professor companion ──── */
.country-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(28px, 5vw, 64px);
  max-width: 1280px;
  margin: 32px auto 56px;
  padding: 0 clamp(20px, 4vw, 32px);
  align-items: start;
}

.country-content {
  min-width: 0;
}
.country-content > p.article-lede {
  margin-top: 0;
}

.country-section {
  margin: 48px 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.country-section:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 24px;
}
.country-section .section-num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin: 0 0 4px;
}
.country-section h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  color: var(--navy);
  letter-spacing: -0.005em;
}
.country-section p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #334155;
  margin: 0 0 14px;
}

/* ── Professor companion (sticky right column) ─────────────────────────── */
.prof-companion {
  position: sticky;
  top: 72px;
  align-self: start;
  width: 100%;
  max-width: 340px;
  z-index: 5;
}

.prof-canvas-wrap {
  position: relative;
  width: 100%;
  background:
    radial-gradient(circle at 50% 30%, rgba(201, 168, 76, 0.18), transparent 60%),
    linear-gradient(135deg, #FBF7EF 0%, #F4EFE5 100%);
  border-radius: 24px;
  padding: 14px;
  border: 1px solid rgba(201, 168, 76, 0.18);
  box-shadow: 0 14px 36px rgba(23, 32, 51, 0.08);
}

#prof-canvas {
  display: block;
  width: 100%;
  height: 280px;
}

.prof-bubble {
  position: relative;
  margin-top: 18px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #172033 0%, #1F2D4A 100%);
  color: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(23, 32, 51, 0.18);
}
.prof-bubble::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 36px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid #172033;
}
.prof-bubble-label {
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C9A84C;
}
.prof-bubble-text {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.94);
  transition: opacity 0.2s ease;
}

/* ── Mobile: companion floats as a card at the bottom ──────────────────── */
@media (max-width: 880px) {
  .country-layout {
    grid-template-columns: 1fr;
    padding-bottom: 220px;  /* leave room for fixed companion */
  }

  .prof-companion {
    position: fixed;
    bottom: 14px;
    left: 14px;
    right: 14px;
    max-width: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    align-items: center;
    z-index: 50;
  }

  .prof-canvas-wrap {
    padding: 4px;
    border-radius: 14px;
    border: none;
    box-shadow: none;
  }

  #prof-canvas {
    height: 100px;
  }

  .prof-bubble {
    margin-top: 0;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: none;
  }
  .prof-bubble::before { display: none; }
  .prof-bubble-label {
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    margin-bottom: 4px;
  }
  .prof-bubble-text {
    font-size: 0.78rem;
    line-height: 1.45;
    max-height: 78px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
  }
}

@media (prefers-reduced-motion: reduce) {
  #prof-canvas { animation: none; }
}

/* Hero LCP optimisation: serve smaller WebP on mobile, escalate on bigger viewports */
@media (min-width: 768px) {
  .hero.hero-cinematic::before {
    background-image:
      linear-gradient(180deg,
        rgba(13,20,33,.45) 0%,
        rgba(13,20,33,.30) 35%,
        rgba(13,20,33,.55) 75%,
        rgba(13,20,33,.85) 100%),
      url('https://images.unsplash.com/photo-1488085061387-422e29b40080?w=1600&q=80&fm=webp&auto=format');
  }
}
@media (min-width: 1400px) {
  .hero.hero-cinematic::before {
    background-image:
      linear-gradient(180deg,
        rgba(13,20,33,.45) 0%,
        rgba(13,20,33,.30) 35%,
        rgba(13,20,33,.55) 75%,
        rgba(13,20,33,.85) 100%),
      url('https://images.unsplash.com/photo-1488085061387-422e29b40080?w=2400&q=82&fm=webp&auto=format');
  }
}

/* ── Author byline (pen-name editor persona: Casey) ──────────────── */
.article-byline {
  font-size: 0.92rem;
  color: #647084;
  margin: 10px 0 0;
}
.article-byline a { color: #8a6d2f; font-weight: 600; text-decoration: none; }
.article-byline a:hover { text-decoration: underline; }
