@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-display: swap; src: url('/fonts/spacegrotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap; src: url('/fonts/spacegrotesk-700.woff2') format('woff2'); }

/* joshuaaah.com color bible -- canonical tokens, copied verbatim (memory/feedback_joshuaaah_color_bible.md) */
:root {
  --jx-bg: #FFFFFF;
  --jx-surface: #F7F6FA;
  --jx-surface-alt: #ECEAF1;
  --jx-black: #000000;
  --jx-black-soft: #0D0D10;
  --jx-primary: #1A0633;
  --jx-primary-hover: #2E1152;
  --jx-primary-deep: #0F0320;
  --jx-silver: #C4CED4;
  --jx-accent: #0D9488;
  --jx-accent-hover: #14B8A6;
  --jx-accent-text: #0F766E;
  --jx-text: #121117;
  --jx-text-secondary: #6B6974;
  --jx-text-on-dark: #F2F1F5;
  --jx-border: #D8D5E0;
  --jx-success: #16A34A;
  --jx-warning: #D97706;
  --jx-spotlight: #F97316;
  --jx-spotlight-hover: #FB923C;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --font-sans: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  --nav-height: 60px;
  /* how-late scale (venue dots): early -> late */
  --late-early: #7C3AED;
  --late-mid: #F97316;
  --late-late: #14B8A6;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--jx-text);
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(13,148,136,0.05), transparent 60%),
    radial-gradient(900px 560px at 110% 10%, rgba(26,6,51,0.07), transparent 55%),
    var(--jx-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; margin: 0; }
button, input, select { font: inherit; }
a { color: var(--jx-primary); }
a:hover, a:focus-visible { color: var(--jx-accent-text); }
:focus-visible { outline: 2px solid var(--jx-accent); outline-offset: 2px; }

/* header: purple fading into black, sticky */
.bar {
  position: sticky; top: 0; z-index: 20; height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 max(16px, env(safe-area-inset-left));
  background: linear-gradient(90deg, var(--jx-primary) 0%, var(--jx-primary-deep) 55%, var(--jx-black) 100%);
  color: #fff; box-shadow: 0 1px 0 rgba(196,206,212,0.18), 0 6px 20px rgba(15,3,32,0.18);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: 0.01em; }
.brand small { color: var(--jx-silver); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.bar nav a { color: #fff; text-decoration: none; font-size: 0.9rem; padding: 6px 10px; border-radius: var(--radius-sm); }
.bar nav a:hover { background: var(--jx-primary-hover); color: #fff; }

main { max-width: 1240px; margin: 0 auto; padding: 22px 16px 40px; }
.intro h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--jx-primary); line-height: 1.08; }
.intro .sub { color: var(--jx-text-secondary); margin: 8px 0 16px; max-width: 760px; font-size: 0.98rem; line-height: 1.5; }

.card { background: linear-gradient(165deg, var(--jx-surface-alt), #ffffff); border: 1px solid var(--jx-border); border-radius: var(--radius-lg); padding: 16px 18px; min-width: 0; }
.card h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--jx-text-secondary); display: flex; align-items: center; gap: 8px; }
.card h2::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--jx-spotlight); box-shadow: 0 0 8px rgba(249,115,22,0.6); flex: none; }

/* controls */
.controls { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; margin-bottom: 16px; }
@media (max-width: 860px) { .controls { grid-template-columns: 1fr; gap: 14px; } }
.ctl { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lbl { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: var(--jx-accent-text); }
.search { position: relative; }
.search input { width: 100%; padding: 10px 14px; border: 1px solid var(--jx-border); border-radius: 999px; background: #fff; color: var(--jx-text); }
.search input:focus { border-color: var(--jx-accent); box-shadow: 0 0 0 3px rgba(13,148,136,0.14); outline: none; }
.results { position: absolute; z-index: 15; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 4px; background: #fff; border: 1px solid var(--jx-border); border-radius: var(--radius-md); box-shadow: 0 16px 40px rgba(15,3,32,0.18); max-height: 300px; overflow: auto; }
.results button { width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; display: flex; justify-content: space-between; gap: 8px; color: var(--jx-text); }
.results button:hover, .results button[aria-selected="true"] { background: var(--jx-surface); }
.results small { color: var(--jx-text-secondary); white-space: nowrap; }
.home-now { font-weight: 600; overflow-wrap: anywhere; }
.home-now .pin { color: var(--jx-spotlight); }
.presets, .nights { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--jx-border); background: #fff; color: var(--jx-primary); border-radius: 999px; padding: 6px 13px; font-weight: 600; font-size: 0.85rem; cursor: pointer; }
.chip:hover { border-color: var(--jx-accent); }
.chip[aria-pressed="true"] { background: var(--jx-primary); border-color: var(--jx-primary); color: #fff; }
.chip.typed { align-self: flex-start; padding: 4px 6px 4px 14px; cursor: default; }
.chip.typed input { border: 0; background: var(--jx-surface); border-radius: 999px; padding: 4px 8px; color: var(--jx-text); min-width: 0; max-width: 160px; }
.hint { margin: 0; color: var(--jx-text-secondary); font-size: 0.84rem; }
.linkish { border: 0; background: none; padding: 0; color: var(--jx-accent-text); font-weight: 600; text-decoration: underline; cursor: pointer; font-size: inherit; }
.geo-msg { color: var(--jx-text-secondary); }

/* map + list */
.stage { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 960px) { .stage { grid-template-columns: 1fr; } }
.map-col { min-width: 0; position: sticky; top: calc(var(--nav-height) + 12px); }
@media (max-width: 960px) { .map-col { position: static; } }
.map-wrap { position: relative; width: 100%; height: min(72vh, 680px); border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(120% 90% at 50% 30%, #1d0a38 0%, #0F0320 55%, #050208 100%); border: 1px solid var(--jx-primary-hover); box-shadow: 0 18px 40px rgba(15,3,32,0.28); }
@media (max-width: 960px) { .map-wrap { height: 62vh; min-height: 340px; } }
#map { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
#map.dragging { cursor: grabbing; }
.map-tools { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; }
.map-tools button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(196,206,212,0.28); background: rgba(15,3,32,0.78); color: var(--jx-text-on-dark); font-size: 1.15rem; line-height: 1; cursor: pointer; }
.map-tools button:hover { border-color: var(--jx-accent-hover); }
.legend { position: absolute; left: 10px; bottom: 10px; background: rgba(15,3,32,0.8); border: 1px solid rgba(196,206,212,0.22); border-radius: 12px; padding: 8px 10px; color: var(--jx-text-on-dark); font-size: 0.72rem; max-width: calc(100% - 20px); }
.ramp { display: flex; align-items: center; gap: 6px; }
.ramp i { display: block; width: 120px; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--late-early), var(--late-mid), var(--late-late)); }
.keys { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.keys span { display: inline-flex; align-items: center; gap: 4px; }
.k { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.k.walk { background: transparent; border: 2px solid #fff; }
.k.none { background: transparent; border: 1.5px solid #8a8794; }
.k.home { background: var(--jx-spotlight); box-shadow: 0 0 0 2px #fff; }
.map-status { position: absolute; top: 10px; left: 10px; right: 56px; color: var(--jx-silver); font-size: 0.78rem; pointer-events: none; text-shadow: 0 1px 2px #000; }
.map-note { color: var(--jx-text-secondary); font-size: 0.8rem; margin: 8px 2px 0; }

.list-col { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.summary .big { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--jx-primary); line-height: 1.2; margin: 6px 0 4px; }
.summary p { margin: 6px 0 0; font-size: 0.92rem; line-height: 1.45; }
.summary .muted, .muted { color: var(--jx-text-secondary); }
.stats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.stat { font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--jx-border); }
.empty { color: var(--jx-text-secondary); font-size: 0.92rem; margin: 0; }
.err { color: #9a3412; }

.list-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.list-head input { flex: 1 1 160px; min-width: 0; padding: 7px 12px; border: 1px solid var(--jx-border); border-radius: 999px; background: #fff; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.tab { border: 1px solid var(--jx-border); background: #fff; color: var(--jx-text); border-radius: 999px; padding: 6px 13px; font-weight: 600; font-size: 0.85rem; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--jx-primary); border-color: var(--jx-primary); color: #fff; }
.vlist { list-style: none; margin: 0; padding: 0; }
.vlist li { border-top: 1px solid var(--jx-border); }
.vlist li:first-child { border-top: 0; }
.vrow { width: 100%; text-align: left; border: 0; background: transparent; padding: 10px 4px; cursor: pointer; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; color: var(--jx-text); border-radius: var(--radius-sm); }
.vrow:hover, .vrow[aria-current="true"] { background: rgba(255,255,255,0.7); }
.dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; }
.vmain { min-width: 0; }
.vname { display: block; font-weight: 700; overflow-wrap: anywhere; }
.vname small { font-weight: 400; color: var(--jx-text-secondary); margin-left: 4px; }
.vline { display: block; margin: 2px 0 4px; font-size: 0.86rem; line-height: 1.45; color: var(--jx-text); overflow-wrap: anywhere; }
.vline b { font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--jx-surface-alt); color: var(--jx-text-secondary); margin: 3px 4px 0 0; white-space: nowrap; }
.pill.close { background: rgba(13,148,136,0.12); color: var(--jx-accent-text); }
.pill.transit { background: rgba(249,115,22,0.14); color: #9a3412; }
.rt { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0 7px; border-radius: 6px; line-height: 1.5; vertical-align: 1px; }
.more { margin-top: 8px; border: 1px solid var(--jx-border); background: #fff; border-radius: 999px; padding: 7px 16px; font-weight: 600; cursor: pointer; color: var(--jx-primary); }
.more:hover { border-color: var(--jx-accent); }

/* itinerary detail */
.detail { background: linear-gradient(120deg, var(--jx-primary) 0%, var(--jx-primary-deep) 60%, var(--jx-black-soft) 100%); color: var(--jx-text-on-dark); border-color: var(--jx-primary-hover); }
.detail h3 { font-size: 1.2rem; color: #fff; overflow-wrap: anywhere; }
.detail .meta { color: var(--jx-silver); font-size: 0.84rem; margin: 4px 0 10px; overflow-wrap: anywhere; }
.detail .headline { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin: 6px 0 10px; }
.detail .headline em { font-style: normal; color: var(--jx-accent-hover); }
.legs { list-style: none; margin: 0; padding: 0 0 0 4px; }
.legs li { position: relative; padding: 4px 0 10px 22px; font-size: 0.9rem; line-height: 1.45; overflow-wrap: anywhere; }
.legs li::before { content: ''; position: absolute; left: 4px; top: 10px; bottom: -4px; width: 2px; background: rgba(196,206,212,0.3); }
.legs li:last-child::before { display: none; }
.legs li::after { content: ''; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--jx-silver); }
.legs li.ride::after { background: var(--leg, var(--jx-accent-hover)); }
.legs li.home::after { background: var(--jx-spotlight); }
.legs .t { font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; }
.legs .s { color: var(--jx-silver); font-size: 0.8rem; }
.detail .sub2 { font-size: 0.82rem; color: var(--jx-silver); margin: 6px 0 0; }
.detail .close-x { float: right; border: 0; background: rgba(255,255,255,0.08); color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.detail .split { border-top: 1px solid rgba(196,206,212,0.18); margin-top: 10px; padding-top: 10px; }

.how { margin-top: 22px; }
.how ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 0.92rem; line-height: 1.5; max-width: 900px; }

.foot { background: linear-gradient(90deg, var(--jx-black) 0%, var(--jx-primary-deep) 50%, var(--jx-primary) 100%); color: var(--jx-text-on-dark); padding: 22px 16px 28px; font-size: 0.84rem; line-height: 1.55; }
.foot p { max-width: 1208px; margin: 0 auto 10px; color: #d9d6e2; }
.foot b { color: #fff; }
.foot a { color: var(--jx-silver); }
.foot a:hover { color: var(--jx-accent-hover); }
