/* ============================================================
   GoAskMarshall — Editorial Travel Advisor
   Mobile-first: default = ~390px, 768px = tablet, 1024px = desktop
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --cream:       #F4F1EC;
  --cream-dark:  #E6E0D6;
  --dark:        #1A2033;
  --text:        #252D3D;
  --muted:       #6B7280;
  --gold:        #4169E1;
  --gold-rgb:    65, 105, 225;
  --gold-light:  #5B7EE8;
  --gold-pale:   #EEF1FD;
  --border:      #D4CEC8;
  --white:       #FAFAF7;
  --shadow:      rgba(26, 32, 51, 0.07);
  --shadow-md:   rgba(26, 32, 51, 0.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Navigation ──────────────────────────────────────────── */

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1;
}
.logo-go       { font-weight: 400; color: var(--dark); }
.logo-ask      { font-weight: 400; color: var(--gold); }
.logo-marshall { font-weight: 700; color: var(--dark); }

/* Hamburger button — mobile only */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  transition: transform 0.25s, opacity 0.25s;
  border-radius: 1px;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav links — hidden on mobile, full-width dropdown when open */
.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  list-style: none;
  padding: 0.5rem 0;
  z-index: 99;
  box-shadow: 0 4px 12px var(--shadow);
}
.nav-links.is-open { display: flex; }

.nav-links li { width: 100%; }
.nav-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); background: var(--gold-pale); }

/* Tablet+: show horizontal links, hide hamburger */
@media (min-width: 768px) {
  nav { padding: 1rem 2rem; }

  .nav-hamburger { display: none; }

  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    border-bottom: none;
    padding: 0;
    gap: 2.5rem;
    background: none;
    box-shadow: none;
  }
  .nav-links li { width: auto; }
  .nav-links a {
    min-height: unset;
    padding: 0;
    font-size: 0.7rem;
  }
  .nav-links a:hover,
  .nav-links a.active { background: none; color: var(--gold); }
}

@media (min-width: 1024px) {
  nav { padding: 1.2rem 3rem; }
}

/* ── Video Hero Scene ────────────────────────────────────── */

