/* Clarity: quiet surfaces, legible signs, rounded controls. */
:root {
  color-scheme: light;
  --bg: #f8faf9; --surface: #fff; --panel: #edf2f1;
  --text: #182521; --muted: #53645e; --accent: #245bd7;
  --line: #dbe3df; --shadow: 0 2px 6px #18301f0a;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 72px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11161d; --surface: #1a2431; --panel: #151d28;
  --text: #edf2f9; --muted: #a7b3c4; --accent: #91b4ff;
  --line: #2e3b4c; --shadow: 0 2px 6px #0002;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.topbar { max-width: 1168px; margin: auto; padding: var(--s3) var(--s4); display: flex; align-items: center; gap: var(--s3); border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 6px; align-items: center; font-size: 22px; font-weight: 650; letter-spacing: -1px; color: var(--text); }
.brand img { margin-right: 4px; }
.brand span { color: var(--muted); margin-left: -6px; }
.appearance { margin-left: auto; display: flex; padding: 4px; gap: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.appearance button { border: 0; background: transparent; color: var(--muted); border-radius: 8px; padding: 6px 12px; min-height: 36px; font-size: 13px; }
.appearance button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.appearance button:hover { color: var(--accent); }
.map-link { color: var(--text); font-size: 14px; }
.map-link span { margin-left: var(--s1); }
main { max-width: 1168px; margin: auto; padding: var(--s6) var(--s4); }
header { max-width: 780px; }
.crumb { color: var(--accent); font-size: 13px; font-weight: 600; margin-bottom: var(--s2); }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.08; font-weight: 550; letter-spacing: -.045em; margin: 0 0 var(--s3); }
header p { color: var(--muted); font-size: 17px; margin: 0; max-width: 740px; }
.section-nav { display: flex; flex-wrap: wrap; gap: var(--s1); margin: var(--s4) 0 var(--s6); }
.section-nav a { display: inline-flex; align-items: center; min-height: 40px; font-size: 13px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.section-nav a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.reference-section { margin-top: var(--s5); scroll-margin-top: var(--s3); }
h2 { margin: 0 0 var(--s1); font-size: 25px; line-height: 1.3; font-weight: 550; letter-spacing: -.025em; }
.section-lede { color: var(--muted); font-size: 14px; margin: 0 0 var(--s3); max-width: 780px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.pin { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: var(--s2); align-items: start; padding: var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.pin__icon { display: flex; align-items: center; justify-content: center; min-height: 67px; }
.pin__image { display: block; width: 58px; height: 67px; flex-shrink: 0; }
.pin__name { font-size: 15px; line-height: 1.4; font-weight: 600; margin: 3px 0 6px; }
.pin__desc { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0; }
.pin__missing { font-size: 11px; color: var(--muted); }
.pin__line { width: 40px; height: 5px; border-radius: 3px; display: block; }
.pin__line[data-level="moderate"] { background: #facc15; }
.pin__line[data-level="heavy"] { background: #f97316; }
.pin__line[data-level="stand-still"] { background: #ef4444; }
.section-note { max-width: 780px; color: var(--muted); margin: var(--s2) 0 0; font-size: 13px; }
.charger-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.charger { display: block; }
.charger > .pin__desc { min-height: 42px; }
.charger__tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s1); padding-top: var(--s2); margin-top: var(--s2); border-top: 1px solid var(--line); }
.charger__tier { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s1); }
.charger__tier figcaption { font-size: 12px; }
.charger__tier small { display: block; font-size: 11px; color: var(--muted); }
footer { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.empty { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.retry { color: var(--accent); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 8px 12px; }
.skip-link { position: absolute; left: 16px; top: -100px; padding: 12px; border-radius: 8px; background: var(--surface); z-index: 10; }
.skip-link:focus { top: 8px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .appearance button, .section-nav a { transition: background 160ms, color 160ms; }
}
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .topbar { padding: var(--s2); gap: var(--s2); flex-wrap: wrap; }
  .brand { font-size: 20px; }
  .map-link { width: 100%; }
  .appearance button { padding-inline: 10px; min-height: 40px; }
  main { padding: var(--s5) var(--s2); }
  header p { font-size: 15px; }
  .section-nav { margin-bottom: var(--s5); }
  .section-nav a { min-height: 44px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .pin { padding: var(--s3); }
}
