/* Shared A palette. Content, media layouts and saved records keep their own structure. */
[hidden] { display: none !important; }
:root {
  color-scheme: light;
  --world-paper: #d9eaf0;
  --world-surface: #f1f8f9;
  --world-ink: #243552;
  --world-muted: #617087;
  --world-accent: #bd4d35;
  --world-line: #b8cfd9;
  --world-soft: #dbeaf2;
  --world-sun: #f5e8c3;
  --world-font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --ink: var(--world-ink);
  --muted: var(--world-muted);
  --paper: var(--world-paper);
  --panel: var(--world-surface);
  --surface: var(--world-surface);
  --bg: var(--world-paper);
  --line: var(--world-line);
  --accent: var(--world-accent);
  --orange: var(--world-accent);
  --green: var(--world-accent);
  --soft: var(--world-soft);
  --font-display: var(--world-font);
  --font-body: var(--world-font);
  --sans: var(--world-font);
  --serif: var(--world-font);
  --nb-ink: var(--world-ink);
  --nb-paper: var(--world-surface);
  --nb-desk: var(--world-paper);
  --nb-rule: var(--world-line);
  font-family: var(--world-font);
  color: var(--world-ink);
  background: var(--world-paper);
}
body {
  color: var(--world-ink);
  background: var(--world-paper) !important;
  font-family: var(--world-font);
}
body::before, body::after { display: none !important; }
/* A slow wash of sky, mint and warm daylight; no image or video download. */
body.world-theme-a { isolation: isolate; }
body.world-theme-a::before {
  content: "";
  display: block !important;
  position: fixed;
  inset: -12vh -12vw;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 12% 12%, #b2d9e8 0%, transparent 47%),
    radial-gradient(ellipse at 86% 28%, #c0dfd6 0%, transparent 43%),
    radial-gradient(ellipse at 30% 86%, #f3e6bf99 0%, transparent 40%),
    radial-gradient(ellipse at 60% 52%, #f3fafb99 0%, transparent 54%);
  animation: world-daylight 44s ease-in-out infinite alternate;
}
@keyframes world-daylight {
  from { transform: translate3d(-1%, 0, 0) scale(1); }
  to { transform: translate3d(1.2%, -1%, 0) scale(1.035); }
}
@media (max-width: 620px) {
  body.world-theme-a::before { animation-duration: 65s; }
}
h1, h2, h3, .brand, .site-brand {
  color: var(--world-ink);
  font-family: var(--world-font) !important;
}
a { text-underline-offset: .22em; }
:is(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--world-accent);
  outline-offset: 4px;
}
body > :is(header, .top, .topbar), body > footer {
  border-color: var(--world-line);
  background: transparent;
}
body > :is(header, .top, .topbar) .brand { color: var(--world-ink); }
.color-emblem b { background: var(--world-accent) !important; }
:is(.button, .solid, .product-primary, .primary) {
  border-color: var(--world-accent);
  border-radius: 5px;
  background: var(--world-accent);
  color: var(--world-surface);
  box-shadow: none;
}
:is(.button.secondary, .button.ghost) {
  background: transparent;
  color: var(--world-accent);
}
:is(.product-entry, .reader, .panel, .guide-card) {
  border-color: var(--world-line);
  background-color: var(--world-surface);
  box-shadow: none;
}
.product-entry { border-radius: 10px; }
.product-entry .product-enter { color: var(--world-accent); }
.product-byline, .product-footer, .product-entry p, .product-landing .lead { color: var(--world-muted); }
.product-actions button { border-color: var(--world-line); background: var(--world-surface); color: var(--world-ink); }
body.world-theme-a .choice.primary { background: var(--world-accent) !important; color: var(--world-surface); border-color: var(--world-accent); }
body.world-theme-a .choice:not(.primary) { background: var(--world-soft); color: var(--world-ink); border-color: var(--world-line); }
.world-theme-a :is(#tw-account-dialog form button, #tw-feedback-send) { background: var(--world-accent); color: var(--world-surface); }
#tw-account-button { color: var(--world-accent); }
.world-header-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-left: auto; }
.world-support { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; max-width: 1160px; margin: 24px auto; padding: 20px; border-top: 1px solid var(--world-line); }
.world-theme-a :is(#tw-account-button, .ai-launch, #tw-feedback-dock, #tw-feedback-open) {
  position: static !important; inset: auto !important; width: auto !important; min-width: 0; margin: 0;
  border: 0; border-radius: 0; background: transparent !important; color: var(--world-accent) !important;
  box-shadow: none !important; font-family: var(--world-font); font-size: 13px;
}
.world-theme-a .world-header-tools :is(#tw-account-button, .ai-launch) { min-height: 44px; padding: 8px 12px; border: 1px solid var(--world-line); border-radius: 5px; }
.world-theme-a #tw-feedback-open { min-height: 44px; padding: 8px 0; }
@media (max-width: 620px) { .world-theme-a > header { flex-wrap: wrap; gap: 12px; } .world-header-tools { gap: 8px; } }
@media (max-width: 620px) {
  .world-theme-a :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=button]):not([type=submit]),textarea,select) { font-size:16px!important; max-width:100%; }
  .world-theme-a dialog { max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); overflow:auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* The classroom map uses the quiet blue A palette selected on 2026-11-16. */
body.classroom-map {
  --world-paper: #e6f4fb;
  --world-surface: #ffffff;
  --world-ink: #17334b;
  --world-accent: #155b8d;
  --world-soft: #dceee4;
  --world-sun: #fff0c6;
  --world-muted: color-mix(in srgb, var(--world-ink) 68%, white);
  --world-line: color-mix(in srgb, var(--world-accent) 18%, white);
  --bg: var(--world-paper);
  --paper: var(--world-surface);
  --panel: var(--world-surface);
  --surface: var(--world-surface);
  --ink: var(--world-ink);
  --accent: var(--world-accent);
  --soft: var(--world-soft);
  --gold: var(--world-sun);
  --line: var(--world-line);
}
body.classroom-map.world-theme-a::before { display: none !important; }
