/* RoamAmerica — one stylesheet, mobile first. Themes swap the tokens on :root. */

:root {
  --bg: #fff8f1;
  --surface: #ffffff;
  --surface-2: #fff0e4;
  --ink: #1f1633;
  --ink-soft: #4a3f5c;
  --muted: #776b88;
  --line: #f0dfd2;
  --primary: #ff5a36;
  --primary-ink: #ffffff;
  --secondary: #7b2ff7;
  --accent: #ffb800;
  --grad: linear-gradient(120deg, #ff5a36 0%, #ff2e7e 45%, #7b2ff7 100%);
  --tint: #fff1e6;
  --shadow: 0 10px 30px -12px rgba(60, 20, 40, .25);
  --shadow-lg: 0 24px 60px -20px rgba(60, 20, 40, .35);

  --c-nature: #16a34a;
  --c-historic: #d97706;
  --c-cities: #9333ea;
  --c-landmarks: #2563eb;
  --c-hiking: #0d9488;
  --c-motorcycle: #dc2626;
  --c-rv: #db2777;

  --radius: 22px;
  --radius-sm: 12px;
  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --header-h: 68px;
  color-scheme: light;
}

:root[data-theme="ocean"] {
  --bg: #f1f9ff; --surface: #ffffff; --surface-2: #e3f3ff; --ink: #0b2239; --ink-soft: #2c4a66; --muted: #5d7893;
  --line: #d4e6f5; --primary: #0077ff; --secondary: #00b4a6; --accent: #ff6b9a; --tint: #e6f4ff;
  --grad: linear-gradient(120deg, #0077ff 0%, #00b4d8 50%, #00b4a6 100%);
  --shadow: 0 10px 30px -12px rgba(10, 40, 80, .25); --shadow-lg: 0 24px 60px -20px rgba(10, 40, 80, .35);
}
:root[data-theme="canyon"] {
  --bg: #fbf3ea; --surface: #fffaf5; --surface-2: #f6e6d6; --ink: #2b1609; --ink-soft: #5a3a25; --muted: #8a6a55;
  --line: #ecd8c4; --primary: #c2410c; --secondary: #9a3412; --accent: #0e7490; --tint: #f8e9da;
  --grad: linear-gradient(120deg, #c2410c 0%, #ea580c 45%, #b45309 100%);
}
:root[data-theme="forest"] {
  --bg: #f2f8f0; --surface: #ffffff; --surface-2: #e2f0dd; --ink: #102615; --ink-soft: #2e4b33; --muted: #5d7a62;
  --line: #d4e7cf; --primary: #2f7d32; --secondary: #0f766e; --accent: #f59e0b; --tint: #e5f3e1;
  --grad: linear-gradient(120deg, #2f7d32 0%, #16a34a 45%, #0f766e 100%);
}
:root[data-theme="night"] {
  --bg: #0f0d1a; --surface: #1a1730; --surface-2: #231f3d; --ink: #f4f1ff; --ink-soft: #d2cbe8; --muted: #a59fbf;
  --line: #2f2a4d; --primary: #ff7a59; --primary-ink: #1a0f0a; --secondary: #a78bfa; --accent: #fcd34d; --tint: #17142b;
  --grad: linear-gradient(120deg, #ff7a59 0%, #f472b6 45%, #a78bfa 100%);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background-color .3s, color .3s;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3.4vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
h2 > .icon, h1 > .icon { color: var(--primary); margin-right: .35em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* Reading progress */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.3em;
  border-radius: 999px; border: 0; font-weight: 700; text-decoration: none; line-height: 1.2;
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 1em 1.6em; font-size: 1.05rem; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-glass { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .35); }
.btn-light { background: #fff; color: #1f1633; }
.btn-soft { background: var(--surface-2); color: var(--ink); }
.pill-btn {
  display: inline-flex; align-items: center; gap: .45em; padding: .6em 1em; border-radius: 999px;
  background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-weight: 600; font-size: .92rem; transition: background-color .2s, transform .2s;
}
.pill-btn:hover { background: rgba(255, 255, 255, .28); transform: translateY(-1px); }
.pill-btn[aria-pressed="true"] { background: #fff; color: var(--primary); }
.pill-btn[aria-pressed="true"] .icon { fill: currentColor; }
.pill-btn b { font-variant-numeric: tabular-nums; opacity: .9; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); }
.page-home .site-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
.page-home .site-header { position: fixed; left: 0; right: 0; }
.header-inner { display: flex; align-items: center; gap: 16px; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.logo b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-home .site-header:not(.is-scrolled) .logo b { color: #fff; background: none; }
.logo-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.logo-mark .icon { width: 22px; height: 22px; animation: spin-slow 18s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; transition: background-color .2s; }
.main-nav > ul > li > a:hover { background: color-mix(in srgb, var(--primary) 12%, transparent); }
.has-sub { position: relative; }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 260px; list-style: none; margin: 0; padding: 8px;
  background: var(--surface); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { border-radius: 10px; font-weight: 500; }
.sub a:hover { background: var(--surface-2); }
.sub .icon { color: var(--primary); }

.header-tools { display: flex; align-items: center; gap: 4px; }
.tool-btn {
  position: relative; display: inline-grid; grid-auto-flow: column; align-items: center; gap: 4px; place-content: center;
  min-width: 42px; height: 42px; padding: 0 10px; border-radius: 999px; border: 0; background: transparent; text-decoration: none; transition: background-color .2s;
}
.tool-btn:hover { background: color-mix(in srgb, var(--primary) 12%, transparent); }
.lang-btn span { font-weight: 700; font-size: .85rem; }
.badge {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--primary); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center;
}
.badge[hidden] { display: none; }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 8px; background: var(--surface); color: var(--ink);
  border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: none; z-index: 70;
}
.dropdown.is-open .dropdown-menu { display: grid; gap: 2px; }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; background: none; border: 0; text-align: left; width: 100%;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); }
.dropdown-menu [aria-current="true"], .dropdown-menu [aria-checked="true"] { background: var(--surface-2); font-weight: 700; }
.swatch { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.swatch-sunset { background: linear-gradient(135deg, #ff5a36, #7b2ff7); }
.swatch-ocean { background: linear-gradient(135deg, #0077ff, #00b4a6); }
.swatch-canyon { background: linear-gradient(135deg, #c2410c, #f59e0b); }
.swatch-forest { background: linear-gradient(135deg, #2f7d32, #0f766e); }
.swatch-night { background: linear-gradient(135deg, #1a1730, #a78bfa); }
.menu-btn { display: none; }

@media (max-width: 920px) {
  .menu-btn { display: inline-grid; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; padding: 12px var(--gutter) 24px; background: var(--surface); color: var(--ink);
    box-shadow: var(--shadow-lg); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav > ul { flex-direction: column; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; background: none; min-width: 0; }
  .header-tools { margin-left: auto; }
}
@media (max-width: 480px) {
  .header-inner { gap: 8px; }
  .logo { font-size: 1.05rem; gap: 8px; }
  .logo-mark { width: 34px; height: 34px; }
  .header-tools { gap: 0; }
  .tool-btn { min-width: 34px; padding: 0 4px; }
  .lang-btn span { display: none; }
}
@media (max-width: 380px) {
  .site-header .logo-text { display: none; }
}

/* Search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(15, 10, 30, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; align-items: start; padding: 12vh var(--gutter) 0; }
.search-overlay[hidden] { display: none; }
.search-box { display: flex; align-items: center; gap: 12px; max-width: 680px; width: 100%; margin: 0 auto; padding: 10px 10px 10px 20px; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow-lg); animation: pop .25s ease-out; }
.search-box > .icon { color: var(--primary); }
.search-box input { flex: 1; min-width: 0; border: 0; background: none; font-size: 1.15rem; color: var(--ink); outline: none; padding: 10px 0; }
@keyframes pop { from { transform: translateY(-10px) scale(.98); opacity: 0; } }

/* Hero */
.hero { position: relative; min-height: min(100svh, 960px); display: grid; align-items: center; color: #fff; overflow: hidden; isolation: isolate; background: #1f1633; }
.hero-media, .hero-shade { position: absolute; inset: 0; z-index: -1; }
.hero-slide, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }
.hero-video.is-playing { opacity: 1; }
@keyframes kenburns { from { transform: scale(1.12) translate(1.5%, 1%); } to { transform: scale(1) translate(0, 0); } }
.hero-shade { background: linear-gradient(180deg, rgba(20, 10, 35, .55) 0%, rgba(20, 10, 35, .15) 40%, rgba(20, 10, 35, .75) 100%), radial-gradient(ellipse at 20% 60%, rgba(255, 90, 54, .35), transparent 60%); }
.hero-content { padding-top: calc(var(--header-h) + 40px); padding-bottom: 120px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-weight: 600; font-size: .9rem; }
.hero-title { font-size: clamp(2.6rem, 9vw, 6.4rem); margin: 18px 0 18px; max-width: 13ch; text-shadow: 0 4px 30px rgba(0, 0, 0, .3); }
.rotator { display: inline-block; color: #ffd166; }
.rotator.is-out { animation: word-out .35s forwards; }
.rotator.is-in { animation: word-in .45s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes word-out { to { opacity: 0; transform: translateY(-.35em); filter: blur(4px); } }
@keyframes word-in { from { opacity: 0; transform: translateY(.4em); filter: blur(4px); } }
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 58ch; opacity: .95; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-caption { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .88rem; }
.hero-caption a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; padding: 6px 12px; border-radius: 99px; background: rgba(0, 0, 0, .3); }
.hero-caption small { opacity: .75; }
.video-toggle { margin-left: auto; background: rgba(0, 0, 0, .3); color: #fff; }

/* Counters */
.counters { position: relative; z-index: 2; margin-top: -54px; }
.counters-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.counter { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); text-align: center; border: 1px solid var(--line); }
.counter b { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.counter span { color: var(--muted); font-weight: 600; font-size: .9rem; }
@media (min-width: 760px) { .counters-grid { grid-template-columns: repeat(4, 1fr); } }

/* Sections */
.section { padding: 72px 0; }
.section-tight { padding: 32px 0 72px; }
.section-tint { background: var(--tint); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.page-plain { padding-top: 48px; }

/* Category tiles */
.tiles { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; box-shadow: var(--shadow); isolation: isolate; background: var(--grad); }
@media (max-width: 599px) { .tile { aspect-ratio: 16 / 10; } }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(10, 5, 20, .85)); }
.tile:hover img { transform: scale(1.08) rotate(.5deg); }
.tile-body { position: absolute; inset: auto 0 0; padding: 22px; display: grid; gap: 6px; }
.tile-body strong { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.1; }
.tile-body small { display: inline-flex; align-items: center; gap: 6px; opacity: .85; font-weight: 600; }
.tile-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tile-icon .icon { width: 24px; height: 24px; }
.tile-nature .tile-icon { background: var(--c-nature); }
.tile-historic .tile-icon { background: var(--c-historic); }
.tile-cities .tile-icon { background: var(--c-cities); }
.tile-landmarks .tile-icon { background: var(--c-landmarks); }

/* Cards */
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-link { display: block; text-decoration: none; height: 100%; }
.card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card-media img { transform: scale(1.07); }
.card-placeholder { display: grid; place-items: center; height: 100%; background: var(--grad); color: rgba(255, 255, 255, .85); }
.card-placeholder .icon { width: 56px; height: 56px; }
.card-body { padding: 16px 18px 20px; }
.card-title { font-size: 1.22rem; margin: 0 0 6px; }
.card-hook { color: var(--ink-soft); font-size: .95rem; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-rating { color: #f59e0b; }
.heart-btn {
  position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: #e11d48; box-shadow: var(--shadow); transition: transform .2s;
}
.heart-btn:hover { transform: scale(1.1); }
.heart-btn[aria-pressed="true"] .icon { fill: currentColor; }
.heart-btn.is-pop { animation: heart-pop .45s ease; }
@keyframes heart-pop { 40% { transform: scale(1.35); } 70% { transform: scale(.9); } }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  color: #fff; background: var(--primary); text-decoration: none;
}
.card-media .chip { position: absolute; left: 12px; top: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.chip-nature { background: var(--c-nature); } .chip-historic { background: var(--c-historic); } .chip-cities { background: var(--c-cities); }
.chip-landmarks { background: var(--c-landmarks); } .chip-hiking { background: var(--c-hiking); } .chip-motorcycle { background: var(--c-motorcycle); } .chip-rv { background: var(--c-rv); }

/* Chips nav + filters */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; transition: .2s; }
.chip-link:hover { border-color: var(--primary); }
.chip-link.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; }
.field-inline { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; height: 46px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); flex: 1 1 200px; max-width: 360px; }
.field-inline .icon { color: var(--muted); }
.field-inline input, .field-inline select { border: 0; background: none; color: var(--ink); width: 100%; height: 100%; font: inherit; outline: none; }
.filter-count { color: var(--muted); font-weight: 600; margin-left: auto; }
.empty-note { display: flex; gap: 10px; align-items: center; padding: 20px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-soft); }
.empty-note .icon { color: var(--primary); }

/* Page hero (list pages) */
.page-hero { position: relative; color: #fff; padding: 72px 0 56px; overflow: hidden; isolation: isolate; background: var(--grad); }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: kenburns 14s ease-out forwards; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 10, 35, .85), rgba(20, 10, 35, .35)); }
.page-hero-inner { max-width: 1240px; }
.page-hero h1 { margin-top: 14px; }
.page-hero p { max-width: 62ch; font-size: 1.1rem; opacity: .92; margin: 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.breadcrumbs a { text-decoration: none; opacity: .85; }
.breadcrumbs a:hover { text-decoration: underline; }

/* Route panels */
.route-panels { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .route-panels { grid-template-columns: repeat(3, 1fr); } }
.route-panel { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; min-height: 420px; display: flex; align-items: flex-end; isolation: isolate; box-shadow: var(--shadow); background: var(--grad); }
.route-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s; }
.route-panel:hover > img { transform: scale(1.06); }
.route-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.route-panel-hiking::after { background: linear-gradient(180deg, rgba(13, 148, 136, .1), rgba(4, 47, 46, .92) 70%); }
.route-panel-motorcycle::after { background: linear-gradient(180deg, rgba(220, 38, 38, .1), rgba(60, 8, 8, .92) 70%); }
.route-panel-rv::after { background: linear-gradient(180deg, rgba(219, 39, 119, .1), rgba(70, 8, 40, .92) 70%); }
.route-panel-body { padding: 24px; }
.route-panel h3 { font-size: 1.6rem; margin: 12px 0 8px; }
.route-panel h3 a { text-decoration: none; }
.route-panel p { opacity: .9; font-size: .95rem; }
.route-panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.route-panel li a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; padding: 4px 0; }
.route-panel li a:hover { text-decoration: underline; }

/* Facts carousel */
.facts { position: relative; padding: 40px 28px; border-radius: 32px; background: var(--grad); color: #fff; overflow: hidden; box-shadow: var(--shadow-lg); }
.facts::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.facts h2 > .icon { color: #fff; }
.facts-track { min-height: 150px; position: relative; }
.fact blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.25rem, 3vw, 1.9rem); font-weight: 700; line-height: 1.3; max-width: 30ch; }
.fact.is-active { animation: fade-up .6s ease; }
.fact figcaption a { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; font-weight: 700; text-decoration: none; }
.facts-dots { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.facts-dots button { width: 10px; height: 10px; padding: 0; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .45); transition: width .3s; }
.facts-dots button[aria-selected="true"] { width: 28px; background: #fff; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }
@media (min-width: 760px) { .facts { padding: 56px; } }

/* CTA cards */
.cta-split { display: grid; gap: 20px; }
@media (min-width: 800px) { .cta-split { grid-template-columns: 1fr 1fr; } }
.cta-card { position: relative; display: block; padding: 36px; border-radius: 28px; text-decoration: none; color: #fff; overflow: hidden; min-height: 280px; box-shadow: var(--shadow); transition: transform .3s; }
.cta-card:hover { transform: translateY(-4px) rotate(-.4deg); }
.cta-quiz { background: linear-gradient(135deg, #7b2ff7, #f72585); }
.cta-map { background: linear-gradient(135deg, #0077ff, #00b4a6); }
.cta-card p { opacity: .92; max-width: 42ch; }
.cta-emoji { position: absolute; right: -10px; bottom: -20px; opacity: .18; }
.cta-emoji .icon { width: 200px; height: 200px; }
.cta-card .btn { margin-top: 8px; }

/* Detail pages */
.detail-hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; background: var(--grad); }
.detail-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: kenburns 16s ease-out forwards; will-change: transform; }
.detail-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 10, 35, .45) 0%, rgba(20, 10, 35, .1) 35%, rgba(20, 10, 35, .88) 100%); }
.detail-hero-inner { padding-top: 120px; padding-bottom: 56px; }
.detail-hero h1 { font-size: clamp(2.4rem, 7vw, 5rem); margin: 14px 0 10px; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.detail-hook { font-size: clamp(1.1rem, 2.4vw, 1.45rem); max-width: 50ch; opacity: .95; font-weight: 500; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 18px 0 20px; font-weight: 600; font-size: .95rem; }
.detail-meta li { display: inline-flex; align-items: center; gap: 6px; }
.item-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-credit { position: absolute; right: 0; bottom: 8px; left: 0; text-align: right; font-size: .75rem; opacity: .7; margin: 0; }
.hero-credit a { color: inherit; }

.detail-layout { display: grid; gap: 40px; padding-top: 48px; padding-bottom: 72px; }
@media (min-width: 1000px) { .detail-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; } }
.detail-main { min-width: 0; }
.lead { font-size: clamp(1.15rem, 2.2vw, 1.35rem); font-weight: 500; color: var(--ink); line-height: 1.55; }
.prose p { font-size: 1.07rem; color: var(--ink-soft); }
.prose p:first-child::first-letter { float: left; font-family: var(--font-display); font-size: 3.6em; line-height: .85; margin: .06em .1em 0 0; font-weight: 800; color: var(--primary); }
.section-block { margin-top: 48px; }

.highlight-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .highlight-list { grid-template-columns: 1fr 1fr; } }
.highlight-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 2px 0 var(--line); transition: transform .2s; }
.highlight-list li:hover { transform: translateY(-3px); }
.num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 800; font-family: var(--font-display); }

.fun-fact { display: flex; gap: 18px; margin-top: 48px; padding: 24px; border-radius: 24px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface)); border: 2px dashed color-mix(in srgb, var(--accent) 70%, transparent); }
.fun-fact h2 { font-size: 1.2rem; margin-bottom: 6px; }
.fun-fact p { margin: 0; font-size: 1.08rem; }
.fun-fact-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--accent); color: #2b1800; animation: wiggle 3s ease-in-out infinite; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-10deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-5deg); } }

.tip-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tip-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.tip-list .icon { color: var(--c-nature); margin-top: 3px; }

.detail-side { display: grid; gap: 20px; align-content: start; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.side-card h2 { font-size: 1.15rem; }
@media (min-width: 1000px) { .side-sticky { position: sticky; top: calc(var(--header-h) + 16px); } }
.facts-list { margin: 0; display: grid; gap: 0; }
.facts-list div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.facts-list div:last-child { border: 0; }
.facts-list dt { color: var(--muted); font-weight: 600; font-size: .9rem; }
.facts-list dt { flex: 0 0 auto; }
.facts-list dd { margin: 0 0 0 auto; text-align: right; font-weight: 600; max-width: 100%; }
.side-links { display: grid; gap: 8px; margin-top: 16px; }
.mini-map { height: 260px; border-radius: 16px; overflow: hidden; background: var(--surface-2); z-index: 0; }
.mini-map-tall { height: 380px; }
.map-note { color: var(--muted); font-size: .82rem; margin: 10px 0 0; }
.side-routes { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.side-routes a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; text-decoration: none; transition: background-color .2s; }
.side-routes a:hover { background: var(--surface-2); }
.side-routes .chip { width: 38px; height: 38px; justify-content: center; padding: 0; border-radius: 12px; }
.side-routes small { display: block; color: var(--muted); }

/* Route stat strip + timeline */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin: -36px 0 0; position: relative; z-index: 2; border-radius: var(--radius); overflow: hidden; background: var(--line); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.stat-strip div { background: var(--surface); padding: 16px 18px; }
.stat-strip dt { color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.stat-strip dd { margin: 4px 0 0; font-weight: 700; font-family: var(--font-display); font-size: 1.1rem; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--grad); }
.timeline-item { position: relative; display: flex; gap: 18px; padding: 0 0 26px; }
.timeline-dot { position: relative; flex: none; display: grid; place-items: center; width: 41px; height: 41px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); font-weight: 800; color: var(--primary); font-family: var(--font-display); }
.timeline-item h3 { margin: 6px 0 4px; }
.timeline-item p { color: var(--ink-soft); margin: 0; }

/* Gallery + lightbox */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.gallery-item.is-large { grid-column: 1 / -1; }
.gallery-item { margin: 0; }
.gallery-item button { display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; }
.gallery-item.is-large button { aspect-ratio: 16 / 9; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item button:hover img { transform: scale(1.06); }
.gallery-item figcaption { font-size: .72rem; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-item figcaption a { color: inherit; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 92vh; color: #fff; }
.lightbox::backdrop { background: rgba(8, 4, 16, .9); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox p { text-align: center; font-size: .85rem; opacity: .8; margin: 10px 0 0; }
.lightbox-close { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, .55); color: #fff; z-index: 2; }

/* Comments */
.comments-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.rating-summary { display: flex; align-items: center; gap: 8px; margin: 0 0 .5em; }
.rating-summary b { font-size: 1.3rem; font-family: var(--font-display); }
.stars { --pct: 0%; display: inline-block; width: 90px; height: 18px; vertical-align: middle;
  background: linear-gradient(90deg, #f59e0b var(--pct), color-mix(in srgb, var(--muted) 35%, transparent) var(--pct));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E") 0 0 / 18px 18px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E") 0 0 / 18px 18px repeat-x; }
.r-1 { --pct: 10%; } .r-2 { --pct: 20%; } .r-3 { --pct: 30%; } .r-4 { --pct: 40%; } .r-5 { --pct: 50%; }
.r-6 { --pct: 60%; } .r-7 { --pct: 70%; } .r-8 { --pct: 80%; } .r-9 { --pct: 90%; } .r-10 { --pct: 100%; }
.comment-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.comment { display: flex; gap: 14px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-family: var(--font-display); font-size: 1.2rem; }
.comment header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 6px; }
.comment time, .lang-tag { color: var(--muted); font-size: .82rem; }
.lang-tag { padding: 2px 8px; border-radius: 99px; background: var(--surface-2); }
.comment p { margin: 0; color: var(--ink-soft); }
.comment-form { display: grid; gap: 14px; margin-top: 24px; padding: 24px; border-radius: 24px; background: var(--surface-2); }
.comment-form h3 { margin: 0; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 400; }
.field textarea { resize: vertical; min-height: 110px; }
.comment-form .btn { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { margin: 0; padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.form-notice.is-ok { background: color-mix(in srgb, var(--c-nature) 16%, var(--surface)); color: var(--ink); }
.form-notice.is-error { background: color-mix(in srgb, var(--c-motorcycle) 14%, var(--surface)); color: var(--ink); }
.star-input { border: 0; padding: 0; margin: 0; }
.star-input legend { padding: 0; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.star-row { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: color-mix(in srgb, var(--muted) 45%, transparent); transition: transform .15s, color .15s; }
.star-input label .icon { width: 32px; height: 32px; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f59e0b; }
.star-input label:hover { transform: scale(1.15); }
.star-input input:focus-visible + label { outline: 3px solid var(--accent); border-radius: 6px; }

/* Map page */
.map-page { position: relative; display: grid; grid-template-rows: auto 1fr; min-height: calc(100svh - var(--header-h)); }
.map-panel { padding: 20px var(--gutter); background: var(--surface); border-bottom: 1px solid var(--line); z-index: 2; }
.map-panel h1 { font-size: 1.8rem; margin-bottom: 4px; }
.map-panel p { color: var(--muted); margin-bottom: 10px; }
.map-layers { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.map-layers legend { font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.layer-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; border: 2px solid var(--line); font-weight: 600; font-size: .88rem; cursor: pointer; user-select: none; }
.layer-toggle input { position: absolute; opacity: 0; }
.layer-toggle:has(input:checked) { color: #fff; border-color: transparent; }
.layer-toggle:has(input:focus-visible) { outline: 3px solid var(--accent); }
.layer-nature:has(input:checked) { background: var(--c-nature); } .layer-historic:has(input:checked) { background: var(--c-historic); }
.layer-cities:has(input:checked) { background: var(--c-cities); } .layer-landmarks:has(input:checked) { background: var(--c-landmarks); }
.layer-hiking:has(input:checked) { background: var(--c-hiking); } .layer-motorcycle:has(input:checked) { background: var(--c-motorcycle); } .layer-rv:has(input:checked) { background: var(--c-rv); }
.map-full { min-height: 520px; height: 100%; z-index: 1; }
@media (min-width: 900px) {
  .map-page { grid-template-rows: 1fr; }
  .map-panel { position: absolute; top: 16px; left: 16px; width: 340px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .map-full { height: calc(100svh - var(--header-h)); }
}
.list-map { height: 340px; border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow); background: var(--surface-2); z-index: 0; }

/* Leaflet pins + popups */
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--primary); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .35); display: grid; place-items: center; }
.pin span { transform: rotate(45deg); color: #fff; font-weight: 800; font-size: 12px; font-family: var(--font-body); }
.pin-nature { background: var(--c-nature); } .pin-historic { background: var(--c-historic); } .pin-cities { background: var(--c-cities); }
.pin-landmarks { background: var(--c-landmarks); } .pin-hiking { background: var(--c-hiking); } .pin-motorcycle { background: var(--c-motorcycle); } .pin-rv { background: var(--c-rv); }
.leaflet-popup-content-wrapper { border-radius: 16px; padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; width: 240px !important; font-family: var(--font-body); }
.map-pop img { width: 100%; height: 120px; object-fit: cover; }
.map-pop div { padding: 10px 14px 14px; }
.map-pop strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.map-pop p { margin: 4px 0 8px !important; color: #555; font-size: .85rem; }
.map-pop a { font-weight: 700; color: #ff5a36; }

/* Quiz */
.quiz-page { padding: 56px 0 80px; background: radial-gradient(circle at 10% 10%, color-mix(in srgb, var(--secondary) 18%, transparent), transparent 40%), radial-gradient(circle at 90% 80%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 40%); }
.quiz-wrap { max-width: 820px; }
.quiz-card { background: var(--surface); border-radius: 32px; padding: 32px 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
@media (min-width: 700px) { .quiz-card { padding: 48px; } }
.quiz-step { border: 0; margin: 0; padding: 0; animation: fade-up .45s ease; }
.quiz-step[hidden] { display: none; }
.quiz-step legend { padding: 0; }
.quiz-badge { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--grad); color: #fff; margin-bottom: 18px; animation: wiggle 3s ease-in-out infinite; }
.quiz-badge .icon { width: 36px; height: 36px; }
.quiz-progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-bottom: 16px; }
.quiz-progress span { display: block; height: 100%; background: var(--grad); width: 0; transition: width .4s; }
.quiz-count { color: var(--muted); font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.quiz-answers { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 600px) { .quiz-answers { grid-template-columns: 1fr 1fr; } }
.quiz-answer { text-align: left; padding: 18px 20px; border-radius: 18px; border: 2px solid var(--line); background: var(--bg); font-weight: 600; transition: transform .15s, border-color .15s, background-color .15s; }
.quiz-answer:hover { transform: translateY(-3px); border-color: var(--primary); background: var(--surface-2); }
.quiz-result { margin: -32px -22px; }
@media (min-width: 700px) { .quiz-result { margin: -48px; } }
.quiz-result img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.quiz-result-body { padding: 28px 22px 36px; }
@media (min-width: 700px) { .quiz-result-body { padding: 36px 48px 48px; } }
.quiz-result .eyebrow { background: var(--surface-2); color: var(--primary); }
.quiz-result h2 { font-size: clamp(2rem, 5vw, 3rem); margin-top: 12px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quiz-pick a { font-weight: 700; color: var(--primary); }

/* Search page, trip, about, 404 */
.search-inline { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); max-width: 720px; margin-bottom: 24px; box-shadow: var(--shadow); }
.search-inline input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 1.05rem; outline: none; }
.search-inline > .icon { color: var(--primary); }
.trip-slot { display: contents; }
.trip-slot[hidden] { display: none; }
.trip-actions { margin-top: 24px; }
.credits { padding-left: 1.1em; display: grid; gap: 6px; font-size: .9rem; color: var(--ink-soft); }
.credits a { color: var(--primary); }
.not-found { text-align: center; }
.not-found .card-grid { text-align: left; margin: 32px 0; }
.big-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 20vw, 11rem); line-height: 1; margin: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* Footer */
.site-footer { background: #150f24; color: #d8d1ea; padding: 64px 0 28px; margin-top: 0; }
:root[data-theme="night"] .site-footer { background: #0a0814; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer h2 { font-size: 1rem; color: #fff; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.footer-langs a { padding: 6px 12px; border-radius: 99px; border: 1px solid #3a3157; font-size: .88rem; }
.footer-langs a[aria-current="true"] { background: #fff; color: #150f24; }
.footer-bottom { border-top: 1px solid #2c2442; margin-top: 40px; padding-top: 20px; font-size: .85rem; color: #9d94b8; display: grid; gap: 4px; }

/* Floating bits */
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; box-shadow: var(--shadow-lg); display: grid; place-items: center; animation: pop .3s; }
.to-top[hidden] { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; padding: 12px 20px; border-radius: 99px; background: var(--ink); color: var(--bg); font-weight: 600; box-shadow: var(--shadow-lg); animation: pop .3s; }
.toast[hidden] { display: none; }

/* Scroll reveal: only hide when JS is running, so content is never lost */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .item-actions, .comment-form, .to-top, .mini-map, .hero-media { display: none !important; }
  .detail-hero { min-height: 0; color: var(--ink); background: none; }
  .detail-hero::after { display: none; }
}