.hero-scene {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Mobile fallback: premium dark gradient when video is hidden */
  background: linear-gradient(160deg, #111827 0%, #1e3a5f 55%, #111827 100%);
  transition: min-height 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.5s ease;
}
.hero-scene.collapsed {
  min-height: 0 !important;
  height: 0 !important;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Hide video on mobile — gradient fallback */
@media (max-width: 767px) {
  .hero-video { display: none; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Staggered Fade-up Animations ───────────────────────── */

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-h1 {
  animation: heroFadeUp 0.75s ease both;
  animation-delay: 0.1s;
}
.hero-anim-2 {
  animation: heroFadeUp 0.75s ease both;
  animation-delay: 0.3s;
}
.hero-anim-3 {
  animation: heroFadeUp 0.75s ease both;
  animation-delay: 0.45s;
}
.hero-anim-4 {
  animation: heroFadeUp 0.75s ease both;
  animation-delay: 0.65s;
}

/* ── Hero text overrides (white on video) ────────────────── */

.hero-scene .hero {
  padding: 1.5rem 1.25rem 0.5rem;
  max-width: 820px;
  margin: 0 auto;
}
.hero-scene .hero-h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 8vw, 5rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.hero-scene .hero-h1 em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.hero-scene .hero-rule {
  background: rgba(255, 255, 255, 0.55);
  margin: 1.5rem auto 1.25rem;
}
.hero-scene .hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 300;
  letter-spacing: 0.05em;
}

@media (min-width: 1024px) {
  .hero-scene .hero { padding: 2rem 2rem 1rem; }
  .hero-scene .hero-h1 { font-size: clamp(2.75rem, 6.5vw, 5rem); }
}

/* Ask container inside hero — white-adapted chips & input */
.hero-scene .ask-container {
  padding: 1rem 1.25rem 1.5rem;
  max-width: 640px;
}
@media (min-width: 768px) {
  .hero-scene .ask-container { padding: 1.25rem 0 1.5rem; }
}

.hero-scene .example-q {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
}
.hero-scene .example-q:hover {
  border-color: rgba(255, 255, 255, 0.65);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}
.hero-scene .ask-input {
  background: rgba(255, 255, 255, 0.96);
  min-height: 90px;
}

/* ── Scroll indicator ────────────────────────────────────── */

.hero-scroll-btn {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  animation: heroBounce 2.6s ease-in-out infinite,
             heroFadeUp 0.75s ease 1.1s both;
  transition: opacity 0.3s, border-color 0.2s;
}
.hero-scroll-btn:hover { border-color: rgba(255,255,255,0.7); color: #fff; }
.hero-scroll-btn.hidden { opacity: 0; pointer-events: none; }

@keyframes heroBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ── Compact Sticky Bar ──────────────────────────────────── */

.hero-compact {
  display: none;
  position: sticky;
  top: 0;
  z-index: 150;
  background: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.7rem 1.25rem;
  align-items: center;
  gap: 1rem;
}
.hero-compact.visible { display: flex; }

.compact-logo {
  flex-shrink: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  text-decoration: none;
  line-height: 1;
}
.compact-logo .logo-go       { color: rgba(255, 255, 255, 0.75); }
.compact-logo .logo-ask      { color: var(--gold-light); }
.compact-logo .logo-marshall { color: #ffffff; }

.compact-form {
  display: flex;
  flex: 1;
  gap: 0.5rem;
  min-width: 0;
}
.compact-input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
}
.compact-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.compact-input:focus { outline: none; border-color: var(--gold-light); }

.compact-btn {
  flex-shrink: 0;
  padding: 0.5rem 1.1rem;
  background: var(--gold);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.compact-btn:hover { opacity: 0.85; }
.compact-btn:disabled { opacity: 0.5; cursor: not-allowed; }

@media (min-width: 768px) {
  .hero-compact { padding: 0.7rem 2rem; }
}

/* ── Answer Zone ─────────────────────────────────────────── */

.answer-zone {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
@media (min-width: 1024px) {
  .answer-zone { padding: 3rem 2rem 7rem; }
}

/* ── Ask Page — Hero (standalone, non-video pages) ───────── */

.hero {
  text-align: center;
  padding: 3.5rem 1.25rem 2rem;
  max-width: 820px;
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.1rem, 8vw, 5rem);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 0;
  letter-spacing: -0.025em;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

.hero-rule {
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin: 1.75rem auto 1.5rem;
}

.hero p {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.05em;
}

@media (min-width: 1024px) {
  .hero { padding: 6.5rem 2rem 3rem; }
  .hero h1 { font-size: clamp(2.75rem, 6.5vw, 5rem); }
}

/* ── Ask Container ───────────────────────────────────────── */

.ask-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 4rem;
}

@media (min-width: 1024px) {
  .ask-container { padding: 2.75rem 2rem 7rem; }
}

/* ── Example Question Chips ──────────────────────────────── */

.example-questions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
}

.example-q {
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-align: center;
  line-height: 1.45;
}
.example-q:hover {
  border-color: var(--gold);
  color: var(--dark);
  background: var(--gold-pale);
}

/* ── Ask Form ────────────────────────────────────────────── */

.ask-input {
  width: 100%;
  padding: 1.4rem 1.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.25s, box-shadow 0.25s;
  line-height: 1.7;
}
.ask-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.1);
}
.ask-input::placeholder { color: var(--muted); font-style: italic; }

/* Mobile: full-width submit button below textarea */
.ask-actions {
  display: flex;
  justify-content: stretch;
  margin-top: 0.85rem;
}

.ask-btn {
  width: 100%;
  min-height: 44px;
  padding: 0.85rem 2.5rem;
  background: var(--dark);
  color: var(--cream);
  border: none;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, transform 0.1s;
}
.ask-btn:hover { background: var(--gold); }
.ask-btn:active { transform: translateY(1px); }
.ask-btn:disabled {
  background: var(--border);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}

@media (min-width: 768px) {
  .ask-actions { justify-content: flex-end; }
  .ask-btn { width: auto; }
}

/* ── Loading ─────────────────────────────────────────────── */

.loading {
  display: none;
  align-items: center;
  gap: 0.65rem;
  padding: 2.5rem 0 1rem;
  color: var(--muted);
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.loading.visible { display: flex; }

.dots { display: flex; gap: 0.4rem; }
.dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: dotpulse 1.4s ease-in-out infinite;
}
.dots span:nth-child(2) { animation-delay: 0.22s; }
.dots span:nth-child(3) { animation-delay: 0.44s; }

@keyframes dotpulse {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.75); }
  40%           { opacity: 1;    transform: scale(1);    }
}

