:root { color-scheme:light; font:16px/1.6 system-ui,sans-serif; background:#f7f3fa; color:#251d37; --accent:#4f3276; --edge:#d9cbe8; }
* { box-sizing:border-box; }
body { margin:0; }
[hidden] { display:none !important; }
.shell { width:min(1110px,92%); margin-inline:auto; }
.top,.top nav,.actions { display:flex; flex-wrap:wrap; align-items:center; gap:9px 18px; }
.top { justify-content:space-between; padding-block:12px; }
.top a,.button { display:inline-flex; align-items:center; min-height:44px; font-weight:750; text-decoration:none; }
a { color:var(--accent); text-underline-offset:.2em; }
:focus-visible { outline:3px solid #934f11; outline-offset:4px; }
.brand { font-size:1.18rem; }
.hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); background:#eae0f2; border-radius:28px 7px; overflow:hidden; }
.hero > div { align-self:center; padding:clamp(18px,4vw,52px); }
.hero img { width:100%; height:100%; object-fit:cover; display:block; }
h1,h2,h3 { line-height:1.15; margin:0 0 13px; }
h1 { font-size:clamp(2rem,4.6vw,3.9rem); letter-spacing:-.045em; }
button,.button { font:inherit; font-weight:750; color:white; background:var(--accent); border:1px solid var(--accent); border-radius:8px; padding:8px 14px; min-height:44px; cursor:pointer; }
#example { color:var(--accent); background:white; }
.section { margin-block:clamp(24px,5vw,48px); }
.panel { background:#fff; border:1px solid var(--edge); border-radius:14px; padding:clamp(15px,3vw,26px); }
form label,dt { font-weight:750; }
input { display:block; width:100%; min-height:44px; margin:5px 0 10px; border:1px solid #8d77a0; border-radius:7px; padding:8px; font:inherit; }
#result { border-left:4px solid var(--accent); background:#f0e8fa; padding:9px 13px; }
dd { margin:0; overflow-wrap:anywhere; }
.muted,footer { color:#514565; }
.cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.cards span { display:inline-grid; place-items:center; width:41px; height:41px; margin-bottom:8px; font-size:1.35rem; background:#eae0f2; border-radius:50%; }
.cards p,.panel p:last-child { margin-bottom:0; }
details { border-top:1px solid var(--edge); padding:8px 0; }
summary { cursor:pointer; font-weight:750; min-height:34px; }
.reader { max-width:760px; }
.reader .panel { margin-block:14px; }
footer { border-top:1px solid var(--edge); padding:16px 0 28px; margin-top:25px; }
@media(max-width:680px) { .hero,.cards { grid-template-columns:minmax(0,1fr); } .hero img { height:auto; } }
#training { display:grid; gap:14px; }
.scenario { margin:0; min-inline-size:0; }
.scenario legend { font-weight:750; color:var(--accent); padding-inline:6px; }
.scenario label { display:flex; align-items:center; gap:9px; min-height:44px; font-weight:500; }
.scenario input[type=radio] { width:17px; height:17px; min-height:0; margin:0; flex:none; accent-color:var(--accent); }
.scenario details { margin-top:4px; }
.scenario-feedback { font-weight:750; color:var(--accent); }
.secondary { color:var(--accent); background:white; }
.incident-promo { background:#eee5f7; }
.incident img { width:100%; height:auto; display:block; border-radius:12px; }
.fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.fields label { display:grid; gap:4px; align-content:start; font-weight:700; }
.fields textarea { width:100%; min-height:64px; border:1px solid #8d77a0; border-radius:7px; padding:8px; resize:vertical; font:inherit; }
@media screen and (max-width:600px) { .fields { grid-template-columns:minmax(0,1fr); } }
@media print {
  body { background:white; color:black; }
  .top,.incident img,footer { display:none; }
  .reader { max-width:none; width:100%; }
  .fields label { break-inside:avoid; }
  .fields textarea { resize:none; }
}
