/* Static CUHK guide pages (build/seo/). Tokens mirror src/styles/base.css; no scripts, no web fonts. */
:root {
  color-scheme: light;
  --bg: #fbfaf7; --card: #ffffff; --text: #1c1d22; --text-2: #5f6570; --line: rgba(28, 29, 34, 0.1);
  --brand: #185b46; --link: #0a63b5;
  font: 16px/1.6 system-ui, -apple-system, "PingFang HK", "Noto Sans HK", "Microsoft JhengHei", sans-serif;
  background: var(--bg); color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; overflow-wrap: anywhere; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }

header.site, main, footer.site { max-width: 720px; margin: 0 auto; padding: 0 16px; }
header.site { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--brand); font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.brand img { border-radius: 8px; }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); text-decoration: none; font-weight: 600; }

main { padding-bottom: 24px; }
h1 { margin: 12px 0 4px; font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.02em; }
h2 { margin: 28px 0 8px; font-size: 1.2rem; line-height: 1.3; }
h3 { margin: 18px 0 6px; font-size: 1rem; }
.lede { margin: 0 0 12px; color: var(--text-2); }
.aka, .meta, .note, .crumbs { color: var(--text-2); font-size: 0.875rem; }
.crumbs { margin-top: 4px; }
.note { margin-top: 24px; padding: 12px 14px; border-left: 3px solid var(--brand); background: var(--card); }

.cta { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; }
.cta:hover { filter: brightness(1.08); }

ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
ul.directory { columns: 2 220px; column-gap: 24px; }
ul.directory li { break-inside: avoid; }
ul.compact { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-left: 0; list-style: none; }
ul.compact li { margin: 0; }
ul.routes, ol.stops { padding-left: 26px; }
.swatch { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 1px solid var(--line); border-radius: 3px; vertical-align: baseline; }
ul.sources { font-size: 0.875rem; }

details { margin: 8px 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
summary { cursor: pointer; font-weight: 600; min-height: 28px; }
details p { margin: 8px 0 0; }

figure.photo { margin: 8px 0; }
figure.photo img { display: block; width: 100%; max-width: 640px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: #eceae4; }
figure.photo figcaption { margin-top: 6px; color: var(--text-2); font-size: 0.8125rem; }

footer.site { padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 0.8125rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }

.guide-nav { max-width: 720px; margin: 0 auto 20px; padding: 0 16px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.guide-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand); font-size: .875rem; font-weight: 600; }
.guide-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.guide-cards a { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: #edf3ef; color: var(--brand); text-decoration: none; }
.guide-cards a:last-child { background: #fff0e9; color: #8c3b24; }
.guide-cards span { font-size: .875rem; color: var(--text-2); }
.guide-cards a:hover { border-color: currentColor; }
.contents { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.contents a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--brand); font-size: .875rem; text-decoration: none; }
@media (max-width: 480px) { .guide-cards { grid-template-columns: 1fr; } }

/* Info Day 2026 recap (build/seo/infodayRecap.ts). */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; padding: 0; list-style: none; }
.stat { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: #edf3ef; display: flex; flex-direction: column; gap: 4px; }
.stat strong { color: var(--brand); font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.stat span { color: var(--text-2); font-size: .875rem; line-height: 1.4; }
.stat:nth-child(4n+3), .stat:nth-child(4n+4) { background: #fff0e9; }
.stat:nth-child(4n+3) strong, .stat:nth-child(4n+4) strong { color: #8c3b24; }
ol.top { padding-left: 24px; font-weight: 600; }
.split { display: flex; overflow: hidden; border-radius: 12px; font-weight: 700; color: #fff; }
.split span { padding: 10px 12px; min-width: 0; }
.split-zh { background: var(--brand); }
.split-en { background: #8c3b24; text-align: right; }
@media (max-width: 360px) { .stats { grid-template-columns: 1fr; } }
ol.bars { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
ol.bars li { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 0.9375rem; }
.bar-label { overflow-wrap: anywhere; }
.bar-track { display: block; height: 12px; border-radius: 6px; background: var(--card); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 6px; background: var(--brand); }
.bar-count { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
table.exact { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.9375rem; }
table.exact th, table.exact td { padding: 8px 6px; border-bottom: 1px solid var(--card); text-align: left; }
table.exact td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
ul.facts { margin: 12px 0; padding-left: 20px; }
ul.facts li { margin: 4px 0; }

/* Tables on the shuttle and building codes pages. */
.table-scroll { overflow-x: auto; margin: 12px 0; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
table.data th, table.data td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data thead th { color: var(--text-2); font-size: 0.8125rem; font-weight: 600; }
table.data tbody th { font-weight: 700; white-space: nowrap; }
table.data tbody tr:target { background: #fff0e9; }
table.data .fit { white-space: nowrap; }

/* Locator map on place pages (build/seo/miniMap.ts) and the app capture on the hub. */
figure.mini-map, figure.hub-map { margin: 16px 0; }
.mini-map svg { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: #eeece4; }
.mini-map figcaption, .hub-map figcaption { margin-top: 6px; color: var(--text-2); font-size: 0.8125rem; }
.hub-map img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 16px; background: #eceae4; }
.mm-road { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.mm-building { fill: #d8d4c8; stroke: #c6c1b2; stroke-width: 1; }
.mm-target { fill: #d9593d; stroke: #8c3b24; stroke-width: 1.5; }
.mm-pin { fill: #d9593d; stroke: #fff; stroke-width: 3; }
.mm-stop { fill: var(--brand); stroke: #fff; stroke-width: 1.5; }
.mm-label { fill: var(--text-2); font-size: 12px; text-anchor: middle; paint-order: stroke; stroke: #eeece4; stroke-width: 3px; stroke-linejoin: round; }
.mm-name { fill: #8c3b24; font-size: 15px; font-weight: 700; }
.mm-note { fill: var(--text-2); font-size: 11px; }
.mm-scale { fill: none; stroke: var(--text-2); stroke-width: 2; }
