/* SUMA Health Training Academy: components on top of the SUMA console design system (styles.css). */

/* ---------- shared bits ---------- */
.progress { display: block; height: 8px; border-radius: 6px; background: var(--line-soft); overflow: hidden; min-width: 80px; }
.progress i { display: block; height: 100%; background: var(--lagoon); border-radius: 6px; }
.progress.warn i { background: var(--c-partial); }
.progress.light { background: rgba(255, 255, 255, .18); }
.progress.light i { background: var(--sun); }
td.w-bar { min-width: 180px; }
td.w-bar .progress { margin-bottom: 4px; }
.stat .value.warn { color: var(--warn-fg); }
.stat .value.bad { color: var(--deny-fg); }
.course-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.course-meta svg { width: 14px; height: 14px; stroke: currentColor; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 6px 0; }
.check-line input { margin-top: 3px; }
fieldset.checks { border: 0; padding: 0; margin: 0; }
.pre { white-space: pre-wrap; margin: 0; }
.big-phone { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 650; color: var(--sea); margin: 0; }
.big-phone svg { width: 24px; height: 24px; stroke: var(--sea); }
.toolbar-form { display: flex; gap: 8px; }
.toolbar-form .input { flex: 1; }
.contact { display: flex; gap: 12px; align-items: flex-start; }
.contact > svg { width: 22px; height: 22px; stroke: var(--lagoon); flex: none; margin-top: 2px; }

/* ---------- home hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; justify-content: space-between; background: var(--sea); color: #fff; border-radius: var(--radius-l); padding: 28px 30px; margin-bottom: 18px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--sun); }
.hero-text { flex: 999 1 420px; min-width: 0; }
.hero-kicker { font-size: 11px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--sun); }
.hero h1 { margin: 8px 0 8px; font-size: 30px; line-height: 1.15; letter-spacing: -.01em; }
.hero p { margin: 0; color: var(--sea-text); font-size: 15px; max-width: 620px; }
.hero p strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn.hero-btn { background: var(--sun); border-color: var(--sun); color: var(--sea); font-weight: 650; }
.btn.hero-btn:hover { background: #D8C674; }
.btn.hero-ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn.hero-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn.hero-btn svg, .btn.hero-ghost svg { stroke: currentColor; }
.hero-stat { flex: 1 1 240px; background: var(--sea-2); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; color: var(--sea-text); }
.hero-stat a { color: var(--sun); }
.hero-num { font-size: 34px; font-weight: 700; color: #fff; line-height: 1.1; }
.hero-num span { font-size: 16px; font-weight: 500; color: var(--sea-text); }
.result .hero-actions { justify-content: center; }

/* ---------- course cards (to do) ---------- */
.course-list { display: flex; flex-direction: column; }
.course-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-top: 1px solid var(--line-soft); color: inherit; text-decoration: none; }
.course-card:first-child { border-top: 0; }
.course-card:hover { background: var(--surface-2); text-decoration: none; }
.course-card.is-late { box-shadow: inset 3px 0 0 var(--c-deny); }
.course-ic { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--lagoon-tint); }
.course-ic svg { width: 22px; height: 22px; stroke: var(--lagoon); }
.course-ic.hipaa { background: var(--gold-tint); }
.course-ic.hipaa svg { stroke: var(--sun-deep); }
.course-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.course-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.course-top strong { font-size: 15px; margin-right: 4px; }
.course-sum { color: var(--ink-2); font-size: 13px; }
.course-progress { display: flex; align-items: center; gap: 10px; max-width: 320px; }
.course-progress .progress { flex: 1; }
.course-due { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 12px; color: var(--muted); text-align: right; flex: none; max-width: 170px; }
@media (max-width: 760px) { .course-card { flex-wrap: wrap; } .course-due { align-items: flex-start; text-align: left; max-width: none; width: 100%; } }

