/* ═══════════════════════════════════════════════════════════════════════════
   DarijaPro Blog — keynote design (matches blog-styles/style-8-keynote.html
   and blog-styles/post-darija-greetings.html on Desktop). Self-contained.
   No Tailwind. No React. Server-rendered.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --ink: #0A0F1C;
  --ink-soft: #2C3441;
  --muted: #8A8E9A;
  --line: rgba(10,15,28,0.06);
  --white: #FFFFFF;
  --blue: #3B6CEC;
  --blue-deep: #1E3A8A;
  --pink: #E96B9D;
  --peach: #F5B68F;
  --mint: #93D3B5;
  --lilac: #B299E0;
  --amber: #E89D5F;
  --cream: #F2EFE4;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 14px;
  --radius-pill: 999px;

  --shadow-glow: 0 1px 3px rgba(10,15,28,0.04), 0 8px 24px rgba(10,15,28,0.06), 0 30px 80px rgba(10,15,28,0.10);
  --shadow-soft: 0 1px 2px rgba(10,15,28,0.03), 0 6px 18px rgba(10,15,28,0.06);
  --shadow-card: 0 1px 2px rgba(10,15,28,0.03), 0 14px 36px rgba(10,15,28,0.08), 0 30px 60px rgba(10,15,28,0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink-soft); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background: #F2EFE4;
  position: relative; overflow-x: hidden;
}

/* === ANIMATED MESH GRADIENT BG === */
body::before {
  content: ''; position: fixed; inset: -20%; z-index: -2;
  background:
    radial-gradient(circle at 18% 22%, #D9EAD9 0%, transparent 38%),
    radial-gradient(circle at 82% 18%, #FBE2D0 0%, transparent 40%),
    radial-gradient(circle at 88% 78%, #F1DCD0 0%, transparent 45%),
    radial-gradient(circle at 12% 86%, #E5DCF2 0%, transparent 40%),
    #F4F0E5;
  animation: meshDrift 22s ease-in-out infinite;
}
@keyframes meshDrift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(3%, -2%) scale(1.05); }
  66%     { transform: translate(-2%, 2%) scale(1.03); }
}
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* === Floating decorative pebbles === */
.pebble { position: fixed; border-radius: 50%; z-index: -1; pointer-events: none; filter: blur(0.5px); }
.pebble.p1 { width: 100px; height: 100px; top: 320px; left: 30px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(220,220,220,0.5));
  box-shadow: 0 30px 60px rgba(10,15,28,0.12), inset -8px -12px 24px rgba(10,15,28,0.10), inset 8px 8px 24px rgba(255,255,255,0.6);
  animation: float 9s ease-in-out infinite; }
.pebble.p2 { width: 70px; height: 70px; top: 1000px; right: 40px;
  background: radial-gradient(circle at 30% 30%, rgba(255,225,200,0.95), rgba(229,160,120,0.5));
  box-shadow: 0 30px 60px rgba(232,157,95,0.20), inset -8px -12px 24px rgba(150,80,40,0.15), inset 8px 8px 24px rgba(255,255,255,0.5);
  animation: float 12s ease-in-out infinite reverse; }
.pebble.p3 { width: 130px; height: 130px; top: 2200px; left: 60px;
  background: radial-gradient(circle at 30% 30%, rgba(220,235,220,0.95), rgba(150,200,170,0.5));
  box-shadow: 0 30px 60px rgba(80,130,100,0.20), inset -8px -12px 24px rgba(50,100,70,0.15), inset 8px 8px 24px rgba(255,255,255,0.5);
  animation: float 14s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }

a { color: var(--blue); text-decoration: none; transition: color 0.15s; }

/* === FLOATING NAV PILL (top of every blog page) === */
.nav { position: sticky; top: 18px; z-index: 50; max-width: 1200px; margin: 18px auto 0; padding: 0 24px; }
/* ANNOUNCEMENT BAR — strip across the very top, admin-toggleable */
.blog-announcement {
  position: relative; z-index: 60;
  background: linear-gradient(95deg, var(--amber) 0%, var(--peach) 60%, var(--amber) 100%);
  color: var(--ink);
  text-align: center;
  padding: 10px 20px;
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 14px; letter-spacing: -0.1px; line-height: 1.4;
  box-shadow: 0 2px 8px rgba(232,157,95,0.25);
}
.blog-announcement-text { display: inline; }
.blog-announcement-link {
  display: inline-block; margin-left: 14px;
  color: var(--ink) !important; text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  font-weight: 700;
}
.blog-announcement-link:hover { color: var(--blue-deep) !important; }
html.dark .blog-announcement { color: var(--ink); }
@media (max-width: 640px) {
  .blog-announcement { font-size: 12.5px; padding: 8px 16px; }
  .blog-announcement-link { display: block; margin: 4px 0 0; }
}

.nav-inner {
  background: rgba(255,255,255,0.55); backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-pill);
  padding: 10px 12px 10px 22px;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: var(--shadow-soft);
}
.nav .brand { display: flex; align-items: center; gap: 12px;
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700;
  font-size: 17px; color: var(--ink); letter-spacing: -0.4px;
  text-decoration: none;
}
.nav .brand .mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--lilac) 100%);
  color: white; display: grid; place-items: center; font-size: 16px;
  transform: rotate(-12deg);
  box-shadow: 0 6px 16px rgba(59,108,236,0.35), inset 0 1px 0 rgba(255,255,255,0.4);
}
.nav .links { display: flex; gap: 22px; align-items: center; font-size: 14px; font-weight: 500; }
.nav .links a { color: var(--ink-soft); }
.nav .links a.login {
  background: var(--ink); color: #fff !important;
  padding: 9px 20px; border-radius: var(--radius-pill); font-weight: 600;
  box-shadow: 0 6px 18px rgba(10,15,28,0.25);
  transition: background 0.2s;
}
.nav .links a.login:hover { background: var(--blue); }
.nav .links a.nav-mobile-link {
  background: rgba(59,108,236,0.10);
  color: var(--blue);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav .links a.nav-mobile-link:hover { background: var(--blue); color: white; }
html.dark .nav .links a.nav-mobile-link { background: rgba(122,162,255,0.15); color: #7AA2FF; }
html.dark .nav .links a.nav-mobile-link:hover { background: var(--blue); color: white; }
.nav .theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.7); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.7);
  color: var(--ink-soft); font-size: 16px; line-height: 1;
  cursor: pointer; padding: 0;
  display: grid; place-items: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s, background 0.2s;
}
.nav .theme-toggle:hover { transform: rotate(15deg) scale(1.06); background: rgba(255,255,255,0.95); }
html.dark .nav .theme-toggle {
  background: rgba(20,28,46,0.7); color: var(--ink); border-color: rgba(255,255,255,0.10);
}

/* ═══════════════════════════════════════════════════════════════
   HOME PAGE (list.html)
   ═══════════════════════════════════════════════════════════════ */

.article { max-width: 1200px; margin: 0 auto; padding: 40px 24px 100px; position: relative; z-index: 1; }

