:root {
  color-scheme: light;
  font: 15px/1.4 "Segoe UI", system-ui, sans-serif;
  color: #002941;
  --ink: #002941;
  --muted: #385764;
  --panel: rgb(255 254 246 / 90%);
  --edge: max(16px, env(safe-area-inset-left));
  --right: max(16px, env(safe-area-inset-right));
  --top: max(16px, env(safe-area-inset-top));
  --bottom: max(16px, env(safe-area-inset-bottom));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #b6dfed; }
button, summary, a { color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { border: 0; }
a { text-decoration: none; }
summary { display: flex; align-items: center; gap: 9px; list-style: none; font-weight: 650; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.7px 1.7px 0; transform: rotate(45deg) translate(-1px,-1px); }
details[open] > summary::after { transform: rotate(225deg) translate(-1px,-1px); }
:focus-visible { outline: 3px solid #17638a; outline-offset: 2px; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#atlas { position: fixed; inset: 0; height: 100%; height: 100dvh; isolation: isolate; overflow: hidden; }
.map, #atlas-canvas, #pins { position: absolute; inset: 0; width: 100%; height: 100%; }
#atlas-canvas { display: block; touch-action: none; cursor: grab; }
#atlas-canvas.dragging { cursor: grabbing; }
#atlas-canvas:focus-visible { outline-offset: -3px; }
#pins { pointer-events: none; }
.pin, #atlas-loading, #gestures { background: var(--panel); border-radius: 8px; }
.pin { position: absolute; transform: translate(-50%,-100%); pointer-events: auto; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 5px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; box-shadow: 0 2px 6px #00294126; }
.pin i { width: 7px; height: 7px; border-radius: 100%; background: #ff7072; }
#atlas-loading, .no-js { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); padding: 12px 18px; text-align: center; pointer-events: none; }
.panel { background: var(--panel); border: 1px solid #fff9; border-radius: 14px; box-shadow: 0 3px 18px #092f3821, 0 1px 3px #092f3821; backdrop-filter: blur(10px); }
.top { position: absolute; z-index: 5; top: var(--top); left: var(--edge); right: var(--right); display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 9px; padding: 8px 14px 8px 10px; }
.brand img { width: 32px; height: 34px; }
.brand span { line-height: 1; font-size: 19px; font-weight: 750; letter-spacing: -.04em; }
.brand small { display: block; font-size: 10px; letter-spacing: .09em; line-height: 1.5; color: var(--muted); }
.world-menu > summary { min-height: 44px; padding: 10px 14px; }
h2 { font-size: 13px; margin: 2px 4px 8px; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.pin[data-school]::after { content: "+"; font-size: 14px; color: var(--muted); }
.pin[aria-expanded=true] { background: var(--ink); color: white; z-index: 2; }
.pin[aria-expanded=true]::after { content: "−"; color: white; }
#lesson-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#lesson-lines path { fill: none; stroke: #235563; stroke-width: 2; stroke-linecap: round; }
.options {
  position: absolute; z-index: 4; display: grid; gap: 6px; width: min(172px, 44vw);
  max-height: calc(100% - 20px); overflow: auto; overscroll-behavior: contain;
  padding: 4px; pointer-events: none; container-type: inline-size;
}
.options a {
  display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 4px 7px;
  border-radius: 24px; background: #fffcf3; border: 1px solid #c0d0c7;
  box-shadow: 0 2px 3px #183c412b; pointer-events: auto;
}
.options a:hover, .options a:focus-visible { background: #edf8f7; }
.options img { width: 32px; height: 32px; flex: none; object-fit: cover; border-radius: 50%; }
.options strong { font-size: 13px; line-height: 1.2; }
.options small { display: none; }
.world-menu { position: absolute; z-index: 3; top: calc(var(--top) + 62px); left: var(--edge); }
.world-menu[open] { width: 224px; }
.world-menu summary::after { margin-left: 12px; }
.world-menu[open] summary::after { margin-left: auto; }
.menu-body { padding: 0 10px 10px; max-height: max(108px,calc(100dvh - var(--top) - var(--bottom) - 325px)); overflow-y: auto; overscroll-behavior: contain; }
.navset { display: grid; gap: 2px; }
.navset button, .schoolset button { background: transparent; border-radius: 7px; }
.navset button { display: flex; align-items: center; gap: 11px; padding: 9px 11px; font-size: 14px; text-align: left; min-height: 38px; }
.navset button[aria-pressed=true], .navset .ancestor, .navset button:hover, .tour:hover { background: #dcebee; }
.menu-body h2 { margin: 9px 4px 8px; padding-top: 10px; border-top: 1px solid #cedad8; font-size: 12px; }
.schoolset { display: flex; gap: 4px; padding: 0 3px; }
.schoolset button { padding: 6px 8px; border: 1px solid #b1c7ca; font-size: 12px; font-weight: 600; }
.schoolset button.chosen { background: #ff7979; border-color: #ff7979; }
.tour { display: inline-flex; gap: 7px; align-items: center; margin: 9px 3px 0; border-radius: 6px; padding: 5px; color: var(--muted); font-size: 12px; font-weight: 600; }
.tour .ico { width: 15px; height: 15px; }
#north { position: absolute; top: calc(var(--top) + 58px); right: var(--right); display: flex; align-items: center; gap: 4px; padding: 9px 11px; border-radius: 22px; font-size: 12px; font-weight: 650; }
#needle { color: #b43647; }
.rail { position: absolute; bottom: var(--bottom); right: var(--right); display: grid; gap: 6px; }
.rail button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; }
.rail button:hover, #north:hover, .pin:hover { background: #fffef5; }
.bottom { position: absolute; bottom: var(--bottom); left: var(--edge); max-width: min(570px,calc(100vw - var(--edge) - var(--right) - 52px)); pointer-events: none; }
.bottom > details { pointer-events: auto; }
#gestures { font-size: 11px; width: fit-content; color: var(--muted); padding: 4px 9px; margin: 0 0 7px; }
.legend { width: fit-content; max-width: 100%; }
.legend summary { padding: 10px 15px; gap: 22px; min-height: 48px; }
.info-mark { border-left: 3px solid #f26b6e; padding-left: 10px; }
.info-mark small, .info-mark strong { display: block; }
.info-mark small { text-transform: uppercase; letter-spacing: .12em; font-size: 9px; color: var(--muted); }
.info-mark strong { font-size: 18px; letter-spacing: -.03em; }
.legend-body { margin: 0 15px 11px 28px; max-height: 24dvh; overflow-y: auto; }
.legend-body p { margin: 0; color: var(--muted); font-size: 14px; }
.legend-body button, .legend-body a { background: transparent; padding: 4px 0; margin: 3px 14px 0 0; display: inline-block; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; font-weight: 650; }
@media (max-width: 760px), (max-height: 600px) {
  :root { --edge: max(10px, env(safe-area-inset-left)); --right: max(10px, env(safe-area-inset-right)); --top: max(10px, env(safe-area-inset-top)); --bottom: max(10px, env(safe-area-inset-bottom)); }
  .menu-body { max-height: max(90px,calc(100dvh - var(--bottom) - var(--top) - 114px)); }
  #gestures { display: none; }
  .legend summary { padding: 9px 12px; }
  .legend-body { margin: 0 12px 8px 25px; }
  .brand { padding: 5px 10px 5px 7px; }
  .brand span { font-size: 17px; }
  .world-menu { top: calc(var(--top) + 53px); }
}
@media (max-width: 420px) {
  .options a { gap: 5px; }
  .options img { width: 26px; height: 26px; }
}
@container (max-width: 124px) {
  .options img { display: none; }
  .options a { padding-inline: 9px; }
}
