/* ═══════════════════════════════════════════════════════════════════════════
   progress.css — Superholic Lab
   Progress page-specific styles. Companion to public/pages/progress.html.

   Scope: selectors used *exclusively* by progress.html and its JS modules
   (progress.js, progress-renderer.js). Shared utilities (brand tokens, glass
   panels, buttons, badges, bottom-nav, hud-strip) remain in style.css.

   Moved from style.css: 2026-05-08 (Sprint 1/3)
     • .quest-tray-label / .quest-tray-empty / .quest-tray-tiles
     • .quest-tray-tile / .quest-tray-tile-header / .quest-tray-tile-topic
     • .quest-tray-tile-bar / .quest-tray-tile-fill
     • @media (max-width: 480px) — quest-tray responsive rule

   Added in Sprint 1/3:
     • Print mode plumbing (body.print-mode toggle + @media print)
     • Cover page styles (#print-cover-*)
     • Print customiser modal (#print-customiser-modal)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────────────────
   §04 QUEST TRAY (moved from style.css 2026-05-08)
   Section §04 boxes mirror the unified §02 .recommend-tile template.
   Generated by progress.js → renderQuestTrayFromData().
   ─────────────────────────────────────────────────────────────────────────── */

.quest-tray-label { color: var(--brand-rose); margin-bottom: var(--space-3); }
.quest-tray-empty { padding: var(--space-4); }
.quest-tray-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}
.quest-tray-tile {
  display: block;
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
  color: var(--text-main);
}
.quest-tray-tile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--accent, var(--brand-sage));
  font-weight: 600;
}
.quest-tray-tile-topic {
  /* STYLEGUIDE: Bebas Neue only at 32/48/80. Tile labels are body-grade. */
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--text-main);
  text-transform: capitalize;
}
.quest-tray-tile-bar {
  height: 4px;
  border-radius: 9999px;
  background: var(--glass-border);
  overflow: hidden;
}
.quest-tray-tile-fill {
  height: 100%;
  background: var(--accent, var(--brand-sage));
  border-radius: inherit;
  transition: width 400ms ease;
}

@media (max-width: 480px) {
  .quest-tray-tiles { grid-template-columns: 1fr; }
}

/* ───────────────────────────────────────────────────────────────────────────
   PRINT MODE PLUMBING (Sprint 1)
   body.print-mode hides the live UI and reveals only #print-report-root.
   afterprint (in progress-renderer.js) removes the class to restore the UI.
   ─────────────────────────────────────────────────────────────────────────── */

#print-report-root { display: none; }

body.print-mode > *:not(#print-report-root):not(script):not(style) {
  display: none !important;
}
body.print-mode #print-report-root {
  display: block;
}

/* ───────────────────────────────────────────────────────────────────────────
   PRINT CUSTOMISER MODAL (Sprint 1)
   Opens when the user clicks "Print Report". Uses .card-glass-overlay per
   STYLEGUIDE.md §7. Hidden by default; shown via .is-open class.
   ─────────────────────────────────────────────────────────────────────────── */

#print-customiser-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
#print-customiser-modal.is-open {
  display: flex;
}
#print-customiser-modal .pcm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 62, 58, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
#print-customiser-modal .pcm-panel {
  position: relative;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
}
.pcm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--glass-border);
}
.pcm-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.04em;
  color: var(--text-main);
}
.pcm-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.pcm-close:hover {
  background: var(--glass-bg);
  color: var(--text-main);
  border-color: var(--glass-border);
}
.pcm-body {
  padding: var(--space-4) var(--space-5);
}
.pcm-section-label {
  color: var(--brand-rose);
  display: block;
  margin-bottom: var(--space-2);
}
.pcm-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.pcm-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-main);
  transition: border-color 160ms ease, background 160ms ease;
  user-select: none;
}
.pcm-toggle input[type="checkbox"] {
  accent-color: var(--brand-rose);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  cursor: pointer;
}
.pcm-toggle:hover {
  border-color: var(--brand-rose);
}
.pcm-notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}
.pcm-notes-actions {
  display: flex;
  gap: var(--space-2);
}
.pcm-notes-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 240px;
  overflow-y: auto;
  padding: var(--space-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  margin-bottom: var(--space-4);
}
.pcm-notes-empty {
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
  padding: var(--space-2) 0;
}
.pcm-note-subject-group {
  margin-bottom: var(--space-2);
}
.pcm-note-subject-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-1) 0;
  margin-bottom: var(--space-1);
  border-bottom: 1px solid var(--glass-border-dim);
}
.pcm-note-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px var(--space-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 16px;
  color: var(--text-main);
  transition: background 120ms ease;
}
.pcm-note-item:hover {
  background: var(--glass-bg);
}
.pcm-note-item input[type="checkbox"] {
  accent-color: var(--brand-rose);
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  cursor: pointer;
}
.pcm-note-topic {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: auto;
  white-space: nowrap;
}
.pcm-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--glass-border);
}

