/* ============================================================
   Classicalia — the app pages (testers, quizzes, builders, the
   tracking dashboards, profile, sign-in) in the site's current
   style. Loads after classicalia.css and the page's own styles:
   a white page head in place of the navy hero, upright headings,
   the light ground, and a white sidebar on the tracking pages.
   The pages' own layouts and scripts are untouched.
   ============================================================ */

:root {
  --navy: #0E1E3F; --brand: #1a6fff; --ink: #141a2b; --muted: #6b7386;
  --rule: #e6e8ee; --rule-faint: #f1f2f6; --paper: #ffffff; --cream: #f6f7f9;
}

/* ── page head: white, upright, no starfield ── */
.header, .dash-header, .passage-header {
  background: #fff !important; border-bottom: 1px solid var(--rule); padding: 30px 0 22px !important; overflow: visible;
}
.header-sky, .dash-header-dots, .header-dots { display: none !important; }
.header-inner, .dash-header-inner { max-width: 1140px; padding: 0 24px; }
.header-eyebrow, .dash-eyebrow {
  font-family: 'DM Sans', system-ui, sans-serif; font-size: 13.5px; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--muted); opacity: 1; margin-bottom: 8px;
}
.header-title, .dash-title {
  font-family: 'Lora', Georgia, serif; font-style: normal; font-weight: 600; font-size: clamp(28px, 3.4vw, 38px);
  color: var(--ink); line-height: 1.08; letter-spacing: -0.012em; margin-bottom: 8px;
}
.header-deck, .dash-subtitle {
  font-family: 'DM Sans', system-ui, sans-serif; font-style: normal; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 70ch;
}
.header-deck a, .dash-subtitle a { color: var(--brand); }
body { background: var(--cream); }

/* ── headings on the app pages: upright Lora, as on the rest of the site ── */
h1, h2, h3, h4,
.cd-title, .cd-card h2, .cd-section-title, .cd-topic-num, .help-title, .quiz-card h2, .card-title, .setup-title,
.step-title, .prof-card-title, .anon-title, .ov-n, .panel-name, .attn-name, .topbar .crumbs b, .side-card-title,
.next-title, .wordmap-title, .pt-title, .ex-title, .dn-title, .gym .card-title, .q-prompt, .result-title, .summary-title,
.set-heading, .opt-row-name, .setup-card-num, .list-title, [class$="-title"]:not(.row-title):not(.rev-title):not(.pop-title) {
  font-style: normal !important;
}
.topbar .crumbs b { font-weight: 600; }

/* ── the tracking app: a white sidebar under the site header ── */
.app { background: var(--cream); }
.sidebar { background: #fff; border-right: 1px solid var(--rule); }
.side-sky { display: none; }
.side-logo { display: none; }
.sidebar > *:first-child { padding-top: 14px; }
.tnav { padding: 10px 10px 4px; }
.tnav-item { color: var(--ink); font-weight: 600; }
.tnav-item:hover { background: var(--cream); color: var(--ink); }
.tnav-item.active { background: #e9f1ff; color: var(--ink); }
.tnav-item svg { opacity: .7; color: var(--brand); }
.tnav-item.active svg { opacity: 1; }
.tnav-label { color: var(--muted); letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.tnav-courses { border-bottom-color: var(--rule-faint); }
.side-section { color: var(--muted); letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.side-section button { color: var(--brand); }
.side-section-link { color: var(--brand); letter-spacing: 0; text-transform: none; }
.side-section-link:hover { color: var(--ink); }
.side-search input { background: var(--cream); border-color: var(--rule); color: var(--ink); }
.side-search input::placeholder { color: var(--muted); }
.side-search input:focus { border-color: var(--brand); background: #fff; }
.class-tab, .course-tab { color: var(--ink); }
.class-tab:hover, .course-tab:hover { background: var(--cream); color: var(--ink); }
.class-tab.active, .course-tab.active { background: #e9f1ff; color: var(--ink); }
.side-foot { display: none; }
.tnav-create { background: var(--navy); border-color: var(--navy); }
.tnav-create:hover { background: #1a2e5c; }
.topbar { background: #fff; padding: 14px 28px; }
.topbar .crumbs b { color: var(--ink); }
.top-actions button { border-radius: 8px; font-size: 13px; padding: 8px 14px; }
@media (max-width: 640px) {
  .sidebar { border-right: 0; border-bottom: 1px solid var(--rule); }
  .tnav-item { background: var(--cream); }
}

/* ── odds and ends shared by the tool pages ── */
.auth-wrap { margin-top: 0; padding-top: 32px; }
.auth-card { box-shadow: 0 10px 30px rgba(14,30,63,.08), 0 1px 2px rgba(14,30,63,.06); border: 1px solid var(--rule); }
.footer { background: #fff; }
@media print { .cx-top, .cx-foot, .sidebar { display: none !important; } }

/* cards that used to overlap the navy hero now sit below the white head */
.prof-body, .gym { margin-top: 0 !important; padding-top: 28px !important; }

/* small tracked capitals as section labels are not part of the current style
   (the printable sheets in the builders, prefixed p-, keep their own look) */
body :is([class*="eyebrow"], [class*="label"], [class*="-head"], [class*="section"], [class*="card-title"], .wordmap-title, .section-h, th, .kv):not([class^="p-"]):not(.sheet-head):not(.print-head),
.dn-field label, .ex-field label, .pt-field label, .cw-field label {
  text-transform: none !important; letter-spacing: 0 !important;
}
