/* base.css — Chow Ying travel tips (R1 blend design: Stripe typography ×
   Airbnb visuals, per samples-ui/sample-blend.html — Marc-approved).
   Stripe: Source Sans 3 weight 300, deep navy #061b31 headings, purple #533afd
   accent, blue-tinted shadows, 4-8px radii. Airbnb: rounded 24px hero carousel
   with circular prev/next + dots, photo-forward cards, share row
   (X/WhatsApp/Facebook/copy/like), IG CTA, footer 18-locale grid with Auto row.
   Keeps: R4 3-state theme toggle (Auto/Light/Dark), K9 mobile nav, K11 footer
   legal links. Mobile-first.
   Served from /travel/static/base.css (unhashed — nginx sets a 5m TTL;
   see K12 review: a 1y immutable cache would pin stale CSS in browsers
   because CF purge cannot clear browser cache). */

/* ==================== Design tokens (blend) ==================== */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --heading: #061b31;
  --body: #64748d;
  --label: #273951;
  --accent: #533afd;
  --accent-h: #4434d4;
  --accent-soft: #b9b9f9;
  --border: #e5edf5;
  --dark: #1c1e54;
  --surface: #f6f9fc;
  --red: #ff385c;
  --shadow: rgba(50, 50, 93, 0.25) 0px 30px 45px -30px, rgba(0, 0, 0, 0.1) 0px 18px 36px -18px;
  --card-shadow: rgba(0, 0, 0, 0.02) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 2px 6px, rgba(0, 0, 0, 0.1) 0px 4px 8px;
  --font-sans: 'Source Sans 3', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang TC", "PingFang SC", "Microsoft JhengHei",
    "Microsoft YaHei", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d253d;
  --heading: #f2f6ff;
  --body: #aebcd0;
  --label: #c8d4e4;
  --accent: #7c6bff;
  --accent-h: #665efd;
  --accent-soft: #b9b9f9;
  --border: rgba(255, 255, 255, 0.12);
  --dark: #061b31;
  --surface: #12294a;
  --card-shadow: rgba(255, 255, 255, 0.04) 0px 0px 0px 1px, rgba(0, 0, 0, 0.5) 0px 2px 6px, rgba(0, 0, 0, 0.5) 0px 4px 8px;
}

* { margin: 0; box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--body);
  font-weight: 300;
  line-height: 1.5;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3 {
  color: var(--heading);
  font-weight: 300;
  letter-spacing: -0.5px;
  transition: color 0.25s ease;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ==================== Header (Airbnb minimal, Stripe type) ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: background-color 0.25s ease, border-color 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
}

.site-header .brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
/* R6 — ORIGINAL logo lockup as a white rounded chip: the logo art is
   black-ink-on-white, so a chip keeps it legible on the light header AND on
   the dark-mode header. Same treatment in the footer. */
.brand-logo {
  display: block;
  height: 32px;
  width: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 7px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
html[data-theme="dark"] .brand-logo {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--heading);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.nav-links a:hover { color: var(--accent); }

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  /* R9.2 (Marc UX 2026-08-07): full-width banner — logo left, everything
     else pushed to the right edge. Previously the whole control cluster
     sat left-aligned right after the logo. */
  margin-left: auto;
}

/* Circular icon buttons (lang 🌐) + theme switcher (R4) */
.icon-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 15px;
  color: var(--heading);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.icon-btn:hover { border-color: var(--accent-soft); }

/* R4 + Marc UX 2026-08-06 — theme selector shrunk to a single cycling icon
   button (auto → light → dark). Same round style as the lang 🌐 button. */
.theme-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background: var(--bg);
  color: var(--heading);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.theme-btn:hover { border-color: var(--accent-soft); }
.theme-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-icon { font-size: 1rem; line-height: 1; }

/* Language dropdown (Marc UX 2026-08-06): 🌐 button + pull-down menu.
   Replaces the old scroll-to-footer behavior. Menu is absolute under the
   button; on mobile it stays right-aligned. */
.lang-btn { position: relative; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  min-width: 240px;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  padding: 6px;
}
.lang-menu-item,
.lang-menu-auto {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--body);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}
.lang-menu-item:hover,
.lang-menu-auto:hover { background: rgba(83, 58, 253, 0.08); color: var(--heading); }
.lang-menu-item.current { color: var(--accent-soft); font-weight: 600; }
.lang-menu-code { margin-left: auto; font-size: 11px; color: var(--muted, rgba(128,128,128,0.8)); }
.lang-menu-auto {
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  margin-bottom: 4px;
  padding-bottom: 10px;
}
.lang-menu .auto-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #15be53;
  margin-right: 6px;
  align-self: center;
}

