/* Travel design system. Loaded after app.css / extras.css.
   Tokens, hero, motion, dark theme. Does not change behavior. */

:root {
  --cream: #f6f1e8;
  --cream2: #efe6d6;
  --line: #e3d4bf;
  --ink: #241c14;
  --muted: #5c5146;
  --soft: #5c5146;
  --surface: #fffdf9;
  --surface-2: #fffaf3;
  --g900: #143321;
  --g800: #1c4a2e;
  --g700: #24633a;
  --g100: #e3f2e6;
  --g50: #f2f8f3;
  --sand: #c4843a;
  --sand50: #fbf3e4;
  --b700: #8a5a32;
  --b900: #4e3118;
  --focus: #0b6cb0;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(36, 28, 20, .05), 0 10px 28px rgba(36, 28, 20, .06);
  --shadow-md: 0 16px 40px rgba(20, 51, 33, .12);
  --shadow-lg: 0 24px 60px rgba(16, 40, 24, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 40px;
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --cream: #121815;
  --cream2: #1a221e;
  --line: #334039;
  --ink: #f4efe6;
  --soft: #d5cbbf;
  --surface: #1c2420;
  --surface-2: #24302a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 28px rgba(0, 0, 0, .28);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
  /* --muted stays dark so light callout chips keep AA text */
}

body {
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--cream);
  background-image:
    radial-gradient(980px 460px at 100% -120px, rgba(196, 132, 58, .18), transparent 58%),
    radial-gradient(760px 420px at -12% -40px, rgba(28, 74, 46, .12), transparent 55%);
  background-attachment: fixed;
}

.wrap { max-width: 980px; padding-bottom: 96px; }
.hdr-in, .daytabs { max-width: 980px; }
.wz-wrap { max-width: 720px; padding-bottom: 120px; }

/* header */
.hdr {
  background: var(--cream);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(20, 40, 24, .05);
}
.hdr-in { padding: 12px 16px 8px; }
.logo {
  border-radius: 14px;
  background: linear-gradient(145deg, #2f7a49, #143321 55%, #8a5a32);
  box-shadow: 0 8px 18px rgba(20, 51, 33, .28);
}
.hdr h1 { font-size: 16px; letter-spacing: 0; }
.hdr p, .sec-sub, .intro, .ptext, .foot, .empty, .field small,
.stop-h .loc, .evt .d, .sg .alt, .x .where, .wz .hint, .allnote,
.modal .lbl, .modal .hint, .xleg, .xwx-c small, .ctab thead th,
.ctab th small, .small, .reset, .dt:not(.on) small {
  color: var(--soft);
}
.hdr p { font-size: 13px; }
.dt small { font-size: 12px; }

.hdr::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sand), var(--g700), transparent);
}

.badge { box-shadow: var(--shadow-sm); }