/* === MASTHEAD === */
.hero-band { position: relative; padding: 30px 24px 40px; text-align: center; overflow: hidden; }
.hero-band .super {
  display: inline-block; padding: 6px 16px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.7); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.7);
  font-size: 12px; font-weight: 700; color: var(--blue);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 24px; box-shadow: var(--shadow-soft);
}
.hero-band .super::before { content: '●'; color: var(--peach); margin-right: 8px; font-size: 8px; vertical-align: middle; }
.hero-band h1.massive {
  font-family: 'Inter', sans-serif; font-weight: 900;
  font-size: clamp(46px, 8vw, 96px); line-height: 0.95;
  letter-spacing: -3px; color: var(--ink); margin: 0 auto;
  max-width: 1100px;
}
.hero-band h1.massive em {
  background: linear-gradient(135deg, var(--pink) 0%, var(--peach) 50%, var(--amber) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic; font-weight: 900;
}
.hero-band .sub {
  margin: 24px auto 0; max-width: 640px;
  font-size: 18px; line-height: 1.55; color: var(--ink-soft);
}
.hero-band .disclaimer {
  display: inline-block;
  margin: 22px auto 0; max-width: 720px;
  padding: 12px 22px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.55); backdrop-filter: blur(14px);
  border: 1px dashed rgba(232,157,95,0.55);
  font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.55;
  color: var(--muted); font-style: italic;
}

/* === CITY-MAP BANNER === */
.map-banner { max-width: 1200px; margin: 26px auto 30px; padding: 0 24px; }
.map-stage {
  position: relative; height: 280px; overflow: visible;
  background: rgba(255,255,255,0.6); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glow);
  padding: 24px 32px;
}
.map-stage::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 15% 20%, rgba(146,108,236,0.10) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(245,182,143,0.12) 0%, transparent 45%);
  pointer-events: none;
}
.map-svg-bg { position: absolute; top: 50%; left: 0; width: 100%; height: 180px;
  transform: translateY(-50%); pointer-events: none; z-index: 1;
}
.city-pin {
  position: absolute; z-index: 2;
  transform: translate(-50%, -100%); text-align: center;
  opacity: 0; transition: opacity 0.4s;
  top: 50%; left: 50%;
}
.city-pin.placed { opacity: 1; }
.city-pin .head {
  width: 12px; height: 12px; margin: 0 auto 4px;
  background: var(--peach); border-radius: 50%; border: 2px solid white;
  box-shadow: 0 2px 6px rgba(10,15,28,0.18), 0 0 0 3px rgba(245,182,143,0.25);
}
.city-pin.intl .head { background: var(--blue); box-shadow: 0 2px 6px rgba(10,15,28,0.18), 0 0 0 3px rgba(59,108,236,0.25); }
.city-pin .name {
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 600;
  font-size: 10px; color: var(--ink);
  background: rgba(255,255,255,0.92); backdrop-filter: blur(6px);
  padding: 2px 7px; border-radius: var(--radius-pill);
  white-space: nowrap; letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(10,15,28,0.10);
}
.city-pin.intl .name { color: var(--blue); }
.city-pin.label-below { transform: translate(-50%, 0); display: flex; flex-direction: column-reverse; align-items: center; }
.city-pin.label-below .name { margin-top: 6px; margin-bottom: 0; }
.city-pin.label-below .head { order: -1; margin-bottom: 4px; margin-top: 0; }

.map-plane {
  position: absolute; z-index: 100; pointer-events: none;
  top: 50%; left: 8%;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  transform: translate(-50%, -50%) rotate(0deg);
  will-change: transform, left, top;
}
.map-plane svg {
  width: 38px; height: 38px; display: block;
  transform: rotate(90deg);
  fill: var(--blue-deep);
  filter: drop-shadow(0 2px 4px rgba(10,15,28,0.30));
}

.map-greeting {
  position: absolute; z-index: 5; pointer-events: none;
  background: var(--ink); color: white;
  padding: 8px 14px; border-radius: 14px;
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  white-space: nowrap;
  opacity: 0; transform: translate(-50%, -130%) scale(0.7);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(10,15,28,0.30); line-height: 1.2;
}
.map-greeting.show { opacity: 1; transform: translate(-50%, -160%) scale(1); }
.map-greeting .word { color: var(--peach); font-weight: 700; margin-right: 6px; }
.map-greeting .ar { font-family: 'Noto Naskh Arabic', serif; color: var(--peach); font-size: 16px; margin-right: 6px; }
.map-greeting .city { color: rgba(255,255,255,0.5); font-size: 11px; font-weight: 500; }
.map-greeting::after {
  content: ''; position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%);
  border-top: 8px solid var(--ink);
  border-left: 6px solid transparent; border-right: 6px solid transparent;
}