/* ── Answer Section ──────────────────────────────────────── */

.answer-section {
  margin-top: 2.5rem;
  display: none;
}
.answer-section.visible {
  display: block;
  animation: rise 0.45s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.answer-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 0 4px 4px 0;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  box-shadow: 0 2px 18px var(--shadow);
}

@media (min-width: 768px) {
  .answer-card { padding: 2rem 2.25rem 2rem 2.25rem; }
}

.answer-label {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.3rem;
}

.answer-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.95;
  color: var(--text);
}
.answer-text p               { margin-bottom: 1.4rem; }
.answer-text p:last-child    { margin-bottom: 0; }
.answer-text em              { font-style: italic; }
.answer-text strong          { font-weight: 600; color: var(--dark); }
.answer-text a               { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(var(--gold-rgb), 0.3); }
.answer-text a:hover         { border-color: var(--gold); }

/* ── Marshall's Picks Panel ──────────────────────────────── */

.picks-section {
  margin-top: 1.75rem;
  padding: 1.5rem;
  background: var(--gold-pale);
  border: 1px solid rgba(var(--gold-rgb), 0.2);
  border-radius: 4px;
}

.picks-header {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.picks-star { font-size: 0.82rem; margin-right: 0.3rem; }

.picks-list { display: flex; flex-direction: column; gap: 0.75rem; }

.pick-card {
  background: var(--white);
  border: 1px solid rgba(var(--gold-rgb), 0.18);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  transition: box-shadow 0.2s;
}
.pick-card:hover { box-shadow: 0 2px 14px var(--shadow-md); }

.pick-card-left { flex: 1; min-width: 0; }

.pick-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.2rem;
}
.pick-name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.3);
  transition: border-color 0.2s;
}
.pick-name a:hover { border-color: var(--gold); }

.pick-meta  { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.4rem; }
.pick-notes { font-size: 0.83rem; color: var(--text); font-style: italic; line-height: 1.5; }

.pick-rating      { flex-shrink: 0; text-align: right; }
.pick-score {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.pick-score-label {
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* ── Further Reading ─────────────────────────────────────── */

.further-reading {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.fr-label {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.source-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.source-list li a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  flex-wrap: wrap;
}
.source-list li a:hover { color: var(--gold); }
.source-badge {
  font-size: 0.67rem;
  background: var(--cream-dark);
  color: var(--muted);
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── Error Banner ────────────────────────────────────────── */

.error-msg {
  display: none;
  background: #FEF5F5;
  border: 1px solid #F0C8C8;
  border-radius: 4px;
  padding: 0.9rem 1.25rem;
  color: #7F2020;
  font-size: 0.875rem;
  margin-top: 1rem;
}
.error-msg.visible { display: block; }

/* ── Journal Hero ────────────────────────────────────────── */

.journal-hero {
  text-align: center;
  padding: 3rem 1.25rem 2.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.journal-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.1rem, 6vw, 3.25rem);
  color: var(--dark);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}
.journal-hero p {
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.02em;
}
.journal-rule {
  width: 36px;
  height: 2px;
  background: var(--gold);
  margin: 1.4rem auto 0;
}

@media (min-width: 1024px) {
  .journal-hero { padding: 5rem 2rem 3.5rem; }
}

/* ── Post Grid ───────────────────────────────────────────── */

.posts-grid {
  max-width: 1020px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .posts-grid {
    padding: 2.5rem 2rem;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .posts-grid {
    padding: 3.5rem 2rem 6rem;
    grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  }
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 30px var(--shadow-md);
  transform: translateY(-3px);
}

.card-image {
  height: 165px;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 28px,
      rgba(var(--gold-rgb), 0.04) 28px,
      rgba(var(--gold-rgb), 0.04) 29px
    ),
    linear-gradient(160deg, var(--cream-dark) 0%, #D8D3CA 100%);
  overflow: hidden;
  flex-shrink: 0;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body { padding: 1.5rem 1.75rem 1.85rem; }

.card-date {
  font-size: 0.67rem;
  color: var(--muted);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}
.post-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}
.card-excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.68;
}

/* ── Single Post ─────────────────────────────────────────── */

.post-view {
  width: 100%;
  display: none;
}
.post-view.visible {
  display: block;
  animation: rise 0.4s ease both;
}
.post-view > article {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
@media (min-width: 1024px) {
  .post-view > article { padding: 3rem 2rem 7rem; }
}

/* ── Postcard hero header ─────────────────────────────────── */

.post-hero {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  background: #111;
}
@media (min-width: 768px) {
  .post-hero { height: 520px; }
}

.post-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-hero--no-image .post-hero-img { display: none; }

.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.15) 100%);
}

/* Back link — top-left over image */
.btn-back {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s;
}
.btn-back:hover { color: #ffffff; }

/* Text block — lower third of hero */
.post-hero-text {
  position: absolute;
  bottom: 2rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 10;
}
@media (min-width: 768px) {
  .post-hero-text {
    bottom: 2.75rem;
    left: 3rem;
    right: 3rem;
    max-width: 820px;
  }
}

/* Royal-blue editorial accent bar */
.post-hero-accent {
  border-left: 4px solid #1C3F7A;
  padding-left: 1rem;
}

.post-dateline {
  font-family: 'Inter', sans-serif;
  font-size: 0.69rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.post-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}
@media (min-width: 768px) {
  .post-title { font-size: 2.625rem; }
}

.post-lede {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 767px) {
  .post-lede { display: none; }
}

.post-body {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.06rem;
  line-height: 1.95;
  color: var(--text);
}
.post-body p                 { margin-bottom: 1.5rem; }
.post-body h2, .post-body h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.5rem 0 0.9rem;
}
.post-body a                 { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(var(--gold-rgb), 0.3); }
.post-body a:hover           { border-color: var(--gold); }
.post-body blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: var(--muted);
}
.post-body ul,
.post-body ol                { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.post-body li                { margin-bottom: 0.4rem; }
.post-body img               { max-width: 100%; border-radius: 3px; margin: 1rem 0; }
.post-body strong            { font-weight: 600; }
.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.post-body em { font-style: italic; }

/* ── Marshall's Picks section ────────────────────────────── */

.post-picks {
  width: 100%;
  margin-top: 3rem;
  text-align: center;
}

.picks-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  display: inline-block;
  margin-bottom: 0;
}

