/* Match page chrome and media to the same appearance. */
:root[data-site-theme="light"] {
  color-scheme: light;
  --bg: #f5f8fa;
  --surface: #fff;
  --raised: #e7eff1;
  --ink: #172b32;
  --muted: #476167;
  --quiet: #526c70;
  --line: #c6d6d9;
  --mint: #136749;
  --accent: var(--mint);
  --panel: var(--raised);
}

:root[data-site-theme="light"] .site-header {
  background: rgb(245 248 250 / 97%);
  border-color: var(--line);
}

:root[data-site-theme="light"] :is(.brand .ida) { color: var(--muted); }
:root[data-site-theme="light"] .eyebrow { color: var(--mint); }
:root[data-site-theme="light"] .footer-company a {
  padding: 7px 10px;
  border-radius: 7px;
  background: #10191f;
}

:root[data-site-theme="light"] .button {
  border-color: var(--mint);
  background: var(--surface);
  color: var(--mint);
}
:root[data-site-theme="light"] .button:hover { background: var(--raised); }
:root[data-site-theme="light"] .button.primary {
  color: #fff;
  background: #185a46;
  border-color: #185a46;
}
:root[data-site-theme="light"] .button.primary:hover { background: #114535; }

:root[data-site-theme="light"] :is(.capability-strip, .editions, .orbit-note, .prompt-example) {
  background: var(--raised);
  border-color: var(--line);
}
:root[data-site-theme="light"] .download-box {
  background: radial-gradient(ellipse at right top, #dceee5, transparent 70%), var(--surface);
  border-color: var(--line);
}
:root[data-site-theme="light"] .film-time { color: #fff; }
:root[data-site-theme="light"] .film-play { color: #b7efd5; }

:root[data-site-theme="light"] :is(.workbench-refresh :is(.tour-group [aria-selected="true"], .tour-facts, .mobile-scene-picker select)) {
  background: var(--raised);
  color: var(--ink);
  border-color: var(--line);
}
:root[data-site-theme="light"] :is(.workbench-refresh .tour-group button[aria-selected="true"]) { border-left-color: var(--mint); }
:root[data-site-theme="light"] :is(.workbench-refresh :is(.tour-step-actions button, .tour-playback, #image-dialog)) {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

@media (prefers-color-scheme: light) {
  :root:not([data-site-theme]) {
    color-scheme: light;
    --bg: #f5f8fa;
    --surface: #fff;
    --raised: #e7eff1;
    --ink: #172b32;
    --muted: #476167;
    --quiet: #526c70;
    --line: #c6d6d9;
    --mint: #136749;
    --accent: var(--mint);
    --panel: var(--raised);
  }
}

.site-appearance { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .875rem; }
.site-appearance[hidden] { display: none; }
.site-appearance select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; }
.site-appearance select:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
