@font-face { font-family: Archivo; src: url(fonts/archivo-latin.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+21C5, U+2039-203A, U+02C4-02C5, U+FEFF, U+FFFD; font-display: swap; }
@font-face { font-family: Archivo; src: url(fonts/archivo-latin-ext.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; font-display: swap; }

:root {
  --ink: #15191f; --ink-2: #3b424c; --paper: rgba(246, 244, 239, .93); --paper-solid: #f6f4ef; --line: rgba(21, 25, 31, .14);
  --accent: #8a1c12; --accent-ink: #fff; --high: #c99418; --path: #e7e1d4; --field: #ffffff; --shadow: 0 10px 40px rgba(20, 24, 30, .18);
  --lbl: #15191f; --lbl-halo: rgba(246, 244, 239, .92); --lbl-walk: #5e4100;
  color-scheme: light;
}
[data-theme="dark"] {
  --ink: #eef0f3; --ink-2: #c3c9d2; --paper: rgba(18, 23, 34, .9); --paper-solid: #121722; --line: rgba(238, 240, 243, .16);
  --accent: #ff8a73; --accent-ink: #1a0f0c; --high: #f2c14e; --path: #8d8a83; --field: #1b2232; --shadow: 0 10px 40px rgba(0, 0, 0, .5);
  --lbl: #f4f1ea; --lbl-halo: rgba(10, 14, 24, .85); --lbl-walk: #f6cf6a;
  color-scheme: dark;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--paper-solid); color: var(--ink); font: 15px/1.45 Archivo, system-ui, sans-serif; font-stretch: 100%; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
#stage { position: fixed; inset: 0; height: var(--stable-vh, 100svh); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; cursor: grab; }
#scene:active { cursor: grabbing; }
#scene:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }

/* labels in the scene */
#labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lbl { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; transition: opacity .25s; border: 0; background: none; padding: 2px 4px; white-space: nowrap;
  color: var(--lbl); font-weight: 640; font-size: 12.5px; letter-spacing: .01em; paint-order: stroke; -webkit-text-stroke: 3.5px var(--lbl-halo); cursor: pointer; }
.lbl.on { opacity: 1; pointer-events: auto; }
.lbl[data-badge]::after { content: attr(data-badge); display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 3px; background: var(--accent); color: var(--accent-ink); font-size: 10.5px; font-weight: 700; letter-spacing: .03em; -webkit-text-stroke: 0; vertical-align: 1px; }
.lbl:hover { color: var(--accent); }
.lbl-tower { font-size: 15px; font-weight: 760; font-stretch: 112%; letter-spacing: .02em; }
.lbl-station { font-weight: 720; }
.lbl-station::before { content: ''; display: inline-block; width: .8em; height: .8em; border-radius: 50%; border: .2em solid #d2231c; background: #fff; margin-right: .35em; vertical-align: -.08em; -webkit-text-stroke: 0; }
.lbl-centre, .lbl-venue, .lbl-space, .lbl-entrance { font-stretch: 105%; }
.lbl-block, .lbl-houses { font-weight: 560; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; font-stretch: 110%; }
.lbl-water, .lbl-garden { font-weight: 520; font-stretch: 90%; color: var(--lbl); font-style: normal; }
.lbl-walk { font-weight: 600; font-size: 11px; font-stretch: 80%; color: var(--lbl-walk); pointer-events: none !important; cursor: default; }
.lbl-history, .lbl-church { font-weight: 560; }

/* panel */
.panel { position: absolute; left: 16px; top: 16px; width: 372px; max-height: calc(100% - 32px); display: flex; flex-direction: column; background: var(--paper);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-radius: 4px; box-shadow: var(--shadow); overflow: hidden; z-index: 3; }
.grip { display: none; }
.head { padding: 20px 22px 6px; }
h1 { margin: 0; line-height: 1; }
.wm { display: block; font-size: 44px; font-weight: 800; font-stretch: 125%; letter-spacing: -.02em; }
.sub { display: block; margin-top: 8px; font-size: 13px; font-weight: 560; font-stretch: 100%; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.lede { margin: 12px 0 0; color: var(--ink-2); font-size: 14.5px; }
.finder { padding: 12px 22px 4px; display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 8px; position: relative; }
.row > span, .row > label { font-size: 12px; font-weight: 640; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.row.to { grid-template-columns: 46px 1fr 36px; }
select, input[type=search] { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--field); font-size: 15px; }
select:focus-visible, input:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.swap { min-height: 42px; border: 1px solid var(--line); border-radius: 3px; background: var(--field); cursor: pointer; font-size: 17px; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); padding-left: 54px; min-height: 32px; }
.chk input { width: 18px; height: 18px; accent-color: var(--accent); }
.list { position: absolute; left: 54px; right: 0; top: 46px; max-height: 46vh; overflow: auto; margin: 0; padding: 6px 0; list-style: none; background: var(--paper-solid); border: 1px solid var(--line); border-radius: 3px; box-shadow: var(--shadow); z-index: 5; }
.list .grp, .browse .grp { padding: 10px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.list button, .browse button { display: block; width: 100%; text-align: left; padding: 7px 12px; border: 0; background: none; cursor: pointer; font-size: 14.5px; }
.list button:hover, .list button:focus, .browse button:hover { background: var(--line); }
.body { padding: 6px 22px 12px; overflow: auto; flex: 1 1 auto; min-height: 0; }
.hint { color: var(--ink-2); font-size: 14px; margin: 8px 0 12px; }
.link { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-size: inherit; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.legend i { display: inline-block; width: 22px; height: 5px; border-radius: 3px; margin-right: 9px; vertical-align: middle; }
.k-high { background: var(--high); } .k-path { background: var(--path); outline: 1px solid var(--line); } .k-route { background: repeating-linear-gradient(90deg, var(--accent) 0 7px, #fff 7px 10px); }
.sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 0 8px; border-bottom: 1px solid var(--line); }
.sum b { font-size: 26px; font-weight: 780; font-stretch: 115%; }
.sum span { font-size: 13.5px; color: var(--ink-2); }
.steps { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: s; }
.steps li { position: relative; padding-left: 30px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 9px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--line); }
.steps li.lv-highwalk::before { background: var(--high); color: #1b1404; }
.steps li.arrive::before { content: ''; background: var(--accent); }
.steps li.inside { padding: 4px 0 8px 30px; font-size: 13.5px; color: var(--ink-2); counter-increment: none; }
.steps li.inside::before { display: none; }
.steps button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 0; cursor: pointer; font-size: 14.5px; line-height: 1.35; }
.steps button:hover { color: var(--accent); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.acts button, .about button { min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--field); cursor: pointer; font-weight: 600; }
.acts .primary, .about .primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fine { font-size: 12.5px; color: var(--ink-2); margin: 8px 0 0; }
.note { color: var(--ink-2); }
.photos { position: relative; margin: 6px -22px 4px; }
.photos figure { margin: 0; }
.photos img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--line); }
.photos figcaption { padding: 6px 22px 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.photos .credit { display: block; font-size: 11.5px; opacity: .9; }
.photos .credit a { color: inherit; }
.ph-next { position: absolute; right: 12px; top: 12px; border: 0; border-radius: 3px; padding: 6px 10px; background: rgba(10, 12, 18, .72); color: #fff; font-weight: 640; font-size: 12.5px; cursor: pointer; }
@media (max-width: 720px) { .photos { margin: 6px -16px 4px; } .photos figcaption { padding: 6px 16px 0; } }
.listen { margin: 10px 0 6px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.listen .kind { margin-top: 0; }
.snd { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 4px 6px 4px 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--field); cursor: pointer; font-weight: 620; }
.snd span { font-size: 11px; width: 12px; }
.snd[aria-pressed="true"] { background: var(--ink); color: var(--paper-solid); border-color: var(--ink); }
.listen .fine a { color: inherit; }
.place .kind { margin: 10px 0 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.place h2 { margin: 0 0 6px; font-size: 26px; line-height: 1.1; font-weight: 760; font-stretch: 112%; }
.place p { margin: 0 0 8px; }
.src { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.src summary { cursor: pointer; }
.src a { display: block; color: var(--ink-2); margin: 6px 0; }
.browse { list-style: none; margin: 0; padding: 0; }
.guide { margin-top: 14px; font-size: 14px; }
.guide summary { cursor: pointer; font-weight: 640; color: var(--ink-2); }
.guide h2 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 14px 0 4px; }
.guide dt { font-weight: 680; margin-top: 8px; }
.guide dd { margin: 2px 0 0; color: var(--ink-2); }
.panel.routed .lede { display: none; }
.foot { padding: 8px 22px 14px; border-top: 1px solid var(--line); font-size: 13px; }

/* tools and pad */
.tools { position: absolute; right: 16px; top: 16px; display: flex; gap: 6px; z-index: 2; }
.tool { min-height: 38px; padding: 7px 12px; border: 0; border-radius: 3px; background: var(--paper); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow); cursor: pointer; font-weight: 620; font-size: 13.5px; }
.tool[aria-pressed="false"] { opacity: .6; }
.tool .ico { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; background: #1b2433; box-shadow: inset -4px -2px 0 0 #8fa3c9; }
[data-theme="dark"] .tool .ico { background: #f2c14e; box-shadow: none; }
.pad { position: absolute; right: 16px; bottom: 20px; display: grid; grid-template-columns: repeat(3, 38px); grid-template-rows: repeat(3, 38px); gap: 3px; z-index: 2; }
.pad button { border: 0; border-radius: 3px; background: var(--paper); box-shadow: var(--shadow); cursor: pointer; font-size: 18px; line-height: 1; touch-action: none; }
.pad [data-d="-1,0"] { grid-area: 2 / 1; } .pad [data-d="0,1"] { grid-area: 1 / 2; } .pad [data-d="1,0"] { grid-area: 2 / 3; } .pad [data-d="0,-1"] { grid-area: 3 / 2; }
.pad [data-up] { grid-area: 1 / 3; } .pad [data-down] { grid-area: 3 / 3; } .pad .dot { grid-area: 2 / 2; }
.pad .dot::after { content: ''; display: block; width: 10px; height: 10px; margin: auto; border-radius: 50%; background: var(--accent); }
#ring { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 2px solid var(--accent); border-radius: 50%; opacity: 0; pointer-events: none; z-index: 2; }
#ring[data-on="1"] { animation: ring .6s ease-out; }
@keyframes ring { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.6); } }

/* the slicer: an elevator panel for the model */
.cut { position: absolute; right: 16px; top: 66px; display: grid; gap: 3px; z-index: 2; width: 136px; }
.cut p { margin: 0 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lbl); paint-order: stroke; -webkit-text-stroke: 3px var(--lbl-halo); text-align: right; }
.cut button { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; min-height: 36px; padding: 6px 10px; border: 0; border-radius: 3px; background: var(--paper); box-shadow: var(--shadow); cursor: pointer; font-weight: 640; font-size: 13.5px; text-align: left; }
.cut button small { font-weight: 500; font-size: 11px; color: var(--ink-2); }
.cut button[aria-checked="true"] { background: var(--ink); color: var(--paper-solid); }
.cut button[aria-checked="true"] small { color: inherit; opacity: .75; }

.cut .inside-btn { margin-top: 6px; justify-content: center; background: var(--accent); color: var(--accent-ink); }
.cut .inside-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper-solid); }
.levels { position: absolute; right: 160px; top: 66px; display: grid; gap: 3px; z-index: 2; width: 200px; }
.levels p { margin: 0 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lbl); paint-order: stroke; -webkit-text-stroke: 3px var(--lbl-halo); }
.levels button { display: flex; gap: 8px; align-items: baseline; min-height: 34px; padding: 5px 10px; border: 0; border-radius: 3px; background: var(--paper); box-shadow: var(--shadow); cursor: pointer; font-weight: 720; font-size: 14px; text-align: left; }
.levels button small { font-weight: 500; font-size: 12px; color: var(--ink-2); }
.levels button[aria-checked="true"] { background: var(--ink); color: var(--paper-solid); } .levels button[aria-checked="true"] small { color: inherit; opacity: .8; }
.levels .spread { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 6px 8px; background: var(--paper); border-radius: 3px; box-shadow: var(--shadow); }
.levels .section-btn { justify-content: center; background: var(--accent); color: var(--accent-ink); font-weight: 680; }
.levels .section-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper-solid); }
.lbl-inside { font-size: 12px; font-weight: 680; font-stretch: 105%; }
body.walking .levels { display: none; }