/* ── Subtitle under modal heading (added when openPrintCustomiser passes config.subheading) */
.pcm-header__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.pcm-subtitle {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Report-purpose toggle row (Personal vs Tutor) */
.pcm-purpose-row {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--glass-border-dim);
}
.pcm-purpose-buttons {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.pcm-purpose-btn {
  flex: 1;
  min-width: 160px;
}
.pcm-purpose-hint {
  margin: var(--space-2) 0 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Per-child accordion in the notes list (multi-child Option C) */
.pcm-note-child-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-2);
  margin-top: var(--space-2);
  margin-bottom: var(--space-1);
  border-radius: var(--radius-sm);
  background: rgba(81, 97, 94, 0.08);
}
.pcm-note-child-heading:first-child {
  margin-top: 0;
}
.pcm-note-child-name {
  font-weight: 700;
  color: var(--text-main);
  font-size: 12px;
}
.pcm-note-child-level {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pcm-note-child-group {
  margin-bottom: var(--space-3);
}

/* ───────────────────────────────────────────────────────────────────────────
   PRINT OUTPUT — @media print + cover page
   Sprint 1: cover page only. Sections 1/2/5/6/10 stubs render empty
   <section> placeholders; they are not styled here yet.
   ─────────────────────────────────────────────────────────────────────────── */

@media print {
  @page { size: A4 portrait; margin: 15mm; }

  body.print-mode {
    background: #fff;
    color: #222;
  }

  /* Cover page */
  #print-cover {
    page-break-after: always;
  }

  /* Suppress screen-only decoration in print */
  #print-report-root .pcm-panel,
  #print-customiser-modal {
    display: none !important;
  }
}

/* Cover page — screen preview (inside body.print-mode) + print */
#print-cover {
  max-width: 680px;
  margin: 40px auto;
  padding: 48px;
  background: #fff;
  color: #222;
  font-family: var(--font-body);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

@media print {
  #print-cover {
    max-width: none;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
  }
}

.print-cover__brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #51615e;
}
.print-cover__logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}
.print-cover__brand-name {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.06em;
  color: #51615e;
  text-transform: uppercase;
  line-height: 1;
}
/* Tutor / teacher confidentiality notice — appears only when reportPurpose === 'tutor' */
.print-cover__tutor-notice {
  flex-basis: 100%;
  margin: 8px 0 0 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: #6b7a77;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* Multi-child report — force a page break before each child block after the first */
.print-child-block--page-break {
  page-break-before: always;
  break-before: page;
}

/* ───────────────────────────────────────────────────────────────────────────
   ACCOUNT EXPORT — Child Selector Modal (account.html only)
   Self-injected by account-print.js. Mirrors .pcm-* styling so visual
   language is consistent with the customiser modal that opens after.
   ─────────────────────────────────────────────────────────────────────────── */

#child-selector-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 310;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
#child-selector-modal.is-open {
  display: flex;
}
.csm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 62, 58, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.csm-panel {
  position: relative;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
}
.csm-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--glass-border);
}
.csm-eyebrow {
  color: var(--brand-rose);
  display: block;
  margin-bottom: 4px;
}
.csm-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.04em;
  color: var(--text-main);
}
.csm-subtitle {
  margin: 4px 0 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}
