/* ==========================================================================
   HKU Geography · Find Us — wayfinding site
   Display: Zodiak · Body: Switzer
   ========================================================================== */
:root {
  --g950: #081d15;
  --g900: #0e2e22;
  --g800: #143d2e;
  --g700: #1d5240;
  --g600: #2b6a53;
  --ivory: #f4efe4;
  --ivory-2: #e9e1cf;
  --paper: #fbf8f1;
  --gold: #c19a55;
  --blue: #2f7fb5;
  --gold-l: #dcc08a;
  --gold-ink: #85642c;
  --lime: #8cc04b;
  --lime-ink: #4f7f1f;
  --ink: #17201b;
  --muted: #59645d;
  --line: rgba(23, 32, 27, 0.12);
  --line-light: rgba(244, 239, 228, 0.16);

  --font-display: "Zodiak", "Iowan Old Style", "Georgia", serif;
  --font-body: "Switzer", "Segoe UI", system-ui, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: clamp(1.125rem, 1rem + 0.4vw, 1.3rem);
  --text-xl: clamp(1.6rem, 1.2rem + 1.4vw, 2.35rem);
  --text-hero: clamp(2.4rem, 1.4rem + 3.6vw, 4.4rem);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(8, 29, 21, 0.06), 0 12px 32px -12px rgba(8, 29, 21, 0.28);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --wrap: 1240px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="zh-HK"] body { font-family: var(--font-body), "PingFang HK", "Noto Sans HK", "Microsoft JhengHei", sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--g950); padding: 0.5rem 0.9rem; border-radius: var(--r-sm); }
.skip:focus { left: 12px; }

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-l);
  margin-bottom: 0.9rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.eyebrow.dark { color: var(--gold-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 46, 34, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-light);
  color: var(--ivory);
}
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 2rem; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 0.25rem; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: var(--text-sm); font-weight: 500;
  padding: 0.45rem 0.8rem; border-radius: 999px; color: rgba(244, 239, 228, 0.82);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav a:hover { background: rgba(244, 239, 228, 0.08); color: var(--ivory); }
.lang { display: flex; border: 1px solid var(--line-light); border-radius: 999px; padding: 3px; }
.lang button {
  border: 0; background: transparent; font-size: var(--text-xs); font-weight: 600;
  min-width: 40px; height: 30px; border-radius: 999px; color: rgba(244, 239, 228, 0.75);
}
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--g950); }

/* ---------- Event ribbon ---------- */
.event-ribbon { background: var(--ivory); border-bottom: 1px solid var(--ivory-2); }
.ribbon-row { display: flex; align-items: center; gap: 1rem; min-height: 56px; padding-block: 0.45rem; font-size: var(--text-sm); }
.ribbon-logo { height: 34px; width: auto; }
.ribbon-row p strong { font-weight: 600; color: var(--g800); }
.ribbon-row .sep { margin-inline: 0.55rem; color: var(--gold); }
.countdown {
  margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; font-size: var(--text-xs);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-ink);
  background: rgba(193, 154, 85, 0.14); padding: 0.3rem 0.65rem; border-radius: 999px; white-space: nowrap;
}
.countdown:empty { display: none; }
.ribbon-link { font-weight: 600; color: var(--g700); text-underline-offset: 3px; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--ivory);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(193, 154, 85, 0.16), transparent 60%),
    radial-gradient(800px 600px at -10% 110%, rgba(140, 192, 75, 0.10), transparent 60%),
    var(--g900);
}
.hero::after { /* contour texture */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%23f4efe4' stroke-width='1'%3E%3Cpath d='M-20 420c80-60 160-40 230-90s120-150 220-150 140 40 190 30'/%3E%3Cpath d='M-20 460c90-60 170-30 250-80s120-150 230-140 120 50 160 40'/%3E%3Cpath d='M-20 500c100-60 180-20 270-70s130-140 240-130 100 50 130 50'/%3E%3Cpath d='M-20 540c110-50 190-10 290-60s140-130 250-120 80 40 100 40'/%3E%3Cpath d='M-20 380c70-60 150-50 210-100s110-150 210-160 160 30 220 20'/%3E%3Cpath d='M-20 340c60-60 140-60 190-110s100-150 200-170 180 20 250 10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 900px 900px; background-position: right -200px top -120px;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6.5rem); }
.hero h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-hero); line-height: 1.02; letter-spacing: -0.015em; }
.hero .lede { margin-top: 1.4rem; font-size: var(--text-lg); color: rgba(244, 239, 228, 0.8); max-width: 34ch; }
.facts { margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.facts div { padding: 1rem 1.6rem 1rem 0; margin-right: 1.6rem; border-right: 1px solid var(--line-light); }
.facts div:last-child { border-right: 0; margin-right: 0; }
.facts dt { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-l); font-weight: 600; }
.facts dd { margin: 0.3rem 0 0; font-weight: 500; }
.hero-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 600; font-size: var(--text-sm);
  height: 48px; padding: 0 1.4rem; border-radius: 999px; transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--g950); }