/* === DESTINATIONS / Choose your flight === */
.destinations { margin: 30px 0 36px; }
.destinations .head {
  display: flex; justify-content: space-between; align-items: end;
  padding: 0 6px 18px;
}
.destinations .head .label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700;
  font-size: 11px; color: var(--blue);
  letter-spacing: 2px; text-transform: uppercase;
  background: rgba(59,108,236,0.10); padding: 6px 14px; border-radius: var(--radius-pill);
}
.destinations .head .label::before { content: '✈'; color: var(--peach); }
.destinations .head .title {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: 22px; color: var(--ink); letter-spacing: -0.6px; margin-top: 8px;
}
.destinations .head .right-side { text-align: right; }
.destinations .head .sub { font-size: 13px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
/* === STEPPER (categories as connected pills, wraps to 2nd row when needed) === */
.stepper {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px 0;
  padding: 4px 0 8px;
}
.step {
  flex: 1 1 140px; min-width: 140px;
  position: relative;
  text-decoration: none; color: var(--ink);
  background: rgba(255,255,255,0.78); backdrop-filter: blur(12px);
  border: 1px solid rgba(10,15,28,0.08);
  padding: 14px 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-align: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.step:first-child {
  border-top-left-radius: 14px; border-bottom-left-radius: 14px;
}
.step:last-child {
  border-top-right-radius: 14px; border-bottom-right-radius: 14px;
}
.step + .step { margin-left: -1px; }
.step:hover {
  background: white;
  border-color: var(--cat-accent, var(--blue));
  transform: translateY(-2px);
  z-index: 2;
  box-shadow: 0 6px 18px rgba(59,108,236,0.10);
}
/* Arrow connector between pills (small rotated square sticking out of the right edge) */
.step:not(:last-child)::after {
  content: ''; position: absolute; right: -7px; top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: rgba(255,255,255,0.78);
  border-top: 1px solid rgba(10,15,28,0.08);
  border-right: 1px solid rgba(10,15,28,0.08);
  z-index: 1;
}
.step:hover:not(:last-child)::after {
  background: white;
  border-color: var(--cat-accent, var(--blue));
}
.step .name {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: 14px; line-height: 1.2; letter-spacing: -0.3px;
  color: var(--ink);
}
.step .count {
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 600;
  font-size: 11px; color: var(--muted); letter-spacing: 0.2px;
}
.step .count .v { color: var(--blue); font-weight: 700; margin-right: 2px; }

/* === MOBILE NAV: hamburger + slide-in drawer (hidden on desktop) === */
/* !important + visibility belt-and-suspenders so a cache hiccup can't ever
   leak the drawer onto desktop */
.nav-burger { display: none !important; }
.nav-drawer { display: none !important; visibility: hidden; }

.nav-burger {
  background: transparent; border: none; cursor: pointer;
  width: 32px; height: 32px; padding: 6px;
  border-radius: 8px;
  flex-direction: column; justify-content: space-between; align-items: stretch;
  transition: background 0.2s ease;
}
.nav-burger:hover { background: rgba(10,15,28,0.06); }
.nav-burger span {
  display: block; height: 2px; background: var(--ink); border-radius: 2px;
  transition: background 0.2s ease;
}

/* Nav drawer styles (same pattern as the categories drawer) */
.nav-drawer {
  position: fixed; inset: 0; z-index: 250;
  pointer-events: none;
}
.nav-drawer[aria-hidden="false"] { pointer-events: auto; }
.nav-drawer-overlay {
  position: absolute; inset: 0;
  background: rgba(10,15,28,0.55);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.3s ease;
}
.nav-drawer[aria-hidden="false"] .nav-drawer-overlay { opacity: 1; }
.nav-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 78%; max-width: 320px;
  background: #FCFAF3;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column;
  box-shadow: -8px 0 32px rgba(10,15,28,0.30);
  overflow: hidden;
}
.nav-drawer[aria-hidden="false"] .nav-drawer-panel { transform: translateX(0); }
.nav-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 16px;
  border-bottom: 1px dashed rgba(10,15,28,0.12);
}
.nav-drawer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: 17px; letter-spacing: -0.3px; color: var(--ink);
}
.nav-drawer-brand .mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--lilac, #B299E0) 100%);
  color: white; display: grid; place-items: center; font-size: 14px;
}
.nav-drawer-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(10,15,28,0.06); border: none; color: var(--ink);
  font-size: 16px; cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.2s ease;
}
.nav-drawer-close:hover { background: rgba(10,15,28,0.12); }
.nav-drawer-list {
  flex: 1; padding: 14px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.nav-drawer-list a {
  text-decoration: none; color: var(--ink);
  padding: 14px 16px; border-radius: 12px;
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: 16px; letter-spacing: -0.2px;
  transition: background 0.2s ease;
}
.nav-drawer-list a:hover { background: rgba(10,15,28,0.05); }
.nav-drawer-cta {
  margin: 0 16px 20px;
  background: var(--ink); color: white !important;
  padding: 14px 18px; border-radius: 12px;
  text-decoration: none; text-align: center;
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: 14px; letter-spacing: -0.2px;
  transition: background 0.2s ease;
}
.nav-drawer-cta:hover { background: var(--blue); }

body.nav-drawer-open { overflow: hidden; }

/* Dark mode for nav drawer */
html.dark .nav-drawer-panel { background: #141C2E; }
html.dark .nav-drawer-list a { color: var(--ink); }
html.dark .nav-drawer-list a:hover { background: rgba(255,255,255,0.06); }
html.dark .nav-drawer-close { background: rgba(255,255,255,0.06); color: var(--ink); }
html.dark .nav-drawer-close:hover { background: rgba(255,255,255,0.12); }
html.dark .nav-burger span { background: var(--ink); }
/* "Try DarijaPro" CTA at the bottom of the mobile drawer — var(--ink) flips light
   in dark mode (white on white). Force a dark-blue surface that contrasts. */
html.dark .nav-drawer-cta {
  background: var(--blue-deep);
  color: white !important;
  box-shadow: 0 8px 18px rgba(0,0,0,0.40);
}
html.dark .nav-drawer-cta:hover { background: var(--blue); }

/* === MOBILE: button + slide-in drawer (hidden on desktop) === */
.cat-mobile-btn { display: none; }
.cat-drawer { display: none; }

.cat-mobile-btn {
  width: 100%;
  background: var(--ink); color: white;
  border: none; border-radius: 14px;
  padding: 14px 18px;
  display: none;
  align-items: center; justify-content: space-between; gap: 12px;
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: 14px; letter-spacing: -0.2px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(10,15,28,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cat-mobile-btn:active { transform: translateY(1px); box-shadow: 0 4px 12px rgba(10,15,28,0.18); }
.cat-mobile-btn .ic { font-size: 16px; color: var(--peach); }
.cat-mobile-btn .lbl { flex: 1; text-align: center; }
.cat-mobile-btn .arrow { font-size: 18px; color: var(--peach); }

/* Drawer: overlay + side panel — z-index above nav (50), announcement (60),
   passport widget (~60), back-to-top (~30). 9999 guarantees it sits on top. */
.cat-drawer {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
}
.cat-drawer[aria-hidden="false"] { pointer-events: auto; }
.cat-drawer-overlay {
  position: absolute; inset: 0;
  background: rgba(10,15,28,0.55);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.3s ease;
}
.cat-drawer[aria-hidden="false"] .cat-drawer-overlay { opacity: 1; }

.cat-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 86%; max-width: 360px;
  background: #FCFAF3;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column;
  box-shadow: -8px 0 32px rgba(10,15,28,0.30);
  overflow: hidden;
}
.cat-drawer[aria-hidden="false"] .cat-drawer-panel { transform: translateX(0); }

.cat-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 14px;
  border-bottom: 1px dashed rgba(10,15,28,0.12);
}
.cat-drawer-label {
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700;
  font-size: 10px; color: var(--blue); letter-spacing: 2px; text-transform: uppercase;
}
.cat-drawer-title {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: 18px; letter-spacing: -0.5px; color: var(--ink); margin-top: 4px;
}
.cat-drawer-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(10,15,28,0.06); border: none; color: var(--ink);
  font-size: 16px; cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.2s ease;
}
.cat-drawer-close:hover { background: rgba(10,15,28,0.12); }

.cat-drawer-list {
  flex: 1; overflow-y: auto;
  padding: 8px 12px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.cat-drawer-item {
  text-decoration: none; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-radius: 12px;
  background: white;
  border: 1px solid rgba(10,15,28,0.06);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.cat-drawer-item:active {
  transform: scale(0.98);
  background: rgba(255,255,255,0.7);
}
.cat-drawer-item .name {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: 15px; letter-spacing: -0.2px;
}
.cat-drawer-item .count {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: 11.5px; color: var(--muted);
}
.cat-drawer-item .count .v { color: var(--blue); font-weight: 700; margin-right: 2px; }

/* lock body scroll when drawer is open */
body.cat-drawer-open { overflow: hidden; }

/* Dark mode for drawer */
html.dark .cat-drawer-panel { background: #141C2E; }
html.dark .cat-drawer-title { color: var(--ink); }
html.dark .cat-drawer-close { background: rgba(255,255,255,0.06); color: var(--ink); }
html.dark .cat-drawer-close:hover { background: rgba(255,255,255,0.12); }
html.dark .cat-drawer-item { background: rgba(20,28,46,0.8); border-color: rgba(255,255,255,0.08); color: var(--ink); }
html.dark .cat-drawer-item .name { color: var(--ink); }
.cat-card[data-c="greetings"] { --cat-accent: #f5b68f; }
.cat-card[data-c="souk"]      { --cat-accent: #e96b9d; }
.cat-card[data-c="food"]      { --cat-accent: #d97706; }
.cat-card[data-c="travel"]    { --cat-accent: #3b6cec; }
.cat-card[data-c="culture"]   { --cat-accent: #b299e0; }

/* === POST GRID — 3 ticket cards per row === */
/* auto-fill keeps the 3-track look on wide screens; cards stay a sensible width
   when only 1-2 posts exist instead of growing into a huge banner */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; margin-top: 16px; }
.post-card {
  position: relative; display: grid; grid-template-columns: 1fr 96px;
  border-radius: var(--radius-lg); overflow: hidden;
  min-height: 460px;
  box-shadow: var(--shadow-card);
  text-decoration: none; color: white;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(10,15,28,0.04), 0 20px 40px rgba(10,15,28,0.18), 0 40px 80px rgba(10,15,28,0.12); }
.post-card .cover {
  position: absolute; top: 0; left: 0; bottom: 0; right: 96px; z-index: 0;
  background-size: cover; background-position: center; overflow: hidden;
  background-image: linear-gradient(135deg, #1E3A8A 0%, #C66B3A 100%);
}
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .overlay {
  position: absolute; top: 0; left: 0; bottom: 0; right: 96px; z-index: 1;
  background:
    linear-gradient(135deg, rgba(10,15,28,0.78) 0%, rgba(10,15,28,0.50) 50%, rgba(10,15,28,0.72) 100%),
    linear-gradient(0deg, rgba(10,15,28,0.35), rgba(10,15,28,0.35));
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.post-card .main {
  position: relative; z-index: 2;
  padding: 18px 22px 16px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
@media (hover: hover) {
  .post-card:hover .main, .post-card:hover .overlay { transform: translateX(100%); }
}
.post-card .pass-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px; border-bottom: 1px dashed rgba(255,255,255,0.25);
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
}
.post-card .airline {
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700;
  color: var(--peach); letter-spacing: 2px;
}
.post-card .flight {
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 500;
  color: rgba(255,255,255,0.7); letter-spacing: 1.5px;
  font-variant-numeric: tabular-nums;
}
.post-card .title {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: 21px; line-height: 1.2; color: white;
  letter-spacing: -0.5px; margin: 2px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card .excerpt {
  font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.82); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card .route {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: auto; padding-top: 6px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.post-card .route .lbl { color: rgba(255,255,255,0.5); }
.post-card .route .val {
  color: white; font-weight: 700; font-size: 16px;
  letter-spacing: -0.3px; text-transform: none; margin-right: 8px;
}
.post-card .route .plane { color: var(--peach); font-size: 16px; padding: 0 4px; }
.post-card .meta {
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 10px;
  letter-spacing: 2px; color: rgba(255,255,255,0.55);
  margin-top: -2px;
}
.post-card .meta .sep { margin: 0 8px; color: rgba(255,255,255,0.3); }
.post-card .stub {
  position: relative; z-index: 3;
  background: linear-gradient(160deg, #FCE3CD 0%, #F4B89A 100%);
  padding: 20px 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
  border-left: 2px dashed rgba(10,15,28,0.30);
}
.post-card .stub::before, .post-card .stub::after {
  content: ''; position: absolute; left: -10px; width: 20px; height: 20px;
  background: var(--cream); border-radius: 50%; z-index: 1;
}
.post-card .stub::before { top: -10px; }
.post-card .stub::after { bottom: -10px; }
.post-card .stub .lbl { font-size: 10px; color: rgba(10,15,28,0.7); font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; }
.post-card .stub .seat {
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700;
  font-size: 26px; color: var(--ink); line-height: 1; margin: 4px 0 12px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.45);
}
.post-card .stub .barcode {
  width: 100%; flex: 1; min-height: 24px; margin: 8px 0 10px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px, transparent 2px 5px,
    var(--ink) 5px 6px, transparent 6px 10px,
    var(--ink) 10px 13px, transparent 13px 16px,
    var(--ink) 16px 17px, transparent 17px 22px
  );
  opacity: 0.10; border-radius: 1px;
}
.post-card .stub .gate {
  font-size: 11px; color: var(--ink); font-weight: 600; letter-spacing: 0.5px;
  padding-top: 8px; border-top: 1px dashed rgba(10,15,28,0.35);
  align-self: stretch; text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE POST PAGE (post.html)
   ═══════════════════════════════════════════════════════════════ */

.post-article { max-width: 880px; margin: 0 auto; padding: 36px 24px 100px; position: relative; z-index: 1; }

/* breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px; padding: 0 6px; font-size: 13px;
}
.breadcrumb .back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.78); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.7);
  color: var(--ink); font-weight: 600; font-size: 13px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.breadcrumb .back-btn:hover {
  transform: translateX(-3px);
  background: var(--ink); color: white;
  box-shadow: 0 8px 22px rgba(10,15,28,0.25);
}
.breadcrumb .back-btn .arr { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; }
.breadcrumb .sep { color: var(--line); }
.breadcrumb .pill-cat {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.7); backdrop-filter: blur(8px);
  color: var(--blue); padding: 5px 13px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
  box-shadow: var(--shadow-soft);
}
.breadcrumb .pill-cat::before { content: '●'; font-size: 8px; }

/* BOARDING PASS HEADER (post hero ticket) */
.pass {
  background: linear-gradient(135deg, #1E3A8A 0%, #C66B3A 100%);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-glow);
  display: grid; grid-template-columns: 1fr 170px;
  overflow: hidden; margin-bottom: 24px; position: relative;
}
.pass .main {
  padding: 30px 36px; position: relative; color: white;
  overflow: hidden;
  background: linear-gradient(135deg, #1E3A8A 0%, #C66B3A 100%);
}
.pass .cover {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; z-index: 0; overflow: hidden;
}
.pass .cover img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.pass .overlay {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; z-index: 1;
  background:
    linear-gradient(135deg, rgba(10,15,28,0.78) 0%, rgba(10,15,28,0.50) 50%, rgba(10,15,28,0.72) 100%),
    linear-gradient(0deg, rgba(10,15,28,0.35), rgba(10,15,28,0.35));
}
.pass .main > .pass-header,
.pass .main > h1,
.pass .main > .excerpt,
.pass .main > .route { position: relative; z-index: 2; }
.pass .pass-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; margin-bottom: 18px;
  border-bottom: 1px dashed rgba(255,255,255,0.25);
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
}
.pass .airline {
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700;
  color: var(--peach); letter-spacing: 2px;
}
.pass .airline .dot { color: var(--peach); margin: 0 6px; }
.pass .flight {
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 500;
  color: rgba(255,255,255,0.75); letter-spacing: 1.5px;
  font-variant-numeric: tabular-nums;
}
.pass h1 {
  font-family: 'Inter', sans-serif; font-weight: 900;
  font-size: 40px; line-height: 1.05; letter-spacing: -1.5px;
  color: white; margin: 6px 0 16px;
}
.pass .excerpt {
  font-size: 17px; color: rgba(255,255,255,0.88); line-height: 1.55;
  margin: 0 0 18px; max-width: 600px;
}
.pass .route {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 20px; align-items: end; padding-top: 16px;
  border-top: 1px dashed rgba(255,255,255,0.25);
}
.pass .route .lbl { font-size: 11px; color: rgba(255,255,255,0.6); font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
.pass .route .val {
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700;
  font-size: 22px; color: white; margin-top: 4px; letter-spacing: -0.4px;
}
.pass .route .plane { color: var(--peach); font-size: 20px; padding-bottom: 4px; }
.pass .stub {
  background: linear-gradient(160deg, #FCE3CD 0%, #F4B89A 100%);
  padding: 30px 14px; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
  border-left: 2px dashed rgba(10,15,28,0.30);
}
.pass .stub::before, .pass .stub::after {
  content: ''; position: absolute; left: -12px; width: 24px; height: 24px;
  background: #F2EFE4; border-radius: 50%; z-index: 1;
}
.pass .stub::before { top: -12px; }
.pass .stub::after { bottom: -12px; }
.pass .stub .lbl { font-size: 10px; color: rgba(10,15,28,0.7); font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; }
.pass .stub .seat {
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700;
  font-size: 38px; color: var(--ink); line-height: 1; margin: 6px 0 14px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}
.pass .stub .barcode {
  width: 100%; flex: 1; min-height: 32px; margin: 8px 0 12px;
  background-image: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 10px, var(--ink) 10px 13px, transparent 13px 16px, var(--ink) 16px 17px, transparent 17px 22px);
  opacity: 0.10; border-radius: 1px;
}
.pass .stub .gate {
  font-size: 11px; color: var(--ink); font-weight: 600; letter-spacing: 0.5px;
  padding-top: 8px; border-top: 1px dashed rgba(10,15,28,0.35);
  align-self: stretch; text-align: center;
}

/* META STRIP */
.meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 28px; padding: 16px 20px;
  background: rgba(255,255,255,0.72); backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.7); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.meta .author { display: inline-flex; align-items: center; gap: 10px; }
.meta .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--lilac) 100%);
  color: white; display: grid; place-items: center;
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 15px;
  box-shadow: 0 4px 12px rgba(59,108,236,0.25);
}
.meta .name { font-weight: 700; font-size: 14px; color: var(--ink); }
.meta .name-sub { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 1px; }
.meta .dot { color: var(--line); }
.meta .item { font-size: 13px; color: var(--muted); }
.meta .item .v { color: var(--ink); font-weight: 600; }

/* COVER + INLINE IMAGE PLACEHOLDERS */
.cover-img {
  margin-bottom: 28px;
  border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-card);
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #FBC9DE 0%, #C9D5F5 40%, #FFE5D1 80%, #C9EFD6 100%);
  position: relative;
}
.cover-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inline-img {
  margin-bottom: 24px; aspect-ratio: 16/9;
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-card);
  background: linear-gradient(135deg, #F8C5DA 0%, #B299E0 100%);
  position: relative;
}
.inline-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inline-img figcaption {
  position: absolute; bottom: 14px; left: 22px; right: 22px;
  color: white; font-size: 13px; font-style: italic;
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}

/* PROSE CARDS (intro / why-these / mid-story / cultural / conclusion) */
.prose-card {
  background: rgba(255,255,255,0.78); backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-xl); padding: 38px 42px; margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
}
.prose-card .section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; color: var(--blue);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px;
  background: rgba(59,108,236,0.10); padding: 5px 14px; border-radius: var(--radius-pill);
}
.prose-card h3 {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: 30px; color: var(--ink); margin: 0 0 18px;
  letter-spacing: -0.9px;
}
.prose-card p { font-size: 17px; line-height: 1.78; color: var(--ink-soft); margin: 0 0 14px; }
.prose-card p:last-child { margin-bottom: 0; }
.prose-card p strong { color: var(--ink); font-weight: 700; }
.prose-card p em {
  background: linear-gradient(135deg, var(--pink), var(--peach));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic; font-weight: 700;
}
.prose-card.lede p:first-of-type {
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 22px; line-height: 1.42; color: var(--ink); letter-spacing: -0.4px;
}

/* PHRASE GRID — 5 per row */
.phrase-section { margin-bottom: 24px; }
.phrase-section .section-head {
  display: flex; justify-content: space-between; align-items: end;
  padding: 0 6px 16px;
}
.phrase-section .section-head .title {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: 17px; color: var(--ink); letter-spacing: -0.3px;
}
.phrase-section .section-head .count { font-size: 13px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.phrase-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.phrase-card {
  background: rgba(255,255,255,0.78); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  display: flex; flex-direction: column;
  position: relative;
}
.phrase-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.phrase-card .grad { height: 90px; position: relative; overflow: hidden; }
.phrase-card .grad::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 55%);
}
.phrase-card .num {
  position: absolute; top: 10px; left: 12px; z-index: 2;
  background: rgba(255,255,255,0.92); color: var(--ink);
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700;
  font-size: 11px; padding: 4px 10px; border-radius: var(--radius-pill);
  box-shadow: 0 3px 10px rgba(10,15,28,0.10);
}
.phrase-card .body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.phrase-card .en { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 6px; }
.phrase-card .latin {
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700;
  font-size: 18px; color: var(--ink); letter-spacing: -0.3px; line-height: 1.2; margin-bottom: 6px;
}
.phrase-card .ar {
  font-family: 'Noto Naskh Arabic', serif; font-weight: 600;
  font-size: 20px; color: var(--blue); direction: rtl; margin-bottom: 12px; line-height: 1.3;
}
.phrase-card .note {
  font-size: 11px; color: var(--muted); line-height: 1.5;
  padding-top: 8px; border-top: 1px solid var(--line); margin-top: auto;
  align-self: stretch; text-align: center;
}
.phrase-card[data-c="1"]  .grad { background: linear-gradient(140deg, #FBE2B8 0%, #F5B68F 100%); }
.phrase-card[data-c="2"]  .grad { background: linear-gradient(140deg, #C7D9F2 0%, #9CB8E8 100%); }
.phrase-card[data-c="3"]  .grad { background: linear-gradient(140deg, #C9EFD6 0%, #93D3B5 100%); }
.phrase-card[data-c="4"]  .grad { background: linear-gradient(140deg, #FFD1B2 0%, #F5A57B 100%); }
.phrase-card[data-c="5"]  .grad { background: linear-gradient(140deg, #D2D5F2 0%, #A6ADE8 100%); }
.phrase-card[data-c="6"]  .grad { background: linear-gradient(140deg, #FBE2A4 0%, #E8C66A 100%); }
.phrase-card[data-c="7"]  .grad { background: linear-gradient(140deg, #FBD0CB 0%, #E96B9D 100%); }
.phrase-card[data-c="8"]  .grad { background: linear-gradient(140deg, #F8C5DA 0%, #E091BD 100%); }
.phrase-card[data-c="9"]  .grad { background: linear-gradient(140deg, #BFE7E1 0%, #7FC1B8 100%); }
.phrase-card[data-c="10"] .grad { background: linear-gradient(140deg, #DFD0F2 0%, #B299E0 100%); }

/* CALLOUTS (easter eggs) */
.callout {
  margin-bottom: 24px; padding: 24px 28px;
  border-radius: var(--radius-xl);
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow-soft); backdrop-filter: blur(16px);
}
.callout.warm { background: linear-gradient(135deg, rgba(255,228,209,0.85), rgba(252,200,212,0.85)); }
.callout.cool { background: linear-gradient(135deg, rgba(214,229,251,0.85), rgba(220,206,243,0.85)); }
.callout .ic {
  width: 52px; height: 52px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: rgba(255,255,255,0.85); display: grid; place-items: center; font-size: 24px;
  box-shadow: 0 6px 16px rgba(10,15,28,0.10), inset 0 1px 0 rgba(255,255,255,0.6);
}
.callout .ic.icon-img { padding: 4px; }
.callout .ic.icon-img img { width: 100%; height: 100%; object-fit: contain; }
.callout .label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--amber); margin-bottom: 4px;
}
.callout.cool .label { color: var(--blue); }
.callout p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); }
.callout p strong { font-weight: 700; }
.callout p em {
  background: linear-gradient(135deg, var(--pink), var(--peach));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic; font-weight: 700;
}

/* PULL QUOTE */
.quote {
  background: linear-gradient(135deg, #0A0F1C, #1B2331);
  border-radius: var(--radius-xl); padding: 56px 48px;
  color: white; margin-bottom: 24px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.quote::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,182,143,0.5), transparent 65%);
}
.quote::after {
  content: ''; position: absolute; bottom: -120px; left: -100px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(178,153,224,0.4), transparent 65%);
}
.quote .mark {
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700;
  font-size: 90px; line-height: 0.6;
  background: linear-gradient(135deg, var(--peach), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: absolute; top: 32px; left: 40px;
}
.quote p {
  position: relative; margin: 28px 0 0 70px;
  font-family: 'Inter', sans-serif;
  font-size: 28px; line-height: 1.32; font-weight: 700;
  letter-spacing: -0.8px; max-width: 720px;
}

/* SHARE ROW */
.share {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 24px; padding: 16px 22px;
  background: rgba(255,255,255,0.72); backdrop-filter: blur(18px);
  border: 1px dashed rgba(10,15,28,0.10); border-radius: var(--radius);
}
.share .lbl {
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 11px;
  letter-spacing: 2px; color: var(--muted); text-transform: uppercase;
  font-weight: 700; margin-right: 6px;
}
.share .btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--ink); color: white;
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}
.share .btn:hover { transform: translateY(-2px); }
.share .btn.tw:hover { background: #000; }
.share .btn.wa:hover { background: #25d366; }
.share .btn.copy:hover { background: var(--blue); }

/* CATEGORIES (single post) */
.categories {
  background: rgba(255,255,255,0.75); backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-xl); padding: 26px 30px;
  margin-bottom: 24px; box-shadow: var(--shadow-soft);
}
.categories .head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 16px; }
.categories .head .title {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: 17px; color: var(--ink); letter-spacing: -0.3px;
}
.categories .head .sub { font-size: 12px; color: var(--muted); font-weight: 500; }
.categories .pills { display: flex; gap: 10px; flex-wrap: wrap; }
.categories .pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--radius-pill);
  background: rgba(59,108,236,0.08);
  border: 1px solid rgba(59,108,236,0.20);
  color: var(--blue); font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, color 0.15s;
}
.categories .pill:hover { background: var(--blue); color: white; transform: translateY(-2px); }
.categories .pill .ic { font-size: 14px; }
.categories .pill.current { background: var(--ink); color: white; border-color: var(--ink); }

/* CTA */
.cta {
  background: rgba(255,255,255,0.78); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-xl); padding: 50px 32px; text-align: center;
  box-shadow: var(--shadow-card); position: relative; overflow: hidden;
  margin-bottom: 24px;
}
.cta::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,182,143,0.35), transparent 65%);
}
.cta::after {
  content: ''; position: absolute; bottom: -140px; left: -140px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(178,153,224,0.30), transparent 65%);
}
.cta .label {
  position: relative; font-size: 11px; font-weight: 700; color: var(--blue);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px;
}
.cta h3 {
  position: relative;
  font-family: 'Inter', sans-serif; font-weight: 900;
  font-size: 36px; color: var(--ink); margin: 0 0 12px;
  letter-spacing: -1.2px;
}
.cta p { position: relative; color: var(--muted); margin: 0 0 26px; font-size: 15px; }
.cta .btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; background: var(--ink); color: white;
  font-size: 14px; font-weight: 600; border-radius: var(--radius-pill);
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 8px 22px rgba(10,15,28,0.30), inset 0 1px 0 rgba(255,255,255,0.2);
  text-decoration: none;
}
.cta .btn:hover { background: var(--blue); transform: translateY(-2px); }

/* CREDITS */
.credits {
  background: transparent;
  border-top: 1px dashed rgba(10,15,28,0.15);
  padding: 28px 4px 4px;
  margin-top: 8px;
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 12px;
  color: var(--muted); letter-spacing: 0.3px; line-height: 1.65;
}
.credits .head {
  font-size: 10px; font-weight: 700;
  color: var(--ink); letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 12px;
}
.credits ul { list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 24px;
}
.credits li { padding-left: 14px; position: relative; }
.credits li::before { content: '✦'; color: var(--peach); position: absolute; left: 0; top: 0; font-size: 10px; }
.credits li strong { color: var(--ink); font-weight: 600; margin-right: 4px; }
.credits a { color: var(--blue-deep); text-decoration: underline; text-decoration-thickness: 1px; }

/* BACK TO TOP (floating) */
#back-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: white;
  border: 2px solid rgba(255,255,255,0.8);
  cursor: pointer; font-size: 18px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(10,15,28,0.30), inset 0 1px 0 rgba(255,255,255,0.2);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, background 0.2s;
  z-index: 60;
}
#back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-top:hover { background: var(--blue); }

/* TOAST */
#blog-toast {
  position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%) translateY(10px);
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: white;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(10,15,28,0.30);
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
  z-index: 9999;
}
#blog-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* PASSPORT (stamps memento bottom-right; existing localStorage logic in base.html) */
.passport-widget {
  position: fixed; bottom: 84px; right: 20px;
  background: rgba(255,255,255,0.78); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.7);
  padding: 8px 12px; border-radius: 12px;
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 11px; color: var(--ink);
  box-shadow: 0 8px 24px rgba(10,15,28,0.15); z-index: 100; transform: rotate(-2deg);
}
.passport-widget .label-row { font-size: 9px; letter-spacing: 2px; color: var(--muted); }
.passport-widget .stamps-count { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); margin-top: 2px; }

/* === FOOTER === */
footer {
  text-align: center; padding: 60px 24px 30px; margin-top: 30px;
  color: var(--muted); font-size: 13px; position: relative; z-index: 1;
}
footer .farewell {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: 20px; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.4px;
}

/* === EMPTY STATE === */
.empty-state {
  text-align: center; padding: 80px 24px; color: var(--muted);
}
.empty-state .ic { font-size: 56px; margin-bottom: 14px; }
.empty-state h3 { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 22px; color: var(--ink); margin: 0 0 6px; }
.empty-state p { font-size: 15px; margin: 0; }

/* ═══════════════════════════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 980px) {
  /* stepper stays horizontal until we hit phone-size — handled below */
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .phrase-grid { grid-template-columns: repeat(2, 1fr); }
  .pebble { display: none; }
}
@media (max-width: 640px) {
  .nav .links a:not(.login) { display: none; }
  .nav .theme-toggle { width: 32px; height: 32px; font-size: 14px; }
  .article { padding: 0 14px 60px; }
  .post-article { padding: 24px 14px 60px; }
  .map-banner { padding: 0 14px; }
  .map-stage { height: 200px; padding: 18px 16px; }
  .city-pin .name { display: none; }
  .city-pin .head { width: 9px; height: 9px; border-width: 2px; }
  .map-plane { width: 28px; height: 28px; }
  .map-plane svg { width: 14px; height: 14px; }
  .map-greeting { font-size: 12px; padding: 6px 10px; }
  .destinations .head { flex-direction: column; align-items: start; gap: 8px; }
  .destinations .head .right-side { text-align: left; }
  .destinations .head .title { font-size: 18px; }
  /* Mobile: hide the inline stepper, show the drawer trigger button + drawer */
  .stepper { display: none; }
  .cat-mobile-btn { display: flex; }
  .cat-drawer { display: block; }

  /* Mobile nav: hide desktop links + CTA pill, show hamburger + drawer */
  .nav-desktop-only { display: none !important; }
  .nav-burger { display: flex !important; }
  .nav-drawer { display: block !important; visibility: visible; }
  .nav .links { gap: 4px; }

  /* Smaller passport widget on phones */
  .passport-widget { padding: 6px 10px; font-size: 10px; right: 12px; bottom: 12px; }
  .passport-widget .label-row { font-size: 8.5px; letter-spacing: 1.5px; }
  .passport-widget .stamps-count { font-size: 11px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 1fr 90px; min-height: 280px; }
  .post-card .cover, .post-card .overlay { right: 90px; }
  .post-card .title { font-size: 22px; }
  .post-card .main { padding: 22px 22px 20px; }
  .post-card .stub { padding: 22px 12px; }
  .post-card .stub .seat { font-size: 28px; margin: 4px 0 16px; }
  .hero-band { padding: 20px 16px 30px; }
  .hero-band .sub { font-size: 16px; }
  /* single post mobile */
  .pass { grid-template-columns: 1fr; }
  .pass .stub {
    flex-direction: row; padding: 14px 20px;
    border-left: none;
    border-top: 2px dashed rgba(10,15,28,0.30);
  }
  .pass .stub::before { left: 50%; top: -12px; transform: translateX(-50%); right: auto; }
  .pass .stub::after  { left: 50%; right: auto; top: auto; bottom: -12px; transform: translateX(-50%); }
  .pass .stub .seat { margin: 0; font-size: 26px; }
  .pass .stub .barcode { display: none; }
  .pass .stub .gate { padding-top: 0; border-top: none; align-self: center; }
  .pass h1 { font-size: 26px; letter-spacing: -1px; }
  .pass .main { padding: 24px; }
  .pass .route .val { font-size: 18px; }
  .phrase-grid { grid-template-columns: 1fr; }
  .prose-card { padding: 28px 22px; }
  .prose-card h3 { font-size: 24px; }
  .prose-card.lede p:first-of-type { font-size: 19px; }
  .quote { padding: 36px 24px; }
  .quote p { font-size: 20px; margin: 16px 0 0 40px; }
  .quote .mark { font-size: 64px; left: 24px; }
  .cta { padding: 36px 22px; }
  .cta h3 { font-size: 26px; }
  /* Lift the back-to-top button above the passport widget so they don't overlap */
  #back-top { bottom: 76px; right: 14px; width: 38px; height: 38px; font-size: 14px; }
  .categories { padding: 22px 20px; }
  .credits ul { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE — html.dark
   ═══════════════════════════════════════════════════════════════ */
html.dark {
  --ink: #E7EAF1;
  --ink-soft: #B8BFCB;
  --muted: #7c828c;
  --line: rgba(255,255,255,0.08);
}
html.dark body { background: #0B1220; }
html.dark body::before {
  background:
    radial-gradient(circle at 18% 22%, #1B3328 0%, transparent 38%),
    radial-gradient(circle at 82% 18%, #2B2218 0%, transparent 40%),
    radial-gradient(circle at 88% 78%, #2A1C18 0%, transparent 45%),
    radial-gradient(circle at 12% 86%, #1C1830 0%, transparent 40%),
    #0F1626;
}
html.dark .nav-inner { background: rgba(20,28,46,0.6); border-color: rgba(255,255,255,0.08); }
html.dark .nav .brand { color: var(--ink); }
html.dark .nav .links a { color: var(--ink-soft); }
html.dark .nav .links a.login { background: var(--blue); color: white; }
html.dark .map-stage { background: rgba(20,28,46,0.6); border-color: rgba(255,255,255,0.08); }
html.dark .city-pin .name { background: rgba(20,28,46,0.92); color: var(--ink); }
html.dark .step { background: rgba(20,28,46,0.78); border-color: rgba(255,255,255,0.08); color: var(--ink); }
html.dark .step:hover { background: rgba(20,28,46,0.95); border-color: var(--cat-accent, var(--blue)); }
html.dark .step:not(:last-child)::after { background: rgba(20,28,46,0.78); border-color: rgba(255,255,255,0.08); }
html.dark .step:hover:not(:last-child)::after { background: rgba(20,28,46,0.95); border-color: var(--cat-accent, var(--blue)); }
html.dark .step .name { color: var(--ink); }
html.dark .step .num { background: rgba(59,108,236,0.15); }
html.dark .step .count .v { color: var(--ink); }
html.dark .step .ic.has-img { background: rgba(255,255,255,0.04); }
html.dark .destinations .head .title { color: var(--ink); }
html.dark .hero-band .sub { color: var(--ink-soft); }
html.dark .hero-band .disclaimer { background: rgba(20,28,46,0.5); color: var(--ink-soft); }
html.dark .post-card .stub::before, html.dark .post-card .stub::after { background: #0B1220; }
html.dark .prose-card { background: rgba(20,28,46,0.78); border-color: rgba(255,255,255,0.08); }
html.dark .prose-card h3 { color: var(--ink); }
html.dark .prose-card p { color: var(--ink-soft); }
html.dark .prose-card p strong { color: var(--ink); }
html.dark .meta { background: rgba(20,28,46,0.72); border-color: rgba(255,255,255,0.08); }
html.dark .meta .name { color: var(--ink); }
html.dark .meta .item .v { color: var(--ink); }
html.dark .categories { background: rgba(20,28,46,0.75); border-color: rgba(255,255,255,0.08); }
html.dark .categories .head .title { color: var(--ink); }
html.dark .categories .pill { background: rgba(122,162,255,0.08); border-color: rgba(122,162,255,0.20); color: #7AA2FF; }
html.dark .categories .pill.current { background: var(--ink); color: #0B1220; }
html.dark .cta { background: rgba(20,28,46,0.78); border-color: rgba(255,255,255,0.08); }
html.dark .cta h3 { color: var(--ink); }
html.dark .share { background: rgba(20,28,46,0.72); border-color: rgba(255,255,255,0.10); }
html.dark .breadcrumb .back-btn { background: rgba(20,28,46,0.78); border-color: rgba(255,255,255,0.08); color: var(--ink); }
html.dark .credits .head { color: var(--ink); }
html.dark .credits li strong { color: var(--ink); }
html.dark .passport-widget { background: rgba(20,28,46,0.78); border-color: rgba(255,255,255,0.08); color: var(--ink); }
html.dark footer .farewell { color: var(--ink); }

/* #postFeed transition — quick fade while AJAX is swapping the content in */
#postFeed { transition: opacity 0.18s ease; }
#postFeed.feed-loading { opacity: 0.55; pointer-events: none; }

/* === FILTER BANNER (shown when ?cat=X is active) === */
.filter-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  background: rgba(255,255,255,0.78); backdrop-filter: blur(14px);
  border: 1px dashed rgba(10,15,28,0.15);
  border-radius: var(--radius); padding: 14px 18px;
  margin-bottom: 18px;
}
.filter-banner .filter-eyebrow {
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700;
  font-size: 10px; color: var(--blue); letter-spacing: 2px; text-transform: uppercase;
  margin-right: 8px;
}
.filter-banner .filter-name {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: 16px; color: var(--ink); letter-spacing: -0.3px;
}
.filter-banner .filter-desc { font-size: 13px; color: var(--muted); margin-left: 4px; }
.filter-banner .filter-clear {
  text-decoration: none; font-size: 12px; font-weight: 700;
  color: var(--ink); padding: 6px 12px; border-radius: var(--radius-pill);
  background: rgba(10,15,28,0.06);
  transition: background 0.2s ease;
}
.filter-banner .filter-clear:hover { background: rgba(10,15,28,0.12); color: var(--blue); }
html.dark .filter-banner { background: rgba(20,28,46,0.78); border-color: rgba(255,255,255,0.10); }
html.dark .filter-banner .filter-name { color: var(--ink); }
html.dark .filter-banner .filter-clear { background: rgba(255,255,255,0.08); color: var(--ink); }
html.dark .filter-banner .filter-clear:hover { background: rgba(255,255,255,0.16); }

/* === DARK MODE: missing text fixes (hero title, phrase cards, callouts, empty state) === */

/* Hero band big title was using --ink which flips light — make sure it still reads against the light pastel mesh background in dark mode */
html.dark .hero-band h1.massive { color: var(--ink); }
html.dark .hero-band h1.massive em { color: var(--peach); }
html.dark .hero-band .super { color: var(--blue); }

/* Empty state */
html.dark .empty-state h3 { color: var(--ink); }
html.dark .empty-state p { color: var(--ink-soft); }
html.dark .empty-state p a { color: var(--peach); }

/* Phrase cards — re-skin body to dark glass (gradient header on top stays as designed) */
html.dark .phrase-card { background: rgba(20,28,46,0.85); border-color: rgba(255,255,255,0.10); }
html.dark .phrase-card .en { color: var(--muted); }
html.dark .phrase-card .latin { color: var(--ink); }
html.dark .phrase-card .ar { color: #7AA2FF; }
html.dark .phrase-card .note { color: var(--ink-soft); border-top-color: rgba(255,255,255,0.10); }

/* Callouts — re-skin background to dark with tinted glow, keep label peach/blue */
html.dark .callout { border-color: rgba(255,255,255,0.10); }
html.dark .callout.warm { background: linear-gradient(135deg, rgba(245,182,143,0.18), rgba(233,107,157,0.18)); }
html.dark .callout.cool { background: linear-gradient(135deg, rgba(59,108,236,0.18), rgba(178,153,224,0.18)); }
html.dark .callout p { color: var(--ink); }
html.dark .callout p strong { color: var(--ink); }
html.dark .callout p em { color: var(--peach); }
html.dark .callout .label { color: var(--peach); }
html.dark .callout.cool .label { color: #7AA2FF; }

/* Stepper description tag */
html.dark .step .tag { color: var(--ink-soft); }

/* Share row + label */
html.dark .share { background: rgba(20,28,46,0.72); border-color: rgba(255,255,255,0.10); }
html.dark .share .lbl { color: var(--muted); }

/* Cover figure caption */
html.dark .inline-img figcaption { color: var(--ink-soft); }
html.dark .cover-img figcaption { color: var(--ink-soft); }

/* Stepper count word color stays peach which works in dark */
html.dark .step .count { color: var(--muted); }

/* Hero "super" eyebrow pill — re-skin to dark glass with blue label so it reads in dark mode */
html.dark .hero-band .super {
  background: rgba(20,28,46,0.75);
  border-color: rgba(122,162,255,0.20);
  color: #7AA2FF;
}
html.dark .hero-band .super::before { color: var(--peach); }

/* Mobile "Browse all posts" button — keep dark surface in dark mode (default uses var(--ink)
   which flips to LIGHT in dark, making the button white with white text) */
html.dark .cat-mobile-btn {
  background: rgba(20,28,46,0.95);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(0,0,0,0.40);
}
html.dark .cat-mobile-btn .ic,
html.dark .cat-mobile-btn .arrow { color: var(--peach); }

/* Back-to-top button — same issue as the mobile button: var(--ink) flips light in
   dark mode, making the button white with white arrow. Force dark blue surface. */
html.dark #back-top {
  background: var(--blue-deep);
  color: white;
  border-color: rgba(255,255,255,0.20);
}
html.dark #back-top:hover { background: var(--blue); }

/* === Meta strip + boarding-pass stub text — readable in both modes === */

/* In light mode, the meta strip's secondary words ("phrases", "read", etc.)
   use --muted which is too faint on white. Bump them up so they're legible. */
.meta .item { color: var(--ink-soft); }
.meta .name-sub { color: var(--ink-soft); }
html.dark .meta .item { color: var(--ink-soft); }
html.dark .meta .name-sub { color: var(--ink-soft); }

/* In dark mode, re-skin the boarding-pass stub from orange to dark glass.
   The text inside (SEAT/12A/GATE) keeps the default --ink color which flips
   to light, so it reads correctly against the new dark glass surface. */
html.dark .pass .stub,
html.dark .post-card .stub {
  background: rgba(20,28,46,0.85);
  border-left-color: rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
html.dark .pass .stub .lbl,
html.dark .post-card .stub .lbl { color: rgba(255,255,255,0.65); }
html.dark .pass .stub .gate,
html.dark .post-card .stub .gate { border-top-color: rgba(255,255,255,0.18); }
html.dark .pass .stub .seat,
html.dark .post-card .stub .seat { text-shadow: none; }
/* Notch circles between stub and main: match the dark body background */
html.dark .pass .stub::before, html.dark .pass .stub::after { background: #0F1626; }
html.dark .post-card .stub::before, html.dark .post-card .stub::after { background: #0F1626; }
/* Barcode strip — dark surface needs a lighter pattern to show */
html.dark .pass .stub .barcode,
html.dark .post-card .stub .barcode {
  background-image: repeating-linear-gradient(90deg, white 0 2px, transparent 2px 5px, white 5px 6px, transparent 6px 10px, white 10px 13px, transparent 13px 16px, white 16px 17px, transparent 17px 22px);
  opacity: 0.18;
}

/* Home-card meta was inheriting the bare .meta white-pill background. Reset it
   for the home grid so the "10 PHRASES · MAY 19" line is plain text over the
   dark cover overlay, not a separate floating pill. */
.post-card .meta {
  background: transparent;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
