/* ═══════════════════════════════════════════════════════════════════════
   identity.css — Identity to Impact skin (a VisionOne Transformation Academy
   experience). Additive layer over styles.css + coaching.css. Brings the
   VisionOne design polish (Oswald condensed display type, crisp cards, pill
   accents) dressed in the Identity to Impact BOOK-COVER palette: fresh white
   ground + VisionOne green #649954 / #6AA84F + charcoal #3E4E4F (no gold).
   Theme colors themselves come from the tenant (applied as CSS vars by app.js).
   (Internal CSS var names keep the --thsm-* prefix for compatibility; only
   their values changed to the green/gold system.)
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --thsm-ink: #3E4E4F;
  --thsm-ink-deep: #2F5233;
  --thsm-gold: #6AA84F;
  --primary-tint: #EAF3E4;
  --thsm-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
}

/* TriMetrix acumen/mindset highlight cards (the most-leveraged layer) */
.card.tm-accent { border-left: 4px solid var(--primary, #649954); background: var(--primary-tint, #EAF3E4); }

/* ── Unstoppable-style display type on headings ─────────────────────────── */
.topbar h1, .card h2, .card h3, .brand-title {
  font-family: var(--thsm-display) !important;
  letter-spacing: .01em;
  font-weight: 600;
}
.topbar h1 { text-transform: uppercase; }
.nav-group { text-transform: uppercase; letter-spacing: .06em; }

/* ── Top banner: logo + powered-by, gold hairline ───────────────────────── */
.app-topbar { display: flex; align-items: center; gap: 14px; border-bottom: 3px solid var(--thsm-gold); }
.app-topbar-logo { height: 40px; width: auto; }
.app-topbar-powered { font-size: 11px; letter-spacing: .04em; color: var(--muted, #6b7280); font-weight: 600; }
@media (max-width: 640px) { .app-topbar-powered { display: none; } }

/* ── Sidebar brand + Powered-by-VisionOne footer ────────────────────────── */
.brand-title { font-size: 22px; text-transform: uppercase; }
.brand-tag { font-size: 12px; opacity: .8; }
.powered-by {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: 13px; letter-spacing: .02em; color: rgba(255,255,255,.9); font-weight: 700;
}
.app-topbar-powered { font-weight: 700; color: var(--thsm-ink) !important; }

/* Full-width pages (coach chat / toolkit / roster) break the 1100px reading cap
   and let the conversation + cards use the whole content area. */
.content > #view.full { max-width: none; }
#view.full .chat-log { max-height: 64vh; }
/* Assistant messages fill the full width (they carry the long content); user
   messages stay right-aligned and content-sized so the chat still reads as a chat. */
#view.full .chat-log .msg.assistant { max-width: 100%; align-self: stretch; }
#view.full .chat-log .msg.user { max-width: 80%; }
#view.full .coach-mount > .card,
#view.full > .card { width: auto; }

/* Page footer — VisionOne credit at the bottom of every view */
.page-foot {
  text-align: center; padding: 22px 16px 12px; margin-top: 28px;
  border-top: 1px solid var(--border, #e9e2d4);
  color: var(--muted, #8a8175); font-size: 11px; letter-spacing: .03em;
}

/* ── Crisis banner (988 Suicide & Crisis Lifeline) — urgent red, kept ────── */
.crisis-banner {
  background: #fff4f4; border: 1px solid #f2c9cd; border-left: 4px solid #be1e2d;
  color: #7a1420; border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; font-size: 13.5px;
}
.crisis-banner b { color: #be1e2d; }

/* ── Checkable rows ─────────────────────────────────────────────────────── */
.checkrow { display: flex; align-items: flex-start; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--border, #e5e7eb); cursor: pointer; }
.checkrow:last-child { border-bottom: 0; }
.checkrow input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--primary); cursor: pointer; }
.checkrow a { color: var(--accent); font-size: 12px; white-space: nowrap; }

/* ── Progress bar ───────────────────────────────────────────────────────── */
.progress { height: 9px; background: #ece4d5; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--thsm-ink), var(--accent, var(--thsm-gold))); border-radius: 999px; transition: width .3s ease; }

/* ── Stat tiles ─────────────────────────────────────────────────────────── */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--border, #e5e7eb); border-top: 3px solid var(--thsm-ink); border-radius: 12px; padding: 18px; box-shadow: var(--wt-shadow-1, 0 1px 2px rgba(16,24,16,.06)); }
.stat-n { font-family: var(--thsm-display); font-size: 30px; font-weight: 700; color: var(--thsm-ink); line-height: 1; }
.stat-l { font-size: 12.5px; color: var(--muted, #6b7280); margin-top: 6px; }

/* ── Chips ──────────────────────────────────────────────────────────────── */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row .chip, span.chip { display: inline-block; background: var(--primary-tint); color: var(--thsm-ink-deep); border: 1px solid #cfe0c2; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 600; }

/* ── Timeline ───────────────────────────────────────────────────────────── */
.timeline { position: relative; margin: 4px 0 0 8px; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: #e0d6c2; }
.tl-stage { position: relative; margin-bottom: 8px; }
.tl-dot { position: absolute; left: -26px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: #d8ccb4; border: 2px solid var(--bg, #f7f3ec); }
.tl-stage.is-active .tl-dot { background: var(--thsm-gold); box-shadow: 0 0 0 4px rgba(180,137,75,.18); }
.tl-body { background: var(--surface); border: 1px solid var(--border, #e5e7eb); border-radius: 12px; padding: 12px 16px; box-shadow: var(--wt-shadow-1, 0 1px 2px rgba(16,24,16,.05)); }
.tl-stage.is-active .tl-body { border-color: var(--thsm-ink); }
.tl-when { font-family: var(--thsm-display); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: 14px; color: var(--thsm-ink); margin-bottom: 6px; }
.tl-now { font-family: var(--wt-font-stack, sans-serif); background: var(--thsm-ink); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: .04em; margin-left: 6px; vertical-align: middle; }
.tl-badge { margin-top: 10px; font-size: 14px; color: var(--thsm-ink-deep); }

/* ── Two-column compare cards (generic) ─────────────────────────────────── */
.culture-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 18px; }
.culture-card { background: var(--surface); border: 1px solid var(--border, #e5e7eb); border-radius: 14px; padding: 18px; box-shadow: var(--wt-shadow-1, 0 1px 2px rgba(16,24,16,.06)); }
.culture-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.culture-ic { font-size: 22px; }
.culture-head h3 { margin: 0; font-size: 16px; }
.culture-row { display: flex; gap: 10px; margin: 6px 0; font-size: 13px; line-height: 1.45; }
.culture-tag { flex: none; width: 62px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 0; text-align: center; height: fit-content; border-radius: 6px; }
.culture-tag.mil { background: var(--primary-tint); color: var(--thsm-ink-deep); }
.culture-tag.civ { background: #efe7d6; color: #6a5423; }
.culture-do { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border, #eee); font-size: 13px; color: var(--text); }
.culture-do b { color: var(--thsm-ink); }

/* ── Generic output block ───────────────────────────────────────────────── */
.dm-out { background: var(--soft, #f6f8f6); border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 16px; }

/* Buttons pick up ink automatically via --primary; give ghost a warm hover. */
button.ghost:hover { background: var(--primary-tint); border-color: #cfe0c2; }

/* Never show BOTH a list bullet and a leading inline icon — the icon is the
   marker. Applies app-wide (any list) once emojis are iconized to .ic-emoji. */
li:has(> .ic-emoji:first-child) { list-style: none; }
li > .ic-emoji:first-child { margin-right: 6px; }

/* ── Inline SVG icons (replace emoji) ───────────────────────────────────── */
.ic { display: inline-block; vertical-align: -0.18em; flex: none; }
/* Runtime emoji→icon replacements: a 1em inline box the SVG fills, so it flows
   with text on one line and never balloons regardless of the SVG's own attrs. */
.ic-emoji { display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; line-height: 0; color: var(--thsm-ink); }
.ic-emoji svg, .ic-emoji .ic { display: block; width: 100% !important; height: 100% !important; }
/* On dark surfaces (sidebar, active tabs) inherit the light text color instead */
.sidebar .ic-emoji, .tabbar button.active .ic-emoji, .coach-tab.is-active .ic-emoji, button.primary .ic-emoji, .btn:not(.ghost) .ic-emoji { color: currentColor; }
/* Nav rows: icon + label aligned */
#nav a { display: flex; align-items: center; gap: 10px; }
.nav-ic { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; opacity: .92; flex: none; }
.nav-ic .ic { width: 18px; height: 18px; }
.nav-lbl { flex: 1; min-width: 0; }
/* Icons inside headings/buttons inherit text color; nudge baseline */
h1 .ic, h2 .ic, h3 .ic, button .ic, .btn .ic, summary .ic { vertical-align: -0.15em; margin-right: 4px; }
/* Card-heading leading icon accent (gold) */
.card h2 .ic, .card h3 .ic { color: var(--thsm-gold); }

/* ── Resource list (branded rows) ───────────────────────────────────────── */
.res-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.res-item { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; padding: 12px 14px; border: 1px solid var(--border, #e5e7eb); border-left: 3px solid var(--thsm-ink); border-radius: 10px; background: var(--surface, #fff); transition: border-color .15s, box-shadow .15s, transform .08s; }
.res-item:hover { border-color: var(--thsm-ink); border-left-color: var(--thsm-gold); box-shadow: var(--wt-shadow-1, 0 4px 14px rgba(16,24,16,.07)); transform: translateY(-1px); }
.res-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.res-item-title { font-weight: 700; font-size: 14px; color: var(--thsm-ink-deep); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.res-item-tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; background: var(--primary-tint); color: var(--thsm-ink); }
.res-item-desc { font-size: 12.5px; color: var(--ink-soft, #4b5563); line-height: 1.45; }
.res-item-ic { flex: none; color: var(--thsm-ink); opacity: .7; display: inline-flex; }
.res-item:hover .res-item-ic { opacity: 1; color: var(--thsm-gold); }

/* ── Dashboard ──────────────────────────────────────────────────────────── */
.dash-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: linear-gradient(120deg, var(--thsm-ink-deep), var(--thsm-ink)); color: #fff; border: 0; }
.dash-hero h2 { color: #fff; }
.dash-hero .muted { color: rgba(255,255,255,.8); }
.dash-hero-main { flex: 1; min-width: 240px; }
.dash-ring { flex: none; width: 118px; height: 118px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(closest-side, rgba(255,255,255,.12) 79%, transparent 80%), conic-gradient(var(--thsm-gold) calc(var(--pct,0) * 1%), rgba(255,255,255,.18) 0); }
.dash-ring-num { font-family: var(--thsm-display); font-size: 30px; font-weight: 700; line-height: 1; }
.dash-ring-lbl { font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.8); margin-top: 3px; }
.dash-metric { text-align: left; cursor: pointer; border: 1px solid var(--border, #e5e7eb); border-top: 3px solid var(--thsm-ink); background: var(--surface, #fff); transition: border-color .15s, transform .1s; }
.dash-metric:hover { border-color: var(--thsm-ink); transform: translateY(-1px); }
.dash-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 6px; }
.dash-step { text-align: left; cursor: pointer; background: var(--surface, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 12px; padding: 14px; transition: border-color .15s, box-shadow .15s, transform .1s; }
.dash-step:hover { border-color: var(--thsm-ink); transform: translateY(-1px); box-shadow: var(--wt-shadow-1, 0 6px 18px rgba(16,24,16,.08)); }
.dash-step.is-done { border-left: 3px solid #2e9e5b; }
.dash-step.is-active { border-left: 3px solid var(--thsm-gold); }
.dash-step.is-todo { border-left: 3px solid #ddd0b8; }
.dash-step-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dash-step-ic { color: var(--thsm-ink); display: inline-flex; }
.dash-step-no { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted, #6b7280); }
.dash-step-badge { margin-left: auto; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--primary-tint); color: var(--thsm-ink-deep); }
.dash-step.is-done .dash-step-badge { background: #e3f4ea; color: #1e7a45; }
.dash-step.is-active .dash-step-badge { background: var(--primary-tint); color: #6a5423; }
.dash-step-label { font-family: var(--thsm-display); font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.dash-profilebar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ── Coach Toolbox: mentor/coach/counselor comparison (tri-grid) ─────────── */
.tri-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.tri-card { border: 1px solid var(--border, #e5e7eb); border-top: 3px solid var(--thsm-ink); border-radius: 12px; padding: 14px 16px; background: var(--surface, #fff); box-shadow: var(--wt-shadow-1, 0 1px 2px rgba(16,24,16,.05)); }
.tri-card:nth-child(2) { border-top-color: var(--thsm-gold); }
.tri-card:nth-child(3) { border-top-color: #be1e2d; }
.tri-head { font-family: var(--thsm-display); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 10px; color: var(--thsm-ink); }
.tri-row { display: flex; gap: 8px; margin: 7px 0; font-size: 13px; line-height: 1.45; }
.tri-k { flex: none; width: 62px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted, #8a8175); padding-top: 2px; }

/* ── Combined AI Coaches: persona switcher ──────────────────────────────── */
.coach-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 0 0 18px; }
.coach-tab { display: flex; align-items: flex-start; gap: 12px; text-align: left; padding: 14px 16px; border: 1px solid var(--border, #e5e7eb); border-radius: 12px; background: var(--surface, #fff); cursor: pointer; box-shadow: var(--wt-shadow-1, 0 1px 2px rgba(16,24,16,.05)); transition: border-color .15s, box-shadow .15s; }
.coach-tab:hover { border-color: #cfe0c2; }
.coach-tab.is-active { border-color: var(--thsm-ink); box-shadow: 0 0 0 2px rgba(180,137,75,.20); }
.coach-tab-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--primary-tint); color: var(--thsm-ink); }
.coach-tab.is-active .coach-tab-ic { background: var(--thsm-ink); color: #fff; }
.coach-tab-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.coach-tab-txt b { font-size: 14.5px; }
.coach-tab-txt .muted { font-size: 12px; line-height: 1.35; }

/* ═══════════════════════════════════════════════════════════════════════
   My Coaching (participant side), the coach roadmap, and the Admin console.
   Ported from the MPMA build and re-pointed at the Identity to Impact palette — green and
   deep green rather than navy and blue.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── My Coaching hub ────────────────────────────────────────────────────── */
.mentor-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-left: 3px solid var(--thsm-gold); }
.mentor-road { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.mentor-mile { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border, #e5e7eb); border-radius: 10px; background: var(--surface, #fff); }
.mentor-mile.is-done { border-color: #b9cfaa; background: var(--primary-tint); }
.mentor-mile-chk { flex: none; display: flex; align-items: center; }
.mentor-mile-chk input { width: 18px; height: 18px; accent-color: var(--thsm-gold); }
.mentor-mile-no { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-tint); color: var(--thsm-ink-deep); font-weight: 700; font-size: 12px; }
.mentor-mile-t { font-weight: 700; font-size: 14px; color: var(--thsm-ink-deep); }
.mentor-mile-link { font-size: 12px; color: var(--thsm-gold); font-weight: 600; margin-left: 6px; }
.mentor-mile-d { font-size: 12.5px; color: var(--ink-soft, #4b5563); margin-top: 2px; }

/* ── Admin console: horizontal bars, key/value rows, toggle grids ───────── */
.adm-funnel { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.adm-funnel-row { display: flex; align-items: center; gap: 10px; }
.adm-funnel-l { flex: none; width: 110px; font-size: 12.5px; color: var(--ink-soft, #4b5563); text-align: right; }
.adm-funnel-bar { flex: 1; height: 18px; background: #e6efdf; border-radius: 6px; overflow: hidden; }
.adm-funnel-bar > div { height: 100%; background: linear-gradient(90deg, var(--thsm-ink-deep), var(--thsm-gold)); border-radius: 6px; min-width: 2px; transition: width .3s ease; }
.adm-funnel-n { flex: none; width: 72px; font-weight: 700; font-size: 13px; color: var(--thsm-ink-deep); }
.adm-kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border, #eef); font-size: 13.5px; }
.adm-kv:last-child { border-bottom: 0; }
.adm-kv > span:first-child { color: var(--muted, #6b7280); }
.adm-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.adm-toggle { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.adm-toggle input { width: auto; accent-color: var(--thsm-gold); }

/* ── Check-all-that-apply grids (share scopes, tool visibility) ─────────── */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 14px; margin-top: 6px; }
.check-opt { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.4; cursor: pointer; padding: 4px 0; }
.check-opt input { width: 17px; height: 17px; margin: 1px 0 0; flex: none; accent-color: var(--thsm-gold); cursor: pointer; }

/* Small tables (the AI knowledge list, coach directory). */
.wt-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted, #6b7280); border-bottom: 1px solid var(--border, #e5e7eb); padding: 6px 8px; }
.wt-table td { border-bottom: 1px solid var(--border, #eef); padding: 6px 8px; vertical-align: middle; }
.wt-table tr.is-revoked { opacity: .55; }

/* ═══════════════════════════════════════════════════════════════════════
   Classes — the course catalog, session player, materials list and Q&A.
   ═══════════════════════════════════════════════════════════════════════ */

/* Catalog cards. Clickable, so they get a hover and a focus ring — a div with an
   onclick and no focus state is unusable by keyboard. */
.crs-card { cursor: pointer; transition: border-color .15s, transform .1s, box-shadow .15s; border: 1px solid var(--border, #e5e7eb); border-left: 3px solid var(--thsm-gold); }
.crs-card:hover { transform: translateY(-1px); box-shadow: var(--wt-shadow-1, 0 6px 18px rgba(16,32,16,.08)); border-color: var(--thsm-ink); }
.crs-card:focus-visible { outline: 2px solid var(--thsm-gold); outline-offset: 2px; }
.crs-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }

/* Small progress ring on a course card. --pct is set inline. */
.crs-ring { flex: none; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(closest-side, var(--surface, #fff) 76%, transparent 77%), conic-gradient(var(--thsm-gold) calc(var(--pct,0) * 1%), #e6efdf 0); }
.crs-ring > span { font-size: 11.5px; font-weight: 700; color: var(--thsm-ink-deep); }

/* Teaching notes: long-form markdown, so it needs reading measure and rhythm. */
/* "Reading this as…" — one collapsed paragraph per persona. Collapsed by default so
   the section reads as a short menu rather than four essays; a reader opens their own
   and, usually, the one belonging to the person they are about to disagree with. */
.crs-personas { display: flex; flex-direction: column; gap: 6px; }
.crs-persona { border: 1px solid var(--line, #e4e7e2); border-radius: 10px; background: var(--surface, #fff); }
.crs-persona > summary {
  cursor: pointer; padding: 10px 13px; font-size: 14px; list-style: none;
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; border-radius: 10px;
}
.crs-persona > summary::-webkit-details-marker { display: none; }
.crs-persona > summary::before { content: "▸"; color: var(--primary, #659A56); font-size: 11px; }
.crs-persona[open] > summary::before { content: "▾"; }
.crs-persona > summary:hover { background: var(--primary-tint, #eef4ea); }
.crs-persona > summary:focus-visible { outline: 2px solid var(--primary, #659A56); outline-offset: 2px; }
.crs-persona .md { padding: 0 13px 12px 26px; font-size: 14px; line-height: 1.65; }
.crs-persona .md p { margin: 0 0 10px; }
.crs-persona .md p:last-child { margin-bottom: 0; }

.crs-notes { font-size: 14.5px; line-height: 1.7; }
.crs-notes p { margin: 0 0 12px; }
.crs-notes strong { color: var(--thsm-ink-deep); }
.crs-notes ul, .crs-notes ol { margin: 0 0 12px; padding-left: 22px; }
.crs-notes li { margin: 4px 0; }
.crs-notes table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 12px 0; }
.crs-notes th { text-align: left; background: var(--primary-tint); border: 1px solid #cfe0c2; padding: 6px 9px; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--thsm-ink-deep); }
.crs-notes td { border: 1px solid var(--border, #e5e7eb); padding: 6px 9px; vertical-align: top; }
.crs-notes blockquote { border-left: 3px solid var(--thsm-gold); margin: 12px 0; padding: 4px 14px; color: var(--ink-soft, #4b5563); font-style: italic; }

/* Class resources. A material the syllabus expects but nobody has uploaded is shown
   dimmed rather than hidden — participants need to know it exists so they can ask. */
.crs-mats { display: flex; flex-direction: column; gap: 6px; }
.crs-mat { display: flex; align-items: center; gap: 11px; border: 1px solid var(--border, #e5e7eb); border-radius: 8px; padding: 9px 12px; }
.crs-mat.is-awaiting { border-style: dashed; background: #fafcf8; }
.crs-mat.is-awaiting .crs-mat-title { color: var(--muted, #6b7280); }
.crs-mat-ic { flex: none; font-size: 17px; line-height: 1; }
.crs-mat-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.crs-mat-title { font-size: 13.5px; font-weight: 600; color: var(--thsm-ink-deep); }
.crs-mat-note { font-size: 12px; color: var(--muted, #6b7280); line-height: 1.4; }

/* Q&A thread. The AI first pass is visually subordinate to a facilitator's answer —
   it is a holding answer, and the styling should not let it read as the real one. */
.crs-qa { border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 12px 14px; margin: 0 0 10px; }
.crs-qa-q { font-size: 14px; font-weight: 600; color: var(--thsm-ink-deep); line-height: 1.5; }
.crs-qa-a { background: var(--primary-tint); border-left: 3px solid var(--primary); border-radius: 6px; padding: 10px 12px; font-size: 13.5px; line-height: 1.6; margin-top: 8px; }
.crs-qa-ai { margin-top: 8px; border: 1px dashed var(--border, #e5e7eb); border-radius: 6px; padding: 8px 12px; background: #fafcf8; }
.crs-qa-ai > summary { cursor: pointer; font-size: 12px; color: var(--muted, #6b7280); font-weight: 600; }
.crs-qa-ai[open] > summary { margin-bottom: 8px; }

/* A question flagged as possibly needing same-day attention. */
.crs-urgent { border-left: 4px solid #b3261e; }

/* ── Session video ──────────────────────────────────────────────────────────
   Plays in place. 16:9 with a max height so a tall window does not hand over the whole page to
   a talking slide deck, and the reader can still see the session around it. */
.crs-video { border: 1px solid var(--border, #e5e7eb); border-radius: 10px; overflow: hidden; background: #000; }
.crs-video video { display: block; width: 100%; max-height: 62vh; aspect-ratio: 16 / 9; background: #000; }
.crs-video .crs-mat-note { padding: 8px 12px 10px; background: var(--surface, #fff); }

/* ── The "before we meet" checklist rows ────────────────────────────────────
   Two lines of text and a checkbox, so they align to the top rather than centre. The body must
   keep `min-width: 0` (it has it from .crs-mat-body) and must remain a DIRECT flex child of the
   row — an intermediate wrapper cannot shrink and the text collapses into a one-word column. */
.crs-mat.is-check { align-items: flex-start; }
.crs-mat-chk { flex: none; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--primary); cursor: pointer; }
.crs-mat-link { color: var(--thsm-ink-deep); text-decoration: underline; text-decoration-color: #cfe0c2; text-underline-offset: 3px; }
.crs-mat-link:hover { text-decoration-color: var(--primary); }

/* Where did it take me? A brief ring on the exercise a checklist item just jumped to, so the
   landing is visible — a silent scroll leaves people unsure anything happened. */
.crs-flash { animation: crsFlash 1.6s ease-out; }
@keyframes crsFlash {
  0%   { box-shadow: 0 0 0 3px rgba(100,153,84,.55); }
  60%  { box-shadow: 0 0 0 3px rgba(100,153,84,.30); }
  100% { box-shadow: 0 0 0 3px rgba(100,153,84,0); }
}
@media (prefers-reduced-motion: reduce) { .crs-flash { animation: none; outline: 2px solid var(--primary); outline-offset: 2px; } }
