/* Safety lessons (hub, lesson page, toolbox talk, homepage block). Based on the approved mockups. */
:root{--c-safe:#b7791f;--safe-bg:#fdf6e3;--safe-line:#f0dfb4;--safe-ink:#6b4a10}
.pagehead.safe-head{box-shadow:inset 0 -4px 0 var(--c-safe)}
.pagehead.safe-head .kicker{color:#f3c867}
.lcards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.lcard{position:relative;padding:18px 20px 14px 24px;overflow:hidden;display:flex;flex-direction:column}
.lcard::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--c-safe)}
.lcard .top{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:8px}
.lcard .cat{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--c-safe)}
.lcard h3{font-size:1.05rem;margin:2px 0 8px;line-height:1.35}
.lcard h3 a{color:var(--ink);text-decoration:none}.lcard h3 a:hover{color:var(--teal)}
.lcard p.sum{font-size:.875rem;margin:0 0 10px;color:var(--text)}
.lcard .tags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.stag{font-size:.72rem;font-weight:700;padding:3px 8px;border-radius:6px;background:#eef3ff;color:#2a3f8f;border:1px solid #d3ddfb;white-space:nowrap}
.ptag{font-size:.72rem;font-weight:700;padding:3px 8px;border-radius:6px;background:var(--low-bg);color:var(--low);border:1px solid #bfe0cd;white-space:nowrap}
.ctag{font-size:.72rem;font-weight:700;padding:3px 8px;border-radius:6px;background:#f3edfd;color:#5b3aa8;border:1px solid #ddd0f7;white-space:nowrap}
.ttag{font-size:.72rem;font-weight:700;padding:3px 8px;border-radius:6px;background:var(--safe-bg);color:var(--safe-ink);border:1px solid var(--safe-line);white-space:nowrap}
.lcard .lfoot{margin-top:auto;display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:.78rem;color:var(--muted);border-top:1px solid var(--line);padding-top:9px}
.lcard .lfoot a{font-weight:600}
.topicbar{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 16px}
.topicbar a{font-size:.85rem;font-weight:600;text-decoration:none;padding:7px 12px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--ink)}
.topicbar a.on{background:var(--navy);color:#fff;border-color:var(--navy)}
.filters{padding:16px 18px;margin-bottom:14px}
.filters .row{display:grid;grid-template-columns:1.4fr repeat(4,1fr);gap:10px}
.filters label{display:flex;flex-direction:column;gap:4px;font-size:.75rem;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.filters input,.filters select{padding:9px 10px;border:1px solid var(--line);border-radius:9px;font:inherit;font-size:.9rem;background:#fff;color:var(--ink);text-transform:none;letter-spacing:0;font-weight:500}
.rescount{display:flex;justify-content:space-between;align-items:center;font-size:.85rem;color:var(--muted);margin:6px 0 12px}
.sbox{padding:18px 18px;margin-bottom:16px}
.sbox h3{font-size:1rem;margin:0 0 8px}
.sbox p{font-size:.875rem;margin:0 0 10px}
.sbox select,.sbox input{width:100%;padding:9px 10px;border:1px solid var(--line);border-radius:9px;font:inherit;font-size:.9rem;margin-bottom:8px;box-sizing:border-box}
.sbox.sponsor{border:1px dashed #c9d3df;background:#fafcfe}
.sbox .slabel{font-size:.68rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.sbox.rr-side{border-color:var(--rr-line);background:var(--rr-bg)}
.sbox.rr-side h3{color:var(--rr-ink)}
.lesson-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:28px}
.lbody{padding:26px 28px}
.lbody h2{font-size:1.1rem;margin:22px 0 8px;display:flex;align-items:center;gap:8px}
.lbody h2:first-child{margin-top:0}
.lbody p,.lbody li{font-size:.95rem}
.lbody ul{padding-left:20px;margin:0}
.lbody li{margin:4px 0}
.three{background:var(--safe-bg);border:1px solid var(--safe-line);border-radius:10px;padding:14px 16px;font-size:.98rem;color:#3b2e12}
.checklist{list-style:none;padding:0!important}
.checklist li{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-bottom:1px solid var(--line)}
.checklist li::before{content:"";flex:none;width:16px;height:16px;border:2px solid var(--teal);border-radius:4px;margin-top:3px}
.maptable{width:100%;border-collapse:collapse;font-size:.86rem}
.maptable th,.maptable td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--line);vertical-align:top}
.maptable th{font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.srcbox{border-left:4px solid var(--teal);background:var(--teal-bg);padding:12px 14px;border-radius:8px;font-size:.88rem}
.btnrow{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 4px}
.metaline{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:10px}
.metaline .badge{background:rgba(255,255,255,.1);color:#e6eef5;border-color:rgba(255,255,255,.2)}
.disc{font-size:.78rem;color:var(--muted);margin-top:14px}
/* Lesson of the week on homepage */
.lotw{display:grid;grid-template-columns:1.3fr 1fr;gap:0;overflow:hidden;border:1px solid var(--safe-line)}
.lotw .l{padding:24px 26px;border-left:6px solid var(--c-safe)}
.lotw .r{padding:22px 24px;background:var(--safe-bg);border-left:1px solid var(--safe-line)}
.lotw h3{font-size:1.3rem;margin:8px 0 10px}
.lotw .r h4{margin:0 0 8px;font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:var(--safe-ink)}
.lotw .r ol{margin:0;padding-left:20px;font-size:.9rem}.lotw .r li{margin:5px 0}
@media(max-width:900px){.lcards{grid-template-columns:1fr}.filters .row{grid-template-columns:1fr 1fr}.filters .row label:first-child{grid-column:1/-1}.lesson-grid{grid-template-columns:1fr}.lotw{grid-template-columns:1fr}.lotw .r{border-left:0;border-top:1px solid var(--safe-line)}.lbody{padding:20px 18px}}
/* Toolbox talk A4 sheet */
.tbt-bg{background:#e9edf2;padding:24px 0}
.sheet{width:794px;min-height:1123px;margin:0 auto;background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.12);padding:34px 40px;box-sizing:border-box;font-size:12.5px;color:#1b2a3b;display:flex;flex-direction:column}
.sheet .sh{display:flex;justify-content:space-between;align-items:center;border-bottom:3px solid #0b1a2c;padding-bottom:10px}
.sheet .sh .b{display:flex;align-items:center;gap:8px;font-weight:800;font-size:16px;color:#0b1a2c}
.sheet .sh .b svg{width:30px;height:30px;background:#0b1a2c;border-radius:50%}
.sheet .sh .t{font-size:11px;text-transform:uppercase;letter-spacing:.12em;font-weight:800;color:var(--c-safe)}
.sheet h1{font-size:21px;margin:14px 0 4px;color:#0b1a2c}
.sheet .sub{font-size:11.5px;color:#5b6b7f;margin:0 0 10px}
.sheet h2{font-size:12.5px;text-transform:uppercase;letter-spacing:.07em;margin:12px 0 5px;color:#0b1a2c;border-bottom:1px solid #d5dde6;padding-bottom:3px}
.sheet ul,.sheet ol{margin:0;padding-left:18px}.sheet li{margin:2.5px 0}
.sheet .cols2{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.sheet .box{border:1px solid #d5dde6;border-radius:6px;padding:8px 10px}
.sheet .q li{margin:5px 0}
.sheet .sign{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-top:6px}
.sheet .sign div{border-bottom:1px solid #8796a8;height:26px;font-size:10px;color:#5b6b7f;display:flex;align-items:flex-end}
.sheet table.att{width:100%;border-collapse:collapse;font-size:10.5px}
.sheet table.att td,.sheet table.att th{border:1px solid #c5cfda;padding:4px 6px;height:15px;text-align:left}
.sheet .foot{margin-top:auto;padding-top:10px;border-top:1px solid #d5dde6;font-size:9.5px;color:#5b6b7f;line-height:1.45}
.sheet .three{font-size:12.5px;padding:9px 12px}
.page>.grid{grid-template-columns:minmax(0,2.3fr) minmax(260px,1fr)}
.lcards>*,.lesson-grid>*{min-width:0}
.stag,.ptag,.ctag,.ttag{white-space:normal}
.topicbar{flex-wrap:wrap}
@media(max-width:900px){.page>.grid{grid-template-columns:minmax(0,1fr)}.filters .row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.filters input,.filters select{min-width:0;width:100%}}
.filters .row{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important}
.filters .row label:first-child{grid-column:1/-1}

/* draft badge + preview banner */
.draftb{display:inline-block;font-size:.68rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;padding:2px 8px;border-radius:6px;background:#fff1c7;color:#6b4a00;border:1px dashed #c99a1e;white-space:nowrap}
.metaline .draftb{background:#fff1c7;color:#6b4a00}
.previewbar{background:#fff4c2;color:#4d3900;border-bottom:1px solid #e9d27a;font-size:.8rem;text-align:center;padding:6px 12px;font-weight:600}
.notice.draftnote{margin-bottom:14px}
.pagehead.safe-head .kicker a{color:inherit;text-decoration:none}.pagehead.safe-head .kicker a:hover{text-decoration:underline}
.revbox{border:1px dashed #c99a1e;background:#fffaf0}.revbox ul{margin:6px 0 0;padding-left:18px;font-size:.84rem}.revbox li{margin:4px 0}
.srcnote{display:block;margin-top:6px;font-size:.8rem;color:var(--muted)}
.lbody .srclist{margin:8px 0 0;padding-left:20px;font-size:.88rem}
.lbody .srclist li{margin:0 0 6px}
.mapwrap{overflow-x:auto}
.linkbtn{background:none;border:0;padding:0;font:inherit;color:var(--teal);font-weight:600;cursor:pointer;text-decoration:underline}
.lcard[hidden]{display:none}
.policy{padding-left:20px}.policy li{margin:8px 0}
/* homepage: compact lesson of the week (sits below the trust bar, so the hero is unchanged) */
.lotw-sec .sechead{margin-bottom:10px}
.lotw .l{padding:18px 22px}.lotw .r{padding:16px 20px}
.lotw .top{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.lotw .cat{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--c-safe)}
.lotw h3{font-size:1.15rem;margin:6px 0 6px}.lotw h3 a{color:var(--ink);text-decoration:none}.lotw h3 a:hover{color:var(--teal)}
.lotw p.sum{font-size:.9rem;margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.lotw .tags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 6px}
.lotw .btnrow{align-items:center;margin:8px 0 0}.lotw .btnrow .note{font-size:.8rem}
/* toolbox talk: screen bar, mobile, print */
.tbt-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;max-width:794px;margin:0 auto 14px;padding:0}
.tbt-bar span{display:flex;gap:8px;flex-wrap:wrap}
.sheet .sh .b svg{width:30px;height:30px;background:none;border-radius:0}
.sheet .checklist li{padding:5px 0}
.sheet .sub .draftb{font-size:9px}
@media screen and (max-width:840px){.tbt-bg{padding:12px}.sheet{width:auto;min-height:0;padding:20px 16px}.sheet .cols2{grid-template-columns:1fr;gap:0}.tbt-bar{padding:0 4px}}
@page{size:A4;margin:0}
@media print{
 html,body{background:#fff!important}
 .skip,header.site,footer.site,.previewbar,.noprint,.tbt-bar{display:none!important}
 main{padding:0!important;margin:0!important}
 .tbt-bg{background:none;padding:0}
 .sheet{width:210mm;height:296mm;min-height:0;margin:0;box-shadow:none;padding:10mm 12mm;overflow:hidden;font-size:10.8px;page-break-after:avoid}
 .sheet h1{font-size:17px;margin:8px 0 3px}.sheet h2{font-size:10.6px;margin:7px 0 3px}.sheet .three{font-size:10.8px;padding:6px 10px}.sheet .q li{margin:3px 0}
 .sheet li{margin:1.5px 0}.sheet .checklist li{padding:3px 0}.sheet .checklist li::before{width:12px;height:12px;margin-top:1px}
 .sheet table.att td{height:18px}.sheet .foot{font-size:8.6px}
 .sheet *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
.lcard p.sum{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
/* lesson card footer: each "·" stays with the item after it, so it never wraps onto a line of its own */
.lcard .lfoot .lf-i{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.lcard .lfoot .sep{color:var(--muted)}
/* SIRE 2.0 lessons: indigo accent family (not the incident amber, not the reader-report berry). The .sire wrapper re-points the
   safe-* tokens, so cards, lesson pages and toolbox sheets reuse the incident styles unchanged. */
:root{--c-sire:#4f5bd5;--sire-bg:#eef0fd;--sire-line:#cfd4f7;--sire-ink:#2e3a96;--sire-l:#aeb8ff}
.sire{--c-safe:var(--c-sire);--safe-bg:var(--sire-bg);--safe-line:var(--sire-line);--safe-ink:var(--sire-ink)}
.sire .three{color:#1f2a66}
.pagehead.safe-head.sire .kicker{color:var(--sire-l)}
.rtag{font-size:.72rem;font-weight:700;padding:3px 8px;border-radius:6px;background:#f1f4f8;color:#334155;border:1px solid #d9e1ea;white-space:nowrap}
@media print{.rtag{white-space:normal}}
/* Archive page (archive.html): past newsletter issues + lessons of the week grouped by week; incident cards amber, SIRE 2.0 cards indigo (.sire) */
.arc-jump{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0 0 18px;font-size:.875rem;font-weight:600}
.arc-jump a{text-decoration:none}.arc-jump a:hover{text-decoration:underline}
.arc h2.sm{margin:0 0 12px;scroll-margin-top:96px}.arc h2.sm+.arc-lede{margin:-6px 0 14px}
.arc #lessons-of-the-week{margin-top:34px}
.arc-nl .row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 18px;color:var(--ink)}
.arc-nl .t .draftb{margin-left:8px;vertical-align:middle}
.arc-empty{display:flex;gap:14px;align-items:flex-start;padding:18px 20px}
.arc-empty .ico{width:24px;height:24px;color:var(--teal);flex:none;margin-top:2px}
.arc-empty b{color:var(--ink);font-size:1rem}.arc-empty p{margin:4px 0 0;color:var(--muted);font-size:.9rem}
.arc-week+.arc-week{margin-top:26px}
.arc-wh{font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0 0 10px;padding-bottom:6px;border-bottom:1px solid var(--line)}
.arc-card .top .draftb{margin-left:auto}
@media(max-width:560px){.arc-nl .row{grid-template-columns:auto minmax(0,1fr);gap:6px 12px;padding:14px 16px}.arc-nl time{order:-1;grid-column:1/-1}.arc-empty{padding:16px}}
/* Lesson video (SIRE 2.0 lessons with a "video" record): 16:9 on desktop, 9:16 below 600px; only the visible one is ever fetched (preload="none") */
.lvideo{margin:4px 0 14px;padding:0}
.lvideo video{display:block;width:100%;background:#0b1a2c;border-radius:10px;border:1px solid var(--safe-line);box-shadow:0 2px 10px rgba(11,26,44,.12)}
.lvideo .lv-wide{aspect-ratio:16/9}
.lvideo .lv-vert{display:none;aspect-ratio:9/16;max-width:360px;margin:0 auto}
.lvideo figcaption{margin-top:6px;font-size:.78rem;font-weight:600;color:var(--safe-ink);letter-spacing:.02em}
.lvideo figcaption::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--c-safe);margin-right:7px;vertical-align:1px}
@media (max-width:599px){.lvideo .lv-wide{display:none}.lvideo .lv-vert{display:block}}
@media print{.lvideo{display:none}}