/* walking */
.walkui { position: absolute; inset: auto 0 0 0; z-index: 4; pointer-events: none; }
.walkbar { pointer-events: auto; position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; background: var(--paper); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 4px; box-shadow: var(--shadow); max-width: calc(100% - 24px); }
#walkWhere { font-weight: 640; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.prog { width: 90px; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; flex: none; }
.prog i { display: block; height: 100%; width: 0; background: var(--accent); }
.walkbar button { min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--field); cursor: pointer; font-weight: 600; white-space: nowrap; }
.walkhint { position: absolute; left: 50%; bottom: 78px; transform: translateX(-50%); margin: 0; font-size: 12.5px; color: var(--lbl); paint-order: stroke; -webkit-text-stroke: 3px var(--lbl-halo); white-space: nowrap; }
.joy { display: none; pointer-events: auto; position: absolute; left: 22px; bottom: 96px; width: 104px; height: 104px; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow); touch-action: none; }
.joy i { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 50%; background: var(--accent); opacity: .85; }
body.walking .panel, body.walking .tools, body.walking .pad, body.walking .cut { display: none; }
@media (pointer: coarse) { .joy { display: block; } .walkhint { display: none; } }

.about { max-width: 560px; border: 0; border-radius: 4px; padding: 24px 26px; background: var(--paper-solid); color: var(--ink); box-shadow: var(--shadow); }
.about::backdrop { background: rgba(10, 12, 18, .45); }
.about h2 { margin: 0 0 10px; font-stretch: 112%; }