.picks-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 0.5rem auto 2rem;
}

.picks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  text-align: left;
}

@media (min-width: 768px) {
  .picks-grid { grid-template-columns: repeat(3, 1fr); }
}

.pick-card {
  background: #ffffff;
  border: 1px solid #e8e0d0;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
}

/* Colored header band — exactly 48px, always full card width */
.pick-band {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pick-band--stay       { background: #1C3F7A; }
.pick-band--eat        { background: #2C5F5D; }
.pick-band--experience { background: #3C3C3C; }

.pick-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
}

/*
 * Body: flex column. CTA is absolutely positioned at the bottom so it's
 * always visible regardless of how much content is above it.
 */
.pick-body {
  position: relative;
  padding: 1.25rem 1.5rem 3.5rem; /* bottom pad reserves space for the CTA */
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.pick-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  flex-shrink: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pick-name.pick-empty {
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9rem;
}

.pick-approved {
  display: inline-block;
  flex-shrink: 0;
  align-self: flex-start;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  margin-top: 0.4rem;
}

.pick-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #3C3C3C;
  margin-top: 0.5rem;
}

/* Pinned to the bottom of .pick-body — always visible */
.pick-cta {
  position: absolute;
  bottom: 1rem;
  left: 1.5rem;
  right: 1.5rem;
  display: block;
  padding: 0.55rem 1rem;
  background: var(--gold);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  text-align: center;
  transition: opacity 0.15s;
}
.pick-cta:hover { opacity: 0.85; }
.pick-cta.hidden { display: none; }


/* ── Empty / skeleton states ─────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
  display: none;
}
.empty-state.visible { display: block; }

/* ── World Page ──────────────────────────────────────────── */

.world-hero {
  text-align: center;
  padding: 3rem 1.25rem 2rem;
}
.world-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.9rem, 6vw, 3.75rem);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.world-hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.country-counter {
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
}
.country-counter span {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  color: var(--gold);
  font-weight: 600;
}

@media (min-width: 1024px) {
  .world-hero { padding: 5rem 2rem 2.75rem; }
}

.world-map-wrapper {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.5rem 1rem 4rem;
}

@media (min-width: 1024px) {
  .world-map-wrapper { padding: 0.5rem 2rem 6rem; }
}

#map-container {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 28px rgba(28, 28, 28, 0.11);
  touch-action: none;
}

/* ── Map Tooltip ─────────────────────────────────────────── */

.map-tooltip {
  position: fixed;
  background: var(--dark);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.85rem;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
  white-space: nowrap;
  z-index: 200;
}
.map-tooltip.visible { opacity: 1; }

/* ── Journal Filter Banner ───────────────────────────────── */

.filter-banner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--gold-pale);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-banner strong { color: var(--dark); font-weight: 500; }
.filter-clear {
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0.35rem 0.65rem;
  min-height: 44px;
  margin-left: auto;
  transition: color 0.2s, border-color 0.2s;
}
.filter-clear:hover { color: var(--gold); border-color: var(--gold); }