/* K9 — hamburger button. Hidden on desktop, shown <=640px. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--heading);
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle:hover { border-color: var(--accent-soft); }
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

.site-main { min-height: 40vh; }

/* ==================== Hero: Airbnb photo carousel ==================== */
.hero { padding: 1.25rem 1.25rem 0; }
.carousel {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.carousel-track { display: flex; transition: transform 0.45s ease; }
.carousel-slide { min-width: 100%; }
.carousel-slide img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  /* Marc UX 2026-08-06: subtle slow zoom on the active slide (ken-burns
     vibe). Animation runs 6s, matching the auto-slide interval; restarts
     when the slide becomes active again via the class toggle. */
  animation: carousel-kenburns 6s ease-out forwards;
  transform-origin: 50% 45%;
}
.carousel-slide:not(.active) img { animation: none; }
@keyframes carousel-kenburns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.06); }
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #f2f2f2;
  border: 0;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 18px;
  color: #222;
  box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover { background: #fff; }
.carousel-btn.prev { left: 18px; }
.carousel-btn.next { right: 18px; }
.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.carousel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
.carousel-dots span.active { background: #fff; transform: scale(1.25); }
.hero-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: #061b31;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 9999px;
}

/* ==================== Hero body: Stripe type ==================== */
.hero-body { max-width: 760px; margin: 0 auto; padding: 2.25rem 1.25rem 0.5rem; text-align: center; }
.hero-body h1 { font-size: 2.4rem; line-height: 1.06; margin-bottom: 0.75rem; letter-spacing: -1.2px; }
.zh-sub { font-size: 17px; color: var(--body); margin-bottom: 1rem; }
.intro { font-size: 19px; line-height: 1.45; color: var(--label); margin-bottom: 1.5rem; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 1.6rem; }
.tag {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  color: var(--heading);
  background: var(--surface);
  list-style: none;
}
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0.5rem 0 0; }

/* ==================== Action row: Airbnb share + IG CTA ==================== */
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin: 0 auto 0.6rem;
}
.share-group { display: flex; align-items: center; gap: 10px; }
.share-group .share-label { font-size: 13px; color: var(--body); margin-right: 2px; }
.share-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 16px;
  color: var(--heading);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.share-btn:hover { box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px; border-color: var(--accent-soft); text-decoration: none; }
.share-btn.like { color: var(--body); }
.share-btn.like.liked { color: var(--red); }

/* ==================== R15 — full-width share bar under the hero =========
   kfchow-style pill buttons (icon + label), centered, wrapping. Uses the
   same .share-btn class but in .share-bar context they render as pills. */
