/* Site colors: deep blue #1B3550 (header, footer, buttons), warm brass #C9A15B (trim only: stripes, card tops, progress),
   mid blue #3A7CB0 (callouts, icons, focus ring), link blue #1F5C8A, greys #A2A9AD / #5B6770.
   Accessibility (WCAG 2.1 AA): body text and buttons use navy or a darker shade of the brand blue so
   contrast is at least 4.5:1; the bright brand blue is used only for decoration and focus outlines. */
:root {
  --navy: #1B3550; --blue: #C9A15B; --blue-ink: #1F5C8A; --grey-lt: #A2A9AD; --grey-dk: #5B6770;
  --bg: #F4F6F8; --surface: #FFFFFF; --ink: #16202C; --muted: #515C64; --line: #D5DADD; --field: #5B6770;
  --btn: #1B3550; --btn-ink: #FFFFFF;
  --ok: #1B6E36; --ok-bg: #E7F5EC; --err: #B3261E; --err-bg: #FBEAE8; --warn-bg: #FFF4D6; --tint: #E7F0F7;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1826; --surface: #152338; --ink: #E8EDF3; --muted: #B7BEC3; --line: #2F4260; --field: #8E99A0;
    --blue-ink: #8FC1E8; --btn: #C9A15B; --btn-ink: #06131F;
    --ok: #7BD497; --ok-bg: #173022; --err: #FF9A8F; --err-bg: #3A1D1B; --warn-bg: #3A3218; --tint: #12304A;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(26px, 4vw, 34px); }
h2 { font-size: 23px; margin-top: 1.2em; }
h3 { font-size: 19px; }
.card > h2:first-child, .panel > h2:first-child, .card > h1:first-child, .panel > h1:first-child { margin-top: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
main { display: block; padding-bottom: 32px; }
main:focus { outline: none; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -100px; background: #fff; color: #1B3550; padding: 10px 14px; z-index: 50; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1[tabindex="-1"]:focus { outline: none; }

/* header / footer */
.topbar { background: var(--navy); color: #fff; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 64px; flex-wrap: wrap; padding: 6px 16px; }
.wordmark { color: #fff; text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; padding: 4px 0; }
.wm-name { font-size: 19px; font-weight: 800; letter-spacing: .01em; }
.wm-sub { font-size: 13px; color: #D6E6F2; }
.tag { font-size: 12px; background: #fff; color: var(--navy); border-radius: 4px; padding: 1px 6px; vertical-align: middle; }
.topnav { display: flex; flex-wrap: wrap; gap: 2px; }
.topnav a { color: #fff; text-decoration: none; padding: 10px 12px; border-radius: 6px; font-weight: 600; font-size: 15px; }
.topnav a:hover { background: rgba(255,255,255,.14); text-decoration: underline; }
.topnav a[aria-current="page"] { background: rgba(255,255,255,.18); box-shadow: inset 0 -3px 0 var(--blue); }
.stripe { height: 4px; background: var(--blue); }
footer.foot { background: var(--navy); color: #D6E6F2; padding: 26px 0; font-size: 14px; }
footer.foot a { color: #fff; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* buttons */
.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--btn); color: var(--btn-ink); border: 2px solid var(--btn); border-radius: 8px;
  padding: 10px 18px; font: 700 16px var(--font); text-decoration: none; cursor: pointer; min-height: 44px; margin-top: 12px; }
.btn:hover, button:hover { filter: brightness(1.12); text-decoration: underline; }
.btn.secondary, button.secondary { background: transparent; color: var(--blue-ink); border-color: currentColor; }
.hero .btn.secondary { color: #fff; }
.btn[aria-disabled="true"], button:disabled { background: var(--grey-dk); border-color: var(--grey-dk); color: #fff; cursor: not-allowed; filter: none; text-decoration: none; }
button.danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn.small, button.small { padding: 5px 12px; min-height: 36px; font-size: 14px; margin-top: 0; }
.inline-form { display: inline; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* forms */
label { display: block; font-weight: 600; margin: 14px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--field); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
textarea { min-height: 90px; }
.code-input { font-size: 22px; letter-spacing: 2px; text-transform: uppercase; text-align: center; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 220px; }
.hint { font-size: 14px; color: var(--muted); margin: 4px 0 0; }

/* containers */
.card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.page-head { padding: 32px 0 16px; }
.notice { border-radius: 8px; padding: 12px 14px; margin: 16px 0; border: 1px solid var(--line); background: var(--tint); }
.notice-ok { background: var(--ok-bg); border-color: var(--ok); }
.notice-err { background: var(--err-bg); border-color: var(--err); }
.warn { background: var(--warn-bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; }
.callout { background: var(--tint); border-radius: 8px; padding: 14px 16px; margin: 16px 0; }

/* home */
.hero { background: var(--navy); color: #fff; padding: 52px 0 60px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); max-width: 17ch; }
.hero .lead { font-size: 19px; color: #E1ECF5; max-width: 52ch; }
section.band { padding: 40px 0 4px; }
.steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps3 > li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; counter-increment: s; }
.steps3 > li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 10px; }
.code-box { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.code-box > div { flex: 1 1 240px; }

/* class cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.class-card { display: flex; flex-direction: column; margin: 0; }
.class-card .cat { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-ink); margin: 0; }
.class-card h3 { margin: 6px 0; }
.class-card .meta { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.grow { flex: 1; }
.soon-note { font-weight: 700; margin: 12px 0 0; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: var(--tint); color: var(--blue-ink); }
.badge.soon { background: var(--line); color: var(--ink); }
/* A paused course: a bold gold banner across the top of its card */
.update-flag { display: block; margin: 0 0 12px; padding: 9px 14px; border-radius: 8px; background: #F6C445; color: #16202C; font-size: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.class-card.is-paused .card-art { opacity: .45; }
.class-card.is-paused .soon-note { font-size: 16px; }

/* class launch page */
.course-hero { background: var(--navy); color: #fff; padding: 32px 0; }
.course-hero .code { color: #E8D2A3; font-weight: 700; letter-spacing: .04em; margin: 0 0 4px; }
.facts { display: flex; gap: 6px 20px; flex-wrap: wrap; font-size: 15px; color: #E1ECF5; list-style: none; padding: 0; margin: 8px 0 0; }
.launch { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; padding-top: 24px; }
@media (max-width: 860px) { .launch { grid-template-columns: 1fr; } .launch > .side { order: -1; } }
.modlist { list-style: none; margin: 0; padding: 0; }
.modlist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.modlist li:last-child { border-bottom: 0; }
.modlist .n { font-weight: 700; font-size: 14px; color: var(--blue-ink); margin-right: 6px; }
.modlist .count { font-size: 14px; color: var(--muted); }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; width: 160px; max-width: 100%; margin-top: 6px; }
.bar > i { display: block; height: 100%; background: var(--navy); }
@media (prefers-color-scheme: dark) { .bar > i { background: var(--blue); } }
.w0{width:0}.w10{width:10%}.w20{width:20%}.w30{width:30%}.w40{width:40%}.w50{width:50%}.w60{width:60%}.w70{width:70%}.w80{width:80%}.w90{width:90%}.w100{width:100%}
.disclaimer { border: 2px solid var(--navy); border-radius: var(--radius); padding: 20px; background: var(--surface); margin-bottom: 18px; }
@media (prefers-color-scheme: dark) { .disclaimer { border-color: var(--blue); } }
.disclaimer h2 { font-size: 19px; margin-top: 0; }
.disclaimer p { font-size: 15px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; margin: 12px 0 4px; cursor: pointer; }
.agree input { width: 24px; height: 24px; margin-top: 1px; accent-color: var(--navy); flex: none; }

/* lesson player */
.player { display: grid; grid-template-columns: 290px 1fr; gap: 24px; align-items: start; padding-top: 24px; }
@media (max-width: 900px) { .player { grid-template-columns: 1fr; } }
.outline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
@media (max-width: 900px) { .outline { position: static; max-height: none; } }
.outline summary { cursor: pointer; font-weight: 700; padding: 10px; }
.outline ol { margin: 0 0 6px; padding: 0; list-style: none; }
.outline a { display: flex; gap: 8px; padding: 7px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 15px; }
.outline a:hover { background: var(--tint); text-decoration: underline; }
.outline a[aria-current="page"] { background: var(--navy); color: #fff; }
.outline .dot { flex: none; width: 18px; text-align: center; color: var(--muted); }
.outline .done .dot { color: var(--ok); }
.outline a[aria-current="page"] .dot { color: #fff; }
.outline .modhead { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--blue-ink); padding: 10px 10px 4px; margin: 0; }
.lesson { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px clamp(18px, 4vw, 40px); }
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.lesson h1 { font-size: 28px; }
.narration { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 4px 0 18px; }
.narration audio { width: min(420px, 100%); }
.narration label { margin: 0; font-size: 14px; }
.narration select { width: auto; padding: 6px 8px; font-size: 14px; }
.narration .btn { margin-top: 0; }
.content ul, .content ol { padding-left: 1.3em; }
.content li { margin-bottom: .4em; }
.content .tight li { margin-bottom: .15em; }
ul.checklist { list-style: none; padding-left: 0; }
ul.checklist li { padding-left: 30px; position: relative; }
ul.checklist li::before { content: "\2714"; position: absolute; left: 4px; color: var(--blue-ink); font-weight: 700; }
ol.steps { list-style: none; padding: 0; counter-reset: st; }
ol.steps li { counter-increment: st; position: relative; padding-left: 42px; min-height: 30px; margin-bottom: 10px; }
ol.steps li::before { content: counter(st); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; }
ol.two-col { columns: 2 280px; column-gap: 32px; }
ol.two-col li { break-inside: avoid; }
figure { margin: 0 0 22px; }
figure img { border: 1px solid var(--line); border-radius: 6px; background: #fff; }
figcaption { font-size: 15px; margin-top: 6px; }
.formula { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
.big-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
@media (max-width: 560px) { .big-two { grid-template-columns: 1fr; } }
.big-two > div { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 16px 18px; }
.big-two .big { font-size: 48px; line-height: 1; font-weight: 800; color: #E8D2A3; margin-right: 6px; }
.big-two p { margin: 6px 0 0; }
.calc { border: 1px dashed var(--field); border-radius: 8px; padding: 14px; }
.calc-title { font-weight: 700; margin-bottom: 6px; }
.calc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.calc label { font-size: 14px; margin: 0; }
.calc input { margin-top: 4px; }
.calc-out { margin: 12px 0 0; font-size: 18px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* questions (checkpoints and exam) */
.qbox { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 8px 0 16px; background: var(--bg); }
.qbox legend { font-weight: 700; padding: 0 4px; float: left; width: 100%; margin-bottom: 8px; }
.qbox legend + * { clear: both; }
.scenario-tag { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-ink); margin-bottom: 4px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.opt { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; padding: 12px 14px; margin: 8px 0; border: 2px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
.opt:hover { border-color: var(--field); }
.opt input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.opt.right { border-color: var(--ok); background: var(--ok-bg); }
.opt.wrong { border-color: var(--err); background: var(--err-bg); }
.feedback { border-radius: 8px; padding: 12px 14px; margin-top: 10px; }
.feedback.ok { background: var(--ok-bg); border: 1px solid var(--ok); }
.feedback.no { background: var(--err-bg); border: 1px solid var(--err); }
.exam-bar { position: sticky; top: 0; z-index: 5; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.timer { font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.timer-low { color: var(--err); }
.q .num { color: var(--muted); font-weight: 600; }
.score { font-size: 56px; font-weight: 800; color: var(--navy); line-height: 1.1; }
@media (prefers-color-scheme: dark) { .score { color: #E8D2A3; } }
.center { text-align: center; }

/* tables and admin */
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 15px; }
th, td { text-align: left; padding: 9px 11px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy); color: #fff; font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat b { display: block; font-size: 28px; }
.pill { display: inline-block; border-radius: 999px; padding: 1px 10px; font-size: 13px; border: 1px solid var(--field); }
.pill-ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.pill-err { background: var(--err-bg); color: var(--err); border-color: var(--err); }
pre.email { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: 14px; }
details.more summary { cursor: pointer; color: var(--blue-ink); text-decoration: underline; }

/* completion record */
.record { background: #fff; color: #16202C; border: 3px solid #1B3550; border-radius: 12px; padding: 36px 28px; max-width: 800px; margin: 0 auto 24px; text-align: center; }
.record h2 { color: #1B3550; margin-top: 0; font-size: 30px; }
.record .who { font-size: 30px; font-weight: 800; border-bottom: 2px solid #16202C; display: inline-block; padding: 0 20px 4px; margin: 8px 0 14px; }
.record .small { font-size: 13px; color: #454F57; }

@page { size: letter landscape; margin: 0.5in; }
@media print {
  body { background: #fff; color: #000; }
  .no-print, .skip { display: none !important; }
  .record { border-width: 2px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
.btn.light { background: #fff; color: #1B3550; border-color: #fff; }
.page-top { margin-top: 32px; }
.left { text-align: left; }
.text-err { color: var(--err); }
.player > *, .launch > * { min-width: 0; }
.narration .auto { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.narration .auto input { width: 18px; height: 18px; accent-color: var(--navy); }
.narr-note { flex-basis: 100%; margin: 0; font-size: 14px; }
.narr-note:empty { display: none; }

/* ---------- visual polish: illustrations, icons, angled shapes like the classroom deck ---------- */
.hero, .course-hero { position: relative; overflow: hidden; }
.hero::before, .hero::after, .course-hero::before, .course-hero::after {
  content: ""; position: absolute; top: 0; bottom: 0; background: var(--blue); pointer-events: none; }
.hero::before, .course-hero::before { right: -8%; width: 46%; clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); opacity: .16; }
.hero::after, .course-hero::after { right: -8%; width: 30%; clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%); opacity: .2; }
.hero > .wrap, .course-hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.hero-art { width: 100%; max-width: 440px; justify-self: end; }
.course-hero-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: center; }
.course-art { width: 100%; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
@media (max-width: 760px) {
  .hero-grid, .course-hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 280px; justify-self: center; }
  .course-art { display: none; }
}
.class-card { padding-top: 0; overflow: hidden; }
.card-art { display: block; width: calc(100% + 44px); max-width: none; margin: 0 -22px 16px; height: 150px; object-fit: cover; }
.steps3 > li { border-top: 5px solid var(--blue); }
.modlist li { justify-content: flex-start; }
.modlist .mod-text { flex: 1; }
.mod-icon { width: 44px; height: 44px; flex: none; }
.lesson-band { display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; margin: -28px calc(-1 * clamp(18px, 4vw, 40px)) 20px; padding: 14px clamp(18px, 4vw, 40px); border-radius: var(--radius) var(--radius) 0 0; position: relative; overflow: hidden; }
.lesson-band::after { content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: 180px; background: var(--blue); opacity: .25; clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%); }
.lesson-band img { width: 42px; height: 42px; flex: none; }
.lesson-band .crumb { color: #E1ECF5; margin: 0; flex: 1; position: relative; z-index: 1; }
.band-bar { position: relative; z-index: 1; width: 120px; height: 8px; background: rgba(255,255,255,.25); border-radius: 99px; overflow: hidden; flex: none; }
.band-bar > i { display: block; height: 100%; background: #fff; }
@media (max-width: 480px) { .band-bar { display: none; } }
.with-icon { display: flex; align-items: center; gap: 10px; }
.with-icon img { width: 32px; height: 32px; flex: none; }
.callout { position: relative; padding-left: 60px; border-left: 5px solid var(--blue); }
.callout::before { content: ""; position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; background: url("../content/img/icons/lightbulb.svg") center / contain no-repeat; }
.qbox { border-left: 5px solid var(--blue); }
figure img { box-shadow: 0 2px 10px rgba(0,0,0,.08); }

/* Header stays at the top while scrolling on laptops and desktops. On phones it scrolls away
   so it doesn't cover a quarter of a small screen (accessibility: content must not be hidden). */
@media (min-width: 761px) and (min-height: 540px) {
  body > header { position: sticky; top: 0; z-index: 20; }
  html { scroll-padding-top: calc(var(--head-h, 114px) + 16px); }
  .outline { top: calc(var(--head-h, 114px) + 10px); max-height: calc(100vh - var(--head-h, 114px) - 20px); }
  .exam-bar { top: var(--head-h, 114px); }
}

/* photos inside lessons */
.content figure.photo { float: right; width: 44%; margin: 4px 0 14px 22px; }
.content figure.photo img { width: 100%; height: auto; border-radius: 8px; border: 0; }
.content figure.photo .credit { font-size: 12px; color: var(--muted); margin-top: 4px; }
.content::after { content: ""; display: block; clear: both; }
@media (max-width: 700px) { .content figure.photo { float: none; width: 100%; margin: 0 0 16px; } }

/* Previous/Next buttons stay visible at the bottom of the screen on long lesson pages */
.pager { position: sticky; bottom: 0; z-index: 10; background: var(--surface);
  margin: 26px calc(-1 * clamp(18px, 4vw, 40px)) -28px; padding: 12px clamp(18px, 4vw, 40px);
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 -6px 14px rgba(0,0,0,.08); }
.pager .btn { margin-top: 0; }
html { scroll-padding-bottom: 90px; }
@media (max-width: 480px) { .pager .btn { padding: 8px 12px; font-size: 15px; } }
#end-mark { display: block; height: 1px; }
.pager { align-items: center; }
.more-hint { order: 0; margin: 0 auto; background: var(--tint); color: var(--blue-ink); border: 1px solid var(--blue-ink); border-radius: 999px; padding: 6px 14px; min-height: 36px; font-size: 14px; }
.more-hint[hidden] { display: none; }
.pager > a:first-of-type { order: -1; }
.pager > a:last-of-type { order: 1; }
.pager.has-more::before { content: ""; position: absolute; left: 0; right: 0; top: -36px; height: 36px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--surface)); }
@media (prefers-color-scheme: dark) { .pager.has-more::before { background: linear-gradient(to bottom, rgba(21,35,56,0), var(--surface)); } }
@media (max-width: 480px) { .more-hint { flex-basis: 100%; order: -2; margin-bottom: 4px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Lesson pages: use more of the screen on wide monitors (header and footer widen to match) */
body.learn .wrap { max-width: 1320px; }
@media (min-width: 901px) { body.learn .player { grid-template-columns: 260px minmax(0, 1fr); } }

/* Practice: fill in a 300 Log line */
.scenario { background: var(--tint); border-left: 5px solid var(--blue); border-radius: 8px; padding: 14px 18px; margin-bottom: 18px; }
.scenario p:last-child { margin-bottom: 0; }
.logline { margin-top: 8px; }
.ll-fields { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px 18px; margin: 8px 0 16px; }
.ll-fields > legend { font-weight: 700; padding: 0 6px; }
.ll-fields:disabled .opt, .ll-fields .opt:has(input:disabled) { cursor: not-allowed; }
.ll-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; margin-bottom: 8px; }
.ll-grid .wide { grid-column: 1 / -1; }
.ll-grid textarea { min-height: 60px; }
.ll-checks { list-style: none; padding: 0; margin: 12px 0; }
.ll-checks li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ll-checks .mark { font-weight: 700; flex: none; width: 1.2em; }
.ll-checks li.ok .mark { color: var(--ok); }
.ll-checks li.no .mark { color: var(--err); }
.ll-model-title { font-size: 19px; margin-top: 18px; }
.ll-model td, .ll-model th { font-size: 14px; }

/* Drill and form exercises */
.drill { margin-top: 12px; }
.drill-count { font-weight: 700; color: var(--blue-ink); }
.drill .opt:has(input:disabled) { cursor: default; }
.fx-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px 12px; margin: 0 0 16px; }
.fx-group > legend { font-weight: 700; padding: 0 6px; }
.ll-grid .qbox.wide { grid-column: 1 / -1; }
.fx-self { padding-left: 20px; }
.fx-self li { margin-bottom: 12px; }
.sample-log caption { text-align: left; font-weight: 700; padding: 8px 11px; }
.sample-log td, .sample-log th { font-size: 14px; }

/* Final exam only: no text selection (see assets/exam-guard.js) */
body.exam-locked main { -webkit-user-select: none; user-select: none; }

/* Printable job aid */
.jobaid { margin: 24px 0 40px; }
.ja-page { background: #fff; color: #16202C; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; margin-bottom: 24px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.ja-page a { color: #1F5C8A; }
.ja-head { border-bottom: 4px solid #3A7CB0; margin-bottom: 14px; padding-bottom: 6px; }
.ja-kicker { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1F5C8A; }
.ja-head h2 { margin: 2px 0 0; color: #1B3550; font-size: 26px; }
.ja-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
@media (max-width: 760px) { .ja-cols { grid-template-columns: 1fr; } .ja-page { padding: 20px 16px; } }
.ja-page h3 { color: #1B3550; font-size: 16px; margin: 14px 0 6px; padding-bottom: 2px; border-bottom: 1px solid #D5DADD; }
.ja-page h3:first-child { margin-top: 0; }
.ja-tight { margin: 0 0 6px; padding-left: 18px; }
.ja-tight li { margin: 2px 0; }
.ja-2col { columns: 2; column-gap: 20px; }
.ja-2col li { break-inside: avoid; }
.ja-note { margin: 0 0 6px; }
.ja-flow { list-style: none; counter-reset: jf; padding: 0; margin: 0; }
.ja-flow li { counter-increment: jf; position: relative; border: 2px solid #1B3550; border-radius: 8px; padding: 8px 10px 8px 44px; margin: 0 0 16px; }
.ja-flow li::before { content: counter(jf); position: absolute; left: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; background: #1B3550; color: #fff; font-weight: 700; text-align: center; line-height: 26px; }
.ja-flow li:not(:last-child)::after { content: "\2193  yes"; position: absolute; left: 44px; bottom: -16px; font-size: 12px; font-weight: 700; color: #1F5C8A; line-height: 16px; }
.ja-flow-end { background: #E7F0F7; border-left: 4px solid #3A7CB0; padding: 8px 10px; border-radius: 6px; margin: 0 0 8px; }
.ja-table { font-size: inherit; background: #fff; margin-bottom: 8px; }
.ja-table th, .ja-table td { padding: 4px 6px; border-bottom: 1px solid #D5DADD; color: #16202C; }
.ja-table thead th { background: #1B3550; color: #fff; }
.ja-table tbody th { background: #fff; font-weight: 600; width: 58%; }
.ja-call { border: 2px solid #1B3550; border-radius: 8px; padding: 8px 10px; margin: 8px 0; }
.ja-qrs { display: flex; gap: 20px; margin-top: 8px; }
.ja-qrs figure { margin: 0; text-align: center; }
.ja-qrs figcaption { font-size: 12px; margin: 0; color: #16202C; }
.ja-qr-img { width: 92px; height: 92px; display: block; margin: 0 auto 4px; background: #fff; }
.ja-foot { margin-top: 14px; border-top: 1px solid #D5DADD; padding-top: 6px; font-size: 12px; color: #515C64; }
.ja-foot p { margin: 0 0 3px; }

@media print {
  @page { size: letter; margin: 0.45in; }
  body.jobaid-page { font-size: 9.1pt; line-height: 1.3; }
  body.jobaid-page .wrap { max-width: none; padding: 0; }
  body.jobaid-page main { padding: 0; }
  .jobaid { margin: 0; }
  .ja-page { border: 0; box-shadow: none; padding: 0; margin: 0; border-radius: 0; break-after: page; }
  .ja-page:last-child { break-after: auto; }
  .ja-head h2 { font-size: 17pt; }
  .ja-kicker { font-size: 7.5pt; }
  .ja-page h3 { font-size: 10pt; margin: 7px 0 3px; }
  .ja-cols { grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .ja-flow li { padding: 4px 6px 4px 30px; margin-bottom: 11px; }
  .ja-flow li::before { width: 18px; height: 18px; line-height: 18px; left: 5px; top: 5px; font-size: 8pt; }
  .ja-flow li:not(:last-child)::after { left: 30px; bottom: -11.5px; font-size: 7pt; line-height: 11px; }
  .ja-qr-img { width: 0.8in; height: 0.8in; }
  .ja-qrs figcaption, .ja-foot { font-size: 7.5pt; }
  .ja-page, .ja-page * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Modules open in order */
.outline .modhead.locked, .outline ol.locked { color: var(--muted); }
.outline ol.locked .ol-locked { display: flex; gap: 8px; padding: 6px 8px; }
.lock-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; margin-left: 4px; }
.next-hint { font-size: 14px; color: var(--muted); margin-left: auto; text-align: right; }
.pager a.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.notice-info { background: var(--tint); border: 1px solid var(--blue); border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; }
@media (max-width: 480px) { .next-hint { flex-basis: 100%; order: -1; text-align: left; margin: 0 0 4px; } }

/* ---------- page background borrowed from the Recordkeeping classroom deck ----------
   Only the page backdrop changes. Header, footer, course outline, lesson area and cards keep their colors.
   Text that sits directly on the blue backdrop turns light; anything inside a white box keeps its normal colors. */
:root { --ink0: var(--ink); --muted0: var(--muted); --blue-ink0: var(--blue-ink); --deck-blue: #22405F; }
body { background: var(--deck-blue) url("img/deck-bg.svg") right center / cover no-repeat fixed; }
main { --ink: #FFFFFF; --muted: #D9E6F2; --blue-ink: #E8D2A3; color: var(--ink); }
main .card, main .panel, main .lesson, main .outline, main .stat, main .table-wrap, main table, main .disclaimer,
main .exam-bar, main .notice, main .warn, main .steps3 > li, main .ja-page, main .record, main .qbox, main .opt,
main input, main select, main textarea, main .formula, main .narration, main .scenario, main .callout {
  --ink: var(--ink0); --muted: var(--muted0); --blue-ink: var(--blue-ink0); color: var(--ink); }
@media (max-width: 700px) { body { background-position: 70% center; } }
@media print { body { background: #fff; } }

/* Footer stays at the bottom of the screen on laptops and desktops, the same way the header stays at the top.
   On phones it scrolls normally so it doesn't cover the lesson. --foot-h is measured by app.js (fallback 70px). */
@media (min-width: 1000px) and (min-height: 600px) {
  footer.foot { position: sticky; bottom: 0; z-index: 20; padding: 12px 0; }
  .pager { bottom: var(--foot-h, 70px); }
  html { scroll-padding-bottom: calc(var(--foot-h, 70px) + 90px); }
  .outline { max-height: calc(100vh - var(--head-h, 114px) - 20px - var(--foot-h, 70px)); }
}
/* On short pages, push the footer to the bottom of the window instead of leaving it mid-screen. */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
@media print { body { display: block; min-height: 0; } }

/* ---------- brass trim only: callouts, practice boxes and the keyboard focus ring stay blue ---------- */
:focus-visible { outline-color: #3A7CB0; }
.callout, .qbox, .scenario { border-left-color: #3A7CB0; }

/* embedded video (16:9) */
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 16px; border-radius: 8px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }

/* Exam: "answers saved" note in the status bar */
.save-state { font-size: 15px; color: var(--muted); }

/* Idle sign-out warning (assets/idle.js) */
.idle-warn { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 20, 35, .55); display: grid; place-items: center; padding: 16px; }
.idle-warn[hidden] { display: none; }
.idle-box { background: var(--surface); color: var(--ink); max-width: 440px; width: 100%; border-radius: 12px; padding: 24px; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); border-top: 6px solid var(--navy); }
.idle-box h2 { margin: 0 0 8px; }
.idle-box p { margin: 0 0 18px; }
.idle-count { font-variant-numeric: tabular-nums; }
.idle-actions { display: flex; justify-content: flex-end; }

/* Home page headline: one phrase per line */
.hero-lines span { display: block; }
/* Home page: BrightCrew logo in the hero. On phones it sits above the headline, smaller. */
.hero-logo { max-width: 360px; height: auto; }
@media (max-width: 760px) {
  .hero-logo { order: -1; max-width: 200px; margin-bottom: 4px; }
}
/* Home page hero: centered headline, description and buttons */
.hero-grid > div:first-child { text-align: center; }
.hero-grid > div:first-child h1, .hero-grid > div:first-child .lead { margin-left: auto; margin-right: auto; }
.hero-grid > div:first-child .actions { justify-content: center; }

/* Public forms: hidden trap field that only spam bots fill in (see inc/spamguard.php) */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Lesson header ("Module 2 of 8: ... / Page 1 of 5"): larger and easier to read */
.lesson-band .crumb { font-size: 18px; line-height: 1.4; font-weight: 600; }
@media (max-width: 560px) { .lesson-band .crumb { font-size: 16px; } }

/* College line under the site name in the top bar: larger */
.wm-sub { font-size: 16px; }
@media (max-width: 560px) { .wm-sub { font-size: 14px; } }

/* Top bar: the site name goes home; the college line links to the college's page */
.wordmark a { color: #fff; text-decoration: none; }
.wordmark a.wm-sub { color: #D6E6F2; }
.wordmark a:hover { text-decoration: underline; }

/* Top bar: site name and college line on top, menu on its own row below, left-aligned. */
.topbar-in { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; padding-top: 10px; padding-bottom: 4px; }
.topnav { margin-left: -12px; }

/* College logo thumbnail beside the site name (shown only when assets/img/college-logo.* exists) */
.brand-row { display: flex; align-items: center; gap: 14px; }
.college-logo { display: block; flex: none; line-height: 0; }
.college-logo img { height: 36px; width: auto; max-width: 300px; object-fit: contain; }  /* white-lettered logo made for dark backgrounds */
a.college-logo:focus-visible img { outline: 3px solid #fff; outline-offset: 3px; }
/* Logo sits at the far right of the header; site name and college line stay on the left */
.brand-row { width: 100%; flex-wrap: wrap; row-gap: 8px; }
.brand-row .college-logo { order: 2; margin-left: auto; }
@media (max-width: 760px) { .college-logo img { height: 28px; } .brand-row .college-logo { order: 0; margin-left: 0; flex-basis: 100%; } }  /* narrow windows and phones: logo on top, left-aligned */

/* Top menu: larger links for students and visitors; the longer admin menu stays at its original size */
.topnav a { font-size: 18px; }
.topnav-admin a { font-size: 15px; }
@media (max-width: 560px) { .topnav a { font-size: 17px; } .topnav-admin a { font-size: 15px; } }

/* Site name in the top bar: clearly larger than the menu links */
.wm-name { font-size: 22px; }
@media (max-width: 560px) { .wm-name { font-size: 20px; } }

/* 2026-10-07: compact course cards (about half the original size) */
.cards { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 40px; }
.card.class-card { padding: 0 14px 14px; }
.class-card .card-art { width: calc(100% + 28px); margin: 0 -14px 10px; height: 90px; }
.class-card .cat { font-size: 11px; }
.class-card h3 { font-size: 16px; line-height: 1.25; margin: 4px 0; }
.class-card .meta { font-size: 12px; margin-bottom: 6px; }
.class-card .badge { font-size: 11px; padding: 1px 8px; }
.class-card .grow { font-size: 13.5px; line-height: 1.4; margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.class-card .btn { font-size: 14px; padding: 7px 14px; }
.class-card .soon-note { font-size: 13px; margin-top: 6px; }
.class-card .update-flag { font-size: 13px; padding: 6px 10px; margin-bottom: 8px; }
/* Course Menu: 5 cards per row on wide screens; the page widens a bit so cards keep their width */
.wrap:has(> .cards) { max-width: 1320px; }
@media (max-width: 1200px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; } }
@media (max-width: 980px)  { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
@media (max-width: 740px)  { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 480px)  { .cards { grid-template-columns: 1fr; } }
/* Preview page: rows size to their own cards (available cards carry extra buttons), tighter button stack */
/* (removed 2026-10-07: preview rows now match heights again) */
.class-card .actions { gap: 6px; }
.class-card .actions .btn { width: 100%; }
/* Preview cards: one main button, then small text links on a single line */
.class-card .mini-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; margin: 8px 0 0; font-size: 12.5px; font-weight: 600; }
/* Preview cards: two-line description to make room for the small links, so cards match the Course Menu height */
.band .class-card .grow { -webkit-line-clamp: 2; }
.band .class-card .mini-links { margin-top: 6px; }
/* HazCom course: pictogram lists */
.picto-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 14px; }
.picto-item { display: flex; gap: 16px; align-items: center; background: var(--tint); border-radius: 8px; padding: 10px 14px; }
.picto-item .picto { flex: none; width: 84px; height: 84px; border: 0; box-shadow: none; background: transparent; }
/* HazCom job aid: pictogram list */
.ja-pictos { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 4px; }
.ja-pictos li { display: flex; align-items: center; gap: 8px; }
.ja-pictos img { width: 46px; height: 46px; flex: none; border: 0; box-shadow: none; background: transparent; }
@media print { .ja-pictos img { width: 0.48in; height: 0.48in; } .ja-pictos { gap: 1px; } }
/* Course cards: time to complete on its own line with a clock icon */
.class-card .card-time { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--blue-ink); }
.class-card .card-time .clock { flex: none; }
.class-card .meta { margin-bottom: 4px; }
/* Legal Disclaimer and Terms of Use page */
.terms h2 { font-size: 18px; color: var(--navy); margin: 22px 0 8px; }
.terms h2:first-of-type { margin-top: 14px; }
/* Course page: "Signed in as" sits above both columns so the two boxes line up */
.signed-in { margin: 18px 0 -8px; }

/* ---------- 2026-10-10: more color inside the lessons ----------
   Same brand family: navy, safety gold, blue, and green. Text stays dark on light tints (WCAG AA contrast).
   Final exam pages are not inside .lesson, so they keep their plain, distraction-free look. */
:root { --gold: #F6C445; --gold-bg: #FFF6DB; --gold-line: #EBCB6B; --gold-ink: #6B4E00;
  --green: #2E7D4F; --green-bg: #E9F6EE; --green-line: #B7DEC4; --info: #3A7CB0; --info-bg: #E7F0F7; --info-line: #BFD5E8;
  --head-ink: #1B3550; --bullet: #C08A00; --zebra: #F4F7FA; }
@media (prefers-color-scheme: dark) {
  :root { --gold-bg: #3A3218; --gold-line: #6B5A26; --gold-ink: #F6D77A; --green-bg: #173022; --green-line: #2F5A3D; --green: #7BD497;
    --info-bg: #12304A; --info-line: #2F4260; --head-ink: #E8EDF3; --bullet: #F6C445; --zebra: rgba(255,255,255,.04); }
}

/* Lesson header band: navy with a gold edge and a gold progress bar */
.lesson-band { background: linear-gradient(100deg, #1B3550 0%, #2A5784 100%); border-bottom: 4px solid var(--gold); }
.lesson-band::after { background: var(--gold); opacity: .2; }
.band-bar { background: rgba(255,255,255,.22); }
.band-bar > i { background: var(--gold); }

/* Page title and headings: navy, with a short gold underline under the title */
.lesson h1 { color: var(--head-ink); }
.lesson h1::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--gold); margin-top: 10px; }
.lesson h2 { color: var(--head-ink); }

/* Text accents: key terms in navy, gold bullets, navy numbers */
.lesson .content p strong, .lesson .content li strong { color: var(--head-ink); }
.lesson .content ul:not(.checklist) > li::marker { color: var(--bullet); font-size: 1.15em; }
.lesson .content ol:not(.steps) > li::marker { color: var(--head-ink); font-weight: 700; }
.lesson .content tbody tr:nth-child(even) td { background: var(--zebra); }

/* Narration bar: light blue tint */
.lesson .narration { background: var(--info-bg); border-color: var(--info-line); }

/* Callout boxes by purpose: "Keep this in mind" and notes in blue, warnings in safety yellow, tips in green */
.lesson .callout { background: var(--info-bg); border-left: 6px solid var(--info); box-shadow: 0 1px 3px rgba(0,0,0,.07); }
.lesson .callout > strong:first-child { color: var(--head-ink); }
.lesson .callout.callout-warn { background: var(--gold-bg); border-left-color: #D99A00; }
.lesson .callout.callout-warn::before { background-image: url("../content/img/icons/warning.svg"); }
.lesson .callout.callout-warn > strong:first-child { color: var(--gold-ink); }
.lesson .callout.callout-tip { background: var(--green-bg); border-left-color: var(--green); }
.lesson .callout.callout-tip > strong:first-child { color: var(--ok); }

/* Checkpoints, quick checks, and drill questions: warm gold box with a gold "Scenario" badge */
.lesson .qbox { background: var(--gold-bg); border: 1px solid var(--gold-line); border-left: 6px solid var(--gold); }
.lesson .scenario-tag { display: inline-block; width: auto; background: var(--gold); color: #3B2A00; border-radius: 999px; padding: 2px 10px; margin: 0 10px 8px 0; }
.lesson .opt:not(.right):not(.wrong):hover { border-color: #D99A00; }
.lesson .feedback.ok { border-left: 6px solid var(--ok); }
.lesson .feedback.no { border-left: 6px solid var(--err); }

/* Practice exercises: blue-edged groups */
.lesson .fx-group { border-left: 6px solid var(--info); }
.lesson .fx-group > legend { color: var(--head-ink); }

/* Module review: key points on a soft green card */
.lesson.type-review #readable > .content { background: var(--green-bg); border: 1px solid var(--green-line); border-left: 6px solid var(--green); border-radius: var(--radius); padding: 14px 18px 4px; margin-bottom: 18px; }
.lesson.type-review #readable > .content h2 { margin-top: 0; }
.lesson.type-review ul.checklist li::before { color: var(--green); }

/* Course outline: the current module gets a gold highlight; finished pages get green checks */
.outline .modhead:has(+ ol a[aria-current="page"]) { background: var(--gold-bg); color: var(--head-ink); border-left: 4px solid var(--gold); border-radius: 6px; margin: 4px 0 2px; }
.outline a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold); }
.outline .done .dot { color: var(--green); }

/* 2026-10-10: Print buttons on the completion record and job aid pages sit on the dark backdrop,
   so they get the safety-gold fill instead of navy-on-navy. */
main .no-print.page-top .actions > button:not(.secondary),
main .no-print.page-top .actions > .btn:not(.secondary) { background: #F6C445; border-color: #F6C445; color: #16202C; }

/* 2026-10-10: Diagrams in lessons fit on one screen, so the text under them stays in view while the narrator reads it.
   (Photos keep their own float rule above.) */
.lesson .content figure:not(.photo) { text-align: center; }
.lesson .content figure:not(.photo) img { width: auto; max-width: min(100%, 560px); max-height: 38vh; display: block; margin: 0 auto; }
.lesson .content figure:not(.photo) figcaption { text-align: left; }
/* A sample label shown beside the text that explains it (Arc Flash, "Reading a label"). */
.lesson .content figure.photo.label-side { width: 46%; }
.lesson .content figure.photo.label-side img { border: 1px solid var(--line); background: #fff; }
@media (max-width: 700px) { .lesson .content figure.photo.label-side { width: 100%; } }

.lesson .content figure a.zoom { display: block; cursor: zoom-in; }

/* 2026-10-10: instructor photo beside "About your instructor" on the home page (stacks on phones). */
.about-me { display: flex; gap: 20px; align-items: flex-start; }
.about-me > div > p:first-child { margin-top: 0; }
.about-photo { flex: none; width: 115px; height: auto; border-radius: 12px; border: 3px solid #F6C445; }
@media (max-width: 560px) { .about-me { flex-direction: column; gap: 14px; } .about-photo { width: 110px; } }

/* 2026-10-10: lesson photos a little smaller (BC), and tall photos don't run long. */
.lesson .content figure.photo:not(.label-side) { width: 36%; }
.lesson .content figure.photo:not(.label-side) img { max-height: 300px; object-fit: cover; }
@media (max-width: 700px) { .lesson .content figure.photo:not(.label-side) { width: 100%; } .lesson .content figure.photo:not(.label-side) img { max-height: 260px; } }

/* 2026-10-10: a "Coming soon" button where "View course" would be on cards for courses not yet open. */
.btn.btn-soon, .btn.btn-soon:hover { background: var(--line); border-color: var(--line); color: var(--ink); cursor: default; filter: none; text-decoration: none; opacity: .85; }

/* 2026-10-11: course cards without descriptions, about 40% shorter; centered one-line button */
.class-card .nowrap { white-space: nowrap; }
.cards { grid-auto-rows: auto; }
.class-card .card-art { height: 60px; margin-bottom: 8px; }
.class-card .update-flag { padding: 4px 10px; margin-bottom: 6px; }
.class-card .card-time { margin: 0 0 8px; }
.class-card .card-action { margin-top: auto; text-align: center; }
.class-card .card-action .btn { white-space: nowrap; font-size: 13px; padding: 7px 12px; }
/* 2026-10-11: button pinned to the bottom of every card, centered */
.cards > .card.class-card { display: flex; flex-direction: column; height: 100%; align-self: stretch; }
.class-card .card-action { margin-top: auto; padding-top: 6px; display: flex; justify-content: center; }
.class-card .card-action:empty { display: none; }
/* 2026-10-11: tighter cards, button text centered */
.class-card .card-art { height: 48px; margin-bottom: 6px; }
.class-card h3 { margin: 2px 0; }
.class-card .meta { margin-bottom: 2px; }
.class-card .card-time { margin: 0 0 4px; }
.class-card .card-action { padding-top: 2px; }
.class-card .card-action .btn { width: 100%; display: flex; justify-content: center; align-items: center; text-align: center; padding: 6px 8px; }
.class-card .card-action .soon-flag { width: 100%; margin: 0; padding: 6px 8px; font-size: 13px; }
/* 2026-10-11: cards about 15% larger, everything centered */
.wrap:has(> .cards) { max-width: 1500px; }
.card.class-card { text-align: center; padding: 0 16px 16px; }
.class-card .card-art { width: calc(100% + 32px); margin: 0 -16px 8px; height: 56px; }
.class-card .cat { font-size: 12.5px; }
.class-card h3 { font-size: 18.5px; }
.class-card .meta { font-size: 14px; }
.class-card .card-time { justify-content: center; font-size: 16.5px; }
.class-card .card-action .btn, .class-card .card-action .soon-flag { font-size: 15px; padding: 7px 10px; }
.class-card h3 { font-size: 20.5px; line-height: 1.22; }
.nobr { white-space: nowrap; }
/* 2026-10-11: cards scaled to 80% so 100% browser zoom matches the 80% view BC approved */
.wrap:has(> .cards) { max-width: 1200px; }
.cards { gap: 32px; }
@media (max-width: 1200px) { .cards { gap: 26px; } }
@media (max-width: 980px)  { .cards { gap: 22px; } }
@media (max-width: 740px)  { .cards { gap: 16px; } }
.card.class-card { padding: 0 13px 13px; border-radius: 10px; }
.class-card .card-art { width: calc(100% + 26px); margin: 0 -13px 6px; height: 45px; }
.class-card .cat { font-size: 10px; }
.class-card h3 { font-size: 16.5px; line-height: 1.22; margin: 2px 0; }
.class-card .meta { font-size: 11.5px; }
.class-card .card-time { font-size: 13.5px; gap: 5px; }
.class-card .card-time .clock { width: 13px; height: 13px; }
.class-card .card-action .btn, .class-card .card-action .soon-flag { font-size: 12px; padding: 6px 8px; }
.class-card .update-flag { font-size: 12px; }
/* 2026-10-11: reserve two lines for standard references so all cards line up */
.class-card .meta { line-height: 1.35; min-height: 2.7em; }
/* 2026-10-11: course length sits just above the button on every card */
.class-card .card-action { flex-direction: column; align-items: center; }
.class-card .card-action .card-time { margin: 0 0 6px; }
/* 2026-10-11: "Coming soon" label sized exactly like the View Course Description button */
.class-card .card-action .soon-flag { box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 100%;
  border: 2px solid #F6C445; border-radius: 8px; font-size: 12px; font-weight: 700; line-height: inherit; letter-spacing: normal; padding: 6px 8px; margin: 0; }
.class-card .card-action .soon-flag { min-height: 44px; margin-top: 12px; font-family: var(--font); }
/* 2026-10-11: course menu split into Available Now and Coming Soon */
.wrap:has(> .cards) .menu-head { text-align: center; margin: 28px 0 14px; }
.wrap:has(> .cards) .menu-head:first-child { margin-top: 8px; }
.menu-head-soon { margin-top: 48px !important; padding-top: 28px; border-top: 1px solid var(--line); }
.menu-note { text-align: center; margin: -6px 0 18px; }
.cards-soon .class-card { opacity: .88; }
.cards-soon .class-card .card-art { filter: saturate(.75); }
/* 2026-10-11: "You completed this course" box lines up with the top of "Before you begin" */
.launch > div > .notice:first-child { margin-top: 0; margin-bottom: 18px; padding: 20px; }
.launch > div > .notice:first-child > h2:first-child { margin-top: 0; font-size: 19px; }
/* 2026-10-11: after a code is entered, confirm it and draw the eye to the agreement box */
.disclaimer.needs-agree { border-color: #F6C445; box-shadow: 0 0 0 3px rgba(246,196,69,.35); }
.disclaimer .code-ok { margin: 0 0 12px; padding: 9px 12px; border-radius: 8px; background: var(--ok-bg); border: 1px solid var(--ok); font-weight: 700; font-size: 15px; }
.class-card .card-action .mini-links { width: 100%; justify-content: center; gap: 2px 12px; }

/* Course menu pages: widen the top banner and footer to match the card grid, so their left edges line up. */
body:has(.wrap > .cards) .topbar-in,
body:has(.wrap > .cards) .foot-in { max-width: 1200px; }

/* 2026-10-17 (BC): bold white key words inside the navy stat boxes (they were navy on navy). */
.lesson .content .big-two p strong, .lesson .content .big-two li strong, .big-two strong { color: #fff; font-weight: 800; }

/* 2026-10-17 (BC): practice forms. Smaller field titles, and every box in a row lines up even when titles wrap. */
.formex .ll-grid > div { display: flex; flex-direction: column; }
.formex .ll-grid > div > label { font-size: 15px; line-height: 1.35; flex: 1; margin-bottom: 4px; }
.formex .ll-grid > div > input { flex: none; }
.formex input.fx-no, .formex textarea.fx-no { border: 2px solid var(--err); }
.formex input.fx-ok { border: 2px solid var(--ok); }
.fx-mark { font-size: 14px; margin: 4px 0 8px; }
.fx-mark.ok { color: var(--ok); }
.fx-mark.no { color: var(--err); font-weight: 700; }

/* 2026-10-17 (BC): a form's name sits above its picture, its description below. */
.lesson .content figure:not(.photo) figcaption.form-name { text-align: center; margin: 0 0 6px; }
.lesson .content figure .form-desc { font-size: 15px; margin: 6px 0 0; text-align: left; }

/* 2026-10-17 (BC): course title on top of the navy lesson band. */
.lesson-band .band-course { display: block; color: var(--gold); font-weight: 800; font-size: 18px; line-height: 1.3; letter-spacing: .01em; margin-bottom: 6px; }

/* 2026-10-17 (BC): lightbox for diagrams and forms. The page (and its narration) stays put underneath. */
.lesson .content figure a.zoom { position: relative; display: inline-block; }
.zoom-hint { position: absolute; right: 8px; bottom: 8px; background: rgba(27,53,80,.88); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 99px; pointer-events: none; }
html.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(10,18,30,.92); display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lb-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: #fff; flex: none; }
.lb-cap { flex: 1; font-size: 15px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-bar button { padding: 8px 14px; font-size: 15px; }
.lb-close { background: var(--gold); color: #1B3550; border-color: var(--gold); font-weight: 800; }
.lb-stage { flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 8px 14px 18px; touch-action: pan-x pan-y pinch-zoom; -webkit-overflow-scrolling: touch; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 90px); width: auto; height: auto; background: #fff; border-radius: 6px; cursor: zoom-in; }
.lightbox.full .lb-stage { align-items: flex-start; justify-content: flex-start; }
.lightbox.full .lb-stage img { max-width: none; max-height: none; cursor: zoom-out; }
@media (max-width: 560px) { .lb-size { display: none; } .lb-cap { font-size: 13px; } }

/* "Spot the hazard" photo exercise (2026-10-18) */
.spot-fig { margin: 0 0 8px; }
.spot-stage { position: relative; display: inline-block; max-width: 100%; cursor: crosshair; line-height: 0; -webkit-user-select: none; user-select: none; }
.spot-stage img { display: block; max-width: 100%; max-height: 80vh; width: auto; height: auto; border-radius: 8px; }
.spot-fig .credit { font-size: 12px; color: var(--muted); margin-top: 4px; }
.spot-mark { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font: 700 16px/1 var(--font); color: #fff; background: #B3261E; border: 3px solid #fff; box-shadow: 0 0 0 2px #B3261E, 0 2px 8px rgba(0,0,0,.55); pointer-events: none; }
.spot-mark.shown { background: #1F5C8A; box-shadow: 0 0 0 2px #1F5C8A, 0 2px 8px rgba(0,0,0,.55); }
.spot-miss { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; border: 3px dashed #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.6); pointer-events: none; animation: spotfade .9s ease-out forwards; }
@keyframes spotfade { from { opacity: 1; } to { opacity: 0; transform: translate(-50%, -50%) scale(1.6); } }
.spot-count { font-weight: 700; color: var(--blue-ink); margin-bottom: 8px; }
.spot-msg:empty { display: none; }
.spot-list { padding-left: 1.6em; }
.spot-list li { margin-bottom: 8px; }
.spot-list li::marker { font-weight: 700; color: #B3261E; }
.spot-list li.shown::marker { color: var(--blue-ink); }

/* 2026-10-18 (BC): balanced course menu. Cards keep one width, and a short last row is centered under the row above. */
.cards { --cols: 5; --gap: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.cards > .card.class-card { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); height: auto; min-width: 0; }
@media (max-width: 1200px) { .cards { --cols: 4; --gap: 26px; } }
@media (max-width: 980px)  { .cards { --cols: 3; --gap: 22px; } }
@media (max-width: 740px)  { .cards { --cols: 2; --gap: 16px; } }
@media (max-width: 480px)  { .cards { --cols: 1; } }
/* Section headings centered with a short trim rule, and more breathing room between the two sections */
.wrap:has(> .cards) .menu-head::after { content: ""; display: block; width: 56px; height: 3px; border-radius: 2px; background: var(--blue); margin: 8px auto 0; }
.menu-head-soon { margin-top: 64px !important; padding-top: 36px; }

/* 2026-10-18 (BC): college subdomains. "Register with ..." link under the home page buttons, and the footer credit. */
.hero-reg { margin: 14px 0 0; font-weight: 600; }
.hero-reg a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.powered-by { opacity: .85; }
fieldset.college-site { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 6px; margin: 12px 0; }
fieldset.college-site legend { font-weight: 700; padding: 0 6px; }

/* 2026-10-18 (BC): college subdomains. Site name in bold white, "Powered by BrightCrew Safety" in smaller white under it. */
.wordmark .wm-name { color: #fff; font-weight: 800; }
.wordmark .wm-powered { color: #fff; font-size: 14px; font-weight: 400; opacity: 1; }
@media (max-width: 560px) { .wordmark .wm-powered { font-size: 13px; } }

/* 2026-10-18 (BC): college addresses. Hero text uses the full width; a smaller, centered BrightCrew logo sits below "About your instructor". */
.hero-college .hero-grid { grid-template-columns: 1fr; }
.hero-college .hero-grid > div { max-width: 760px; }
section.band.powered-logo { padding: 16px 0 36px; }
.powered-logo .wrap { display: flex; justify-content: center; }
.powered-logo img { width: 200px; height: auto; display: block; }
@media (max-width: 560px) { .powered-logo img { width: 160px; } }

/* 2026-10-18 (BC): college addresses. Tagline, description, buttons, and Register link centered in the banner. */
.hero-college .hero-grid > div { max-width: none; text-align: center; }
.hero-college .hero-lines, .hero-college .lead { margin-left: auto; margin-right: auto; }
.hero-college .lead { max-width: 980px; }
.hero-college .actions { justify-content: center; }

/* 2026-10-18 (BC): "Choose your college" box on the main site's home page. */
.chooser { max-width: 640px; margin: 0 auto; padding: 22px 24px; text-align: center; background: var(--surface); color: var(--ink); border: 2px solid var(--blue); border-radius: var(--radius); }
.chooser label { display: block; font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.chooser-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chooser select { flex: 1 1 260px; max-width: 380px; font-size: 17px; margin: 0; }
.chooser button { margin: 0; min-width: 90px; }
section.band.chooser-band { padding-top: 28px; }

/* 2026-10-18 (BC): site name and "Powered by" line start at the left edge of the Home button below them (wider screens). */
@media (min-width: 561px) { .brand-row .wordmark { margin-left: -12px; } }
/* 2026-10-18 (BC): About your instructor. Photo a little larger, with the text wrapping beside it and then underneath. */
.about-me { display: flow-root; }
.about-me .about-photo { float: left; width: 140px; margin: 4px 22px 10px 0; }
@media (max-width: 560px) { .about-me .about-photo { width: 110px; margin: 2px 16px 8px 0; } }

/* 2026-10-18 (BC): "Go" button changes color when tapped or clicked: navy turns brass. */
.chooser button { transition: background-color .12s, border-color .12s, color .12s; -webkit-tap-highlight-color: transparent; }
.chooser button:hover { background: var(--blue-ink); border-color: var(--blue-ink); }
.chooser button:active, .chooser button.pressed { background: var(--blue); border-color: var(--blue); color: #1B3550; transform: scale(.97); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chooser button:active, :root:not([data-theme="light"]) .chooser button.pressed { background: #FFFFFF; border-color: #FFFFFF; color: #1B3550; } }

/* 2026-10-18 (BC): banner description in two thoughts; the second stays on one line on college addresses (wide screens). */
@media (min-width: 900px) { .hero-college .lead .lead-2 { white-space: nowrap; } }

/* 2026-10-18 (BC): quiet line for employers under the "Choose your college" box (main site only). */
.group-line { text-align: center; font-size: 15px; line-height: 1.5; margin: 14px auto 0; max-width: 640px; color: #E1ECF5; }
.group-line a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* 2026-10-18 (BC): the chooser box keeps dark text on its light card (page text inside main is white for the blue background). */
main .chooser { background: var(--surface); color: var(--ink0); --ink: var(--ink0); }
main .chooser label { color: var(--ink0); }

/* 2026-10-18 (BC): "Browse Courses" on the home page glides down to the course cards (off for people who turn off motion). */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 2026-10-18 (BC): no single word left hanging on the last line of a paragraph in the instructor box (newer browsers). */
.about-me p { text-wrap: pretty; }

/* 2026-10-18 (BC): the one-line "Have a question" sentence on college pages stays on one line on wider screens. */
@media (min-width: 900px) { .about-me .ask-lines { white-space: nowrap; } }

/* 2026-10-18 (BC): instructor box, take 2. The photo is sized to sit beside the first paragraph only;
   the credentials paragraph starts below it at full width, and the "Have a question" line is the box's footer row. */
.about-me .about-photo { width: 104px; margin: 4px 20px 6px 0; }
.about-me > div > p:nth-child(2) { clear: left; }
.about-me .ask-lines { clear: left; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .about-me .about-photo { width: 96px; margin: 2px 14px 6px 0; } }

/* 2026-10-18 (BC): instructor box, byline layout (option C). Round photo with name and roles, bio full width below,
   and the question line in a light blue strip at the bottom. */
.about-byline { display: flex; align-items: center; gap: 22px; margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.about-byline img { flex: none; width: 124px; height: 124px; border-radius: 50%; border: 3px solid #F6C445; object-fit: cover; }
.about-byline p { margin: 0; }
.about-name { font-weight: 800; font-size: 21px; line-height: 1.25; color: var(--ink0); }
.about-role { font-size: 15.5px; color: var(--muted0); margin-top: 4px !important; }
.about-body p { text-wrap: pretty; }
.about-body p:first-child { margin-top: 0; }
.about-ask { margin: 16px 0 0 !important; padding: 12px 16px; background: var(--tint); border-radius: 8px; }
@media (max-width: 560px) {
  .about-byline { gap: 14px; }
  .about-byline img { width: 92px; height: 92px; }
  .about-name { font-size: 18px; }
  .about-role { font-size: 14px; }
}

/* 2026-10-18 (BC): banner description lines are balanced, so a narrow column never leaves one or two words alone on a line. */
.hero .lead { text-wrap: balance; }
.hero .lead .lead-2 { display: block; text-wrap: balance; }

/* 2026-10-18 (BC): home page section headings centered, with the same short trim rule as "Coming Soon". */
.home-head { text-align: center; }
.home-head::after { content: ""; display: block; width: 56px; height: 3px; border-radius: 2px; background: var(--blue); margin: 8px auto 0; }

/* 2026-10-18 (BC): home page banner is solid, without angled panels on the right (they clashed with the
   angled panels in the page background). Applies on every address, including college subdomains. */
.hero::before, .hero::after { display: none; }

/* 2026-10-18 (BC): college logo a bit larger and centered top to bottom in the header ribbon (wider screens).
   On narrow windows and phones it stays on its own line above the site name. */
@media (min-width: 761px) {
  .topbar-in { position: relative; }
  .brand-row .college-logo { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); margin: 0; }
  .college-logo img { height: 46px; max-width: 360px; }
}

/* 2026-10-18 (BC): "Need an access code?" on a college's home page: a Register button and/or a call-to-register line. */
.hero-register { margin: 22px 0 0; }
.hero-reg-q { margin: 0 0 10px; font-weight: 700; font-size: 17px; }
.btn.btn-register { background: var(--blue); border-color: var(--blue); color: #16202C; font-weight: 800; }
.hero-reg-call { margin: 10px 0 0; font-size: 16px; color: #E1ECF5; }
.hero-reg-call a { color: #fff; font-weight: 700; white-space: nowrap; }

/* 2026-10-18 (BC): private "For Colleges" preview page. */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .benefits { grid-template-columns: 1fr; } }
main .benefit { background: var(--surface); color: var(--ink0); border: 1px solid var(--line); border-top: 5px solid var(--blue); border-radius: var(--radius); padding: 18px 20px; }
main .benefit h3 { margin: 0 0 6px; font-size: 18px; color: var(--ink0); }
main .benefit p { margin: 0; color: var(--muted0); line-height: 1.55; text-wrap: pretty; }
.steps3.steps4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .steps3.steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps3.steps4 { grid-template-columns: 1fr; } }
.steps3 > li h3 { margin: 0 0 6px; }
.steps3 > li p { margin: 0; }
.pv-note { text-align: center; margin: 0 0 18px; }
.pv-private { margin-top: 18px; }
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
main .faq details { background: var(--surface); color: var(--ink0); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; }
main .faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style-position: outside; }
main .faq details p { margin: 0 0 14px; color: var(--muted0); }
main .faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.pv-cta { text-align: center; }
.pv-cta h2 { margin: 0 0 14px; }
.pv-signout { margin-top: 18px; font-size: 15px; }

.hero-college .hero-lines { max-width: none; }
main .faq summary { list-style: none; position: relative; padding-right: 34px; }
main .faq summary::-webkit-details-marker { display: none; }
main .faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 700; color: var(--blue-ink0); line-height: 1; }
main .faq details[open] summary::after { content: "\2212"; }

/* 2026-10-18 (BC): Register Now moved into the banner's button row; the phone line sits just under the row. */
.hero-actions-note, .hero .hero-reg-call { margin-top: 14px; }

/* 2026-10-18 (BC): the group training line under the college box, larger. */
.group-line { font-size: 18px; line-height: 1.5; margin-top: 18px; }
@media (max-width: 560px) { .group-line { font-size: 17px; } }

/* 2026-10-18 (BC): smaller tagline and a shorter navy banner, so "How it works" shows without scrolling on a laptop. */
.hero { padding: 34px 0 38px; }
.hero h1, .hero .hero-lines { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.18; margin-bottom: 14px; }
.hero .lead { margin-bottom: 18px; }
.hero-logo { max-width: 290px; }
section.band.chooser-band { padding-top: 22px; }
@media (max-width: 860px) { .hero-logo { max-width: 200px; } }
/* 2026-10-18 (BC): tighter spacing from the banner down to "How it works". */
.hero { padding: 28px 0 30px; }
.hero .lead { font-size: 17.5px; }
section.band.chooser-band { padding-top: 16px; padding-bottom: 0; }
.chooser { padding: 16px 22px; }
.chooser label { margin-bottom: 10px; }
.group-line { margin-top: 12px; }
section.band:has(> .wrap > .home-head) { padding-top: 24px; }
.home-head { margin-top: 0; }

/* 2026-10-18 (BC): site name and the word "Home" share the same left edge (replaces the earlier -12px shift). */
@media (min-width: 561px) { .brand-row .wordmark { margin-left: 0; } }

/* 2026-10-18 (BC): private preview note centered in its box. */
.pv-private { text-align: center; }

/* 2026-10-18 (BC): preview cards say the job aid comes with completion (no link). */
.class-card .mini-links .jobaid-note { font-weight: 600; color: var(--muted0); font-size: 12px; }

/* 2026-10-18 (BC): job aid teaser for preview visitors. Scrambled text past the first few lines is blurred. */
.ja-teaser { position: relative; }
.ja-teaser .jobaid { max-height: 760px; overflow: hidden; }
.ja-x { filter: blur(4px); -webkit-user-select: none; user-select: none; pointer-events: none; }
.ja-teaser-note { position: absolute; left: 0; right: 0; bottom: 0; padding: 120px 20px 28px; text-align: center;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 70%); border-radius: 0 0 var(--radius) var(--radius); }
.ja-teaser-note p { margin: 0; color: #16202C; font-size: 18px; }

/* 2026-10-18 (BC): preview lessons. Next is greyed out on the end-of-preview page, and later modules in the outline are greyed, not links. */
.pager .btn.btn-off { background: var(--line); border-color: var(--line); color: var(--grey-dk); cursor: not-allowed; filter: none; text-decoration: none; pointer-events: none; }
.outline .modhead.pv-locked { color: var(--grey-dk); }
.outline ol.pv-locked .ol-locked { color: var(--grey-dk); opacity: .8; cursor: not-allowed; }
.pager > .btn-off { order: 2; }
.outline ol.pv-locked .ol-locked { display: flex; gap: 8px; padding: 6px 8px; }

/* 2026-10-18 (BC): admin note on the preview page, with the View as a visitor switch. */
.pv-admin { text-align: center; margin-top: 18px; }

/* 2026-10-19 (BC): BrightCrew logo in the right side of the header ribbon on the private preview page,
   in the same spot a college's logo sits on its subdomain. The stacked shield logo needs more height than a wide college logo. */
.college-logo.brand-logo img { height: 56px; width: auto; max-width: none; }
@media (min-width: 761px) { .college-logo.brand-logo img { height: 80px; } }

/* 2026-10-19 (BC): the two banner buttons on the preview page ("Try the Courses" and "Got Questions?") are the same width,
   set by whichever label is longer. On narrow phones they stack, both full width. */
.actions.actions-even { display: grid; grid-template-columns: 1fr 1fr; justify-content: center; width: fit-content; margin-left: auto; margin-right: auto; }
.actions.actions-even .btn { width: 100%; }
@media (max-width: 420px) { .actions.actions-even { grid-template-columns: 1fr; width: 100%; } }

/* Admin > Quarantine: message text shown as plain, inert text */
.quarantine-reasons { color: var(--err); }
pre.email { white-space: pre-wrap; overflow-wrap: anywhere; }
/* 2026-11-10 (BC): free Preview button on every course card, and the preview's cut-off and teaser pages */
.class-card .card-action .btn-preview { margin-top: 6px; background: transparent; color: var(--blue-ink); border: 2px solid currentColor; }
.class-card .card-action .btn-preview:hover { background: var(--tint); }
.sample-tag { display: inline-block; background: var(--warn-bg); color: var(--ink); border-radius: 6px; padding: 2px 10px; font-size: 14px; font-weight: 700; margin: 0 0 12px; }
.lesson .pv-blur img { filter: blur(12px); }
.lesson .pv-blur { overflow: hidden; }
.pv-ph { background: var(--line); border-radius: 8px; height: 160px; margin: 12px 0; filter: blur(2px); }
.sample-cta { margin: 18px 0 8px; }

/* 2026-11-11 (BC): course menu filter buttons */
.course-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 4px 0 28px; }
.course-filter .chip { font: inherit; font-size: 15px; font-weight: 700; padding: 9px 16px; border-radius: 999px; border: 2px solid var(--navy, #1B3550); background: #fff; color: var(--navy, #1B3550); cursor: pointer; }
.course-filter .chip:hover { background: #EAF1F8; }
.course-filter .chip[aria-pressed="true"] { background: #F6C445; border-color: #F6C445; color: #16202C; }
.course-filter .chip:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.class-card[hidden], .cards[hidden], .filter-empty[hidden], .menu-head[hidden], .menu-note[hidden] { display: none !important; }
.filter-empty { text-align: center; margin: 8px 0 0; color: #fff; font-weight: 600; }
@media (max-width: 600px) { .course-filter .chip { font-size: 14px; padding: 8px 12px; } }

/* 2026-11-11: red link-style button (Admin > Codes > Delete) */
a.btn.danger { background: var(--err); border-color: var(--err); color: #fff; }

/* 2026-11-16: sample SDS on the industrial hygiene SDS exercise */
.sds-sample { margin: 10px 0 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface, #fff); }
.sds-sample summary { font-weight: 700; }
.sds-sample table th { width: 30%; text-align: left; vertical-align: top; }

/* 2026-11-17 (BC): course menu in sections by topic */
.course-group { margin: 0 0 44px; scroll-margin-top: 90px; }
.course-group .group-head { text-align: center; margin: 8px 0 4px; }
.course-group .group-head::after { content: ""; display: block; width: 56px; height: 3px; border-radius: 2px; background: var(--blue); margin: 8px auto 0; }
.course-group .group-count { text-align: center; margin: 0 0 16px; font-size: 15px; }
.course-group + .course-group { padding-top: 32px; border-top: 1px solid var(--line); }
.class-card.is-soon { opacity: .88; }
.class-card.is-soon .card-art { filter: saturate(.75); }
.course-menu > .menu-note { text-align: center; }

/* 2026-11-18 (BC): "All topics" view of the course menu (all cards together, then Coming Soon). */
.menu-all[hidden], .course-group[hidden] { display: none !important; }
.menu-all .menu-head { text-align: center; margin: 28px 0 14px; }
.menu-all .menu-head::after { content: ""; display: block; width: 56px; height: 3px; border-radius: 2px; background: var(--blue); margin: 8px auto 0; }
.menu-all .menu-head-soon { margin-top: 64px !important; padding-top: 36px; border-top: 1px solid var(--line); }
.menu-all .menu-note { text-align: center; }
.course-filter { scroll-margin-top: 90px; }
.menu-groups .course-group { padding-top: 0 !important; border-top: 0 !important; }

/* 2026-11-18 (BC): keep plenty of room under a topic with only a few courses, so the
   "About your instructor" box doesn't jump up right beneath them. */
.menu-groups .course-group { min-height: max(85vh, 900px); margin-bottom: 0; }
@media (max-width: 700px) { .menu-groups .course-group { min-height: 85vh; } }

/* 2026-11-18 (BC): BrightCrew logo (navy and gold print version) at the top of the completion record */
.record-logo { display: block; width: 120px; height: auto; margin: 0 auto 14px; }

/* 2026-11-18 (BC): completion record laid out like a certificate, printed on letter paper in landscape.
   It uses its own named page ("cert") so the job aid's portrait print rule can't override it. */
@page cert { size: letter landscape; margin: 0.5in; }
body.cert-page .record { position: relative; max-width: 900px; border: 6px double #1B3550; border-radius: 4px; padding: 44px 64px; }
body.cert-page .record::before { content: ""; position: absolute; inset: 7px; border: 1.5px solid #E8B43A; border-radius: 2px; pointer-events: none; }
body.cert-page .record p { margin: 6px 0; }
@media (min-width: 760px) {
  body.cert-page .record { aspect-ratio: 11 / 8.5; display: flex; flex-direction: column; justify-content: center; align-items: center; }
}
@media print {
  html:has(body.cert-page), body.cert-page, body.cert-page main, body.cert-page .wrap, body.cert-page .record { page: cert; }
  body.cert-page main, body.cert-page .wrap { max-width: none; margin: 0; padding: 0; }
  body.cert-page .record { box-sizing: border-box; width: 100%; height: 7.3in; max-width: none; margin: 0; aspect-ratio: auto;
    display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0.4in 0.85in;
    break-inside: avoid; page-break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.cert-page .record-logo { width: 1.3in; margin-bottom: 0.1in; }
  body.cert-page .record h2 { font-size: 30pt; margin-bottom: 0.08in; }
  body.cert-page .record .who { font-size: 28pt; }
  body.cert-page .record p { font-size: 13pt; }
  body.cert-page .record .small { font-size: 9pt; }
}

/* 2026-11-18 (BC): keep a name together on one line (How it works, step 1). Very narrow phones may still wrap it. */
.steps3 .nowrap { white-space: nowrap; }
@media (max-width: 340px) { .steps3 .nowrap { white-space: normal; } }

/* Course survey (2026-11-20) */
.survey .survey-key { font-weight: 600; }
.survey-q { margin: 0 0 22px; }
.survey-q legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.survey-q textarea { width: 100%; margin-top: 6px; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input, .scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 38px; line-height: 1; color: var(--grey-lt); cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.stars label:hover, .stars label:hover ~ label,
.stars input:checked ~ label { color: #C9A15B; }
.stars input:focus-visible + label, .scale input:focus-visible + label { outline: 3px solid var(--blue-ink); outline-offset: 2px; }
.scale { display: flex; flex-wrap: wrap; gap: 6px; }
.scale label { min-width: 42px; min-height: 44px; padding: 6px 9px; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--field); border-radius: 8px; cursor: pointer; font-weight: 700; }
.scale input:checked + label { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.scale-ends { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); max-width: 528px; margin-top: 4px; }
.survey .choice { margin: 4px 0; }
.field-err { color: var(--err); font-weight: 600; margin: 6px 0 0; }
.survey-invite { text-align: left; margin-top: 22px; }
/* admin survey results */
.sv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.sv-avg { font-size: 28px; font-weight: 800; margin: 0; }
.sv-avg .sv-star { color: #C9A15B; }
.sv-bar { display: grid; grid-template-columns: 130px 1fr 40px; gap: 8px; align-items: center; font-size: 14px; margin: 3px 0; }
.sv-track { background: var(--tint); border-radius: 4px; height: 14px; overflow: hidden; }
.sv-fill { background: var(--navy); height: 100%; }
@media (prefers-color-scheme: dark) { .sv-fill { background: #8FC1E8; } }
.sv-comments li { margin-bottom: 10px; }
.sv-grid .h3 { font-size: 19px; margin-top: 0; }

.sv-note { font-size: 15px; font-weight: 400; }
.sv-fill { display: block; width: 0; }
.sv-w5 { width: 5%; }
.sv-w10 { width: 10%; }
.sv-w15 { width: 15%; }
.sv-w20 { width: 20%; }
.sv-w25 { width: 25%; }
.sv-w30 { width: 30%; }
.sv-w35 { width: 35%; }
.sv-w40 { width: 40%; }
.sv-w45 { width: 45%; }
.sv-w50 { width: 50%; }
.sv-w55 { width: 55%; }
.sv-w60 { width: 60%; }
.sv-w65 { width: 65%; }
.sv-w70 { width: 70%; }
.sv-w75 { width: 75%; }
.sv-w80 { width: 80%; }
.sv-w85 { width: 85%; }
.sv-w90 { width: 90%; }
.sv-w95 { width: 95%; }
.sv-w100 { width: 100%; }

/* Exam: skipped-question warning (2026-11-20) */
main .qbox.q-unanswered { border-color: var(--err); border-left-color: var(--err); box-shadow: 0 0 0 2px var(--err); }
.q-missing { color: var(--err); font-weight: 700; margin: 4px 0 0; }
.q-missing::before { content: "\26A0\FE0E  "; }
.exam-submit-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.exam-submit-count { font-weight: 600; }
.qbox .q-missing, .qbox .q-missing + * { clear: both; }

/* Course cards: Details and Preview side by side, Begin Course underneath (2026-11-20) */
.class-card .card-action { flex-direction: column; gap: 6px; }
.class-card .card-btn-row { display: flex; gap: 6px; width: 100%; align-items: stretch; }
.class-card .card-btn-row .btn { flex: 1; font-size: 14px; padding: 5px 6px; min-height: 36px; margin: 0; width: auto; }
.class-card .card-action .btn-begin { margin: 0; min-height: 40px; }
.code-nocode { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Code page: centered text and buttons (2026-11-20) */
.code-card { text-align: center; }
.code-card label { text-align: center; }
.code-card .notice { text-align: left; }