@media (min-width: 768px) {
  .filter-banner { padding: 0.8rem 2rem; }
  .filter-clear { min-height: unset; padding: 0.15rem 0.65rem; }
}

/* ── Answer Action Bar (Save / Share buttons) ───────────── */

.answer-action-bar {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.answer-action-btn {
  min-height: 40px;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

.save-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}
.save-btn:hover { border-color: var(--gold); color: var(--gold); }
.save-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.share-btn {
  background: var(--dark);
  border: 1px solid var(--dark);
  color: var(--cream);
}
.share-btn:hover { background: var(--gold); border-color: var(--gold); }
.share-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-confirmed {
  background: #2D6A4F !important;
  border-color: #2D6A4F !important;
  color: #fff !important;
}

.share-link-confirm {
  width: 100%;
  margin-top: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
  word-break: break-all;
  letter-spacing: 0.01em;
}

/* ── Go Deeper button + Full Briefing section ───────────── */

.go-deeper-wrap {
  margin: 1.75rem 0 0.25rem;
  text-align: center;
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid var(--border);
}

.go-deeper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--white);
  padding: 0.85rem 2.75rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.go-deeper-btn:hover { background: var(--gold-light); border-color: var(--gold-light); }
.go-deeper-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.go-deeper-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
  padding: 0.5rem 0;
}

/* ── Cached-answer notice ───────────────────────────────── */

.cached-notice {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.55rem 0;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.cached-refresh-link {
  color: var(--gold);
  text-decoration: none;
  font-style: normal;
  font-weight: 500;
  cursor: pointer;
}
.cached-refresh-link:hover { text-decoration: underline; }

/* ── Saved Answer Page (/r/slug) ────────────────────────── */

.saved-page-zone {
  padding-top: 2.5rem;
}

.saved-page-question {
  margin-bottom: 0.25rem;
}

.saved-page-h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 0.5rem;
}

.saved-page-footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.saved-page-sep { opacity: 0.5; }

.saved-page-ask-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}
.saved-page-ask-link:hover { text-decoration: underline; }

/* ── Journal "Want to go deeper?" section ───────────────── */
.journal-go-deeper {
  margin: 2.5rem 0 1.5rem;
  padding: 1.5rem 1.75rem;
  background: #f7f6f2;
  border-left: 4px solid #1C3F7A;
  border-radius: 2px;
}
.journal-go-deeper-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1C3F7A;
  margin-bottom: 0.4rem;
}
.journal-go-deeper-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.journal-go-deeper-btns {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.journal-go-deeper-btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid #1C3F7A;
  border-radius: 999px;
  color: #1C3F7A;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  text-align: left;
  transition: background 0.18s, color 0.18s;
  line-height: 1.35;
}
.journal-go-deeper-btn:hover {
  background: #1C3F7A;
  color: #fff;
}

/* ── Crawler-accessible post links on /journal listing ───────────────────── */
/* Visually hidden using the accessible clip pattern (not display:none) so    */
/* Googlebot follows the links while users see the JS-rendered grid instead.  */
.seo-post-index {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.seo-post-index .seo-post-link { display: block; }

/* ── Related posts section (bottom of each journal post) ─────────────────── */
.related-posts {
  max-width: 860px;
  margin: 3rem auto 0;
  padding: 0 1.5rem 3rem;
  border-top: 1px solid var(--border);
}
.related-posts-heading {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2rem 0 1.25rem;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.related-post-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.related-post-card:hover { border-color: var(--gold); }
.related-post-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface);
}
.related-post-img img { width: 100%; height: 100%; object-fit: cover; }
.related-post-body { padding: 0.85rem; }
.related-post-body h3 {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.related-post-body p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}