/* phones: the panel is a bottom sheet; the map keeps the top of the screen */
@media (max-width: 720px) {
  .panel { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 62%; border-radius: 10px 10px 0 0; transition: transform .3s; }
  .panel[data-sheet="peek"] .lede, .panel[data-sheet="peek"] .body, .panel[data-sheet="peek"] .foot { display: none; }
  .panel { overflow: auto; }

  .panel[data-sheet="search"] { top: calc(var(--browser-safe-top,env(safe-area-inset-top, 0px)) + 6px); bottom: auto; max-height: calc(var(--vvh, 70svh) - 12px); border-radius: 10px; margin: 0 6px; }
  .panel[data-sheet="search"] .lede, .panel[data-sheet="search"] .body, .panel[data-sheet="search"] .foot, .panel[data-sheet="search"] .grip { display: none; }
  .list { position: static; margin-top: 6px; grid-column: 1 / -1; max-height: calc(var(--vvh, 60svh) - 230px); box-shadow: none; }
  .grip { display: block; border: 0; background: none; padding: 8px 0 0; width: 100%; cursor: pointer; }
  .grip span { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto; }
  .head { padding: 6px 16px 0; }
  .wm { font-size: 30px; display: inline; } .sub { display: none; }
  .lede { font-size: 13.5px; margin-top: 8px; }
  .finder { padding: 8px 16px 6px; }
  .body { padding: 4px 16px 10px; }
  .foot { padding: 6px 16px 10px; }
  .tools { top: 10px; right: 10px; left: 10px; justify-content: flex-end; flex-wrap: wrap; }
  .tool { min-height: 36px; padding: 6px 10px; font-size: 13px; }
  .pad { display: none; }
  .levels { right: 10px; left: 10px; top: 54px; width: auto; display: flex; flex-wrap: wrap; gap: 4px; }
  .levels p { display: none; } .levels button small { display: none; } .levels .spread { display: none; }
  .levels button { min-height: 34px; min-width: 38px; justify-content: center; padding: 4px 8px; font-size: 13px; }
  body.inside .cut > button[data-cut], body.inside .cut p { display: none; }
  body.inside .cut { top: auto; bottom: calc(var(--sheet-h, 150px) + 10px); }
  .cut { top: 56px; right: 10px; width: 96px; } .cut p { font-size: 10px; } .cut button { min-height: 32px; font-size: 12.5px; padding: 5px 8px; } .cut button small { display: none; }
  .walkbar { bottom: 14px; gap: 6px; padding: 6px 6px 6px 12px; }
  .prog { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lbl { transition: none; } .panel { transition: none; } }