.share-bar {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.4rem 1.25rem 0.4rem;
}
.share-bar-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--body);
  margin-bottom: 0.6rem;
  text-align: center;
}
.share-bar-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.share-bar .share-btn {
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  gap: 7px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.share-bar .share-btn svg { width: 14px; height: 14px; flex: none; }
.share-bar .share-btn:hover { border-color: var(--accent); box-shadow: none; }
html[dir="rtl"] .share-bar .share-btn span { order: 2; }

/* ==================== R15 — hub pagination ============================= */
.hub-page-note { text-align: center; color: var(--body); font-size: 0.9rem; margin: 0.25rem 0 0; }
.hub-pagination {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hub-page-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  color: var(--heading);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.hub-page-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.hub-page-indicator { color: var(--body); font-size: 0.88rem; }
.ig-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 400;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 9999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.ig-cta:hover { background: var(--accent-h); text-decoration: none; }
.ig-cta .ig-icon { font-size: 16px; }

/* ==================== Article: Stripe type + spacing ==================== */
.article { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.section-block { margin-bottom: 3rem; }
.section-block h2 { font-size: 2rem; line-height: 1.12; margin-bottom: 0.9rem; letter-spacing: -0.6px; }
.section-block p { font-size: 17px; line-height: 1.6; }
.core-tip {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--heading);
}
/* R3 — per-section reel frame illustration */
.section-figure {
  margin: 1.5rem 0 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.section-figure img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 12px;
}
.original-caption {
  margin-top: 3.5rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 1.4rem 1.5rem;
  border-radius: 0 12px 12px 0;
  font-size: 16px;
  color: var(--heading);
  line-height: 1.7;
}
.oc-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

/* ==================== Tip page chrome ==================== */
.draft-banner {
  background: #fde68a;
  color: #78350f;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.tip-breadcrumb, .legal-breadcrumb { font-size: 0.9rem; margin: 0 0 0.75rem; }
.tip-footer {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

/* ==================== Travel index: photo-forward cards ==================== */
.travel-hero { max-width: 1080px; margin: 0 auto; padding: 2.5rem 1.25rem 0.5rem; text-align: center; }
.overline { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--body); }
.travel-hero h1 { font-size: 2.6rem; margin: 0.25rem 0 0.5rem; letter-spacing: -1.2px; }
.subtitle { font-size: 1.1rem; color: var(--body); }
.travel-hero .intro { font-size: 17px; }

.tip-list {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.tip-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.tip-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tip-card-media img { width: 100%; height: 240px; object-fit: cover; }
.tip-card-body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.tip-title { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.tip-title a { color: var(--heading); }
.tip-title a:hover { color: var(--accent); text-decoration: none; }
.tip-desc { color: var(--body); font-size: 16px; line-height: 1.55; }
.tip-meta { font-size: 0.85rem; color: var(--body); }
.tip-langs { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.lang-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--body);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
/* R11 — language tabs on tip cards are real links now; the CURRENT locale
   pill is accented (replaces the old first-child rule). */
.lang-badge:hover { border-color: var(--accent-soft); color: var(--accent); }
.lang-badge.current { border-color: var(--accent); color: var(--accent); background: rgba(83, 58, 253, 0.06); }
.tip-card-cta {
  margin-top: 0.35rem;
  font-weight: 400;
  font-size: 15px;
  color: var(--accent);
}

/* ==================== Legal + landing ==================== */
.legal { max-width: 720px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.legal h1 { font-size: 1.8rem; }
.legal-updated { color: var(--body); font-size: 0.85rem; }
.legal-body { margin-top: 1.25rem; font-size: 16px; line-height: 1.6; }
.legal-body h2 { font-size: 1.3rem; margin: 1.5rem 0 0.5rem; }

.landing-hero { max-width: 1080px; margin: 0 auto; padding: 4rem 1.25rem; text-align: center; }
.landing-hero h1 { font-size: 2.8rem; margin: 0.25rem 0 0.5rem; letter-spacing: -1.2px; }
.tagline { font-size: 1rem; color: var(--label); }
.cta {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 400;
}
.cta:hover { background: var(--accent-h); text-decoration: none; }

/* ==================== Footer: Stripe dark + Airbnb language section ==================== */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 1.25rem 2.5rem;
  margin-top: 2.5rem;
  transition: background-color 0.25s ease;
}
.footer-inner { max-width: 1080px; margin: 0 auto; }
/* R6 — footer logo lockup (white chip, like header) */
.footer-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.5rem;
  text-decoration: none;
}
.footer-logo {
  display: block;
  height: 40px;
  width: auto;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.footer-lang-title { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 1rem; }
.lang-grid {
  display: grid;
  /* Marc UX 2026-08-06: fixed 6 columns on desktop → 18 locales = 3 rows. */
  grid-template-columns: repeat(6, 1fr);
  gap: 6px 24px;
  margin-bottom: 2.5rem;
}
@media (max-width: 900px) {
  .lang-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
}
.lang-grid a {
  text-align: left;
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  font: 400 14px 'Source Sans 3', sans-serif;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  text-decoration: none;
}
.lang-grid a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.lang-grid a.auto-row {
  grid-column: 1 / -1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  padding-bottom: 14px;
  margin-bottom: 6px;
}
.lang-grid .auto-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #15be53;
  margin-right: 8px;
}
.lang-grid a.current { color: var(--accent-soft); font-weight: 600; }
.lang-grid a.current::after { content: " · current"; font-weight: 300; color: rgba(255, 255, 255, 0.5); }

.footer-links { display: flex; gap: 18px; justify-content: center; font-size: 14px; flex-wrap: wrap; }
.footer-links a { color: #fff; }
.footer-copy { text-align: center; font-size: 14px; margin-top: 14px; }
.footer-copy a { color: var(--accent-soft); }
.footer-powered { text-align: center; margin-top: 10px; font-size: 14px; }
.footer-powered a { color: var(--accent-soft); }

/* ==================== R9 — expanded knowledge panel (Marc UX 2026-08-06) ===
   AI-search-style card: sourced reference block under the tip article.
   Tables, stat lists and source badges render like the AI-search screenshot. */
.expanded-panel {
  max-width: 1080px;
  margin: 0 auto 2rem;
  padding: 1.75rem 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}
.expanded-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin-bottom: 0.5rem;
}
.expanded-intro { color: var(--body); font-size: 16px; line-height: 1.6; margin-bottom: 1.25rem; }
.expanded-block { margin-bottom: 1.5rem; }
.expanded-block:last-child { margin-bottom: 0; }
.expanded-block h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}
.expanded-body { color: var(--body); font-size: 15.5px; line-height: 1.65; }
.expanded-body p { margin: 0 0 0.7rem; }
.expanded-body p:last-child { margin-bottom: 0; }
.expanded-body ul { margin: 0 0 0.7rem 1.25rem; padding: 0; }
.expanded-body li { margin-bottom: 0.3rem; }
.expanded-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.7rem 0 1rem;
  font-size: 14.5px;
}
.expanded-body th {
  text-align: left;
  font-weight: 600;
  color: var(--heading);
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--accent-soft);
}
.expanded-body td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.expanded-body tr:last-child td { border-bottom: 0; }
.expanded-body strong { color: var(--heading); }
.expanded-sources {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.expanded-sources-label { font-size: 13px; color: var(--body); margin-right: 0.25rem; }
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.3rem 0.7rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--heading);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.source-badge:hover { border-color: var(--accent-soft); color: var(--accent); }
html[dir="rtl"] .expanded-body th { text-align: right; }

/* ============ R9.2 — 2-column tip body (Marc UX 2026-08-07) ============
   Body split: IG original content LEFT, bookmarked tips panel RIGHT so
   people see the hard facts faster and share/bookmark them. The tips
   column is sticky on desktop (stays visible while scrolling the IG
   content); stacks to a single column on mobile. The hero carousel
   stays full-width 1080 above. */
.tip-layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.ig-col { min-width: 0; }
.ig-col .hero-body { max-width: none; margin: 0; padding: 2rem 0 0.5rem; text-align: start; }
.ig-col .tags { justify-content: flex-start; }
.ig-col .action-row { justify-content: flex-start; margin: 1rem 0 0; }
.ig-col .article { max-width: none; margin: 0; padding: 1.5rem 0 1rem; }
.tips-col {
  position: sticky;
  top: 76px; /* clears the sticky site-header */
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  min-width: 0;
}
.tips-share-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1rem;
}
.tips-share-row .share-label { font-size: 13px; color: var(--body); margin-right: 2px; }
.tips-col .expanded-panel { max-width: none; margin: 0; }
html[dir="rtl"] .ig-col .hero-body { text-align: right; }
@media (max-width: 900px) {
  .tip-layout { grid-template-columns: 1fr; gap: 0.5rem; padding: 0 0.85rem 2rem; }
  .tips-col { position: static; max-height: none; overflow: visible; }
}

