/* Emergency information, Life-saving skills layout and quick-reference cards. */
:root{--sos:#b3392f;--sos-ink:#fff}

/* Employee emergency card */
.ec-card{background:var(--card);border:1px solid var(--edge);border-left:6px solid var(--sos);border-radius:0 14px 14px 0;padding:18px 22px;display:grid;gap:14px}
.ec-top{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap}
.ec-top small,.ec-compact small{display:block;font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--sos)}
.ec-top strong{font-family:var(--font-display);font-size:1.3rem;font-weight:600;color:var(--ink)}
.ec-call{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--sos);color:var(--sos-ink)!important;border-radius:10px;padding:10px 18px;font-weight:700;font-size:1.05rem;text-decoration:none;white-space:nowrap}
.ec-call:focus-visible,.qref-call:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.ec-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px 22px}
.ec-item{display:grid;gap:2px;align-content:start}
.ec-item span{font-size:.8rem;color:var(--muted);font-weight:650}
.ec-item b{font-weight:600;color:var(--ink);font-size:.98rem;line-height:1.4;overflow-wrap:anywhere}
.ec-item b a{color:inherit}
.ec-item em{font-style:normal;font-size:.86rem;color:var(--muted)}
.ec-empty{margin:0;color:var(--muted)}
.ec-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid var(--edge);padding-top:10px;font-size:.86rem;color:var(--muted)}
.ec-foot a{color:var(--accent);font-weight:650}
.ec-compact{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;border-left:6px solid var(--sos);margin:16px 0}
.ec-compact strong{font-family:var(--font-display);font-size:1.1rem}
.ec-compact p{margin:2px 0 0;color:var(--muted);font-size:.92rem}
.ec-compact-actions{display:flex;gap:8px;flex-wrap:wrap}
.ec-banner-line{flex-basis:100%;margin:0;font-weight:650}
.cpr-emergency:has(.ec-banner-line){flex-wrap:wrap}

