/* Sales Enquiry Training and Standards Portal
   Internal operations application. Light neutral ground, one restrained primary
   colour, readable tables, no decoration that does not support an action. */

:root {
  --primary: #1f4d7a;
  --primary-dark: #163a5c;
  --primary-light: #eaf1f8;
  --ink: #1c2024;
  --ink-soft: #4a5259;
  --ink-faint: #6b747c;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --border: #d8dce1;
  --border-soft: #e7eaee;
  --ok: #1e6b43;
  --ok-bg: #e8f4ed;
  --warn: #8a5a00;
  --warn-bg: #fdf3e0;
  --bad: #9b2226;
  --bad-bg: #fceceb;
  --info: #1f4d7a;
  --info-bg: #eaf1f8;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(20, 30, 40, .06);
  --sidebar-w: 262px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- shell */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 0 0 32px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  line-height: 1.3;
  font-size: 15px;
}
.sidebar-brand a { color: var(--ink); text-decoration: none; display: block; }
.sidebar-brand small {
  display: block; font-weight: 400; color: var(--ink-faint);
  font-size: 13px; margin-top: 2px;
}

/* Each group is a visually distinct block, so the eye can find a section before
   reading any of its links. */
.nav-group { padding: 0 0 6px; }
.nav-group + .nav-group { border-top: 1px solid var(--border); margin-top: 6px; }

.nav-group h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink);
  margin: 0;
  padding: 16px 20px 8px;
  font-weight: 700;
}
.nav-group h2 .sub {
  display: block;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 2px;
}

.nav-group a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 20px 10px 17px;
  color: var(--ink-soft);
  text-decoration: none;
  border-left: 3px solid transparent;
  font-size: 15px;
  line-height: 1.35;
}
.nav-group a:hover { background: var(--bg); color: var(--ink); }
.nav-group a.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-left-color: var(--primary);
  font-weight: 700;
}
/* The primary destination sits above the groups and is deliberately heavier. */
.nav-home a {
  font-size: 16px;
  font-weight: 600;
  padding: 14px 20px 14px 17px;
}
.nav-count {
  background: var(--bad-bg); color: var(--bad);
  font-size: 12px; font-weight: 700;
  border-radius: 10px; padding: 1px 8px;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky; top: 0; z-index: 20;
}
.topbar form { flex: 0 1 320px; display: flex; }
.topbar input[type="search"] {
  width: 100%; padding: 6px 10px; font-size: 14px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg);
}
.topbar .spacer { flex: 1; }
.topbar .user { font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; }
.topbar .user strong { color: var(--ink); font-weight: 600; }

.content { padding: 24px; max-width: 1180px; width: 100%; }

.drawer-toggle {
  display: none;
  background: none; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 5px 10px; font-size: 15px; cursor: pointer; color: var(--ink);
}

/* ---------------------------------------------------------------- typography */

h1 { font-size: 28px; margin: 0 0 6px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 21px; margin: 30px 0 12px; line-height: 1.3; font-weight: 700; }
h3 { font-size: 17px; margin: 24px 0 8px; font-weight: 700; }
h4 { font-size: 13px; margin: 18px 0 6px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); font-weight: 700; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
li { margin-bottom: 5px; }
.page-intro { color: var(--ink-soft); margin-bottom: 22px; max-width: 68ch; font-size: 16px; }
.lead { font-size: 16px; color: var(--ink-soft); }
code { background: var(--bg); padding: 1px 5px; border-radius: 3px; font-size: 13px; }
blockquote {
  margin: 0 0 14px; padding: 10px 14px;
  background: var(--primary-light); border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote p:last-child { margin-bottom: 0; }

.breadcrumb { font-size: 13px; color: var(--ink-faint); margin-bottom: 10px; }
.breadcrumb a { color: var(--ink-faint); }
.breadcrumb span { margin: 0 6px; }

/* ---------------------------------------------------------------- cards */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { margin: 0; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-sidebar { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
}
.stat .label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); font-weight: 600; }
.stat .value { font-size: 26px; font-weight: 600; line-height: 1.2; margin-top: 2px; }
.stat .note { font-size: 12px; color: var(--ink-faint); }
.stat.alert .value { color: var(--bad); }

/* ---------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; margin-bottom: 16px; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); }
caption { text-align: left; font-size: 13px; color: var(--ink-faint); padding-bottom: 6px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
thead th {
  background: var(--bg); font-size: 12px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--ink-faint); font-weight: 600;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fbfcfd; }
td.numeric, th.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.table-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ---------------------------------------------------------------- status */

