/* Adult edition: an editorial atlas. Kids retains its own visual system. */
.brand-caption, #era-nav { display: none; }
.toolbar-icon { width: 17px; height: 17px; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
html:not(.kids) {
  --bg: #0c1118;
  --ink: #eeeae2;
  --ink-dim: #b6b9c0;
  --ink-faint: #959da9;
  --line: rgba(179, 190, 199, .12);
  --panel-bg: #131b25;
  --card-bg: #17212d;
  --accent: #dbc08b;
  --topbar-h: 68px;
  --tabs-h: 64px;
}
html:not(.kids) #stars { opacity: .34; }
html:not(.kids) #topbar {
  padding: 0 24px; gap: 28px;
  background: #101720;
  border-bottom: 1px solid var(--line);
}
html:not(.kids) #brand {
  display: grid; grid-template-columns: auto auto; gap: 2px 14px;
}
html:not(.kids) #brand h1 {
  font-size: 24px; letter-spacing: -.025em;
  color: #f0e5cc; background: none;
}
html:not(.kids) .brand-caption {
  display: block; grid-column: 1; grid-row: 2;
  font-size: 10px; color: var(--ink-faint); letter-spacing: .1em;
}
html:not(.kids) #progress-counter {
  grid-column: 2; grid-row: 1 / 3; align-self: center;
  max-width: 95px; white-space: normal; line-height: 1.5;
  padding-left: 14px; border-left: 1px solid var(--line);
}
html:not(.kids) #search {
  height: 38px; border-radius: 7px; padding-left: 14px;
  background: #1a2431; border-color: #34404e;
}
html:not(.kids) #search:focus { border-color: var(--accent); }
html:not(.kids) #search-results { border-radius: 9px; border-color: #46515b; }
html:not(.kids) .search-item { padding: 12px 14px; }
html:not(.kids) #year-pill {
  color: #e6d3ad; background: #1e2630; border-color: #414447;
  border-radius: 7px; padding: 9px 12px;
}
html:not(.kids) #mode-switch { border-radius: 7px; background: transparent; border-color: #34404e; }
html:not(.kids) #mode-switch button { padding: 9px 10px; }
html:not(.kids) #mode-switch button.active { background: #30383e; color: #eee6d5; }
html:not(.kids) #zoom-controls button,
html:not(.kids) #about-btn {
  border-radius: 7px; width: 36px; height: 36px;
  background: #1a2431; border-color: #34404e; color: #d1d7df;
}
html:not(.kids) #era-nav {
  position: fixed; top: var(--topbar-h); left: 0; right: 0;
  z-index: 19; height: 42px; padding: 0 24px;
  display: flex; align-items: center; gap: 22px;
  background: #101720; border-bottom: 1px solid var(--line);
}
.era-nav-caption { font-size: 9px; letter-spacing: .15em; color: var(--ink-faint); flex-shrink: 0; }
#era-links { display: flex; align-items: stretch; height: 100%; gap: 4px; }
#era-links button, #overview-btn {
  color: var(--ink-dim); background: transparent; border: 0;
  font-size: 11px; padding: 0 11px; white-space: nowrap;
}
#era-links button { border-bottom: 2px solid transparent; }
#era-links button[aria-current="true"] { color: #e9cea0; border-bottom-color: #d9bb80; background: #dbc08b0a; }
#era-links button:hover, #overview-btn:hover { color: #fff0d3; background: #dbc08b14; }
#overview-btn { margin-left: auto; height: 32px; border: 1px solid #4b4c46; border-radius: 6px; color: #e0c99d; }
#era-select { display: none; color: var(--ink); background: #1a2431; border: 1px solid #34404e; border-radius: 6px; padding: 6px 10px; font: inherit; font-size: 12px; }
html:not(.kids) .region-label { fill: #bfc5ca; letter-spacing: .19em; font-size: 10px; }
html:not(.kids) .era-label { fill: #c7b38b42; letter-spacing: .22em; }
html:not(.kids) .stream-label { fill: #eee9df; stroke: #101720; stroke-width: 2px; letter-spacing: .045em; }
html:not(.kids) .stream-label.dim { opacity: .95; }
html:not(.kids) .marker .m-label { fill: #e0e3e8; stroke: #101720; stroke-width: 3px; }
html:not(.kids) .marker.visited .m-label { fill: #aab4c1; }
html:not(.kids) .cluster .cluster-core { fill: #192633; stroke: #647080; }
html:not(.kids) .cluster text { fill: #d8dfe7; }
html:not(.kids) .scrub-window { fill: #d9bb8014; stroke: #d9bb8077; }
html:not(.kids) .scrub-track { fill: #101720; }
html:not(.kids) #tabs {
  padding: 0 20px; background: #101720;
  border-top: 1px solid var(--line);
}
html:not(.kids) .tab, html:not(.kids) #tab-tools button {
  min-height: 38px; border-radius: 7px; box-shadow: none;
  background: transparent; border-color: transparent;
}
html:not(.kids) .tab.active {
  background: color-mix(in srgb, var(--tc) 10%, #101720);
  border-color: color-mix(in srgb, var(--tc) 35%, #101720);
}
html:not(.kids) .tab.active::before { box-shadow: none; }
html:not(.kids) #discovery-tools { position: static; transform: none; }
html:not(.kids) #tab-tools #tours-btn {
  position: static; transform: none; min-width: 0;
  background: #dbc08b; color: #1b2027; border-color: #dbc08b;
  font-weight: 600; padding: 8px 16px;
}
html:not(.kids) #tab-tools button:hover { background: #25303d; }
html:not(.kids) #tab-tools #tours-btn:hover { background: #eed4a2; }
html:not(.kids) #panel { border-color: #46505b; box-shadow: -12px 0 60px #0005; }
html:not(.kids) #panel-title { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; color: #f0e5cc; }
html:not(.kids) #panel-blurb { font-size: 15px; line-height: 1.8; color: #d0d5dc; }
html:not(.kids) #panel-date { color: #dcc493; }
html:not(.kids) #panel-category { letter-spacing: .09em; }
html:not(.kids) #panel-scroll { scrollbar-width: thin; scrollbar-color: #56616b transparent; }
html:not(.kids) .related-chip { border-radius: 6px; padding: 8px 10px; }
html:not(.kids) #tour-menu-card, html:not(.kids) #about-card,
html:not(.kids) #feedback-card, html:not(.kids) #coach-pop { border-color: #4a5056; box-shadow: 0 24px 100px #0008; }
@media (min-width: 721px) and (max-width: 1100px) {
  html:not(.kids) #topbar { gap: 16px; padding: 0 16px; }
  html:not(.kids) #progress-counter { display: none; }
  .era-nav-caption { display: none; }
  html:not(.kids) #era-nav { gap: 10px; padding: 0 16px; }
  #era-links { gap: 0; }
  #era-links button { padding: 0 8px; }
}
@media (max-width: 850px) {
  #era-links { display: none; }
  #era-select { display: block; }
}
@media (max-width: 720px) {
  html:not(.kids) { --topbar-h: 54px; --tabs-h: 62px; }
  html:not(.kids) #topbar { padding: 0 12px; gap: 8px; }
  html:not(.kids) #brand { display: block; }
  html:not(.kids) #brand h1 { font-size: 20px; }
  html:not(.kids) .brand-caption { font-size: 8px; letter-spacing: .035em; margin-top: 2px; }
  html:not(.kids) #year-pill { padding: 7px; font-size: 11px; }
  html:not(.kids) #about-btn { width: 38px; height: 44px; flex-basis: 38px; }
  html:not(.kids) #era-nav { top: 98px; padding: 0 10px 0 60px; gap: 8px; }
  .era-nav-caption { display: none; }
  #era-select { min-width: 0; width: 145px; height: 36px; }
  #overview-btn { height: 36px; padding: 0 8px; font-size: 11px; }
  html:not(.kids) #zoom-controls { top: 148px; }
  html:not(.kids) #zoom-controls button { width: 44px; height: 44px; }
  html:not(.kids) #mobile-region-nav { background: #101720; }
  html:not(.kids) #tabs { padding: 0 8px; }
  html:not(.kids) #tab-tools button { min-height: 44px; }
  html:not(.kids) #panel-title { font-size: 27px; }
}