.btn-gold:hover { background: var(--gold-l); }
.btn-ghost { border: 1px solid rgba(244, 239, 228, 0.35); color: var(--ivory); }
.btn-ghost:hover { background: rgba(244, 239, 228, 0.08); }

.hero-figure { margin: 0; position: relative; }
.hero-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3.1; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55); outline: 1px solid rgba(220, 192, 138, 0.35); outline-offset: 10px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure figcaption {
  position: absolute; left: 1.1rem; top: 1.1rem; display: flex; align-items: center; gap: 0.6rem;
  background: rgba(8, 29, 21, 0.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 0.55rem 0.9rem; border-radius: 999px; font-size: var(--text-sm);
}
.hero-figure figcaption strong { color: var(--gold-l); font-weight: 600; margin-right: 0.25rem; }
.pin { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(193, 154, 85, 0.3); }
.hero-address {
  position: absolute; right: -0.5rem; bottom: -1.6rem; font-style: normal; font-size: var(--text-sm); line-height: 1.5;
  background: var(--ivory); color: var(--ink); padding: 1rem 1.2rem; border-radius: var(--r-md); box-shadow: var(--shadow);
  border-left: 3px solid var(--gold);
}

/* ---------- Section head ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2rem; }
.section-head h2, .levels h2, .arrive h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); line-height: 1.1; letter-spacing: -0.01em; }
.section-note { max-width: 46ch; color: var(--muted); }

/* ---------- Explorer ---------- */
.explore { padding-block: clamp(4rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); background: var(--paper); }
.explorer {
  width: min(100% - 2.5rem, 1440px); margin-inline: auto;
  display: grid; grid-template-columns: 1fr 400px; gap: 0;
  border-radius: var(--r-lg); overflow: hidden; background: var(--g950); box-shadow: var(--shadow);
  height: min(80vh, 780px); min-height: 600px;
}
.map-wrap { position: relative; min-width: 0; }
#map { position: absolute; inset: 0; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; color: var(--ivory); text-align: center; background: var(--g900); }

.level-rail {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%); z-index: 3;
  list-style: none; margin: 0; padding: 6px; display: flex; flex-direction: column-reverse; gap: 4px;
  background: rgba(8, 29, 21, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 14px; border: 1px solid rgba(244, 239, 228, 0.1);
}
.level-rail li {
  position: relative; width: 52px; height: 40px; display: grid; place-items: center; border-radius: 9px;
  font-size: var(--text-xs); font-weight: 700; color: rgba(244, 239, 228, 0.55); font-variant-numeric: tabular-nums;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.level-rail li.on { background: var(--gold); color: var(--g950); }
.level-rail li .lv-tip {
  position: absolute; left: calc(100% + 10px); white-space: nowrap; font-weight: 600;
  background: var(--gold); color: var(--g950); padding: 0.3rem 0.6rem; border-radius: 6px; opacity: 0; pointer-events: none;
  transform: translateX(-4px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.level-rail li.on .lv-tip { opacity: 1; transform: none; }

.map-tools {
  position: absolute; right: 16px; top: 16px; z-index: 3; display: flex; flex-direction: column; gap: 6px;
}
.tool {
  display: flex; align-items: center; gap: 0.5rem; height: 40px; padding: 0 0.85rem 0 0.7rem; border: 0;
  border-radius: 10px; background: rgba(8, 29, 21, 0.84); color: var(--ivory); font-size: var(--text-xs); font-weight: 600;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(244, 239, 228, 0.1);
  transition: background 0.2s var(--ease);
}
.tool:hover { background: var(--g700); }
.tool[aria-pressed="true"] { background: var(--gold); color: var(--g950); }
.tool svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

.map-legend {
  position: absolute; left: 16px; bottom: 16px; z-index: 3; display: flex; flex-wrap: wrap; gap: 0.9rem;
  background: rgba(8, 29, 21, 0.82); color: rgba(244, 239, 228, 0.85); font-size: var(--text-xs);
  padding: 0.5rem 0.8rem; border-radius: 10px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.map-legend > span { display: inline-flex; align-items: center; gap: 0.45rem; }
.lg-line { width: 22px; height: 4px; border-radius: 3px; background: var(--rc, var(--gold)); display: inline-block; }
.lg-line.dashed { background: repeating-linear-gradient(90deg, var(--rc, var(--gold)) 0 6px, transparent 6px 10px); }
.lg-box { width: 12px; height: 12px; border-radius: 3px; background: var(--ivory); display: inline-block; }

/* map markers */
.mk-step {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--g900); color: var(--ivory); font-size: 12px; font-weight: 700; font-family: var(--font-body);
  border: 2px solid var(--ivory); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35); cursor: pointer;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.mk-step.on { background: var(--gold); color: var(--g950); box-shadow: 0 0 0 5px rgba(193,154,85,.35), 0 4px 10px rgba(0,0,0,.35); z-index: 3; }
.mk-step.dim { opacity: 0.0; pointer-events: none; }
.mk-place {
  font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
  background: rgba(251, 248, 241, 0.94); color: var(--g900); padding: 0.28rem 0.55rem; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); pointer-events: none;
}
.mk-place.mtr { background: #a8102e; color: #fff; }
.mk-place.dest { background: var(--gold); color: var(--g950); font-size: 13px; padding: 0.4rem 0.7rem; }
.mk-place.dest::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-bottom: 0; border-top-color: var(--gold); }
.mk-place.mtr::after, .mk-place.place::after { content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); border: 5px solid transparent; border-bottom: 0; border-top-color: inherit; }
.mk-place::after { position: absolute; }
.mk-place.place::after { border-top-color: rgba(251, 248, 241, 0.94); }
.mk-place.mtr::after { border-top-color: #a8102e; }
.maplibregl-ctrl-attrib { font-size: 11px; }

/* ---------- Route panel ---------- */
.route-panel { background: var(--paper); display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); }
.route-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); background: var(--ivory); }
.route-switch button {
  display: flex; align-items: center; gap: 0.6rem; text-align: left; border: 1px solid transparent; background: transparent;
  padding: 0.55rem 0.6rem; border-radius: 10px; transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.route-switch button[aria-selected="true"] { background: var(--paper); border-color: var(--line); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.route-switch strong { display: block; font-size: var(--text-sm); line-height: 1.2; }
.route-switch small { display: block; font-size: var(--text-xs); color: var(--muted); line-height: 1.3; margin-top: 2px; }
.rs-k { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: var(--text-sm); background: var(--ivory-2); color: var(--muted); }
[data-route="A"][aria-selected="true"] .rs-k { background: var(--gold); color: var(--g950); }
[data-route="B"][aria-selected="true"] .rs-k { background: var(--lime); color: var(--g950); }
[data-route="C"][aria-selected="true"] .rs-k { background: var(--blue); color: #fff; }
.route-switch button { flex-direction: column; align-items: flex-start; gap: 0.4rem; padding: 0.55rem 0.55rem 0.6rem; }
.mk-step.rC.on { background: var(--blue); color: #fff; box-shadow: 0 0 0 5px rgba(47,127,181,.35), 0 4px 10px rgba(0,0,0,.35); }
.mk-step.rB.on { background: var(--lime); color: var(--g950); box-shadow: 0 0 0 5px rgba(140,192,75,.35), 0 4px 10px rgba(0,0,0,.35); }

.step-card { padding: 12px 12px 0; }
.step-photo { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--ivory-2); aspect-ratio: 4 / 3; }
.step-photo img { width: 100%; height: 100%; object-fit: cover; }
.step-photo .ov { position: absolute; inset: 0; width: 100%; height: 100%; }
.step-photo .badge {
  position: absolute; left: 10px; top: 10px; background: rgba(8, 29, 21, 0.85); color: var(--ivory);
  font-size: var(--text-xs); font-weight: 600; padding: 0.25rem 0.55rem; border-radius: 6px;
}
.step-body { padding: 0.9rem 0.25rem 0.2rem; }
.step-meta { display: flex; align-items: center; gap: 0.6rem; font-size: var(--text-xs); font-weight: 600; color: var(--gold-ink); letter-spacing: 0.08em; text-transform: uppercase; }
.chip { font-size: 11px; letter-spacing: 0.04em; text-transform: none; color: var(--g700); background: rgba(29, 82, 64, 0.1); padding: 0.15rem 0.5rem; border-radius: 999px; }
.step-body h3 { font-size: var(--text-lg); font-weight: 600; line-height: 1.25; margin-top: 0.35rem; }
.step-body p:last-child { color: var(--muted); font-size: var(--text-sm); margin-top: 0.35rem; min-height: 3em; }
.step-nav { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.25rem 0.9rem; }
.btn-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; transition: background 0.2s var(--ease); }
.btn-icon:hover:not(:disabled) { background: var(--ivory); }
.btn-icon:disabled { opacity: 0.35; cursor: default; }
.btn-icon svg { width: 18px; height: 18px; }
.progress { flex: 1; height: 4px; border-radius: 4px; background: var(--ivory-2); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 4px; transition: width 0.4s var(--ease); }

.step-list { list-style: none; margin: 0; padding: 0 12px 12px; overflow-y: auto; flex: 1; min-height: 0; border-top: 1px solid var(--line); }
.step-list li button {
  width: 100%; display: grid; grid-template-columns: 28px 1fr auto; gap: 0.7rem; align-items: center; text-align: left;
  border: 0; background: transparent; padding: 0.55rem 0.4rem; border-radius: 8px; font-size: var(--text-sm);
}
.step-list li button:hover { background: var(--ivory); }
.step-list li.stage { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 0.9rem 0.4rem 0.3rem; }
.step-list .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--ivory-2); color: var(--g800); }
.step-list .lv { font-size: 11px; color: var(--muted); font-weight: 600; }
.step-list li.on button { background: var(--ivory); }
.step-list li.on .n { background: var(--g900); color: var(--gold-l); }

