/* ============================================================
   hms-sa.css — Health and Movement Science Year 12 (Senior Adventure shell)
   Shared across all HMS Year 12 modules.
   Loaded AFTER senior-adventure.css + senior-adventure-microtasks.css.

   Subject accent: eucalypt green (#2f7d5d) — distinct from the science
   subjects (bio green-teal, chem plum, physics indigo) and from the maths
   indigo, so a learner can tell at a glance which estate they are in.
   ============================================================ */

/* ── Subject accent tokens ──────────────────────────────── */
:root {
  --hms-accent:      #2f7d5d;
  --hms-accent-deep: #1d5741;
  --hms-accent-soft: #d9ebe2;
  --hms-signal:      #b4531f;   /* risk / red-flag callouts */
  --hms-signal-soft: #fbe6d8;
  /* CLAUDE.md CSS rule: any inline/derived accent theme must keep cards
     visible even where a token is missing. */
  --accent-bg: rgba(255,255,255,0.88);
  --surface:   rgba(255,255,255,0.96);
}

/* ── Book-notes block ───────────────────────────────────── */
.sa-book-notes {
  margin: 10px 0 0; padding: 14px 18px;
  background: var(--sa-bg-warm); border: 1.5px dashed var(--sa-rule);
  border-radius: var(--sa-r-sm, 10px); font-size: 13px; line-height: 1.6;
  color: var(--sa-ink-soft);
}
.sa-book-notes strong { color: var(--sa-ink); font-family: var(--sa-display); }

/* ── Section labels ─────────────────────────────────────── */
.hms-section-label {
  font-family: var(--sa-display); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--sa-ink-soft);
  margin: 22px 0 10px; padding-left: 10px;
  border-left: 3px solid var(--hms-accent);
}
.hms-section-label.gold   { border-left-color: var(--sa-gold); }
.hms-section-label.coral  { border-left-color: var(--sa-coral); }
.hms-section-label.plum   { border-left-color: var(--sa-plum); }

/* ── Red-flag / clinical-risk callout ───────────────────── */
.hms-flag {
  padding: 14px 16px; border-radius: 10px; margin: 12px 0;
  background: var(--hms-signal-soft);
  border: 1.5px solid rgba(180,83,31,0.35);
  border-left: 4px solid var(--hms-signal);
}
.hms-flag h4 { margin: 0 0 6px; font-size: 14px; font-family: var(--sa-display); color: var(--sa-ink); }
.hms-flag p  { margin: 0 0 4px; font-size: 13px; line-height: 1.55; color: var(--sa-ink-soft); }

/* ── Practice-scenario list ─────────────────────────────── */
.hms-scenarios { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.hms-scenario {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; border-radius: 10px;
  background: var(--sa-bg-warm); border: 1.5px solid var(--sa-rule);
}
.hms-scenario-num {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--hms-accent-soft); color: var(--hms-accent-deep);
  display: grid; place-items: center;
  font-family: var(--sa-mono); font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.hms-scenario-body { flex: 1; font-size: 13.5px; line-height: 1.55; }
.hms-scenario-body p { margin: 0 0 6px; }

/* ── Data / comparison table ────────────────────────────── */
.hms-table-wrap { overflow-x: auto; margin: 14px 0; }
.hms-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
  background: var(--sa-panel); border: 1.5px solid var(--sa-rule);
  border-radius: 10px; overflow: hidden;
}
.hms-table caption {
  caption-side: top; text-align: left; padding: 0 0 8px;
  font-size: 12px; color: var(--sa-muted); font-weight: 600;
}
.hms-table th, .hms-table td {
  padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--sa-rule-soft);
  vertical-align: top; line-height: 1.5;
}
.hms-table thead th {
  background: var(--hms-accent-soft); color: var(--hms-accent-deep);
  font-family: var(--sa-display); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.hms-table tbody tr:last-child td { border-bottom: none; }

/* ── SAQ taxonomy labels (shared convention with maths-std-sa.css) ── */
.sa-bloom, .sa-band {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-size: 10.5px; font-weight: 700; font-family: var(--sa-display);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.sa-bloom.understand { background: #dbeafe; color: #1e40af; }
.sa-bloom.apply      { background: #dcfce7; color: #166534; }
.sa-bloom.analyse    { background: #fef3c7; color: #92400e; }
.sa-bloom.evaluate   { background: #fce7f3; color: #9d174d; }
.sa-band.band-3      { background: #e0e7ff; color: #3730a3; }
.sa-band.band-4      { background: #d1fae5; color: #065f46; }
.sa-band.band-5      { background: #fef3c7; color: #92400e; }
.sa-band.band-6      { background: #fce7f3; color: #9d174d; }
.sa-marks            { font-size: 11px; color: var(--sa-muted); margin-left: 4px; font-weight: 600; }

/* ── Inline SVG schematic frame ─────────────────────────── */
.hms-figure { margin: 16px 0; }
.hms-figure svg { display: block; width: 100%; height: auto; max-width: 760px; margin: 0 auto; }
.hms-figure figcaption {
  margin-top: 8px; font-size: 12.5px; color: var(--sa-muted);
  text-align: center; line-height: 1.5;
}

/* ── Syllabus provenance strip ──────────────────────────── */
.hms-syllabus-note {
  margin: 0 0 14px; padding: 10px 14px; font-size: 12.5px; line-height: 1.55;
  background: var(--hms-accent-soft); border-radius: 8px; color: var(--hms-accent-deep);
}
.hms-syllabus-note strong { font-family: var(--sa-display); }