/* ==================== RTL (Arabic) ==================== */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .article { text-align: right; }
html[dir="rtl"] .hero-body { text-align: right; }

/* ==================== Mobile nav (K9) + responsive ==================== */
@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; padding: 0.6rem 0.85rem; gap: 0.5rem; }

  /* Hamburger visible; inline controls hidden until opened. */
  .nav-toggle { display: inline-flex; }

  .header-controls {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.6rem 0.25rem 0.25rem;
    border-top: 1px solid var(--border);
    margin-top: 0.4rem;
  }
  .header-controls.nav-open { display: flex; }

  .nav-links { margin-left: 0; flex-direction: column; gap: 0.25rem; }

  /* Theme + lang icon buttons stay compact in the open panel. */
  .theme-btn { justify-content: center; }
  .icon-btn { align-self: flex-start; }
  .lang-menu { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; max-height: 60vh; min-width: 0; }

  .hero { padding: 0.85rem 0.85rem 0; }
  .hero-body { padding: 1.75rem 0.85rem 0.5rem; }
  .hero-body h1 { font-size: 1.9rem; letter-spacing: -0.8px; }
  .carousel-btn { width: 40px; height: 40px; font-size: 16px; }
  .carousel-btn.prev { left: 12px; }
  .carousel-btn.next { right: 12px; }
  .article { padding: 1.75rem 0.85rem 2.5rem; }
  .section-block h2 { font-size: 1.6rem; }
  .tip-list { padding: 1.25rem 0.85rem 2.5rem; }
  .travel-hero { padding: 1.75rem 0.85rem 0.25rem; }
  .travel-hero h1 { font-size: 2rem; }
  .tip-footer { flex-direction: column; gap: 0.5rem; }
  /* Never force horizontal scroll from long unbroken strings */
  .tip-body, .tip-desc, .core-tip, .original-caption, .tag { overflow-wrap: anywhere; }
  .lang-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .site-footer { padding: 2.25rem 0.85rem 2rem; }
}

@media (min-width: 641px) {
  .carousel-slide img { height: 520px; }
  .tip-list { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}