/* ---------- Photo guide ---------- */
.guide { padding-block: clamp(4rem, 7vw, 6rem); background: var(--ivory); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; height: 38px; padding: 0 1rem; border-radius: 999px; font-size: var(--text-sm); font-weight: 600; color: var(--muted); }
.seg button[aria-selected="true"] { background: var(--g900); color: var(--ivory); }
.stage-block { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; padding-block: 2rem; border-top: 1px solid var(--line); }
.stage-block:first-child { border-top: 0; padding-top: 0.5rem; }
.stage-label { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.stage-label .num { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--gold); font-weight: 500; }
.stage-label h3 { font-size: var(--text-lg); font-weight: 600; margin-top: 0.5rem; line-height: 1.25; }
.stage-label p { font-size: var(--text-sm); color: var(--muted); margin-top: 0.3rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.photo-card { background: var(--paper); border-radius: var(--r-md); overflow: hidden; box-shadow: 0 1px 2px rgba(8, 29, 21, 0.05); border: 1px solid var(--line); display: flex; flex-direction: column; }
.photo-card .step-photo { border-radius: 0; }
.photo-card .pc-body { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.photo-card .pc-n { font-size: var(--text-xs); font-weight: 700; color: var(--gold-ink); letter-spacing: 0.1em; text-transform: uppercase; display: flex; gap: 0.5rem; align-items: center; }
.photo-card h4 { margin: 0; font-size: var(--text-base); font-weight: 600; line-height: 1.3; }
.photo-card p { font-size: var(--text-sm); color: var(--muted); }
.photo-card .pc-map { margin-top: auto; padding-top: 0.6rem; align-self: start; border: 0; background: none; font-size: var(--text-xs); font-weight: 600; color: var(--g700); text-decoration: underline; text-underline-offset: 3px; padding-inline: 0; }

/* ---------- Levels ---------- */
.levels { background: var(--g900); color: var(--ivory); padding-block: clamp(4rem, 7vw, 6rem); position: relative; overflow: hidden; }
.levels-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.lede.small { font-size: var(--text-base); color: rgba(244, 239, 228, 0.78); margin-top: 1rem; max-width: 44ch; }
.lv-key { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.6rem; font-size: var(--text-sm); }
.lv-key li { display: flex; align-items: center; gap: 0.7rem; }
.lv-key i { width: 28px; height: 4px; border-radius: 3px; }
.k-a { background: var(--gold); }
.k-b { background: var(--lime); }
.k-c { background: #6fb6e0; }
.schematic-note { margin-top: 1.4rem; font-size: var(--text-xs); color: rgba(244, 239, 228, 0.55); letter-spacing: 0.04em; }
.section-diagram svg { width: 100%; height: auto; display: block; }

/* ---------- Arrive ---------- */
.arrive { padding-block: clamp(4rem, 7vw, 6rem); background: var(--paper); }
.arrive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.arrive-copy > p { margin-top: 1rem; color: var(--muted); max-width: 46ch; }
.dir-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.dir-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.2rem; background: #fff; }
.dir-card .room { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--g800); font-weight: 500; font-variant-numeric: tabular-nums; }
.dir-card .dir-t { font-weight: 600; margin-top: 0.7rem; }
.dir-card .dir-d { font-size: var(--text-sm); color: var(--muted); }
.dir-card a { display: inline-block; margin-top: 0.6rem; font-size: var(--text-sm); font-weight: 600; color: var(--g700); text-underline-offset: 3px; }

.today { background: var(--g900); color: var(--ivory); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.today::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--lime)); }
.today-head { display: flex; gap: 1rem; align-items: center; }
.today-head img { width: 64px; height: auto; background: var(--ivory); border-radius: 12px; padding: 6px; }
.today-head .eyebrow { margin-bottom: 0.3rem; }
.today-head h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; line-height: 1.15; }
.today-when { font-size: var(--text-sm); color: rgba(244, 239, 228, 0.75); margin-top: 0.2rem; }
.today-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0; }
.today-list li { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; padding: 0.9rem 0; border-top: 1px solid var(--line-light); font-size: var(--text-sm); }
.today-list time { font-weight: 700; color: var(--gold-l); font-variant-numeric: tabular-nums; }
.today-foot { margin-top: 1rem; font-size: var(--text-xs); color: rgba(244, 239, 228, 0.7); }
.today-foot a { color: var(--gold-l); }

