/* Slim header for the 2D map and the 3D view, in the homepage's style (../styles.css). Fonts are the homepage's, at absolute paths because these pages use <base href="/reconstruction/">. */
@font-face { font-family: 'Geist'; src: url('/assets/fonts/geist-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; src: url('/assets/fonts/geist-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; src: url('/assets/fonts/geist-mono-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.recon-header {
  --bg: #FBF9F4; --ink: #1E1812; --muted: #5B5047; --line: #E2D9C6; --accent: #C2452D;
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(12px, 2vw, 24px); box-sizing: border-box;
  background: var(--bg); border-bottom: 1px solid var(--line);
  font-family: 'Geist', system-ui, sans-serif; color: var(--ink);
}
.recon-header .brand { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; }
.recon-header .brand img { width: 24px; height: 24px; display: block; flex: none; }
.recon-header .brand span { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.recon-header nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 24px); font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.recon-header nav a { color: var(--muted); text-decoration: none; padding: 14px 0; border-bottom: 2px solid transparent; }
.recon-header nav a:hover { color: var(--ink); }
.recon-header nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.recon-header nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The 2D map is a development preview: one small dashed button in the 3D view's header, nowhere else. */
.recon-header nav a.dev-link { padding: 3px 8px; border: 1px dashed var(--muted); font-size: 10px; letter-spacing: 0.08em; }
.recon-header nav a.dev-link:hover { border-color: var(--ink); }
.recon-header nav a.dev-link[aria-current="page"] { color: var(--accent); border-color: var(--accent); }
/* Round 23: the cog for the layers and settings, and the time of day for Beautiful light (as in Küstrin). The light switch itself is in the cog's panel. */
.panel-cog { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 -8px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.panel-cog:hover { color: var(--ink); }
.panel-cog[aria-expanded="true"] { color: var(--accent); }
.panel-cog:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.light-controls { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.time-of-day { display: flex; align-items: center; gap: 7px; color: var(--ink); font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; cursor: pointer; }
.time-of-day[hidden] { display: none; }
.time-of-day .tod-icon { flex: none; color: #C98A00; }
.time-of-day .tod-icon [hidden] { display: none; }
.time-of-day.night .tod-icon { color: #4F6FA3; }
.time-of-day output { width: 5ch; color: var(--muted); font-variant-numeric: tabular-nums; }
.tod-button { flex: none; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 1px solid var(--muted); border-radius: 50%; background: none; color: var(--ink); font: inherit; cursor: pointer; }
@media (hover: hover) { .tod-button:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); } }
.tod-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tod-button[hidden], .tod-button [hidden] { display: none; }
.tod-speed { width: auto; min-width: 26px; padding: 0 4px; border-radius: 3px; color: var(--muted); font-size: 10px; }
.time-of-day input { width: clamp(130px, 14vw, 210px); height: 24px; margin: 0; background: none; appearance: none; -webkit-appearance: none; cursor: pointer; }
.time-of-day input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.time-of-day input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--tod-track, #A1927D); }
.time-of-day input::-moz-range-track { height: 6px; border-radius: 3px; background: var(--tod-track, #A1927D); }
.time-of-day input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -4px; border: 2px solid var(--bg); border-radius: 50%; background: var(--ink); }
.time-of-day input::-moz-range-thumb { width: 10px; height: 10px; border: 2px solid var(--bg); border-radius: 50%; background: var(--ink); }
@media (max-width: 760px) {
  .light-controls { position: static; }
  .time-of-day { position: fixed; top: 48px; left: 0; right: 0; height: 36px; padding: 0 12px; box-sizing: border-box; background: var(--bg); border-bottom: 1px solid var(--line); }
  .time-of-day input { flex: 1; width: auto; min-width: 0; height: 32px; }
  .tod-button { width: 30px; height: 30px; }
  .tod-speed { min-width: 30px; }
}
body.shot .recon-header { display: none; }
@media (max-width: 520px) { .recon-header .brand span { display: none; } }

/* The dev map's layer control doubles as its legend. */
.leaflet-control-layers-overlays label { display: flex; align-items: center; gap: 4px; }
.leaflet-control-layers .sw { display: inline-block; flex: none; width: 13px; height: 11px; border: 1px solid #0006; }
.leaflet-control-layers .sw.line { height: 0; border-width: 2px 0 0; margin-top: 1px; }
.leaflet-control-layers .sw.dot { width: 9px; height: 9px; border-radius: 50%; }
.leaflet-control-layers .note { color: #555; font-size: 11px; }
.pop-title { font-weight: 600; font-size: 14px; }
.pop-sub { color: #444; margin-bottom: 3px; }
.pop-tag { font: 11px ui-monospace, monospace; color: #666; }
.pop-note { max-height: 90px; overflow-y: auto; margin-top: 3px; font-size: 12px; }
