/* attention.sh — light reading theme for the illustrated paper guides.
 *
 * The guides were drawn for a dark ground. This file re-skins the page for
 * <body class="light"> so a guide opened from a course looks like the course;
 * diagrams.js recolours the figures to match (see its LIGHT_MAP). */

body.light {
  --bg: #fbfaf7;
  --bg-raised: #ffffff;
  --text: #1f2328;
  --text-dim: #57606a;
  --accent: #1a7f4b;
  --accent-soft: #146239;
  --link: #0b57a4;
  --border: #e3e0d8;
  font-size: 18px;
}
.light a:hover { color: var(--accent-soft); }

/* header — same bar as the learning pages */
.light .story-header {
  position: sticky; align-items: center;
  padding: 0.9rem max(1.25rem, calc(50vw - 430px + 1.25rem));
  background: rgba(251, 250, 247, 0.96); border-bottom: 1px solid var(--border);
  font-family: var(--sans); font-size: 0.95rem;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.light .story-header .brand { font-size: 1.1rem; }
.light .story-header .brand .prompt { display: none; }
.light .story-header .brand .accent { color: var(--accent); }
.light .story-header nav { display: flex; gap: 1.1rem; }
.light .page { padding-top: 2.25rem; }
.back-course { margin: 0 0 1.5rem; font-size: 0.95rem; }
.back-course a { font-weight: 600; }

/* labels read as plain text, not terminal text */
.light .stage, .light .band-k, .light .mode-line, .light .paper-meta, .light .paper-meta .k { font-family: var(--sans); }
.light .page-head h1 { letter-spacing: -0.02em; }
.light section.fig p strong { color: var(--text); }

/* panels: white cards on the warm ground */
.light .paper-meta, .light figure.dia, .light .approach-list li, .light .metric-card,
.light .math-card, .light .tbl-wrap th { background: #ffffff; }
.light .tbl-wrap th { background: #f4f2ec; }
.light .callout, .light .plug, .light .step.key { background: #eef6f1; }
.light .plug { border-color: rgba(26, 127, 75, 0.4); }
.light .approach-list li, .light .approach-list li:hover { border-left-color: rgba(26, 127, 75, 0.55); }
.light .math-card { border-left-color: #7c3aed; }
.light .math-card .where, .light .eq .p, .light .sym .p { color: #7c3aed; }
.light .eq .c, .light .sym .c { color: #0e7490; }
.light .eq .r, .light .sym .r { color: #be123c; }
.light .step { border-left-color: rgba(124, 58, 237, 0.35); }

@media (max-width: 600px) {
  body.light { font-size: 17px; }
  .light .story-header { padding: 0.8rem 1rem; flex-wrap: wrap; gap: 0.4rem 1rem; }
}