/* ---------- Plan ---------- */
.plan { padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 7vw, 6rem); background: var(--ivory); }
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.plan-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.4rem; }
.pc-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--g900); color: var(--gold-l); }
.pc-ico svg { width: 22px; height: 22px; }
.plan-card h3 { font-size: var(--text-lg); font-weight: 600; margin-top: 1rem; }
.plan-card p { font-size: var(--text-sm); color: var(--muted); margin-top: 0.4rem; }
.plan-card a, .drive a, .plan-src a { color: var(--g700); font-weight: 600; text-underline-offset: 3px; }
.plan-card h4, .drive h4 { font-size: var(--text-sm); font-weight: 700; color: var(--ink); margin-top: 1rem; }
.plan-card .fine, .drive .fine { font-size: var(--text-xs); margin-top: 0.8rem; }
.routes { margin: 0.9rem 0 0; display: grid; gap: 0.55rem; }
.routes div { display: grid; gap: 0.15rem; }
.routes dt { font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--g700); font-weight: 700; }
.routes dd { margin: 0; font-size: var(--text-sm); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.45; }
.plan-grid.three { grid-template-columns: repeat(3, 1fr); margin-top: 1rem; }
.plan-grid.two { grid-template-columns: repeat(2, 1fr); margin-top: 1rem; }
.hero-sub { margin-top: 0.9rem; font-size: var(--text-base); letter-spacing: .01em; color: var(--gold-l, #d9bd85); max-width: 40ch; }
.arrive-grid:not(:has(.today)) { grid-template-columns: 1fr; }
.arrive-grid:not(:has(.today)) .dir-cards { max-width: 420px; grid-template-columns: 1fr; }
.drive { margin-top: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(1.4rem, 3vw, 2rem); }
.drive-head { display: flex; gap: 1rem; align-items: flex-start; }
.drive-head .pc-ico { flex: none; }
.drive-head h3 { font-size: var(--text-lg); font-weight: 600; }
.drive-head p { font-size: var(--text-sm); color: var(--muted); margin-top: 0.3rem; max-width: 60ch; }
.drive-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.4rem, 4vw, 3rem); margin-top: 0.6rem; }
.drive-steps { margin: 0.5rem 0 0; padding-left: 1.3rem; display: grid; gap: 0.35rem; font-size: var(--text-sm); color: var(--muted); }
.drive-steps li::marker { color: var(--g700); font-weight: 700; }
.fee { width: 100%; border-collapse: collapse; margin-top: 0.5rem; font-size: var(--text-sm); }
.fee th, .fee td { text-align: left; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.fee th { font-weight: 500; color: var(--muted); }
.fee td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.parks { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.5rem; font-size: var(--text-sm); }
.parks li { display: grid; gap: 0.1rem; }
.parks span { color: var(--muted); }
.drive-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin-top: 0.9rem; font-size: var(--text-sm); }
.plan-src { margin-top: 1.4rem; font-size: var(--text-xs); color: var(--muted); max-width: 90ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--g950); color: rgba(244, 239, 228, 0.75); padding-block: 3rem; font-size: var(--text-sm); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.site-footer img { height: 28px; width: auto; }
.site-footer address { font-style: normal; margin-top: 1rem; max-width: 40ch; }
.credits p + p { margin-top: 0.5rem; }
.credits { font-size: var(--text-xs); }
.credits a { color: var(--gold-l); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .explorer { grid-template-columns: 1fr 360px; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid.three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .levels-grid, .arrive-grid { grid-template-columns: 1fr; }
  .hero-figure { margin-bottom: 1.5rem; }
  .explorer { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .map-wrap { height: 62vh; min-height: 420px; }
  .route-panel { border-left: 0; border-top: 1px solid var(--line); }
  .step-list { max-height: 360px; }
  .section-head { flex-direction: column; align-items: start; }
  .stage-block { grid-template-columns: 1fr; gap: 1rem; }
  .stage-label { position: static; display: flex; gap: 1rem; align-items: baseline; }
  .stage-label .num { font-size: 2.2rem; }
}
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .wrap { width: min(100% - 2rem, var(--wrap)); }
  .explorer { width: 100%; border-radius: 0; }
  .brand img { height: 22px; }
  .ribbon-row { flex-wrap: wrap; gap: 0.3rem 0.8rem; font-size: var(--text-xs); }
  .ribbon-row p { flex: 1 1 calc(100% - 60px); }
  .ribbon-row .countdown { margin-left: 52px; }
  .facts { grid-template-columns: 1fr; }
  .facts div { border-right: 0; margin-right: 0; padding: 0.7rem 0; border-bottom: 1px solid var(--line-light); }
  .facts div:last-child { border-bottom: 0; }
  .hero-address { position: static; margin-top: 1rem; }
  .map-tools { top: 12px; right: 12px; }
  .tool span { display: none; }
  .tool { padding: 0; width: 40px; justify-content: center; }
  .level-rail { left: 10px; }
  .level-rail li { width: 44px; height: 34px; }
  .level-rail li .lv-tip { display: none; }
  .map-legend { left: 10px; right: 64px; bottom: 10px; gap: 0.25rem 0.7rem; font-size: 11px; padding: 0.4rem 0.6rem; flex-wrap: wrap; }
  .dir-cards, .plan-grid, .plan-grid.three, .plan-grid.two, .footer-grid, .drive-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Print: photo guide on paper ---------- */
@media print {
  .site-header, .event-ribbon, .explore, .levels, .hero-cta, .seg, .pc-map, .site-footer .credits a { display: none !important; }
  .hero { background: #fff; color: #000; }
  .hero::after { display: none; }
  .hero-photo { box-shadow: none; outline: 0; }
  .guide, .arrive, .plan { background: #fff; padding-block: 1rem; }
  .photo-card { break-inside: avoid; }
  .stage-label { position: static; }
  .today { background: #fff; color: #000; border: 1px solid #000; }
}
[hidden]{display:none !important}
