/* PHW courses. Palette and type copied from the main PHW site's design system (own copy, not linked).
   Colour blind rule: states are told apart by lightness, shape and words, never by hue alone. */
:root {
  --ground:#f4f7fa; --paper:#ffffff; --ink:#0d1b2a; --muted:#5a6b7d; --line:#dfe6ee; --line-strong:#76869a;
  --blue:#1170b8; --blue-dark:#0b568f; --ribbon-light:#8ec8f0; --ribbon-deep:#3b4fa3; --navy:#0d1b2a;
  --pale:#e3f1fb;
}
*,*::before,*::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; min-width:320px; background:var(--ground); color:var(--ink); font:400 17px/1.6 system-ui,-apple-system,"Segoe UI",Arial,sans-serif; -webkit-font-smoothing:antialiased; overflow-wrap:anywhere; }
body:not(.doc) { min-height:100vh; min-height:100dvh; display:flex; flex-direction:column; }
img,svg { max-width:100%; }
img { display:block; height:auto; }
a { color:var(--blue-dark); text-underline-offset:3px; }
a:hover { color:var(--blue); }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,textarea:focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
h1,h2,h3 { font-family:Arial,"Helvetica Neue",system-ui,sans-serif; margin:0 0 12px; line-height:1.18; letter-spacing:-.02em; text-wrap:balance; }
h1 { font-size:clamp(30px,8vw,52px); font-weight:750; letter-spacing:-.03em; }
h2 { font-size:clamp(24px,5.6vw,34px); font-weight:750; }
h3 { font-size:20px; font-weight:750; }
p { margin:0 0 14px; }
p:last-child { margin-bottom:0; }
.muted { color:var(--muted); }
.wrap { width:min(100% - 32px,1040px); margin-inline:auto; }
.narrow { width:min(100% - 32px,680px); margin-inline:auto; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
[hidden] { display:none !important; }

/* header and footer */
.site-head { background:var(--paper); border-bottom:1px solid var(--line); }
.site-head .wrap { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:68px; padding-block:8px; }
.site-head .logo img { width:176px; }
.site-head nav { display:flex; align-items:center; gap:6px; }
.site-head nav a { white-space:nowrap; display:inline-flex; align-items:center; min-height:48px; padding:0 12px; border-radius:8px; color:var(--ink); font-weight:700; text-decoration:none; font-size:16px; }
.site-head nav a:hover { background:var(--ground); }
.site-head nav a.basket-link { border:2px solid var(--navy); }
.basket-count { display:inline-block; min-width:1.6em; margin-left:8px; padding:0 6px; border-radius:99px; background:var(--navy); color:#fff; text-align:center; font-size:14px; line-height:1.6em; }
.basket-count[data-n="0"] { background:var(--paper); color:var(--navy); box-shadow:inset 0 0 0 2px var(--navy); }
.site-foot { margin-top:auto; border-top:64px solid var(--ground); padding:28px 0 40px; background:var(--navy); color:#fff; font-size:15px; }
.site-foot .seller { color:#fff; }
.site-foot a { color:#fff; }
.site-foot .wrap { display:grid; gap:12px; }
.site-foot .links { display:flex; flex-wrap:wrap; gap:6px 20px; }
.site-foot .links a { display:inline-flex; min-height:44px; align-items:center; }
.site-foot p { color:#c9d6e3; }

/* hero */
.hero { position:relative; background:var(--navy); color:#fff; border-bottom:5px solid var(--blue); padding:40px 0 44px; }
.hero::before { content:""; position:absolute; top:0; left:max(16px,calc((100% - 1040px)/2)); width:105px; height:4px; background:linear-gradient(90deg,var(--ribbon-light),var(--ribbon-deep)); }
.hero h1 { color:#fff; max-width:22ch; }
.hero .lede { max-width:62ch; font-size:19px; color:#fff; margin-bottom:0; }
.eyebrow { display:block; margin-bottom:14px; color:var(--ribbon-light); font-size:13px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.hero .meta { margin-top:18px; color:#d6e3ef; font-size:16px; }
.hero .meta strong { color:#fff; }
.hero a { color:var(--ribbon-light); }
.hero a.btn { color:var(--navy); }
.btn.light { background:#fff; border-color:#fff; color:var(--navy); }
.btn.light:hover { background:var(--pale); border-color:var(--pale); color:var(--navy); }
.hero-price { display:none; }
.hero .sub { max-width:52ch; margin:0 0 6px; font-size:19px; font-weight:700; color:#fff; }
.sales-hero h1 { font-size:clamp(28px,7vw,42px); max-width:30ch; }
.sales-hero .buybox { margin-top:18px; }
.sales-hero .lede { margin-top:20px; font-size:18px; }
@media (min-width:900px) {
  .hero-grid { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:48px; align-items:center; }
  .hero-price { display:block; padding:26px; border:2px solid var(--ribbon-light); border-radius:12px; background:rgba(255,255,255,.06); }
  .hero-price b { display:block; font:800 52px/1 Arial,sans-serif; }
  .hero-price span { display:block; margin:6px 0 14px; color:var(--ribbon-light); font-weight:700; }
  .hero-price p { margin:0; color:#d6e3ef; font-size:17px; }
  .sales-hero .hero-buy { display:none; }
  .sales-hero h1 { font-size:clamp(30px,4vw,44px); }
}

/* buttons */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:52px; padding:12px 22px; border:2px solid var(--blue); border-radius:8px; background:var(--blue); color:#fff; font:700 17px/1.2 system-ui,-apple-system,"Segoe UI",Arial,sans-serif; text-align:center; text-decoration:none; cursor:pointer; }
.btn:hover { background:var(--blue-dark); border-color:var(--blue-dark); color:#fff; }
.btn.secondary { background:var(--paper); color:var(--navy); border-color:var(--navy); }
.btn.secondary:hover { background:var(--ground); color:var(--navy); }
.btn.dark { background:var(--navy); border-color:var(--navy); }
.btn.block { display:flex; width:100%; }
.btn.small { min-height:48px; padding:8px 16px; font-size:16px; }
.btn[disabled] { background:#c9d3de; border-color:#c9d3de; color:#3c4a59; cursor:not-allowed; }
.row { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }

/* sections and cards */
.section { padding:36px 0 4px; }
.section > .wrap > h2 { margin-bottom:16px; }
.card { background:var(--paper); border:1px solid var(--line); border-radius:10px; padding:20px; }
.card.pad-lg { padding:24px; }
.grid { display:grid; gap:14px; grid-template-columns:1fr; }
@media (min-width:720px) { .grid.two { grid-template-columns:1fr 1fr; } .grid.three { grid-template-columns:repeat(3,1fr); } }
.course-card { display:flex; flex-direction:column; gap:8px; text-decoration:none; color:var(--ink); border:1px solid var(--line-strong); }
.course-card:hover { border-color:var(--blue); color:var(--ink); box-shadow:0 6px 20px rgba(13,27,42,.1); }
.course-card h3 { margin:0; }
.course-card p { color:var(--muted); margin:0; font-size:16px; }
.course-card .foot { margin-top:auto; padding-top:10px; display:flex; justify-content:space-between; gap:10px; font-weight:700; font-size:16px; }
.course-card .choose { display:flex; align-items:center; justify-content:space-between; margin-top:2px; padding-top:10px; border-top:1px solid var(--line); color:var(--blue-dark); font-weight:700; font-size:16px; }
.course-card .choose::after { content:"\2192"; font-size:20px; }
.course-card:hover .choose { color:var(--blue); }
@media (min-width:720px) { .course-card h3 { min-height:2.4em; } }
.home-stack { display:flex; flex-direction:column; }
.home-stack .how { order:-1; }
@media (min-width:900px) { .home-stack .how { order:99; } }
.pill { display:inline-block; padding:2px 10px; border:2px solid var(--navy); border-radius:99px; font-size:14px; font-weight:700; }
.tick-list,.plain-list { list-style:none; margin:0 0 6px; padding:0; }
.tick-list li,.plain-list li { position:relative; padding-left:26px; margin-bottom:9px; }
.tick-list li::before { content:""; position:absolute; left:2px; top:.62em; width:8px; height:8px; border:2px solid var(--blue); transform:rotate(45deg); }
.plain-list li::before { content:""; position:absolute; left:6px; top:.7em; width:6px; height:6px; border-radius:50%; background:var(--navy); }
.steps { counter-reset:s; list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.steps li { counter-increment:s; position:relative; padding:14px 16px 14px 62px; background:var(--paper); border:1px solid var(--line); border-radius:10px; }
.steps li::before { content:counter(s); position:absolute; left:14px; top:12px; width:36px; height:36px; border-radius:50%; background:var(--navy); color:#fff; font:700 18px/36px Arial,sans-serif; text-align:center; }
.callout { padding:16px 18px; background:var(--pale); border-left:8px solid var(--navy); border-radius:4px 10px 10px 4px; color:var(--ink); }
.callout strong { color:var(--ink); }
.notice { padding:14px 16px; border:2px solid var(--navy); border-radius:10px; background:var(--paper); }
.notice.error { border-style:dashed; border-width:3px; }
.notice.error::before { content:"Problem: "; font-weight:800; }
.notice.good { background:var(--pale); }

/* sales page */
.buybox { margin-top:24px; padding:18px; background:var(--paper); color:var(--ink); border-radius:10px; max-width:460px; }
.card .buybox { margin-top:0; padding:0; background:none; }
.buybox .price { font:750 30px/1.1 Arial,sans-serif; }
.buybox .price small { font:500 16px/1.4 system-ui,sans-serif; color:var(--muted); }
.buybox .total { margin:6px 0 14px; color:var(--muted); font-size:16px; min-height:1.5em; }
.stepper { display:inline-flex; align-items:stretch; border:2px solid var(--navy); border-radius:8px; overflow:hidden; background:#fff; }
.stepper button { width:52px; border:0; background:var(--ground); color:var(--navy); font:700 26px/1 Arial,sans-serif; cursor:pointer; }
.stepper button:hover { background:var(--pale); }
.stepper input[type=number] { width:72px; min-height:0; padding:0; border:0; border-inline:2px solid var(--navy); text-align:center; font:700 22px/1 Arial,sans-serif; color:var(--ink); -moz-appearance:textfield; border-radius:0; }
.stepper input[type=number]::-webkit-outer-spin-button,.stepper input[type=number]::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.stepper { min-height:52px; }
.added { margin-top:12px; }
.lesson-list { list-style:none; margin:0; padding:0; counter-reset:l; }
.lesson-list li { padding-inline:16px !important; counter-increment:l; display:flex; gap:12px; align-items:baseline; justify-content:space-between; padding:12px 0 12px 0; border-bottom:1px solid var(--line); }
.lesson-list li span:first-child::before { content:counter(l) ". "; font-weight:700; }
.lesson-list .mins { color:var(--muted); white-space:nowrap; font-size:15px; }
.preview { background:var(--paper); border:1px solid var(--line-strong); border-radius:10px; padding:20px; }
.preview .stamp { display:inline-block; margin-bottom:10px; padding:3px 12px; background:var(--navy); color:#fff; border-radius:99px; font-size:14px; font-weight:700; }
details.faq { background:var(--paper); border:1px solid var(--line); border-radius:10px; margin-bottom:10px; }
details.faq summary { cursor:pointer; padding:14px 18px; min-height:52px; font-weight:700; list-style:none; display:flex; justify-content:space-between; gap:12px; align-items:center; }
details.faq summary::after { content:"+"; font:700 24px/1 Arial,sans-serif; }
details.faq[open] summary::after { content:"\2212"; }
details.faq p { padding:0 18px 16px; color:var(--muted); }
.law li a { word-break:break-all; }
.sales { display:block; }
.sales-side { display:none; }
.sales .section:first-child { padding-top:36px; }
details.faq.fold summary { font-size:22px; font-family:Arial,"Helvetica Neue",system-ui,sans-serif; font-weight:750; }
details.faq.fold .fold-body { padding:0 18px 16px; }
.buybar { position:fixed; left:0; right:0; bottom:0; z-index:20; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 16px calc(10px + env(safe-area-inset-bottom)); background:#fff; border-top:1px solid var(--line-strong); }
.buybar[hidden] { display:none !important; }
.buybar span { white-space:nowrap; }
.buybar b { font:750 20px/1 Arial,sans-serif; }
@media (min-width:900px) {
  .sales { display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:40px; align-items:start; }
  .sales-side { display:block; position:sticky; top:16px; margin-top:36px; }
  .sales-side .card { border:2px solid var(--navy); }
  .sales .ready { display:none; }
  .buybar { display:none !important; }
}
@media (max-width:899px) { .sales-main { padding-bottom:70px; } }

/* lesson content (shop preview and learner player) */
.lesson { font-size:19px; line-height:1.65; }
.lesson p { color:var(--ink); margin-bottom:16px; }
.lesson h3.lh { margin:26px 0 8px; font-size:22px; }
.lesson ul { list-style:none; margin:0 0 18px; padding:0; }
.lesson ul li { position:relative; padding-left:26px; margin-bottom:10px; }
.lesson ul li::before { content:""; position:absolute; left:2px; top:.68em; width:8px; height:8px; border:2px solid var(--blue); transform:rotate(45deg); }
.lesson .key { margin:20px 0; padding:16px 18px 16px 20px; background:var(--navy); color:#fff; border-radius:10px; font-weight:700; }
.lesson .key::before { content:"Remember"; display:block; margin-bottom:4px; color:var(--ribbon-light); font:800 13px/1.4 system-ui,sans-serif; letter-spacing:.12em; text-transform:uppercase; }
.lesson figure { margin:20px 0; }
.lesson figure img { width:100%; background:#fff; border:1px solid var(--line); border-radius:8px; }
.check { margin:24px 0; padding:16px; background:var(--paper); border:2px solid var(--navy); border-radius:12px; }
.check .tag { display:inline-block; margin-bottom:8px; padding:1px 10px; background:var(--pale); border:1px solid var(--line-strong); border-radius:99px; font-size:13px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.check .q { font-weight:700; margin-bottom:12px; }
.opts { display:grid; gap:10px; }
.opt { display:flex; gap:12px; align-items:flex-start; width:100%; min-height:56px; padding:12px 14px; border:2px solid var(--line-strong); border-radius:10px; background:#fff; color:var(--ink); font:500 18px/1.4 system-ui,-apple-system,"Segoe UI",Arial,sans-serif; text-align:left; cursor:pointer; }
.opt:hover { border-color:var(--blue); }
.opt .dot { flex:none; width:24px; height:24px; margin-top:1px; border:2px solid var(--navy); border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font:700 15px/1 Arial,sans-serif; }
.opt[aria-pressed="true"] { border-color:var(--navy); background:var(--pale); box-shadow:inset 0 0 0 2px var(--navy); }
.opt[aria-pressed="true"] .dot { background:var(--navy); color:#fff; }
.opt[aria-pressed="true"] .dot::before { content:"\2713"; }
.opt.right { border-color:var(--navy); background:var(--pale); box-shadow:inset 0 0 0 3px var(--navy); }
.opt.right .dot { background:var(--navy); color:#fff; }
.opt.right .dot::before { content:"\2713"; }
.opt.wrong { border-style:dashed; border-width:3px; background:#fff; }
.opt.wrong .dot { border-radius:4px; }
.opt.wrong .dot::before { content:"\2715"; }
.opt[disabled] { cursor:default; }
.feedback { scroll-margin-bottom:190px; margin-top:12px; padding:12px 14px; border-radius:8px; background:var(--ground); border-left:6px solid var(--navy); }
.feedback b { display:block; }

/* forms */
label.f,div.f { display:block; font-weight:700; margin:0 0 6px; font-weight:700; }
.hint { display:block; margin:-2px 0 8px; color:var(--muted); font-size:15px; font-weight:400; }
input[type=text],input[type=email],input[type=password],input[type=number],input[type=date],select { width:100%; min-height:52px; padding:10px 14px; border:2px solid var(--line-strong); border-radius:8px; background:#fff; color:var(--ink); font:400 18px/1.3 system-ui,-apple-system,"Segoe UI",Arial,sans-serif; }
input[readonly] { background:var(--ground); }
.field { margin-bottom:18px; }
.choice { display:flex; gap:12px; align-items:center; min-height:56px; padding:10px 14px; margin-bottom:10px; border:2px solid var(--line-strong); border-radius:10px; background:#fff; cursor:pointer; }
.choice input { width:26px; height:26px; flex:none; accent-color:var(--navy); }
.choice.full { opacity:.7; cursor:not-allowed; }
.choice small { display:block; color:var(--muted); }

/* basket */
.line { display:grid; gap:10px; padding:16px 0; border-bottom:1px solid var(--line); }
.line:last-of-type { border-bottom:0; }
.line .t { font-weight:700; }
.line .row { justify-content:space-between; }
.link-btn { display:inline-flex; align-items:center; background:none; border:0; padding:0 8px; min-height:44px; color:var(--blue-dark); font:600 16px/1 system-ui,sans-serif; text-decoration:underline; cursor:pointer; }
.precontract p { margin-bottom:12px; }
.seller-block { font-weight:700; }
.total-row { display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding-top:12px; border-top:2px solid var(--navy); font:750 24px/1.2 Arial,sans-serif; }

/* order page and learner chips */
.bar { height:14px; border:2px solid var(--navy); border-radius:99px; background:#fff; overflow:hidden; }
.bar > i { display:block; height:100%; background:var(--navy); }
.nums { display:flex; flex-wrap:wrap; gap:6px 18px; margin:8px 0 10px; font-weight:700; }
.nums span b { font:750 22px/1 Arial,sans-serif; }
.sharebox input { margin-bottom:10px; font-size:16px; }
.chip { display:inline-flex; align-items:center; gap:6px; padding:2px 10px; border:2px solid var(--navy); border-radius:99px; font-size:14px; font-weight:700; white-space:nowrap; }
.chip::before { content:""; width:10px; height:10px; box-sizing:border-box; border:2px solid var(--navy); border-radius:50%; }
.chip.passed { background:var(--navy); color:#fff; border-color:var(--navy); }
.chip.passed::before { background:#fff; border-color:#fff; border-radius:2px; transform:rotate(45deg); }
.chip.progress { background:var(--pale); }
.chip.progress::before { background:linear-gradient(90deg,var(--navy) 50%,transparent 50%); }
.chip.open { background:#fff; }
.chip.practised { background:#fff; }
.chip.practised::before { border:0; background:none; content:"\2713"; width:auto; height:auto; font-size:13px; line-height:1; }
.chip.notyet { background:#fff; border-style:dashed; border-width:3px; padding:0 9px; }
.chip.notyet::before { border-radius:2px; content:"\2715"; width:auto; height:auto; border:0; font-size:12px; line-height:1; }
.learner { padding:14px 0; border-bottom:1px solid var(--line); }
.learner:last-child { border-bottom:0; }
.learner .nm { font-weight:750; font-size:18px; }
.lc { display:flex; flex-wrap:wrap; gap:6px 12px; align-items:center; margin-top:6px; font-size:16px; }
.lc .ct { flex:1 1 100%; color:var(--muted); font-size:15px; }
.me-card { margin-bottom:14px; }

/* player */
.player-head { position:sticky; top:0; z-index:5; background:var(--paper); border-bottom:1px solid var(--line); }
.player-head .narrow { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:60px; }
.player-head .btn { flex:none; white-space:nowrap; }
.player-head .crumb { min-width:0; text-align:right; font-weight:700; font-size:15px; color:var(--muted); }
.segs { display:flex; gap:4px; margin:0; padding:0 0 10px; list-style:none; }
.segs li { flex:1; height:10px; border:2px solid var(--navy); border-radius:99px; background:#fff; padding:0; margin:0; }
.segs li.done { background:var(--navy); }
.segs li.now { background:var(--ribbon-light); }
.player-foot { position:sticky; bottom:0; z-index:5; margin-top:28px; padding:12px 0 calc(12px + env(safe-area-inset-bottom)); background:var(--paper); border-top:1px solid var(--line); }
.player-foot .narrow { display:flex; gap:10px; }
.player-foot .btn { flex:1 1 auto; }
.player-foot .btn.secondary { flex:0 0 auto; }
.q-count { font-weight:700; color:var(--muted); margin-bottom:6px; }
.q-text { font:750 24px/1.3 Arial,sans-serif; margin:0 0 18px; }
.result { text-align:center; padding:28px 18px; border:3px solid var(--navy); border-radius:16px; background:#fff; }
.result.pass { background:var(--navy); color:#fff; }
.result .big { font:800 44px/1.1 Arial,sans-serif; margin-bottom:6px; }
.result .score { font:700 20px/1.3 system-ui,sans-serif; }
.result.fail { border-style:dashed; }
.link-card { display:block; padding:14px 16px; margin-bottom:10px; border:2px solid var(--navy); border-radius:10px; background:#fff; color:var(--ink); font-weight:700; text-decoration:none; }
.link-card small { display:block; font-weight:400; color:var(--muted); }
.link-card:hover { background:var(--pale); color:var(--ink); }
.lesson-card { display:flex; gap:14px; align-items:flex-start; border-color:var(--line-strong); }
.lesson-card small { color:var(--ink); }
.lesson-card .mk { flex:none; width:26px; height:26px; margin-top:1px; border:2px solid var(--navy); border-radius:50%; background:#fff; display:inline-flex; align-items:center; justify-content:center; color:#fff; font:700 15px/1 Arial,sans-serif; }
.lesson-card.done { background:var(--pale); border-color:var(--line-strong); }
.lesson-card.done .mk { background:var(--navy); }
.lesson-card.done .mk::before { content:"\2713"; }
.lesson-card.next { border-color:var(--navy); border-left-width:8px; }
.lesson-card.next small { font-weight:700; }
.todo li { margin-bottom:8px; }

/* admin */
.tiles { display:grid; gap:10px; grid-template-columns:repeat(2,1fr); }
@media (min-width:600px) { .tiles { grid-template-columns:repeat(3,1fr); } }
.tile { padding:14px; border:2px solid var(--navy); border-radius:10px; background:#fff; }
.tile b { display:block; font:800 30px/1.1 Arial,sans-serif; }
.tile span { font-size:15px; color:var(--muted); }
table.t { width:100%; border-collapse:collapse; font-size:16px; }
table.t th,table.t td { padding:8px 8px 8px 6px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; overflow-wrap:normal; word-break:normal; hyphens:none; white-space:nowrap; }
table.t td.wrap-cell { white-space:normal; min-width:11em; }
table.t th { font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.scroll-x { overflow-x:auto; }
.newcode { margin-top:12px; padding:14px; border:3px solid var(--navy); border-radius:10px; background:var(--pale); font:800 26px/1.3 ui-monospace,Menlo,Consolas,monospace; letter-spacing:.04em; }

/* prose pages */
.prose { background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:22px; margin-top:24px; }
.prose h2 { margin-top:28px; font-size:24px; }
.prose h2:first-child { margin-top:0; }
.prose p,.prose li { color:var(--ink); }
.todo-line { padding:10px 14px; border:3px dashed var(--navy); background:#fff; font-weight:700; }

@media (max-width:440px) { .site-head .logo img { width:136px; } .site-head nav a { padding:0 9px; font-size:15px; } .basket-count { margin-left:6px; } }
@media (min-width:720px) {
  body { font-size:18px; }
  .hero { padding:64px 0 68px; }
  .site-head .logo img { width:230px; }
  .prose { padding:36px; }
}
@media print { .site-head,.site-foot,.player-foot,.no-print { display:none !important; } body { background:#fff; } }
.law a { white-space:nowrap; }

/* Training matrix: a printable record, one row per person, one column per course. Lightness and words tell states apart, not hue. */
.matrix-sheet { background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:22px; }
.mx-head { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; border-bottom:3px solid var(--navy); padding-bottom:14px; margin-bottom:16px; }
.mx-kicker { font:700 13px/1 Arial,sans-serif; letter-spacing:.14em; text-transform:uppercase; color:var(--blue-dark); margin-bottom:6px; }
.mx-meta { text-align:right; font-size:14px; color:var(--muted); }
.mx-scroll { overflow-x:auto; }
table.mx { width:100%; border-collapse:collapse; font-size:15px; }
table.mx th, table.mx td { border:1px solid var(--line-strong); padding:10px 12px; text-align:left; vertical-align:top; }
table.mx thead th { background:var(--navy); color:#fff; font-weight:700; }
table.mx tbody th { background:var(--pale); font-weight:700; white-space:nowrap; }
table.mx td.mx-pass { background:#fff; }
table.mx td.mx-open, table.mx td.mx-none { background:var(--ground); color:var(--muted); font-style:italic; }
table.mx th, table.mx td { overflow-wrap:normal; } /* a word is never split in two: on a phone the sheet scrolls sideways instead */
table.mx .mx-q { overflow-wrap:anywhere; } /* except what the buyer typed, which may be anything */
.mx-q + .mx-q { margin-top:8px; }
.mx-num { font-size:13px; color:var(--muted); margin-top:2px; }
.mx-foot { margin-top:16px; font-size:14px; color:var(--muted); }
@media print {
  body { background:#fff; }
  main.narrow:has(.matrix-page) { width:auto; margin:0; } /* the whole width of the A4 landscape page, not the 680px column */
  .matrix-sheet { border:0; padding:0; }
  .mx-scroll { overflow:visible; } /* a scroll box would cut off whatever does not fit */
  table.mx tr { break-inside:avoid; }
  table.mx thead th { background:#fff !important; color:#000; border-bottom:3px solid #000; }
  table.mx th, table.mx td { border-color:#000; }
  @page { size: A4 landscape; margin: 12mm; }
}