.dt, .gt, .pt, .chip, .ibtn, .stepdots button, .imp-tabs button, .stepper button, .chipsel label {
  transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
}
.dt { border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.dt.on { box-shadow: 0 8px 16px rgba(20, 51, 33, .22); }

/* surfaces */
.card, .fcard, .sg, .opt, .x, .evt, .step, .modal, .adm-row, .owner-bar, .ci,
.rep, .kv div, .cpy code, .done-link, .preview-frame {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.card, .fcard, .sg, .opt, .x { border-radius: var(--radius); }
.fcard { padding: 18px 16px; }
.card, .sg, .x, .opt, .evt {
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .35s ease, border-color .35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover, .sg:hover, .x:hover, .opt:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }
  .xday:hover, .card:has(.xmap):hover, .preview-frame .card:hover { transform: none; box-shadow: var(--shadow-sm); }
}

.field input, .field textarea, .field select, .own select, .xm-f input, .xm-f select, .xj-t {
  background: var(--surface-2);
  border-color: #dccfbc;
  border-radius: var(--radius-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible,
.own select:focus-visible, .xm-f input:focus-visible, .xj-t:focus-visible {
  box-shadow: 0 0 0 4px rgba(11, 108, 176, .18);
}

.btn {
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0); }
}
.btn:disabled, .btn[disabled] { transform: none; opacity: .55; }

/* trip hero */
.hero {
  margin-top: 18px;
  padding: 22px 16px 18px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 220, 150, .55) 0 22px, rgba(240, 184, 90, .28) 23px, transparent 70px),
    radial-gradient(90% 80% at 0% 100%, rgba(120, 180, 140, .28), transparent 46%),
    linear-gradient(155deg, #1f6b3c 0%, #143321 48%, #0e2418 100%);
  background-size: 100% 100%, 120% 120%, 100% 100%;
  box-shadow: var(--shadow-lg);
  animation: hero-drift 16s var(--ease) infinite alternate;
}
.hero::before, .hero::after { pointer-events: none; }
.hero::before {
  content: "";
  position: absolute;
  inset-inline: -5%;
  bottom: -28px;
  height: 84px;
  background: radial-gradient(50% 100% at 30% 0%, rgba(255, 255, 255, .1), transparent 70%),
    radial-gradient(50% 100% at 78% 10%, rgba(255, 255, 255, .06), transparent 72%);
}
.hero::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  inset-inline-end: -40px;
  top: -50px;
  background: radial-gradient(circle, rgba(255, 214, 140, .35), transparent 68%);
}
.hero > * { position: relative; z-index: 1; }
.tile {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  transition: transform .22s var(--ease), background-color .22s var(--ease);
}
.tile .l { font-size: 12px; color: #e7f6ea; }
.tile .v { color: #fff8e8; }
.tile .s { color: #d7eee0; }
.vibe span {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .16); }
}
@keyframes hero-drift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 0 0, 6% 4%, 0 0; }
}