/* Employer form */
.ea-tip a{color:var(--accent);font-weight:650}
.ea-list{display:grid;gap:10px}
.ea-site{border:1px solid var(--edge,#dcd8cf);border-radius:12px;padding:0}
.ea-site>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;cursor:pointer;list-style:none}
.ea-site>summary::-webkit-details-marker{display:none}
.ea-site>summary::after{content:'›';font-size:1.3rem;transform:rotate(90deg);transition:transform .15s}
.ea-site[open]>summary::after{transform:rotate(-90deg)}
.ea-site>summary strong{flex:1}
.ea-state{font-size:.8rem;font-weight:650;padding:3px 9px;border-radius:999px}
.ea-done{background:#dff5e4;color:#287644}
.ea-missing{background:#fbeadb;color:#8a4a12}
.ea-form{padding:4px 16px 16px;display:grid;gap:12px}
.ea-form textarea{resize:vertical}

/* Life-saving skills page */
.lx{display:grid;gap:18px}
.lx>h2{margin:8px 0 -6px}
.lx-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;background:var(--card);border:1px solid var(--edge);border-radius:14px;padding:18px 22px}
.lx-head small{display:block;color:var(--muted);font-size:.85rem}
.lx-head strong{font-family:var(--font-display);font-size:1.45rem;font-weight:600;color:var(--ink)}
.lx-bar{display:flex;gap:6px}
.lx-bar i{width:34px;height:9px;border-radius:5px;background:var(--tint)}
.lx-bar i.lx-seg-ok{background:var(--ok-solid,#2f8a50)}
.lx-bar i.lx-seg-warn{background:var(--warn-solid,#c9822b)}
.lx-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;list-style:none;margin:0;padding:0}
.lx-steps li{background:var(--tint);border-radius:12px;padding:12px 14px;font-size:.92rem;color:var(--muted)}
.lx-steps b{display:block;color:var(--ink);font-weight:650}
.lx-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.lx-card{background:var(--card);border:1px solid var(--edge);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;color:inherit}
.lx-img{height:150px;background:var(--tint) center/cover no-repeat}
.lx-body{padding:14px 16px 16px;display:grid;gap:8px;flex:1;align-content:start}
.lx-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.lx-top h3{margin:0;font-family:var(--font-display);font-size:1.12rem;font-weight:600;color:var(--ink)}
.lx-pill{font-size:.78rem;font-weight:650;padding:3px 9px;border-radius:999px;white-space:nowrap}
.lx-pill.lx-ok{background:var(--ok-bg,#dff5e4);color:var(--ok-fg,#287644)}
.lx-pill.lx-warn{background:var(--warn-bg,#fbeadb);color:var(--warn-fg,#8a4a12)}
.lx-pill.lx-new{background:var(--neutral-bg,#eaeff4);color:var(--neutral-fg,#5b6978)}
.lx-meta{font-size:.88rem;color:var(--muted)}
.lx-desc{margin:0;font-size:.95rem;line-height:1.45;color:var(--ink)}
.lx-btn{justify-self:start;margin-top:4px}
.lx-extra:empty{display:none}
.lx-quick{display:grid;gap:10px}
.lx-quick h3{margin:0;font-size:1.05rem}
.lx-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.lx-quick-card{background:var(--card);border:1px solid var(--edge);border-left:4px solid var(--sos);border-radius:12px;padding:12px 14px;display:grid;gap:4px;text-decoration:none;color:var(--ink)}
.lx-quick-card:hover{border-color:var(--sos)}
.lx-quick-card b{font-weight:650}
.lx-quick-card span{font-size:.82rem;color:var(--muted)}
.lx-refreshers{background:var(--card);border:1px solid var(--edge);border-radius:14px}
.lx-refreshers>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 18px;cursor:pointer;list-style:none}
.lx-refreshers>summary::-webkit-details-marker{display:none}
.lx-refreshers>summary strong{display:block}
.lx-refreshers>summary span{color:var(--muted);font-size:.92rem;font-weight:400}
.lx-refreshers>summary .lx-ref-toggle{color:inherit;font-size:.92rem;pointer-events:none}
.lx-refreshers[open] .lx-ref-toggle{font-size:0}
.lx-refreshers[open] .lx-ref-toggle::after{content:'Hide refreshers';font-size:.92rem}
.lx-ref-body{display:grid;gap:14px;padding:0 18px 18px}
.lx-ref-course{font-weight:650;color:var(--accent)}
.lx-note{font-size:.82rem;color:var(--muted);margin:0;max-width:75ch}
@media (max-width:960px){.lx-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){
 .ec-card{padding:16px}.ec-grid{grid-template-columns:1fr;gap:10px}.ec-call{flex:1}
 .lx-head{padding:14px 16px}.lx-head strong{font-size:1.2rem}.lx-bar i{width:24px}
 .lx-steps{grid-template-columns:1fr;gap:6px}.lx-steps li{padding:9px 12px}
 .lx-grid{grid-template-columns:1fr;gap:10px}
 .lx-card{flex-direction:row}.lx-img{width:104px;height:auto;min-height:118px;flex:none}
 .lx-body{padding:12px 14px;gap:5px}.lx-desc{display:none}
 .lx-top{flex-direction:column;align-items:flex-start;gap:4px}.lx-top h3{font-size:1.02rem}
 .lx-btn{padding:6px 12px;font-size:.88rem}
 .lx-quick-grid{grid-template-columns:1fr 1fr}
}

/* Quick-reference card (screen) */
.qr-page{max-width:560px;margin:0 auto}
.qref-screen{display:grid;gap:12px;padding:8px 0 22px}
.qref-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:.85rem}
.qref-top a{color:var(--accent);font-weight:650;font-size:.95rem}
.qref-screen h1{margin:0;font-family:var(--font-display);font-size:1.7rem;line-height:1.15}
.qref-call{display:flex;justify-content:center;align-items:center;gap:8px;background:var(--sos);color:var(--sos-ink)!important;border-radius:12px;padding:13px;font-weight:700;font-size:1.1rem;text-decoration:none}
.qref-band-text{margin:0;font-weight:650}
.qref-steps{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.qref-steps li{display:grid;grid-template-columns:38px 1fr;gap:10px;align-items:start;background:var(--card);border:1px solid var(--edge);border-radius:12px;padding:10px 12px}
.qref-steps i{font-style:normal;width:38px;height:38px;border-radius:10px;background:#15324b;color:#fff;display:grid;place-items:center;font-weight:700;font-size:1.05rem}
.qref-steps b{display:block;font-weight:650}
.qref-steps span{font-size:.92rem;line-height:1.4}
.qref-notes{margin:0;padding-left:20px;font-size:.9rem;line-height:1.45;display:grid;gap:4px}
.qref-site{background:var(--tint);border-radius:12px;padding:11px 13px;font-size:.9rem;line-height:1.5;display:grid}
.qref-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.qref-actions .button{text-align:center;justify-content:center}
.qref-source{color:var(--muted);font-size:.78rem;line-height:1.4}
.qref-poster{display:none}

/* Printable A4 poster */
@media print{
 @page{size:A4;margin:0}
 html,body{background:#fff!important}
 body:has(.qref-poster) *:not(:has(.qref-poster)):not(.qref-poster):not(.qref-poster *){display:none!important}
 body:has(.qref-poster),body:has(.qref-poster) :has(.qref-poster){margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:#fff!important;min-height:0!important}
 body:has(.qref-poster){height:297mm;overflow:hidden}
 .qref-screen{display:none!important}
 .qref-poster{display:flex;position:fixed;inset:0;width:210mm;height:297mm;box-sizing:border-box;padding:11mm 13mm 9mm;flex-direction:column;gap:4mm;color:#13202b;background:#fff;font-family:var(--font-body,system-ui,sans-serif);-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .qref-band{background:var(--sos);color:#fff;border-radius:14px;padding:5mm 7mm;display:flex;justify-content:space-between;align-items:center;gap:6mm}
 .qref-band b{font-family:var(--font-display,sans-serif);font-size:30pt;font-weight:700}
 .qref-band span{font-size:12.5pt;font-weight:600;max-width:95mm;text-align:right;line-height:1.35}
 .qref-poster h1{margin:0;font-family:var(--font-display,sans-serif);font-size:25pt;color:#15324b}
 .qref-poster-steps{list-style:none;margin:0;padding:0;display:grid;gap:2.5mm}
 .qref-poster-steps li{display:grid;grid-template-columns:13mm 1fr;gap:4mm;align-items:center;border:2px solid #e3dccf;border-radius:12px;padding:2.5mm 4mm;break-inside:avoid}
 .qref-poster-steps i{font-style:normal;width:13mm;height:13mm;border-radius:12px;background:#15324b;color:#fff;display:grid;place-items:center;font-weight:800;font-size:18pt}
 .qref-poster-steps b{display:block;font-size:14pt;font-weight:700}
 .qref-poster-steps span{font-size:12pt;line-height:1.35}
 .qref-poster-notes{margin:0;padding-left:6mm;font-size:11.5pt;line-height:1.4}
 .qref-poster-site{display:grid;grid-template-columns:1fr 34mm;gap:6mm;align-items:center;background:#f4efe6;border-radius:14px;padding:5mm 6mm;margin-top:auto}
 .qref-poster-site h2{margin:0 0 2mm;font-size:14pt;color:#15324b}
 .qref-poster-site p{margin:0;font-size:11.5pt;line-height:1.5}
 .qref-qr{text-align:center;font-size:8pt;line-height:1.25;color:#444;display:grid;gap:1mm}
 .qref-qr img{width:30mm;height:30mm;margin:0 auto;background:#fff;padding:1mm}
 .qref-poster>small{font-size:8.5pt;color:#555;line-height:1.4}
}
.ea-form .em-btn{justify-self:start;min-width:220px}.ea-form input,.ea-form textarea{max-width:640px}
.cpr-learning h2[tabindex="-1"]:focus:not(:focus-visible){outline:none}

/* Workplace Wellbeing Essentials */
.cpr-course h2[tabindex="-1"]:focus,.cpr-course h3[tabindex="-1"]:focus{outline:none}
.lx-support{display:grid}
.sc-card{background:var(--card);border:1px solid var(--edge);border-left:6px solid var(--accent);border-radius:0 14px 14px 0;padding:18px 22px;display:grid;gap:14px}
.sc-card.is-loading .sc-empty{visibility:hidden}
.sc-head h3{margin:0;font-family:var(--font-display);font-size:1.2rem}
.sc-grid,.sc-outside{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px 22px}
.sc-outside{border-top:1px solid var(--edge);padding-top:12px}
.sc-item{display:grid;gap:2px;align-content:start}
.sc-item span{font-size:.8rem;color:var(--muted);font-weight:650}
.sc-item b{font-weight:600;color:var(--ink);font-size:.98rem;line-height:1.4;overflow-wrap:anywhere}
.sc-item b a{color:var(--accent)}
.sc-item em{font-style:normal;font-size:.86rem;color:var(--muted);overflow-wrap:anywhere}
.sc-empty{margin:0;color:var(--muted)}
.sc-foot{margin:0;font-size:.82rem;color:var(--muted)}
.sc-form h3{margin:10px 0 0;font-size:1rem}
.ess-more{margin-top:16px;background:var(--card);border:1px solid var(--edge);border-radius:14px;padding:18px 22px;display:grid;gap:10px}
.ess-more h2{margin:0;font-size:1.2rem}
.ess-facts{margin:0;padding-left:20px;display:grid;gap:8px;line-height:1.5}
.ess-sources{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:baseline;border-top:1px solid var(--edge);padding-top:10px}
.ess-sources span{font-size:.8rem;font-weight:650;color:var(--muted);flex-basis:100%}
.ess-sources a{color:var(--accent);font-weight:600}
.ess-reviewed{margin:0;font-size:.8rem;color:var(--muted)}
.ess-resume{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:var(--tint);border-radius:12px;padding:12px 16px;margin-bottom:12px}
.ess-resume p{margin:0;font-weight:600}
@media (max-width:630px){
 .essentials-course .cpr-step .cpr-step-copy,.essentials-course .cpr-step .cpr-figure{grid-row:auto}
 .essentials-course .essentials-photo{aspect-ratio:3/2;container-type:inline-size}
 .essentials-course .workload-photo img{width:300%;height:auto;top:calc(-100cqw * var(--scene-row) - (100cqw - 100%) / 2)}
 .sc-card,.ess-more{padding:16px}
}
#view h1[tabindex="-1"]:focus{outline:none}

/* Required training */
.lx-req{justify-self:start;display:inline-flex;align-items:center;gap:5px;font-size:.76rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--accent);border:1.5px solid currentColor;border-radius:6px;padding:2px 7px}
.lx-req::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}
.lx-req-line{margin:-8px 0 0;font-size:.95rem;color:var(--muted)}
.lx-req-line.is-due{color:var(--ink);font-weight:600}
.lx-req-line.is-done{color:var(--ok-fg,#287644);font-weight:600}
.tr-hub-required{color:var(--accent)!important;font-weight:700}
.tr-form{display:grid;gap:16px}
.tr-group{border:1px solid var(--edge,#dcd8cf);border-radius:12px;padding:10px 16px 14px;margin:0;display:grid;gap:4px}
.tr-group legend{font-weight:700;padding:0 6px}
.tr-option{display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--edge,#ece8e0);cursor:pointer}
.tr-option:last-child{border-bottom:0}
.tr-option input{width:18px;height:18px;margin:0;accent-color:var(--accent)}
.tr-option small{font-size:.8rem}
@media (max-width:640px){.tr-option{grid-template-columns:22px 1fr}.tr-option small{grid-column:2}}
/* Employer assessment results */
.trp-controls{display:flex;gap:14px;flex-wrap:wrap}
.trp-controls .em-field{flex:1 1 220px}
.trp-view{display:grid;gap:16px;margin-top:6px}
.trp-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:1.05rem}
.trp-results{border:1px solid var(--edge,#e3ddd2);border-radius:12px;padding:14px 16px;display:grid;gap:10px}
.trp-results h3{margin:0;font-size:1rem}
.trp-results p{margin:0}
.trp-bar{display:flex;height:14px;border-radius:7px;overflow:hidden;background:#eee8dd;gap:2px}
.trp-bar i{display:block;flex-basis:0}
.trp-first{background:#2f8a50}.trp-lessons{background:#8cc49c}.trp-later{background:#d7a64a}.trp-open{background:#c9c1b4}
.trp-legend{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:6px 16px;margin:0}
.trp-legend div{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.trp-legend dd{margin:0;font-weight:700}
.trp-key{display:flex;align-items:center;gap:7px;font-size:.9rem;background:none!important}
.trp-key::before{content:'';width:10px;height:10px;border-radius:3px;flex:none}
.trp-key.trp-first::before{background:#2f8a50}.trp-key.trp-lessons::before{background:#8cc49c}.trp-key.trp-later::before{background:#d7a64a}.trp-key.trp-open::before{background:#c9c1b4}
.trp-controls[hidden]{display:none}
.trp-legend dd{white-space:nowrap}
[data-panel="training-report"],[data-panel="training-requirements"]{grid-column:1/-1}
.lx-record{margin:-6px 0 0;font-size:.88rem;color:var(--muted)}
/* Essentials assessment picture: one scene from the 3x2 sheet, at 3:2 */
.essentials-assess{aspect-ratio:3/2!important;container-type:inline-size;max-width:560px;margin:0 0 12px;border-radius:12px}
.essentials-assess img{position:absolute;width:300%!important;height:auto!important;left:calc(-100% * var(--scene-column));top:calc(-100cqw * var(--scene-row) - (100cqw - 100%) / 2)}
/* Required / voluntary training with deadlines */
.lx-req.is-late,.lx-req-line.is-late,.tr-hub-line.is-late,.tr-home-line.is-late{color:#b3392f}
.tr-hub-line{margin:0 0 12px;font-weight:600;color:var(--ink)}
.tr-home-line{margin:6px 0 0;font-weight:650;color:var(--accent)}
.tr-home-line.is-done{color:var(--ok-fg,#287644)}
.tr-option{display:grid;grid-template-columns:minmax(0,1fr) 92px 190px;align-items:center;gap:6px 14px;padding:10px 0;border-bottom:1px solid var(--edge,#ece8e0)}
.tr-option:last-of-type{border-bottom:0}
.tr-check{display:flex;align-items:center;gap:10px;cursor:pointer}
.tr-check input{width:18px;height:18px;margin:0;accent-color:var(--accent);flex:none}
.tr-state{font-size:.8rem;font-weight:700;color:var(--muted,#6b7280)}
.tr-state.is-required{color:var(--accent)}
.tr-due{display:grid;gap:2px;font-size:.75rem;color:var(--muted,#6b7280)}
.tr-due input{font:inherit;font-size:.9rem;padding:6px 8px;border:1px solid var(--edge,#dcd8cf);border-radius:8px}
.tr-due input:disabled{opacity:.45}
.tr-since{grid-column:1/-1;margin-top:-4px;padding-left:28px}
.tr-since:empty{display:none}
.em-status.is-late{background:#fbe3e0;color:#9b2c22}
@media (max-width:640px){.tr-option{grid-template-columns:1fr auto}.tr-due{grid-column:1/-1;padding-left:28px}}
.tr-due input{width:auto;height:auto;accent-color:auto}
.lx-req-wrap{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.lx-req-date{font-size:.85rem;font-weight:650;color:var(--ink)}
.lx-req-date.is-late{color:#b3392f}
.lx-req.is-late{border-color:#b3392f}

/* Training page */

.th{display:grid;gap:18px}
.th-hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:24px;align-items:center;background:linear-gradient(135deg,#132a3a 0%,#1d3c52 100%);color:#fff;border-radius:18px;padding:26px 28px}
.th-eyebrow{margin:0 0 6px;font-size:.75rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#e9a99f}
.th-hero h1{margin:0;font-family:var(--font-display);font-size:2rem;line-height:1.1;color:#fff}
.th-hero p{margin:10px 0 0;color:#d3dee6;line-height:1.5;max-width:52ch}
.th-steps{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.th-steps li{display:grid;grid-template-columns:26px 1fr;gap:10px;align-items:center;background:rgba(255,255,255,.07);border-radius:10px;padding:8px 12px}
.th-steps i{font-style:normal;width:26px;height:26px;border-radius:50%;background:#fff;color:#132a3a;display:grid;place-items:center;font-weight:800;font-size:.85rem}
.th-steps b{display:block;color:#fff;font-size:.95rem}.th-steps span{font-size:.82rem;color:#c3d1db}
.th-next{display:grid;grid-template-columns:240px minmax(0,1fr);background:var(--card);border:1px solid var(--edge);border-left:6px solid #b3392f;border-radius:0 16px 16px 0;overflow:hidden}
.th-next.is-calm{border-left-color:var(--accent)}
.th-next .ph{background:center 30%/cover;min-height:200px}
.th-next.is-due{border-left-color:#c9822b}.th-next.is-due .th-label{color:#8a4a12}
.th-next .bd{padding:18px 22px;display:grid;gap:8px;align-content:center}
.th-label{font-size:.75rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#b3392f}
.is-calm .th-label{color:var(--accent)}
.th-next h2{margin:0;font-family:var(--font-display);font-size:1.45rem}
.th-when{display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-weight:700;color:var(--ink);font-size:.92rem}
.th-when.is-late{color:#b3392f}
.th-req{font-size:.7rem;font-weight:800;letter-spacing:.05em;color:var(--accent);border:1.5px solid currentColor;border-radius:5px;padding:1px 6px}
.th-next p{margin:0;color:var(--muted)}
.th-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.th-also{border-top:1px solid var(--edge);padding-top:10px;font-size:.9rem;color:var(--muted)}
.th-also b{color:var(--ink);font-weight:600}
.th-h{margin:6px 0 -4px;font-size:1.15rem}
.th-cats{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.th-cat{background:var(--card);border:1px solid var(--edge);border-radius:16px;overflow:hidden;display:flex;flex-direction:column}
.th-cat .ph{height:150px;background:center 35%/cover;position:relative}
.th-cat .ph span{position:absolute;left:12px;bottom:12px;background:rgba(19,42,58,.88);color:#fff;border-radius:999px;padding:4px 11px;font-size:.8rem;font-weight:700}
.th-cat .bd{padding:16px 18px 18px;display:grid;gap:10px;flex:1;align-content:start}
.th-cat h3{margin:0;font-family:var(--font-display);font-size:1.25rem}
.th-cat .desc{margin:0;color:var(--muted);font-size:.94rem;line-height:1.45}
.th-rows{list-style:none;margin:0;padding:0}
.th-rows li a{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 2px;border-top:1px solid var(--edge);color:var(--ink);text-decoration:none;font-size:.95rem}
.th-rows li a:hover{background:var(--tint)}
.th-rows .nm{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-weight:600}
.th-rows .th-req{font-size:.66rem}
.th-st{display:inline-flex;align-items:center;gap:6px;font-size:.8rem;font-weight:650;color:var(--muted);white-space:nowrap}
.th-st::before{content:'';width:8px;height:8px;border-radius:50%;background:#cfc8bb}
.th-st.ok{color:#287644}.th-st.ok::before{background:#2f8a50}
.th-st.warn{color:#8a4a12}.th-st.warn::before{background:#c9822b}
.th-st.late{color:#b3392f}.th-st.late::before{background:#b3392f}
.th-meta{font-size:.84rem;color:var(--muted);margin:0}
.th-cat .button{justify-self:start;margin-top:auto}
.th-foot{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:16px}
.th-sos{background:var(--card);border:1px solid var(--edge);border-left:6px solid #b3392f;border-radius:0 14px 14px 0;padding:14px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.th-sos small{display:block;font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#b3392f}
.th-sos p{margin:3px 0 0;font-size:.92rem}
.th-call{background:#b3392f;color:#fff!important;border-radius:10px;padding:9px 16px;font-weight:700;text-decoration:none;white-space:nowrap}
.th-qr{background:var(--card);border:1px solid var(--edge);border-radius:14px;padding:14px 18px}
.th-qr b{display:block;margin-bottom:8px}
.th-qr div{display:flex;flex-wrap:wrap;gap:6px}
.th-qr a{font-size:.85rem;border:1px solid var(--edge);border-radius:999px;padding:4px 11px;color:var(--ink);text-decoration:none;background:var(--canvas,#faf7f2)}
.th-note{font-size:.84rem;color:var(--muted);margin:0}
@media (max-width:760px){
 .th-hero{grid-template-columns:1fr;padding:20px;gap:16px}.th-hero h1{font-size:1.6rem}
 .th-steps li{padding:7px 10px}
 .th-next{grid-template-columns:1fr}.th-next .ph{min-height:150px}.th-next.is-due{border-left-color:#c9822b}.th-next.is-due .th-label{color:#8a4a12}
.th-next .bd{padding:16px}
 .th-cats,.th-foot{grid-template-columns:1fr}
 .th-cat .ph{height:120px}
}
.th-hero h1:focus{outline:none}
.th-next-slot:empty{display:none}
.th-rows li a:focus-visible,.th-qr a:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.th-req{text-transform:uppercase}
.th-next.is-done{border-left-color:#2f8a50}
.th-next.is-done .th-label{color:#287644}
.timing-choice{border:1px solid var(--edge);border-radius:12px;padding:10px 16px 12px;margin:12px 0;display:grid;gap:6px}
.timing-choice legend{font-weight:700;padding:0 6px}
.timing-choice label{display:flex;align-items:center;gap:8px;cursor:pointer}
.timing-choice input{width:18px;height:18px;accent-color:var(--accent)}
.timing-choice p{margin:2px 0 0;font-size:.85rem;color:var(--muted)}

/* Health Hub guide window v3.0.71 */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.health-topic-art .hg-icon{width:40px;height:40px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.health-topics .health-topic-meta{padding:0 16px;margin:-4px 0 8px;font-size:12px;font-weight:650;color:var(--muted)}
.featured-dialog form,.hg form{text-align:left}
.hg{width:min(900px,calc(100% - 48px));height:min(880px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);padding:0;border:1px solid var(--edge);border-radius:18px;background:var(--card);color:var(--ink);overflow:hidden}
.hg[open]{display:flex;flex-direction:column}
.hg::backdrop{background:#12223699;backdrop-filter:blur(5px)}
body:has(.hg[open]){overflow:hidden}
.hg [hidden]{display:none!important}
.hg-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:16px clamp(16px,4vw,26px) 12px;border-bottom:1px solid var(--edge)}
.hg-top h2{margin:2px 0 0;font-size:clamp(1.2rem,3.4vw,1.55rem);line-height:1.2}
.hg-meta{margin:0;font-size:12px;font-weight:700;letter-spacing:.02em;color:var(--muted)}
.hg-close{min-width:40px;min-height:40px;padding:0;font-size:22px;line-height:1}
.hg-alert{display:flex;align-items:center;gap:12px;padding:10px clamp(16px,4vw,26px);background:#fbe8e5;color:#7a2620;border-bottom:1px solid #efc8c1}
.hg-alert p{margin:0;flex:1;font-size:13.5px;line-height:1.45}
.hg-alert-icon{flex:none;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hg-call{flex:none;background:#a63d33;border-color:#a63d33;color:#fff;min-height:40px;font-weight:700}
body[data-mode="dark"] .hg-alert{background:#492c2c;color:#ffd9d2;border-color:#6e3d39}
.hg-body{flex:1;overflow:auto;padding:16px clamp(16px,4vw,26px) 20px;overscroll-behavior:contain}
.hg-view>*:first-child{margin-top:0}
.hg-intro{margin:0 0 14px;color:var(--muted);line-height:1.55}
.hg-progress{display:flex;align-items:center;gap:12px;margin:0 0 12px}
.hg-count{margin:0;font-size:13px;font-weight:700;white-space:nowrap}
.hg-bar{display:flex;gap:5px;flex:1;max-width:220px;margin:0;padding:0;list-style:none}
.hg-bar li{flex:1;height:5px;border-radius:3px;background:var(--edge)}
.hg-bar li.done{background:var(--accent)}
.hg-figure{margin:0 0 14px;border-radius:14px;overflow:hidden;background:#f6efe6}
.hg-figure img{display:block;width:auto;max-width:100%;height:clamp(160px,calc(100dvh - 560px),340px);aspect-ratio:560/300;margin:0 auto}
.hg-step-title{margin:0 0 8px;font-size:1.3rem}
.hg-step-title:focus{outline:none}
.hg-step-title:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.hg-step-body{margin:0;line-height:1.65;font-size:1.08rem;max-width:68ch}
.hg-no-figure .hg-step-body{font-size:1.05rem}
.hg-video{display:inline-flex;align-items:center;gap:8px;margin-top:14px;font-size:14px;font-weight:650;color:var(--ink)}
.hg-video span:last-child{font-weight:400;color:var(--muted)}
.hg-play{display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--edge);border-radius:50%;font-size:10px;color:var(--ink)}
.hg-foot{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:12px clamp(16px,4vw,26px);border-top:1px solid var(--edge);background:var(--card)}
.hg-foot .button{min-height:44px}
.hg-foot .button[hidden]+.button{margin-left:auto}
.hg-muted{margin:4px 0 12px;font-size:13px;color:var(--muted)}
.hg-quiz fieldset{border:0;margin:0;padding:0;min-width:0}
.hg-quiz legend{padding:0;margin:0 0 10px;font-weight:700;font-size:1.05rem;line-height:1.4}
.hg-answer{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:4px 10px;margin:0 0 8px;padding:12px 14px;border:1px solid var(--edge);border-radius:10px;background:var(--tint);cursor:pointer;line-height:1.45}
.hg-answer input{margin:3px 0 0;accent-color:var(--accent)}
.hg-answer:has(input:checked){outline:2px solid var(--accent)}
.hg-answer:has(input:disabled){cursor:default}
.hg-mark{grid-column:2;font-size:12px;font-weight:700}
.hg-answer[data-state="correct"]{background:#e2f3ea;border-color:#508c6d;color:#175738;outline:0}
.hg-answer[data-state="wrong"]{background:#fbe8e5;border-color:#af625a;color:#872f2a;outline:0}
body[data-mode="dark"] .hg-answer[data-state="correct"]{background:#1c3b2e;color:#bce9cf;border-color:#65987b}
body[data-mode="dark"] .hg-answer[data-state="wrong"]{background:#492c2c;color:#ffccc3;border-color:#ac746d}
.hg-feedback{margin:6px 0 0;line-height:1.5}
.hg-feedback:empty{display:none}
.hg-feedback-right,.hg-feedback-wrong{padding:10px 12px;border-radius:10px;background:var(--tint)}
.hg-feedback-error{color:#a63d33;font-weight:650}
.hg-remember,.hg-gp,.hg-reminder{margin:0 0 12px;padding:14px 16px;border:1px solid var(--edge);border-radius:12px}
.hg-remember{background:var(--tint);border-color:transparent}
.hg-remember h4,.hg-gp h4{margin:0 0 6px;font-size:.95rem}
.hg-remember ul,.hg-gp ul{margin:0;padding-left:20px;line-height:1.55}
.hg-gp p{margin:8px 0 0;font-size:14px;line-height:1.5;color:var(--muted)}
.hg-gp-urgent{border-color:#efc8c1}
.hg-switch{display:flex;gap:12px;align-items:flex-start;cursor:pointer}
.hg-switch input{margin-top:3px;width:18px;height:18px;accent-color:var(--accent);flex:none}
.hg-switch strong,.hg-switch small{display:block}
.hg-switch small{margin-top:2px;color:var(--muted);font-size:13px;line-height:1.45}
.hg-reminder .hg-muted:empty{display:none}
.hg-reminder .hg-muted{margin:8px 0 0}
.hg-sources{margin-top:4px;border-top:1px solid var(--edge)}
.hg-sources summary{padding:10px 0;cursor:pointer;color:var(--accent);font-weight:650;width:fit-content}
.hg-sources ul{margin:0 0 6px;padding-left:20px;font-size:14px;line-height:1.7}
@media (max-width:600px){
 .hg{width:100%;height:100dvh;max-height:100dvh;max-width:100%;border-radius:0;border:0}
 .hg-alert{padding:8px 14px;gap:10px}
 .hg-alert .hg-call{min-height:40px;padding:0 12px}
 .hg-foot .button{flex:1}
 .hg-foot .button[hidden]+.button{margin-left:0}
}

/* Guide start page and emergency box v3.0.71 */
.hg-body{padding:22px clamp(18px,4vw,36px) 24px}
.hg-kicker{margin:0 0 4px;font-size:12px;font-weight:750;letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}
.hg-lead{margin:0 0 18px;font-size:1.08rem;line-height:1.6;max-width:68ch}
.hg-outcomes{margin:0 0 16px;padding:16px 18px;border-radius:12px;background:var(--tint)}
.hg-outcomes h4,.hg-emergency h4{margin:0 0 8px;font-size:1rem}
.hg-outcomes ul{margin:0;padding-left:22px;line-height:1.6}
.hg-outcomes li+li{margin-top:4px}
.hg-emergency{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 16px;margin:0 0 16px;padding:14px 18px;border:1px solid #efc8c1;border-radius:12px;background:#fbe8e5;color:#7a2620}
.hg-emergency-head{display:flex;align-items:center;gap:10px;grid-column:1}
.hg-emergency h4{margin:0}
.hg-emergency p{grid-column:1;margin:0;line-height:1.55}
.hg-emergency .hg-call{grid-column:2;grid-row:1/span 2}
body[data-mode="dark"] .hg-emergency{background:#492c2c;color:#ffd9d2;border-color:#6e3d39}
.hg-facts{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 6px;padding:0;list-style:none}
.hg-facts li{padding:6px 12px;border:1px solid var(--edge);border-radius:999px;font-size:13px;font-weight:650}
@media (max-width:600px){
 .hg-emergency{grid-template-columns:1fr}
 .hg-emergency .hg-call{grid-column:1;grid-row:auto;width:100%}
}

/* Health Hub reading record v3.0.72 */
.health-guide-trigger{position:relative}
.health-read{display:inline-flex;align-self:flex-start;margin:12px 16px -4px;padding:3px 10px;border-radius:999px;background:#e2f3ea;color:#175738;font-size:12px;font-weight:750}
body[data-mode="dark"] .health-read{background:#1c3b2e;color:#bce9cf}
.health-guide-trigger.is-read .health-topic-art{opacity:.85}
.health-folder-progress{display:block;margin-top:2px;font-size:13px;font-weight:700;color:var(--muted)}
.health-folder-progress.is-complete{color:#2f7a52}
body[data-mode="dark"] .health-folder-progress.is-complete{color:#8fd6ae}
.health-privacy{margin:18px 0 0;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;font-size:14px;color:var(--muted)}
.health-privacy:empty{display:none}
.health-privacy p{margin:0}
.health-clear-confirm{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:var(--ink)}
.health-clear-status{flex-basis:100%;font-weight:650;color:var(--ink)}
.hg-saved{margin:-2px 0 12px;font-size:14px;font-weight:650;color:#2f7a52}
body[data-mode="dark"] .hg-saved{color:#8fd6ae}
/* Health Hub key words: bold plus a soft tint, so meaning never relies on colour alone */
.hg-key{font-weight:700;color:#203949;background:linear-gradient(transparent 55%,rgba(166,61,51,.16) 55%);padding:0 .08em;border-radius:2px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.hg-emergency .hg-key{color:inherit;background:linear-gradient(transparent 55%,rgba(166,61,51,.22) 55%)}
@media (forced-colors:active){.hg-key{background:none;text-decoration:underline}}
/* 3.0.89 training summary table */
.trp-summary{display:grid;gap:8px;margin:4px 0 14px;overflow-x:auto}
.trp-summary p{margin:0}
.trp-table{width:100%;border-collapse:collapse;font-size:.92rem}
.trp-table th,.trp-table td{text-align:left;padding:9px 10px;border-bottom:1px solid var(--edge,#e3ddd2);vertical-align:top}
.trp-table thead th{font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted,#5d6b78)}
.trp-table tbody th{font-weight:600}
.trp-table tbody th small{display:block;font-weight:500;color:var(--muted,#5d6b78);margin-top:2px}
.trp-course{all:unset;cursor:pointer;color:inherit;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.trp-course:focus-visible{outline:3px solid var(--focus,#2b6cb0);outline-offset:2px;border-radius:3px}
.trp-late{color:var(--danger-fg,#a63d33);font-weight:700}
