/* The site header. Shared by every page, including the map, so the whole site is one place. */
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
.sitebar { position: fixed; inset: 0 0 auto 0; z-index: 60; height: 4rem; display: flex; align-items: center; gap: 1.5rem; padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif; letter-spacing: -.01em; color: var(--ink); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.sitebar.solid, .sitebar.open { background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
.sitebar a { color: inherit; text-decoration: none; }
.sb-brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: 1.05rem; letter-spacing: -.03em; white-space: nowrap; }
.sb-brand svg { width: 1.45rem; height: 1.45rem; flex: none; }
.sb-brand .l { stroke: currentColor; }
.sb-brand .e { fill: var(--accent); }
.sb-nav { display: none; margin: 0 auto; gap: .15rem; }
.sb-nav a { padding: .45rem .7rem; border-radius: 6px; font-size: .9rem; color: var(--muted); transition: color .2s, background .2s; }
.sb-nav a:hover { color: var(--ink); }
.sb-nav a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.sb-tools { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.sb-theme { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; padding: 2px; gap: 2px; }
.sb-theme button { width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.sb-theme button svg { width: .95rem; height: .95rem; }
.sb-theme button:hover { color: var(--ink); }
.sb-theme button[aria-pressed="true"] { background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); }
/* the map is the last item, on the far right, as the main button */
.sb-map { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.35rem; padding: .45rem .95rem; border-radius: 8px; font-size: .9rem; font-weight: 500; white-space: nowrap;
  background: var(--ink); color: var(--bg) !important; transition: opacity .2s; }
.sb-map:hover { opacity: .88; }
.sb-map svg { width: .95rem; height: .95rem; }
.sb-map[aria-current="page"] { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--line); }
.sb-menu { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.sb-menu svg { width: 1.15rem; height: 1.15rem; }
.sb-panel { position: fixed; inset: 4rem 0 auto 0; z-index: 59; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem clamp(1.25rem, 4vw, 2.5rem) 1.25rem;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif; color: var(--ink); }
.sb-panel nav a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; font-size: 1rem; }
.sb-panel nav a[aria-current="page"] { color: var(--accent); }
.sb-panel .sb-theme { margin-top: 1rem; }
@media (min-width: 64rem) { .sb-nav { display: flex; } .sb-menu, .sb-panel { display: none !important; } }
@media (max-width: 63.99rem) { .sitebar > .sb-tools > .sb-theme { display: none; } }
@media (pointer: coarse) { .sb-theme button { width: 2.6rem; height: 2.6rem; } .sb-map { min-height: 2.6rem; } }

.sitebar .vh, .sb-panel .vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* on the map the header sits in the page flow, above the map's own toolbar */
.sitebar.on-map { position: relative; height: 3.5rem; background: var(--panel, var(--bg)); border-bottom-color: var(--line); }
.sb-panel.on-map { inset: 3.5rem 0 auto 0; z-index: 3000; background: var(--panel, var(--bg)); }