.csm-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.csm-close:hover {
  background: var(--glass-bg);
  color: var(--text-main);
  border-color: var(--glass-border);
}
.csm-body {
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.csm-empty {
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  padding: var(--space-3) 0;
}
.csm-child-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.csm-child-card:hover {
  border-color: var(--brand-rose);
}
.csm-child-card input[type="checkbox"] {
  accent-color: var(--brand-rose);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
  margin-left: auto;
}
.csm-child-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-sage);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.csm-child-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.csm-child-name {
  font-weight: 700;
  color: var(--text-main);
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.csm-child-level {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  width: fit-content;
}
.csm-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--glass-border);
}
.print-cover__student {
  margin-bottom: 40px;
}
.print-cover__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B76E79;
  margin: 0 0 8px 0;
}
.print-cover__name {
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: 0.04em;
  color: #2C3E3A;
  margin: 0 0 8px 0;
  line-height: 1;
}
.print-cover__level {
  font-size: 16px;
  font-weight: 600;
  color: #51615e;
  margin: 0;
}
.print-cover__meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding: 20px 24px;
  background: #f4fbf9;
  border-left: 3px solid #51615e;
  border-radius: 4px;
}
.print-cover__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.print-cover__meta-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6B7A77;
}
.print-cover__meta-value {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.02em;
  color: #2C3E3A;
  line-height: 1;
}
.print-cover__sections {
  margin-top: 32px;
}
.print-cover__sections-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6B7A77;
  margin-bottom: 12px;
}
.print-cover__section-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.print-cover__section-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 16px;
  color: #2C3E3A;
}
.print-cover__section-num {
  /* STYLEGUIDE: label-caps territory. Plus Jakarta 700 uppercase, not Bebas. */
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B76E79;
  flex-shrink: 0;
  min-width: 1.8em;
}
.print-cover__footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
  font-size: 12px;
  color: #6B7A77;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* ───────────────────────────────────────────────────────────────────────────
   PRINT SECTIONS 1 / 2 / 6 / 10 (Sprint 2)
   Screen: each section is a white card below the cover preview.
   Print:  each section gets a hard page break before it.
   ─────────────────────────────────────────────────────────────────────────── */