.pill {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 2px 9px; border-radius: 11px; white-space: nowrap;
  border: 1px solid transparent;
}
.pill.ok    { background: var(--ok-bg);   color: var(--ok);   border-color: #bfe0cd; }
.pill.warn  { background: var(--warn-bg); color: var(--warn); border-color: #efd9ab; }
.pill.bad   { background: var(--bad-bg);  color: var(--bad);  border-color: #f0c4c2; }
.pill.info  { background: var(--info-bg); color: var(--info); border-color: #c5d8ea; }
.pill.muted { background: var(--bg);      color: var(--ink-faint); border-color: var(--border); }

.tag {
  display: inline-block; font-size: 12px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 3px;
  padding: 1px 7px; margin: 0 4px 4px 0; color: var(--ink-soft);
}

/* ---------------------------------------------------------------- progress */

.bar { background: var(--border-soft); border-radius: 3px; height: 8px; overflow: hidden; min-width: 80px; }
.bar > span { display: block; height: 100%; background: var(--primary); border-radius: 3px; }
.bar.ok > span { background: var(--ok); }
.bar.bad > span { background: var(--bad); }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-row .bar { flex: 1; }
.bar-row .pct { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-soft); min-width: 42px; text-align: right; }

/* ---------------------------------------------------------------- forms */

.field { margin-bottom: 14px; }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 5px; }
label .hint { font-weight: 400; color: var(--ink-faint); font-size: 13px; }

input[type="text"], input[type="password"], input[type="email"], input[type="date"],
input[type="number"], input[type="search"], select, textarea {
  width: 100%; padding: 10px 12px; font-size: 15px; font-family: inherit;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: 2px solid var(--primary-light); outline-offset: 0; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); }

.field-error { color: var(--bad); font-size: 13px; margin-top: 4px; }
.field-help { color: var(--ink-faint); font-size: 13px; margin-top: 4px; }

.check { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.check input { margin-top: 3px; flex: 0 0 auto; width: auto; }
.check label { font-weight: 400; margin: 0; cursor: pointer; }

fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin: 0 0 16px; }
legend { font-weight: 600; font-size: 14px; padding: 0 6px; }

.form-row { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-block; font-size: 15px; font-weight: 600; font-family: inherit;
  padding: 10px 20px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--primary); background: var(--primary); color: #fff;
  text-decoration: none; line-height: 1.4; text-align: center;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn.secondary:hover { background: var(--bg); color: var(--ink); }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: #7d1b1e; border-color: #7d1b1e; }
.btn.small { font-size: 14px; padding: 6px 12px; }
.btn-link {
  background: none; border: none; padding: 0; color: var(--primary);
  font: inherit; cursor: pointer; text-decoration: underline;
}

/* ---------------------------------------------------------------- alerts */

.alert {
  border: 1px solid var(--border); border-left-width: 3px;
  border-radius: var(--radius); padding: 11px 14px; margin-bottom: 14px; font-size: 14px;
}
.alert.success { background: var(--ok-bg);   border-color: #bfe0cd; border-left-color: var(--ok); color: #15502f; }
.alert.error   { background: var(--bad-bg);  border-color: #f0c4c2; border-left-color: var(--bad); color: #7d1b1e; }
.alert.info    { background: var(--info-bg); border-color: #c5d8ea; border-left-color: var(--info); color: var(--primary-dark); }
.alert.warn    { background: var(--warn-bg); border-color: #efd9ab; border-left-color: var(--warn); color: #6b4600; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert strong { font-weight: 600; }

.empty {
  border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 22px; text-align: center; color: var(--ink-faint); background: var(--surface);
}
.empty p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- chat */

.chat {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin-bottom: 14px;
}
.msg { margin-bottom: 10px; max-width: 82%; }
.msg .who { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); font-weight: 600; margin-bottom: 2px; }
.msg .body {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px 10px 10px 10px; padding: 8px 12px; white-space: pre-wrap; word-break: break-word;
}
.msg.staff { margin-left: auto; }
.msg.staff .who { text-align: right; }
.msg.staff .body { background: var(--primary-light); border-color: #c5d8ea; border-radius: 10px 4px 10px 10px; }
.msg.system { max-width: 100%; }
.msg.system .body {
  background: transparent; border: none; border-top: 1px dashed var(--border);
  color: var(--ink-faint); font-size: 13px; font-style: normal;
  border-radius: 0; padding: 8px 0 0; text-align: center;
}

.outcome-line {
  border-top: 1px solid var(--border); margin-top: 10px; padding-top: 10px;
  font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}

.fixture {
  background: var(--warn-bg); border: 1px solid #efd9ab;
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px;
}
.fixture h3 { margin: 0 0 8px; font-size: 14px; color: #6b4600; }
.fixture dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; font-size: 14px; }
.fixture dt { font-weight: 600; color: #6b4600; }
.fixture dd { margin: 0; }

/* ---------------------------------------------------------------- criteria feedback */

.criterion {
  border: 1px solid var(--border); border-left-width: 3px;
  border-radius: var(--radius); padding: 10px 13px; margin-bottom: 8px; background: var(--surface);
}
.criterion.pass { border-left-color: var(--ok); }
.criterion.fail { border-left-color: var(--bad); }
.criterion.critical { border-left-color: var(--bad); background: var(--bad-bg); }
.criterion .top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.criterion .name { font-weight: 600; font-size: 14px; }
.criterion .score { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-soft); white-space: nowrap; }
.criterion .detail { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.criterion .matched { font-size: 13px; color: var(--ink-faint); margin-top: 3px; }

/* ---------------------------------------------------------------- quiz */

.question { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; background: var(--surface); }
.question .qnum { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); font-weight: 600; }
.question .qtext { font-weight: 600; margin: 4px 0 12px; }
.option { display: flex; gap: 9px; align-items: flex-start; padding: 7px 9px; border-radius: 4px; margin-bottom: 3px; }
.option:hover { background: var(--bg); }
.option input { margin-top: 4px; flex: 0 0 auto; width: auto; }
.option label { font-weight: 400; margin: 0; cursor: pointer; flex: 1; }
.option.correct { background: var(--ok-bg); }
.option.chosen-wrong { background: var(--bad-bg); }
.explanation {
  margin-top: 10px; padding: 9px 12px; background: var(--bg);
  border-left: 3px solid var(--border); border-radius: 0 4px 4px 0; font-size: 14px;
}

/* ---------------------------------------------------------------- misc */

.filters {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end;
  margin-bottom: 16px; padding: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.filters .field { margin: 0; min-width: 150px; }
.filters label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a {
  padding: 8px 14px; text-decoration: none; color: var(--ink-soft); font-size: 14px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.pager { display: flex; gap: 6px; align-items: center; justify-content: space-between; font-size: 14px; margin-top: 12px; }
.pager .links { display: flex; gap: 6px; }

.list-reset { list-style: none; padding: 0; margin: 0; }
.divided > li { border-bottom: 1px solid var(--border-soft); padding: 9px 0; }
.divided > li:last-child { border-bottom: none; }

.meta { font-size: 14px; color: var(--ink-faint); }
.muted { color: var(--ink-faint); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.mt16 { margin-top: 16px; }
.stack > * + * { margin-top: 12px; }
.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.auth-page { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 24px; background: var(--bg); }
.auth-box { width: 100%; max-width: 380px; }
.auth-box .card { padding: 26px; }
.auth-box h1 { font-size: 20px; }

.print-only { display: none; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-sidebar { grid-template-columns: minmax(0, 1fr); }
}

/* A first-run guide, shown until the portal has been set up. */
.start-here {
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.start-here h2 { margin: 0 0 6px; font-size: 22px; }
.start-here > p { color: var(--ink-soft); max-width: 68ch; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: step; }
.steps > li {
  position: relative;
  padding: 0 0 20px 46px;
  counter-increment: step;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary); color: #fff;
  font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.steps > li::after {
  content: ""; position: absolute; left: 14px; top: 34px; bottom: 6px;
  width: 2px; background: var(--border);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps > li.done::before { background: var(--ok); content: "\2713"; }
.steps h3 { margin: 3px 0 4px; font-size: 17px; }
.steps p { margin: 0 0 10px; color: var(--ink-soft); }

@media (max-width: 720px) {
  .drawer-toggle { display: block; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 40;
    transform: translateX(-100%); transition: transform .18s ease;
    box-shadow: 0 0 24px rgba(0,0,0,.16); height: 100vh;
  }
  .sidebar.open { transform: translateX(0); }
  .scrim { position: fixed; inset: 0; background: rgba(20,26,32,.4); z-index: 35; }
  .content { padding: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .topbar { padding: 8px 14px; }
  .topbar form { flex-basis: auto; flex: 1; }
  .topbar .user span.name { display: none; }
  .msg { max-width: 92%; }
  h1 { font-size: 20px; }
}

/* ---------------------------------------------------------------- print */

@media print {
  .sidebar, .topbar, .no-print, .drawer-toggle, .scrim { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; font-size: 11pt; color: #000; }
  .shell { display: block; }
  .content { padding: 0; max-width: none; }
  .card { border: none; box-shadow: none; padding: 0; margin-bottom: 14pt; break-inside: avoid; }
  table { font-size: 10pt; }
  thead th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: #000; text-decoration: none; }
  h1 { font-size: 17pt; }
  h2 { font-size: 13pt; page-break-after: avoid; }
  @page { margin: 16mm; }
}

/* ------------------------------------------------------------------ the course player
   Deliberately plain and deliberately large. The people using this are not reading a
   dashboard, they are reading a lesson, and the only thing that should compete for their
   attention is the one button at the bottom. */
.course-body { background: #f4f6f8; margin: 0; }

.course-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 24px; background: #fff; border-bottom: 1px solid #dde3e9;
}
.course-exit { font-size: .9rem; color: #5a6672; text-decoration: none; white-space: nowrap; }
.course-exit:hover { text-decoration: underline; }
.course-where { font-size: .9rem; font-weight: 600; color: #2c3742; white-space: nowrap; }
.course-bar { flex: 1; height: 10px; background: #e4e9ee; border-radius: 5px; overflow: hidden; min-width: 80px; }
.course-bar > span { display: block; height: 100%; background: var(--primary); border-radius: 5px; }
.course-pct { font-size: .9rem; font-weight: 600; color: #2c3742; min-width: 3em; text-align: right; }

.course-main { max-width: 780px; margin: 0 auto; padding: 28px 20px 96px; }

.course-kicker {
  text-transform: uppercase; letter-spacing: .09em; font-size: .78rem;
  font-weight: 700; color: #7a8794; margin: 0 0 6px;
}
.course-h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 14px; }
.course-intro { font-size: 1.08rem; line-height: 1.6; color: #3c4854; margin: 0 0 22px; }

/* Lesson text is set larger and narrower than the rest of the portal. It is meant to be
   read properly, not scanned. */
.course-lesson { font-size: 1.06rem; line-height: 1.72; }
.course-lesson h2 { font-size: 1.3rem; margin: 26px 0 10px; }
.course-lesson h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.course-lesson > *:first-child { margin-top: 0; }
.course-lesson li { margin-bottom: 8px; }

.course-actions {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 26px;
}
.course-next { font-size: 1.05rem; padding: 13px 30px; }
.course-big { font-size: 1.15rem; padding: 15px 40px; }
.course-back-only { margin-top: 22px; font-size: .92rem; }

.course-reveal { padding: 0; }
.course-reveal > summary {
  cursor: pointer; padding: 16px 18px; font-weight: 600; list-style-position: inside;
}
.course-reveal > summary:hover { background: #f7f9fb; }
.course-reveal > p { padding: 0 18px; }
.course-reveal > p:last-child { padding-bottom: 18px; }

.course-model { border-left: 4px solid var(--primary); }
.course-outcome { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }

.course-score { border-left: 4px solid #cfd6dd; }
.course-score.ok { border-left-color: #2e7d4f; }
.course-score.warn { border-left-color: #b8860b; }
.course-score-line { font-size: 1.25rem; margin: 0 0 10px; }

.course-recap { list-style: none; padding: 0; margin: 0 0 16px; }
.course-recap > li {
  padding: 9px 0; border-bottom: 1px solid #eef1f4;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.course-recap > li:last-child { border-bottom: 0; }
.course-recap > li.missed { font-weight: 600; }
.course-break { background: #f7faf8; border-left: 4px solid #2e7d4f; }

/* Parts on the course home page. Only the one you have reached reads as live. */
.course-resume { border-left: 4px solid var(--primary); }
.course-part.locked { opacity: .62; }
.course-part.current { border-left: 4px solid var(--primary); }
.course-part.done { border-left: 4px solid #2e7d4f; }
.warn-text { color: #8a6100; font-weight: 600; }

@media (max-width: 640px) {
  .course-main { padding: 20px 14px 80px; }
  .course-h1 { font-size: 1.5rem; }
  .course-where { display: none; }
  .course-actions { flex-wrap: wrap; }
  .course-next { width: 100%; }
}

/* The refresher list pairs a description with an action, so the row is a flex line. */
.card > ul.divided > li { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.card > ul.divided > li > div { min-width: 0; }

/* Recap points are the one place in the course where a list is the right shape. */
.course-points { margin: 0; padding-left: 20px; }
.course-points > li { margin-bottom: 12px; line-height: 1.6; }
.course-points > li:last-child { margin-bottom: 0; }
.fixture-card { border-left: 4px solid #6b7c8c; }

/* The single recommendation on the one screen that offers a real choice. */
.course-guidance { margin: 18px 0 0; font-weight: 600; color: #2c3742; }