/* ---------- tracks ---------- */
.tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 18px 18px; }
@media (max-width: 760px) { .tracks { grid-template-columns: minmax(0, 1fr); } }
.track { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; }
.track:hover { border-color: var(--lagoon); text-decoration: none; }
.track > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
.track-ic { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--lagoon-tint); }
.track-ic svg { width: 20px; height: 20px; stroke: var(--lagoon); }
.track.hipaa .track-ic { background: var(--gold-tint); }
.track.hipaa .track-ic svg { stroke: var(--sun-deep); }
.track-desc { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.track-prog { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }

/* ---------- threat watch ---------- */
.briefs { display: flex; flex-direction: column; }
.brief { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-top: 1px solid var(--line-soft); color: inherit; text-decoration: none; }
.brief:first-child { border-top: 0; }
.brief:hover { background: var(--surface-2); text-decoration: none; }
.brief-tag { font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--deny-fg); display: flex; gap: 6px; align-items: center; }
.brief-sum { font-size: 13px; color: var(--ink-2); }
.brief.unread strong::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c-deny); margin-right: 7px; vertical-align: 2px; }
.brief-list { display: flex; flex-direction: column; gap: 18px; }
.brief-card h2 { margin: 0; font-size: 19px; }
.brief-card p { margin: 0; color: var(--ink-2); font-size: 14px; }
.brief-card.unread { box-shadow: inset 3px 0 0 var(--c-deny), var(--shadow); }
.brief-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.brief-foot a:not(.btn) { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.brief-foot svg { width: 14px; height: 14px; stroke: currentColor; }

/* ---------- catalog ---------- */
.track-chips { margin-bottom: 18px; }
.track-chips .chip svg { width: 14px; height: 14px; stroke: currentColor; margin-right: 4px; vertical-align: -2px; }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; padding: 16px 18px 18px; }
.cat-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.cat-card h3 { margin: 4px 0 0; font-size: 15px; line-height: 1.3; }
.cat-card p { margin: 4px 0; color: var(--ink-2); font-size: 13px; flex: 1; }
.cat-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cat-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ---------- player ---------- */
.player-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.player-head > a { width: 100%; display: inline-flex; align-items: center; gap: 4px; }
.player-head > a svg { width: 14px; height: 14px; stroke: currentColor; }
.player-title { display: flex; gap: 14px; align-items: center; flex: 999 1 420px; min-width: 0; }
.player-title h1 { margin: 0; font-size: 24px; line-height: 1.2; }
.player-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 1 1 220px; }
.player-meta .progress { width: 100%; max-width: 260px; }
.player-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 960px) { .player-grid { grid-template-columns: minmax(0, 1fr); } }
.outline { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.outline-item { display: flex; gap: 10px; align-items: center; text-align: left; border: 0; background: none; padding: 10px; border-radius: 8px; cursor: pointer; color: var(--ink); font-size: 13px; min-height: 44px; }
.outline-item:hover:not(:disabled) { background: var(--surface-2); }
.outline-item:disabled { color: var(--muted); cursor: default; }
.outline-item.current { background: var(--lagoon-tint); font-weight: 600; }
.outline-n { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.outline-item.done .outline-n { background: var(--c-ok); border-color: var(--c-ok); color: #fff; }
.outline-n svg { width: 14px; height: 14px; stroke: #fff; }
.sources { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; padding: 0 4px; }
.sources .nav-label { color: var(--muted); padding: 0 0 2px; }
.lesson { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px 32px; box-shadow: var(--shadow); max-width: 820px; }
@media (max-width: 640px) { .lesson { padding: 20px; } }
.lesson h2 { margin: 4px 0 18px; font-size: 24px; line-height: 1.2; }
.lesson-kicker { font-size: 11px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--sun-deep); }
.lesson-body { display: flex; flex-direction: column; gap: 16px; font-size: 15.5px; line-height: 1.6; }
.lesson-p { margin: 0; }
.lesson-list, .lesson-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.lesson-steps li::marker { font-weight: 700; color: var(--lagoon); }
.lesson-body .callout { font-size: 14.5px; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.case { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--surface-2); }
.case-tag { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--deny-fg); }
.case-tag svg { width: 14px; height: 14px; stroke: currentColor; }
.case figcaption { font-weight: 650; font-size: 16px; margin: 6px 0 4px; }
.case p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.case-src { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; font-size: 12.5px; }
.case-src svg { width: 13px; height: 13px; stroke: currentColor; }
.dodont { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .dodont { grid-template-columns: minmax(0, 1fr); } }
.dodont > div { border-radius: var(--radius); padding: 14px 16px; font-size: 14px; }
.dodont .do { background: var(--ok-bg); }
.dodont .dont { background: var(--deny-bg); }
.dodont h4 { margin: 0 0 6px; display: flex; gap: 6px; align-items: center; font-size: 14px; }
.dodont .do h4 { color: var(--ok-fg); }
.dodont .dont h4 { color: var(--deny-fg); }
.dodont h4 svg { width: 16px; height: 16px; stroke: currentColor; }
.dodont ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.example { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.example-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.example-head svg { width: 16px; height: 16px; stroke: var(--lagoon); }
.example-count { margin-left: auto; color: var(--muted); }
.example-subject { font-weight: 650; }
.example-body { background: var(--surface); border-radius: 14px; padding: 14px 16px; font-size: 15px; line-height: 1.6; max-width: 520px; border: 1px solid var(--line-soft); }
.example-body.sms { background: #E9ECEA; border: 0; border-radius: 18px 18px 18px 4px; }
.example-body.call { font-style: italic; }
.flag-hit { font: inherit; color: inherit; background: none; border: 0; padding: 0 2px; border-radius: 4px; cursor: pointer; text-align: left; border-bottom: 1.5px dashed var(--muted); }
.flag-hit:hover { background: var(--gold-tint); }
.flag-hit.found { background: #FED7AA; border-bottom-color: var(--c-deny); }
.example-flags { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.example .btn { align-self: flex-start; }

/* ---------- quiz ---------- */
.quiz { display: flex; flex-direction: column; gap: 18px; }
.q { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.q legend { font-weight: 600; font-size: 15px; padding: 0 6px; display: flex; gap: 8px; align-items: baseline; }
.q-n { width: 22px; height: 22px; border-radius: 50%; background: var(--sea); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.q-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 8px; cursor: pointer; font-size: 14.5px; min-height: 44px; }
.q-opt:hover { background: var(--surface-2); }
.q-opt input { margin-top: 3px; }
.q-opt:has(input:checked) { border-color: var(--lagoon); background: var(--lagoon-tint); }
.attest { border: 1px solid var(--sun); background: var(--gold-tint); border-radius: var(--radius); padding: 12px; }
.attest .q-opt { border: 0; padding: 4px; }
.attest .q-opt:hover, .attest .q-opt:has(input:checked) { background: none; }
.result { text-align: center; }
.result-ic { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; background: var(--ok-bg); }
.result-ic svg { width: 34px; height: 34px; stroke: var(--ok-fg); }
.result.fail .result-ic { background: var(--pend-bg); }
.result.fail .result-ic svg { stroke: var(--pend-fg); }
.review { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; text-align: left; }
.review-q { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.review-q.bad { border-color: #E8B7B1; background: #FDF6F5; }
.review-head { display: flex; gap: 8px; align-items: flex-start; }
.review-head svg { width: 18px; height: 18px; flex: none; stroke: var(--ok-fg); margin-top: 1px; }
.review-q.bad .review-head svg { stroke: var(--deny-fg); }
ol.key { margin: 4px 0; padding-left: 20px; font-size: 13px; }
ol.key li.right { font-weight: 600; }
.preview-lesson { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.preview-lesson h3 { margin: 0; }

/* ---------- from the SUMA LIS console ---------- */
.panel-head h2 { display: flex; align-items: center; gap: 8px; }
.panel-head h2 svg { width: 16px; height: 16px; stroke: currentColor; flex: none; }
.list-row > svg { width: 18px; height: 18px; stroke: var(--muted); }
.list-row .name, .list-row .meta { display: block; }
a.list-row { color: var(--ink); text-decoration: none; }
a.list-row:hover { background: #F7F9FB; text-decoration: none; color: var(--ink); }
.threat-panel .panel-head h2 svg { stroke: var(--c-deny); }

/* ---------- language switch ---------- */
.env-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lang-switch { display: inline-flex; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; overflow: hidden; }
.lang-switch button { border: 0; background: transparent; color: var(--sea-text); font: inherit; font-size: 11px; font-weight: 650; letter-spacing: .06em; padding: 4px 10px; cursor: pointer; min-height: 28px; }
.lang-switch button[aria-pressed="true"] { background: var(--sun); color: var(--sea); }
.lang-switch button:hover:not([aria-pressed="true"]) { color: #fff; }
.login-top { display: flex; justify-content: flex-end; }
.login-form .lang-switch { border-color: var(--line); }
.login-form .lang-switch button { color: var(--muted); }
.login-form .lang-switch button[aria-pressed="true"] { background: var(--sea); color: #fff; }
fieldset.lang-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
fieldset.lang-block legend { font-size: 12px; font-weight: 650; color: var(--muted); padding: 0 6px; }