/* home hero — the first block of the quick-start page */
body:has(#quick) #main { padding-top: 18px !important; }
body:has(#quick) #main > div:first-child {
  position: relative;
  overflow: hidden;
  margin: 4px 0 0;
  padding: 32px 18px 56px;
  border-radius: 32px;
  text-align: center;
  color: #f7fff8;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 224, 160, .7) 0 26px, rgba(240, 180, 80, .25) 28px, transparent 78px),
    radial-gradient(80% 70% at 8% 100%, rgba(150, 196, 160, .35), transparent 50%),
    linear-gradient(165deg, #1f6b3c, #143321 62%, #0e2418);
  box-shadow: var(--shadow-lg);
  animation: hero-drift 16s var(--ease) infinite alternate;
}
body:has(#quick) #main > div:first-child::before {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  top: 16px;
  inset-inline-end: 7%;
  background: radial-gradient(circle, #ffe7b0 0%, #f0b85a 42%, transparent 70%);
  animation: sun-bob 7s var(--ease) infinite alternate;
  pointer-events: none;
}
body:has(#quick) #main > div:first-child::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 74px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'><path fill='rgba(255,255,255,0.1)' d='M0 70c160-46 280-46 440 0s280 46 440 0 240-46 320 0v50H0z'/></svg>") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}
body:has(#quick) #main > div:first-child .logo {
  position: relative;
  z-index: 1;
  width: 72px !important;
  height: 72px !important;
  font-size: 36px !important;
  margin: 0 auto;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
body:has(#quick) #main > div:first-child h1 {
  position: relative;
  z-index: 1;
  color: #fff !important;
  font-size: clamp(1.7rem, 5vw, 2.45rem);
  line-height: 1.25;
  margin: 12px 0 8px;
}
body:has(#quick) #main > div:first-child .intro {
  position: relative;
  z-index: 1;
  color: #e7f6ea;
  font-size: 15.5px;
  max-width: 46ch;
  margin: 0 auto;
}
#quick {
  position: relative;
  z-index: 2;
  margin-top: -26px;
  border-radius: 24px;
}
@keyframes sun-bob {
  from { transform: translateY(0); }
  to { transform: translateY(7px); }
}

/* wizard progress */
.a-sand { --ac: #8d5a12; }
.a-terra { --ac: #9a4524; }
.tg { font-size: 12px; }

.wz-top {
  position: sticky;
  top: 68px;
  z-index: 25;
  margin-top: 8px;
  padding: 10px 4px 8px;
  border-radius: 16px;
  background: var(--cream);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(12px);
}
.progress { height: 10px; background: var(--cream2); box-shadow: inset 0 1px 2px rgba(36, 28, 20, .08); }
.progress i, .bar i {
  background: linear-gradient(90deg, #1c4a2e, #e0b15a);
  border-radius: inherit;
  transition: width .45s var(--ease);
}
.bar { height: 8px; background: var(--cream2); }
.stepdots { gap: 6px; }
.stepdots button {
  min-height: 40px;
  padding: 6px 10px;
  font-size: 12.5px;
  background: var(--surface);
  color: var(--soft);
}
.stepdots button.on {
  box-shadow: 0 0 0 3px var(--g100), 0 8px 16px rgba(20, 51, 33, .16);
}
.stepdots button.done { box-shadow: none; }
.wnav {
  background: var(--cream);
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(12px);
}
.chipsel label { min-height: 40px; background: var(--surface); }
.addbtn, .dropzone { border-radius: 16px; }
.imp-cta { border-radius: 16px; }

/* map + weather */
.xwx {
  background: var(--surface);
  background: linear-gradient(180deg, color-mix(in srgb, var(--sky) 10%, var(--surface)), var(--surface));
}
.xwx-d { gap: 8px; }
.xwx-c {
  min-width: 84px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 8px 6px 7px;
}
.xwx-c .e { font-size: 24px; }
.xwx-c b { font: 800 18px Rubik, Assistant, sans-serif; color: var(--g900); }
.xday { background: linear-gradient(180deg, var(--g50), var(--surface)); border-radius: var(--radius); }
.xmap {
  height: 280px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.fl-route { font-size: 20px; gap: 10px; }
.fl-route .arr {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--g50);
  color: var(--g800);
}
.num { border-radius: 12px; box-shadow: var(--shadow-sm); }

/* scroll reveal — offscreen only, class added by ambiance.js */
.pre-rise { opacity: 0; transform: translateY(16px); }
.rise { animation: rise .6s var(--ease) forwards; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* floating theme + music controls */
.float-tools {
  position: fixed;
  z-index: 55;
  inset-inline-end: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body:has(.wnav:not([hidden])) .float-tools { bottom: calc(84px + env(safe-area-inset-bottom)); }
.theme-btn, .amb-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  border: 2px solid #e4c48a;
  background: #143321;
  color: #fff;
  font: 700 22px/1 Assistant, sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(16, 40, 24, .28);
  display: grid;
  place-items: center;
  padding: 0;
}
.amb-btn.is-on {
  background: #1c4a2e;
  box-shadow: 0 0 0 4px rgba(228, 196, 138, .45), 0 10px 24px rgba(16, 40, 24, .28);
}
.theme-btn[aria-pressed="true"] { background: #f4efe6; color: #143321; }

/* dark surfaces that were hardcoded white */
html[data-theme="dark"] body {
  background-image:
    radial-gradient(800px 380px at 100% -80px, rgba(196, 132, 58, .14), transparent 55%),
    radial-gradient(680px 360px at 0% 0%, rgba(70, 130, 90, .12), transparent 50%);
}
html[data-theme="dark"] :is(.hdr h1, .sec-title, .fcard h2, .cl-h h2, .cl-h h3, .grp-h, .modal h3, .fl-route, .rv-sec h3, .card > h2, .costs h2, .tickets h2, .xtools h2, .xm h2, .xwx h2, .xj h3, .xfl h2, .xbgu h2, .xpre h2, .xchat h2) {
  color: #f4efe6;
}
html[data-theme="dark"] :is(.dt:not(.on), .gt:not(.on), .b-out, .ibtn, .addbtn, .imp-tabs button:not(.on), .stepdots button:not(.on):not(.done), .chipsel label:not(:has(input:checked)), .b-hide, .stepper button) {
  background: var(--surface-2);
  color: #f3e6d4;
  border-color: #4d4338;
}
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .own select,
html[data-theme="dark"] .xm-f input,
html[data-theme="dark"] .xm-f select,
html[data-theme="dark"] .xj-t {
  background: #18211d;
  color: var(--ink);
  border-color: #3d4e44;
}
html[data-theme="dark"] .xwx-c b,
html[data-theme="dark"] .kv b,
html[data-theme="dark"] .field > span,
html[data-theme="dark"] .field > legend,
html[data-theme="dark"] .stop-h h2,
html[data-theme="dark"] .stop-h h3 { color: #f4efe6; }
html[data-theme="dark"] h1.rub,
html[data-theme="dark"] .card > h2 { color: #f4efe6 !important; }
html[data-theme="dark"] .ctab td.ok { color: #8ddeaf; }
html[data-theme="dark"] .ctab td.due { color: #ffb4aa; }
html[data-theme="dark"] .st .v { color: #241c14; }
html[data-theme="dark"] :is(.note, .warn, .hintbox, .info, .ai-card, .prog, .imp-cta, .imp-warn, .dropzone, .badge, .tm, .tg, .xopt, .xils, .xleave, .xm-set, .xq, .xa2, .xpriv, .loc-l, .st, .drv, .num, .auto-label, .picker) :is(.small, small),
html[data-theme="dark"] :is(.info .d, .imp-cta span, .dropzone small, .drv-he, .st .l, .st .s) {
  color: #5c5146;
}
html[data-theme="dark"] .ai-card {
  background: linear-gradient(160deg, #fffaf0, #fff);
  color: #241c14;
}
html[data-theme="dark"] .ai-card h3,
html[data-theme="dark"] .note { color: #173c21; }
html[data-theme="dark"] .note { background: #f2f8f3; }
html[data-theme="dark"] .tg:not(.d):not(.sat):not(.no) {
  background: #efe6d6;
  color: #4e3118;
  border-color: #e3d6c3;
}
html[data-theme="dark"] :is(.wz h3, .xtools summary, .xm summary, .xko summary) { color: #f4efe6; }
html[data-theme="dark"] .body b { color: #f6d7a2; }
html[data-theme="dark"] :is(.ai-card, .note, .info, .hintbox, .warn, .xopt) b { color: #4e3118; }
html[data-theme="dark"] .evt .ic { color: #143321; }
html[data-theme="dark"] .xa2,
html[data-theme="dark"] .xpriv { background: #efe6d6; color: #241c14; }
html[data-theme="dark"] .warn,
html[data-theme="dark"] .warn b { color: #7a3519; }
html[data-theme="dark"] .hintbox { color: #4e3118; }
html[data-theme="dark"] .hintbox .reset { color: #4e3118; }
html[data-theme="dark"] .info .t { color: #4e3118; }
html[data-theme="dark"] .info .d { color: #5c5146; }
html[data-theme="dark"] .prog { color: #173c21; }
html[data-theme="dark"] .xopt,
html[data-theme="dark"] .xils,
html[data-theme="dark"] .xleave,
html[data-theme="dark"] .xm-set,
html[data-theme="dark"] .xq,
html[data-theme="dark"] .xa2,
html[data-theme="dark"] .xpriv,
html[data-theme="dark"] .imp-cta,
html[data-theme="dark"] .imp-cta b,
html[data-theme="dark"] .dropzone,
html[data-theme="dark"] .dropzone b { color: #241c14; }
html[data-theme="dark"] .drv { background: #fff; color: #111; }
html[data-theme="dark"] .drv-n,
html[data-theme="dark"] .drv-a { color: #000; }
html[data-theme="dark"] .drv-p { color: #333; }
html[data-theme="dark"] .xg a,
html[data-theme="dark"] .xa,
html[data-theme="dark"] .foot a:hover { color: #9fd0ff; }
html[data-theme="dark"] .num { color: #4e3118; }
html[data-theme="dark"] .cl-g { color: #e7c39a; }
html[data-theme="dark"] .rep-h { color: #f3e6d4; }
html[data-theme="dark"] :focus-visible { outline-color: #9ad4ff !important; }
html[data-theme="dark"] .chipsel label:has(input:focus-visible) { outline-color: #9ad4ff; }
html[data-theme="dark"] .ci.done { color: #c5d4c8; }
html[data-theme="dark"] .loc-n,
html[data-theme="dark"] .loc-a,
html[data-theme="dark"] .loc-h { color: #13264d; }

@media (min-width: 720px) {
  .hdr h1 { font-size: 18px; }
  .hero { padding: 26px 22px 20px; }
  body:has(#quick) #main > div:first-child { padding: 46px 36px 64px; }
  .fcard { padding: 22px 22px 20px; }
}

@media print {
  .float-tools { display: none !important; }
  html[data-theme="dark"] body,
  html[data-theme="dark"] .card,
  html[data-theme="dark"] .fcard,
  html[data-theme="dark"] .hdr,
  html[data-theme="dark"] .hero {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    animation: none !important;
  }
}

/* organized trips & more options — home dashboard */
.org-dash { margin-top: 28px; }
.org-title {
  margin: 0 2px 6px;
  font: 800 clamp(1.25rem, 3.2vw, 1.6rem) Rubik, Assistant, sans-serif;
  color: var(--g900);
  text-align: center;
  line-height: 1.3;
}
.org-lead {
  margin: 0 auto;
  max-width: 46ch;
  text-align: center;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.5;
}
.org-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 10px 2px 12px;
  margin: 6px 0 0;
  scrollbar-width: thin;
}
.org-tabs a {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--g900);
  text-decoration: none;
  font: 700 14px Rubik, Assistant, sans-serif;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}
.org-tabs a[aria-current="location"] {
  background: var(--g800);
  color: #fff;
  border-color: var(--g800);
}
.org-group { margin-top: 16px; scroll-margin-top: 84px; }
.org-cat {
  margin: 0 2px 8px;
  font: 800 16px Rubik, Assistant, sans-serif;
  color: var(--g900);
}
.org-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.org-card {
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
  row-gap: 4px;
  align-items: start;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
}
.org-name {
  font: 800 16px/1.35 Rubik, Assistant, sans-serif;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.org-desc {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--soft);
}
.org-ext {
  font-size: 16px;
  line-height: 1.35;
  color: var(--b700);
}
.org-note {
  margin: 16px 2px 0;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--soft);
}
.fest-suggest {
  margin: 14px 0 6px;
  padding: 12px 12px 4px;
  border-radius: var(--radius);
  background: var(--g50);
  border: 1px solid var(--line);
}
.fest-h {
  margin: 0 2px 4px;
  font: 800 17px/1.35 Rubik, Assistant, sans-serif;
  color: var(--g900);
}
.fest-lead {
  margin: 0 2px 10px;
  color: var(--soft);
  font-size: 14.5px;
  line-height: 1.45;
}
.fest-when, .fest-city { grid-column: 1 / -1; }
.fest-when {
  font: 700 13.5px/1.4 Rubik, Assistant, sans-serif;
  color: var(--g800);
}
.fest-city {
  font-size: 13px;
  line-height: 1.4;
  color: var(--soft);
}
.fest-nolink { cursor: default; }
@media (min-width: 560px) {
  .org-grid { grid-template-columns: 1fr 1fr; }
}
@media (hover: hover) and (pointer: fine) {
  .org-tabs a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .card.fest-nolink:hover { transform: none; box-shadow: var(--shadow-sm); }
}
html[data-theme="dark"] .org-title,
html[data-theme="dark"] .org-cat,
html[data-theme="dark"] .fest-h {
  color: #f4efe6;
}
html[data-theme="dark"] .fest-suggest {
  background: #1a2820;
  border-color: #3d5246;
}
html[data-theme="dark"] .fest-when { color: #e7c39a; }
html[data-theme="dark"] .org-tabs a {
  background: var(--surface-2);
  color: #f3e6d4;
  border-color: #4d4338;
}
html[data-theme="dark"] .org-tabs a[aria-current="location"] {
  background: #2f7a49;
  color: #fff;
  border-color: #2f7a49;
}
html[data-theme="dark"] .org-ext { color: #e7c39a; }
@media print {
  html[data-theme="dark"] .org-title,
  html[data-theme="dark"] .org-cat,
  html[data-theme="dark"] .org-name,
  html[data-theme="dark"] .org-tabs a,
  html[data-theme="dark"] .fest-h,
  html[data-theme="dark"] .fest-when {
    color: #000 !important;
    background: #fff !important;
  }
  .fest-suggest { background: #fff !important; }
}

/* original routes on the home page and /routes/ */
.routes-dash { margin-top: 28px; }
.routes-title {
  margin: 0 2px 6px;
  font: 800 clamp(1.35rem, 3.4vw, 1.7rem) Rubik, Assistant, sans-serif;
  color: var(--g900);
  line-height: 1.3;
}
.routes-lead, .route-summary {
  margin: 0;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.5;
}
.route-filters { margin-top: 14px; display: grid; gap: 12px; }
.route-filter-label {
  display: block;
  margin: 0 2px 6px;
  font: 800 13px Rubik, Assistant, sans-serif;
  color: var(--g900);
}
.route-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.route-chip {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--g900);
  font: 700 14px Rubik, Assistant, sans-serif;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}
.route-chip[aria-pressed="true"] {
  background: var(--g800);
  color: #fff;
  border-color: var(--g800);
}
.route-count {
  margin: 12px 2px 0;
  font: 700 13.5px Rubik, Assistant, sans-serif;
  color: var(--soft);
}
.route-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}
.route-card {
  margin-top: 0;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
}
.route-title {
  font: 800 16.5px/1.35 Rubik, Assistant, sans-serif;
  color: var(--ink);
}
.route-meta, .route-fest-line {
  font: 700 13.5px/1.4 Rubik, Assistant, sans-serif;
  color: var(--g800);
}
.route-fest ul { margin: 0; padding: 0 1.2em 0 0; }
html[dir="ltr"] .route-fest ul { padding: 0 0 0 1.2em; }
.route-fest li { margin: 0 0 6px; }
.route-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.route-tag {
  font: 700 12px Rubik, Assistant, sans-serif;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--g50);
  color: var(--g800);
  border: 1px solid var(--line);
}
.route-empty {
  margin: 12px 2px 0;
  color: var(--soft);
}
.route-back { margin: 4px 2px 10px; }
.route-back a { font-weight: 800; color: var(--g800); }
.route-h {
  margin: 18px 2px 8px;
  font: 800 16px Rubik, Assistant, sans-serif;
  color: var(--g900);
}
.route-map { height: 320px; margin-top: 0; }
.route-map-note { margin: 6px 2px 0; font-size: 12.5px; color: var(--soft); }
.route-day { margin-top: 12px; }
.route-day h3 { margin: 0 0 6px; font: 800 15px Rubik, Assistant, sans-serif; color: var(--g900); }
.route-stops { margin: 0; padding: 0 1.2em 0 0; }
html[dir="ltr"] .route-stops { padding: 0 0 0 1.2em; }
.route-stops li { margin: 0 0 8px; }
.route-stop-name { display: block; font: 800 15px/1.35 Rubik, Assistant, sans-serif; color: var(--ink); }
.route-stop-note { display: block; color: var(--soft); font-size: 14px; line-height: 1.45; }
.route-tips ul { margin: 0; padding: 0 1.2em 0 0; }
html[dir="ltr"] .route-tips ul { padding: 0 0 0 1.2em; }
.route-tips li { margin: 0 0 6px; }
.route-use { margin: 14px 0; }
.route-more { margin-top: 14px; }
.route-loading { margin: 12px 2px 0; color: var(--soft); }
.route-unverified { margin: 0; font-size: 13px; line-height: 1.4; color: var(--soft); }
.route-nomap { margin: 8px 2px 0; color: var(--soft); }
.route-safety {
  margin: 14px 0 0;
  padding: 12px 14px 12px;
  border: 1px solid #e2b340;
  border-radius: 14px;
  background: #fff8e6;
}
.route-safety .route-h { margin: 0; }
.route-safety-lead { margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: var(--soft); }
.route-safety-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.route-safety-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #ead9a8;
  font-size: 14px;
  line-height: 1.35;
}
.route-safety-item strong { font: 800 15px Rubik, Assistant, sans-serif; }
.route-safety-item.is-warn { background: #fdecea; border-color: #e7a39a; }
.route-safety-item.is-warn strong { color: #9d2c20; }
.route-safety-item.is-caution { background: #fff4e5; border-color: #f0c48a; }
.route-safety-item.is-ok { background: #eef6ee; border-color: #b7d4b8; }
.route-safety-item.is-water { background: #e8f4fb; border-color: #b7d7ea; }
.route-safety-note,
.route-safety-extra,
.route-safety-sub { margin: 10px 2px 0; font-size: 14.5px; line-height: 1.45; }
.route-safety-note {
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e7a39a;
}
.route-safety-k { font-weight: 800; }
.route-safety-sub { color: var(--soft); font-size: 13px; }
.route-facts { margin: 12px 0 0; display: grid; gap: 6px; }
.route-facts div { display: grid; grid-template-columns: 8.5em 1fr; gap: 8px; align-items: baseline; }
.route-facts dt { margin: 0; font: 800 14px Rubik, Assistant, sans-serif; color: var(--g900); }
.route-facts dd { margin: 0; color: var(--ink); }
.route-dir { margin: 8px 0 18px; padding: 0 1.2em 0 0; }
html[dir="ltr"] .route-dir { padding: 0 0 0 1.2em; }
.route-dir li { margin: 0 0 6px; }
.route-dir a { font-weight: 700; color: var(--g800); }
.route-map-block[hidden], .route-nomap[hidden], .route-loading[hidden], .route-more[hidden] { display: none !important; }
@media (min-width: 560px) {
  .route-grid { grid-template-columns: 1fr 1fr; }
  .route-safety-list { grid-template-columns: 1fr 1fr; }
}
@media (hover: hover) and (pointer: fine) {
  .route-chip:hover, .route-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
}
html[data-theme="dark"] .routes-title,
html[data-theme="dark"] .route-filter-label,
html[data-theme="dark"] .route-h,
html[data-theme="dark"] .route-day h3 {
  color: #f4efe6;
}
html[data-theme="dark"] .route-chip {
  background: var(--surface-2);
  color: #f3e6d4;
  border-color: #4d4338;
}
html[data-theme="dark"] .route-chip[aria-pressed="true"] {
  background: #2f7a49;
  color: #fff;
  border-color: #2f7a49;
}
html[data-theme="dark"] .route-meta,
html[data-theme="dark"] .route-fest-line,
html[data-theme="dark"] .route-tag,
html[data-theme="dark"] .route-back a,
html[data-theme="dark"] .route-dir a {
  color: #e7c39a;
}
html[data-theme="dark"] .route-facts dt { color: #f4efe6; }
html[data-theme="dark"] .route-safety { background: #2a2418; border-color: #8a6a2a; }
html[data-theme="dark"] .route-safety-item { background: #1c1914; border-color: #4d4338; color: #f4efe6; }
html[data-theme="dark"] .route-safety-item.is-warn { background: #3a221e; border-color: #8a4036; }
html[data-theme="dark"] .route-safety-item.is-warn strong { color: #ffb4a8; }
html[data-theme="dark"] .route-safety-item.is-caution { background: #3a2e1c; border-color: #8a6230; }
html[data-theme="dark"] .route-safety-item.is-ok { background: #1c2e22; border-color: #3d6248; }
html[data-theme="dark"] .route-safety-item.is-water { background: #1a2c36; border-color: #3d6278; }
html[data-theme="dark"] .route-safety-note { background: #1c1914; border-color: #8a4036; color: #f4efe6; }
html[data-theme="dark"] .route-tag {
  background: #1a2820;
  border-color: #3d5246;
}
@media print {
  html[data-theme="dark"] .routes-title,
  html[data-theme="dark"] .route-title,
  html[data-theme="dark"] .route-h,
  html[data-theme="dark"] .route-day h3,
  html[data-theme="dark"] .route-chip,
  html[data-theme="dark"] .route-meta {
    color: #000 !important;
    background: #fff !important;
  }
  .route-map { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .pre-rise { opacity: 1 !important; transform: none !important; }
  .card:hover, .sg:hover, .x:hover, .opt:hover, .tile:hover, .btn:hover, .org-tabs a:hover, .route-chip:hover, .route-card:hover { transform: none !important; }
}
