/* Shared page tokens. Hero, AIRA, Moto and presentation retain their night palette. */
:root {
  color-scheme: light;
  --page-bg: #f5f6f8;
  --surface: #ffffff;
  --surface-soft: #eaf0f8;
  --ink: #11151d;
  --muted: #56657b;
  --line: #dce2ec;
  --blue: #245be0;
  --button-blue: #245be0;
  --focus: #285de0;
  --header-glass: rgba(255,255,255,.82);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #080e19;
  --surface: #121b2b;
  --surface-soft: #19273c;
  --ink: #f2f5fc;
  --muted: #afbdd3;
  --line: #2c3d57;
  --blue: #8cadff;
  --button-blue: #2d5dda;
  --focus: #9bbaff;
  --header-glass: rgba(12,20,34,.86);
}
body { background: var(--page-bg); color: var(--ink); }
.site-header { background: var(--header-glass); border-bottom-color: var(--line); gap: 18px; }
.site-header nav { color: var(--muted); gap: 22px; }
.site-header .brand, .menu-toggle { color: var(--ink); }
.mobile-nav { background: var(--header-glass); color: var(--ink); }
.mobile-nav button { color: inherit; }
.skip-link { background: var(--surface); color: var(--ink); }
.button.blue-button { background: var(--button-blue); color: #fff; }
.chapter-bar, .founder-section, footer { background: var(--surface); }
.chapter-bar > span, .kicker, .metadata, .section-footnote, .news-index, summary span { color: var(--muted); }
.feature-card:not(.aira-card), .journey-card:not(.moto-feature), .tutorial {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 12px 30px #06132305;
}
.offline-card {
  background: linear-gradient(135deg,#eaf1ff,#dfe9fb) !important;
}
.quickaccess-feature {
  background: linear-gradient(125deg,#fff,#eef4ff) !important;
}
.appearance-feature {
  background: linear-gradient(120deg,#fff,#e6eaf3) !important;
}
.stops-example li, .offline-card .card-link { border-color: var(--line); }
.content-dialog { background: var(--header-glass); border-color: var(--line); }
.dialog-top { background: var(--surface); }
.close-button { background: var(--surface-soft); color: var(--ink); }
.theme-control {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  position: relative;
  min-height: 40px;
  padding-left: 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
  color: var(--ink);
}
.theme-control svg { flex: 0 0 auto; width: 15px; height: 15px; pointer-events: none; }
.theme-control select {
  min-height: 40px;
  width: 106px;
  padding: 0 22px 0 8px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.theme-control::after {
  content: '';
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  position: absolute;
  right: 13px;
  top: 15px;
  pointer-events: none;
}
.theme-control select option { color: var(--ink); background: var(--surface); }
.theme-control select:focus-visible { outline: none; }
.theme-control:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.theme-control-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
a:focus-visible, button:focus-visible, summary:focus-visible,
.enhancement-section input:focus-visible, .enhancement-section select:focus-visible,
.enhancement-section textarea:focus-visible { outline-color: var(--focus); }
.enhancement-section { background: var(--page-bg); color: var(--ink); }
.enhancement-card { background: var(--surface); border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .offline-card {
  background: linear-gradient(135deg,#1b2c49,#14213a) !important;
}
html[data-theme="dark"] .quickaccess-feature {
  background: linear-gradient(125deg,#142139,#192c46) !important;
}
html[data-theme="dark"] .appearance-feature {
  background: linear-gradient(120deg,#18273d,#101b2d) !important;
}
html[data-theme="dark"] .offline-type { color: #94b8ff; }
html[data-theme="dark"] .offline-type span { color: #9bb5dc; }
html[data-theme="dark"] .mode-tabs { background: #0d1523; border-color: var(--line); box-shadow: inset 0 1px 2px #0004; }
html[data-theme="dark"] .mode-tabs button { color: var(--muted); }
html[data-theme="dark"] .mode-tabs button[aria-selected="true"] { color: #fff; background: linear-gradient(#3f5c8b,#2b436a); }
html[data-theme="dark"] .return-card .route-sequence { color: #91b2ff; }
html[data-theme="dark"] .sequence-line { background: #5474a3; }
html[data-theme="dark"] .quickaccess-categories span {
  background: #203049;
  border-color: #3c506a;
  color: #e2ebfa;
  box-shadow: inset 0 1px 0 #ffffff0a,0 5px 15px #0001;
}
html[data-theme="dark"] .quickaccess-categories span:first-child { background: #305fd0; color: #fff; border-color: #638bf0; }
html[data-theme="dark"] .site-header { box-shadow: 0 1px 0 #0002; }
html[data-theme="dark"] .mobile-nav { box-shadow: 0 16px 22px #0004; }
html[data-theme="dark"] .content-dialog { background: rgba(18,27,43,.97); }
html[data-theme="dark"] .aira-card .kicker { color: #9bb8eb; }
@media (max-width:1180px) and (min-width:1051px) {
  .site-header { padding-left: 4%; padding-right: 4%; gap: 14px; }
  .site-header nav { gap: 14px; }
}
@media (max-width:1050px) {
  .site-header nav { display: none; }
  .site-header .menu-toggle { display: block; }
  .site-header > .nav-cta { margin-left: auto; }
  .mobile-nav { top: 82px; }
}
@media (max-width:760px) {
  .site-header { gap: 12px; }
  .mobile-nav { top: 70px; }
  .theme-control { padding-left: 9px; }
  .theme-control select { width: 101px; padding-left: 6px; }
}
@media (max-width:570px) {
  .site-header > .nav-cta { display: none; }
  .site-header > .theme-control { margin-left: auto; }
}
@media (max-width:370px) {
  .site-header { gap: 7px; }
  .theme-control { padding-left: 8px; }
  .theme-control select { width: 94px; font-size: 11px; }
  .theme-control svg { width: 13px; height: 13px; }
}