.print-section {
  max-width: 680px;
  margin: 32px auto;
  padding: 40px 48px;
  background: #fff;
  color: #222;
  font-family: var(--font-body);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

@media print {
  .print-section {
    max-width: none;
    margin: 0;
    padding: 0 0 28px 0;
    border: none;
    border-radius: 0;
  }
}

/* Shared section heading (mirrors cover eyebrow style).
   STYLEGUIDE: Bebas Neue is 32/48/80 only — small section headings
   use Plus Jakarta 700 with label-caps treatment. */
.ps-section-heading {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #51615e;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

/* ── §1 Subject Proficiency ─────────────────────────────────────────────── */

.ps1-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ps1-tile {
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-top-width: 3px;
  border-radius: 4px;
}
.ps1-tile--maths   { border-top-color: #51615e; }
.ps1-tile--science { border-top-color: #2d7d52; }
.ps1-tile--english { border-top-color: #6b4faf; }

.ps1-tile__subject {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7a77;
  margin-bottom: 8px;
}
.ps1-tile__al {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 4px;
}
.ps1-tile--maths   .ps1-tile__al { color: #51615e; }
.ps1-tile--science .ps1-tile__al { color: #2d7d52; }
.ps1-tile--english .ps1-tile__al { color: #6b4faf; }

.ps1-tile__pct {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e3a;
  margin-bottom: 8px;
}
.ps1-bar {
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}
.ps1-bar__fill {
  height: 100%;
  border-radius: 2px;
}
.ps1-tile--maths   .ps1-bar__fill { background: #51615e; }
.ps1-tile--science .ps1-bar__fill { background: #2d7d52; }
.ps1-tile--english .ps1-bar__fill { background: #6b4faf; }

.ps1-tile__meta {
  font-size: 12px;
  color: #6b7a77;
}

/* ── §2 Focus Topics ────────────────────────────────────────────────────── */

.ps2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ps2-tile {
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-top: 3px solid #b76e79;
  border-radius: 4px;
}
.ps2-tile--focal {
  background: #fdf6f7;
}
.ps2-tile__subject {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: capitalize;
  color: #6b7a77;
  margin-bottom: 8px;
}
.ps2-tile__topic {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.04em;
  color: #2c3e3a;
  text-transform: capitalize;
  line-height: 1.1;
  margin-bottom: 4px;
}
.ps2-tile__al {
  font-size: 16px;
  font-weight: 700;
  color: #b76e79;
  margin-bottom: 4px;
}
.ps2-tile__pct {
  font-size: 12px;
  color: #6b7a77;
  margin-bottom: 8px;
}
.ps2-bar {
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}
.ps2-bar__fill {
  height: 100%;
  background: #b76e79;
  border-radius: 2px;
}
.ps2-tile__focal-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b76e79;
  padding: 2px 6px;
  border: 1px solid #b76e79;
  border-radius: 3px;
}
.ps2-empty {
  color: #6b7a77;
  font-style: italic;
  margin: 0;
}

/* ── §6 AO Skill Mastery ────────────────────────────────────────────────── */

.ps6-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ps6-tile {
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-top: 3px solid #51615e;
  border-radius: 4px;
}
.ps6-tile__key {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.04em;
  color: #51615e;
  line-height: 1;
  margin-bottom: 2px;
}
.ps6-tile__short {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2c3e3a;
  margin-bottom: 8px;
}
.ps6-tile__def {
  font-size: 12px;
  color: #6b7a77;
  line-height: 1.5;
  margin-bottom: 12px;
}
.ps6-dots {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.ps6-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e0e0e0;
  flex-shrink: 0;
}
.ps6-dot--on {
  background: #51615e;
}
.ps6-tile__pct {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e3a;
}

/* ── §10 Statistics ─────────────────────────────────────────────────────── */

.ps10-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ps10-tile {
  padding: 16px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  text-align: center;
}
.ps10-tile__value {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.04em;
  color: #2c3e3a;
  line-height: 1;
  margin-bottom: 6px;
}
.ps10-tile__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7a77;
}

/* ───────────────────────────────────────────────────────────────────────────
   SPRINT 3 (2026-05-08)
   §5 Topic Mastery Matrix + Study Notes Annex
   ─────────────────────────────────────────────────────────────────────────── */

/* Named page for landscape sections — Chrome/Edge/Firefox support @page size */
@page landscape-page {
  size: A4 landscape;
  margin: 12mm;
}

/* §5 wrapper — no 680px cap; subject pages scroll on screen */
.print-section--s5 {
  max-width: none;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0;
}

/* Each subject block: screen card, print landscape page */
.ps5-subject-page {
  max-width: 860px;
  margin: 32px auto;
  padding: 40px 48px;
  background: #fff;
  color: #222;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

@media print {
  .ps5-subject-page {
    max-width: none;
    margin: 0;
    padding: 12mm 0 0 0;
    border: none;
    border-radius: 0;
    page: landscape-page;
    page-break-before: always;
    break-before: page;
  }
  .ps5-subject-page:first-child {
    page-break-before: always;
    break-before: page;
  }
}

.ps5-subject-heading {
  /* STYLEGUIDE: Bebas Neue is 32/48/80 only — subject heading at 16px
     belongs in Plus Jakarta 700 territory. */
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #51615e;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}

/* Topic row */
.ps5-table { width: 100%; }
.ps5-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
}
.ps5-row:last-child { border-bottom: none; }
.ps5-row__topic {
  flex-shrink: 0;
  width: 150px;
  font-size: 12px;
  font-weight: 600;
  color: #2c3e3a;
  padding-top: 3px;
  line-height: 1.4;
}
.ps5-row__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Mastery chips */
.ps5-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
  white-space: nowrap;
  line-height: 1.4;
}
.ps5-chip--mastered { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.ps5-chip--partial  { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.ps5-chip--weak     { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.ps5-chip--none     { background: #f9fafb; color: #9ca3af; border-color: #e5e7eb; }

.ps5-empty {
  color: #6b7a77;
  font-style: italic;
  padding: 24px 48px;
  margin: 0;
}

/* ── §Annex Study Notes ─────────────────────────────────────────────────── */

.print-section--annex {
  max-width: none;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0;
}

.print-annex-divider {
  max-width: 680px;
  margin: 40px auto 0;
  padding: 48px 48px 32px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

@media print {
  .print-annex-divider {
    max-width: none;
    margin: 0;
    padding: 0 0 24px 0;
    border: none;
    border-radius: 0;
    page-break-before: always;
    break-before: page;
  }
}

.print-annex-divider__title {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.04em;
  color: #51615e;
  margin: 0 0 8px 0;
  line-height: 1;
}
.print-annex-divider__sub {
  font-size: 12px;
  color: #6b7a77;
  margin: 0;
}

.print-note-page {
  max-width: 680px;
  margin: 32px auto;
  padding: 40px 48px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

@media print {
  .print-note-page {
    max-width: none;
    margin: 0;
    padding: 0 0 28px 0;
    border: none;
    border-radius: 0;
    page-break-before: always;
    break-before: page;
  }
}

.print-note-page__subject {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7a77;
  margin-bottom: 2px;
}
.print-note-page__topic {
  font-size: 12px;
  color: #6b7a77;
  margin-bottom: 12px;
}
.print-note-page__title {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.04em;
  color: #2c3e3a;
  margin: 0 0 4px 0;
  line-height: 1;
}
.print-note-page__date {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}
.print-note-page__content {
  font-size: 16px;
  line-height: 1.7;
  color: #2c3e3a;
}
.print-note-page__content p  { margin: 0 0 8px 0; }
.print-note-page__content ul,
.print-note-page__content ol { padding-left: 20px; margin: 0 0 8px 0; }
.print-note-page__content li { margin-bottom: 4px; }
.print-note-page__content strong { font-weight: 700; }
