/* Property Crew Safety, v3. A slide deck: a wide stage, back and next navigation, a calm clean look.
   No web fonts and no external files, so it works offline once loaded. */
:root {
  --bg: #EDF0F5;
  --bg-2: #E2E7EF;
  --card: #FFFFFF;
  --ink: #0F1B2D;
  --ink-2: #475569;
  --line: #DBE1EB;
  --line-2: #B9C4D6;
  --navy: #12284A;
  --navy-2: #1D3A66;
  --signal: #F5B301;
  --signal-ink: #6B4500;
  --signal-tint: #FFF4D0;
  --danger: #C2362B;
  --danger-tint: #FDECEA;
  --safe: #0C7A5C;
  --safe-tint: #E5F5EE;
  --sea: #1F5FA8;
  --sea-tint: #E7F0FB;
  --cord: #EE6A2C;
  --copper: #B4691F;
  --accent: #F5B301; --accent-ink: #6B4500; --accent-tint: #FFF4D0;
  --r: 14px;
  --sh-1: 0 1px 2px rgba(15, 27, 45, 0.06), 0 1px 3px rgba(15, 27, 45, 0.05);
  --sh-2: 0 1px 2px rgba(15, 27, 45, 0.05), 0 18px 40px -18px rgba(15, 27, 45, 0.25);
  --top-h: 3.5rem;
  --nav-h: 4.75rem;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
[data-hz="shock"] { --accent: #F5B301; --accent-ink: #6B4500; --accent-tint: #FFF4D0; }
[data-hz="fire"] { --accent: #E5533D; --accent-ink: #8E2315; --accent-tint: #FDEBE7; }
[data-hz="fall"] { --accent: #2F6FD0; --accent-ink: #1B4A92; --accent-tint: #E7F0FB; }
[data-hz="heat"] { --accent: #F28C28; --accent-ink: #84470A; --accent-tint: #FEF0DD; }
[data-hz="speak"] { --accent: #0C7A5C; --accent-ink: #085A44; --accent-tint: #E5F5EE; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: clamp(1rem, 0.92rem + 0.3vw, 1.1875rem); line-height: 1.55;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; }
a { color: var(--sea); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--navy); }
button { font: inherit; color: inherit; }
strong { font-weight: 700; }

/* Focus: a navy ring with a white gap, so it reads on white, on tints and on navy */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; border-radius: 8px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }

.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-link {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 60;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 0.75rem; }

/* ===== Header ===== */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 76rem; margin: 0 auto; padding: 0.4rem 1rem; display: flex; align-items: center; gap: 0.75rem; min-height: var(--top-h); }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); flex: none; }
.brand .mark { width: 2rem; height: 2rem; flex: none; }
.brand-t { font-weight: 800; font-size: 1rem; line-height: 1.1; letter-spacing: -0.01em; }
.brand-t small { display: block; font-weight: 500; font-size: 0.72rem; color: var(--ink-2); letter-spacing: 0.01em; margin-top: 1px; }
.crumb { flex: 1; min-width: 0; text-align: center; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tools { display: flex; gap: 0.15rem; flex: none; }
.tool {
  font-size: 0.875rem; font-weight: 600; padding: 0.4rem 0.8rem; min-height: 40px; border-radius: 999px;
  background: transparent; border: 1px solid transparent; color: var(--ink); cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; transition: background-color 0.15s ease;
}
.tool:hover { background: var(--bg-2); color: var(--ink); }
.pgs { display: flex; gap: 3px; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; }
.pg { flex: 1; background: var(--line); position: relative; overflow: hidden; }
.pg > i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--navy); transition: width 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.pg.now > i { background: var(--accent); }
@media (max-width: 52rem) {
  .crumb { display: none; }
  .tools { margin-left: auto; }
}
.t-short { display: none; }
@media (max-width: 36rem) {
  .brand-t small { display: none; }
  .t-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; } .t-short { display: inline; }
  .tool { padding: 0.35rem 0.6rem; font-size: 0.875rem; }
  .brand .mark { width: 1.75rem; height: 1.75rem; }
}
@media (max-width: 26rem) { .brand-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; } .tool { padding: 0.3rem 0.5rem; font-size: 0.82rem; } .tools { margin-left: auto; } }

/* ===== Stage and slide ===== */
main { max-width: 76rem; margin: 0 auto; padding: 1.25rem 1rem calc(var(--nav-h) + 2rem); overflow-x: clip; }
main.no-nav { padding-bottom: 3rem; }
.slide {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-2);
  padding: clamp(1.1rem, 2.6vw, 2.5rem); display: grid; align-content: start; row-gap: 1.35rem;
  min-height: calc(100vh - var(--top-h) - var(--nav-h) - 3.4rem);
}
@supports (height: 100dvh) { .slide { min-height: calc(100dvh - var(--top-h) - var(--nav-h) - 3.4rem); } }
.slide::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(52rem 24rem at 100% 0%, var(--accent-tint), transparent 62%);
  opacity: 0.85;
}
.slide > * { position: relative; z-index: 1; }
.s-head { min-width: 0; }
.s-a { min-width: 0; display: grid; gap: 1rem; align-content: start; }
.s-b { min-width: 0; display: grid; gap: 1rem; align-content: start; }
.s-w { min-width: 0; display: grid; gap: 1rem; align-content: start; }
.s-a:empty, .s-b:empty, .s-w:empty { display: none; }
@media (min-width: 62rem) {
  .slide.two { grid-template-columns: minmax(0, var(--ca, 5fr)) minmax(0, var(--cb, 6fr)); grid-template-areas: "head head" "a b" "w w"; column-gap: clamp(1.75rem, 4vw, 4rem); }
  .slide.two > .s-head { grid-area: head; } .slide.two > .s-a { grid-area: a; } .slide.two > .s-b { grid-area: b; } .slide.two > .s-w { grid-area: w; }
  .slide.two.no-w { grid-template-areas: "head head" "a b"; }
  .slide.two.no-a.no-b { grid-template-areas: "head head" "w w"; }
  .slide.two.wide-b { --ca: 4fr; --cb: 7fr; }
  .slide.two.even { --ca: 1fr; --cb: 1fr; }
  .slide.solo .s-a, .slide.solo .s-b { max-width: 50rem; }
  .slide.center { text-align: center; justify-items: center; }
}
.s-a > p, .s-a > ul { max-width: 38rem; }

h1 { font-size: clamp(1.7rem, 1.1rem + 1.9vw, 2.65rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; max-width: 28ch; text-wrap: balance; }
h2 { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.65rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: 1.05rem; line-height: 1.25; font-weight: 800; }
.lead { font-size: 1.14em; line-height: 1.5; color: var(--ink); }
.stack > * + * { margin-top: 0.85rem; }
.s-head .lead { margin-top: 0.8rem; max-width: 46rem; }

.chip, .label {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 0.7rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-tint); padding: 0.3rem 0.75rem; border-radius: 999px;
}
.chip::before, .label::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); flex: none; }
.s-head .label { margin-left: 0.4rem; }
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.facts li { font-size: 0.875rem; font-weight: 600; border: 1px solid var(--line-2); border-radius: 999px; padding: 0.25rem 0.8rem; background: #fff; }
.note-line { font-size: 0.9375rem; color: var(--ink-2); border-left: 3px solid var(--accent); padding-left: 0.8rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.6rem 1.3rem;
  font-weight: 700; font-size: 1rem; line-height: 1.2; border: 1px solid var(--navy); border-radius: 12px; cursor: pointer; text-decoration: none;
  background: var(--navy); color: #fff; transition: background-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(18, 40, 74, 0.25);
}
.btn:hover:not(:disabled) { background: var(--navy-2); color: #fff; box-shadow: 0 6px 14px -6px rgba(18, 40, 74, 0.5); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.alt { background: #fff; color: var(--navy); border-color: var(--line-2); box-shadow: none; }
.btn.alt:hover:not(:disabled) { background: var(--bg); color: var(--navy); box-shadow: none; border-color: var(--navy); }
.btn.sig { background: var(--signal); color: var(--ink); border-color: #E0A200; }
.btn.sig:hover:not(:disabled) { background: #FFC62E; color: var(--ink); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.deck-nav .btn::before, .deck-nav .btn::after { display: inline-block; transition: transform 0.18s ease; }
#nav-back::before { content: "\2190" / ""; }
#nav-next::after { content: "\2192" / ""; }
#nav-next:hover:not(:disabled)::after { transform: translateX(3px); }
#nav-back:hover:not(:disabled)::before { transform: translateX(-3px); }
@media (max-width: 30rem) { .actions .btn { width: 100%; } }

/* ===== Deck navigation ===== */
.deck-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.deck-nav[hidden] { display: none; }
.deck-in { max-width: 76rem; margin: 0 auto; padding: 0.6rem 1rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; min-height: var(--nav-h); }
.deck-mid { display: grid; gap: 0.35rem; justify-items: center; min-width: 0; }
.nav-count { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.ticks { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: center; }
.tick { width: 22px; height: 6px; border-radius: 3px; background: var(--line); transition: background-color 0.3s ease, transform 0.3s ease; }
.tick.seen { background: var(--navy); opacity: 0.55; }
.tick.now { background: var(--accent); transform: scaleY(1.5); opacity: 1; }
.tick.gap { margin-left: 10px; }
.deck-nav .btn { min-height: 46px; padding: 0.5rem 1.2rem; }
@media (max-width: 40rem) {
  .ticks { display: none; }
  .deck-in { gap: 0.6rem; padding: 0.5rem 0.75rem; }
  .deck-nav .btn { padding: 0.5rem 0.9rem; font-size: 0.95rem; line-height: 1.15; text-align: center; }
  .nav-count { font-size: 0.78rem; text-align: center; }
}
@media (max-width: 30rem) {
  .deck-in { grid-template-columns: auto minmax(0, 1fr); }
  .deck-mid { display: none; }
  #nav-next { justify-self: end; max-width: 100%; }
  #nav-back:not([style*="hidden"]) + .deck-mid + #nav-next { max-width: 14rem; }
}

/* ===== Page-level pieces ===== */
.sub-h { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.prompt { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); font-weight: 800; line-height: 1.25; letter-spacing: -0.012em; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.mini { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 0.3rem; }
.cites { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.9rem; margin-top: 0.5rem; font-size: 0.875rem; }
.cites-l { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-2); }
.bul { display: grid; gap: 0.55rem; }
.bul li { padding-left: 1.4rem; position: relative; }
.bul li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--accent); }

.callout { border-radius: 14px; padding: 0.85rem 1rem 0.95rem; background: var(--bg); border-left: 4px solid var(--ink-2); }
.callout .co-t { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.25rem; }
.callout p + p { margin-top: 0.4rem; }
.callout.tone-why { border-left-color: var(--signal); background: var(--signal-tint); }
.callout.tone-rule { border-left-color: var(--sea); background: var(--sea-tint); }
.callout.tone-warn { border-left-color: var(--danger); background: var(--danger-tint); }
.callout.tone-tip { border-left-color: var(--safe); background: var(--safe-tint); }

.steps { counter-reset: st; display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.steps li { counter-increment: st; position: relative; display: grid; grid-template-rows: auto 1fr; gap: 0.5rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 1rem 1.05rem 1.1rem; box-shadow: var(--sh-1); }
.steps li::before { content: counter(st); position: absolute; top: 0.85rem; right: 0.9rem; font-weight: 800; font-size: 0.8rem; color: var(--accent-ink); background: var(--accent-tint); width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; }
.steps li .st-ic { width: 3rem; height: 3rem; }
.steps li .st-b b { font-size: 1.1rem; font-weight: 800; }
.steps li .st-b p { margin-top: 0.2rem; font-size: 0.95em; color: var(--ink-2); }
.steps li:not(.has-ic) { grid-template-rows: none; padding-top: 3rem; }
.steps li.has-ic { grid-template-rows: auto 1fr; }
.steps li.has-ic > .st-ic { order: -1; }

.cards-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.card-i { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 1rem 1.1rem 1.1rem; box-shadow: var(--sh-1); }
.card-i h2 { font-size: 1.12rem; margin-bottom: 0.3rem; }
.card-i p { color: var(--ink-2); font-size: 0.95em; }

/* ===== Report example ===== */
.rp { display: grid; gap: 0.8rem; }
.rp-weak { display: flex; gap: 0.6rem; align-items: baseline; flex-wrap: wrap; border: 1px dashed var(--danger); border-radius: 14px; padding: 0.7rem 0.9rem; background: var(--danger-tint); }
.rp-q { font-weight: 600; }
.rp-tag { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.15rem 0.55rem; border: 1px solid; border-radius: 999px; background: #fff; }
.rp-tag.bad { color: var(--danger); border-color: var(--danger); }
.rp-tag.good { color: var(--safe); border-color: var(--safe); }
.rp-why { color: var(--ink-2); font-size: 0.95em; }
.rp-strong { border: 1px solid #BFE4D4; border-radius: 14px; padding: 0.75rem 0.95rem 0.85rem; background: var(--safe-tint); display: grid; gap: 0.55rem; }
.rp-parts { display: grid; gap: 0.4rem; }
.rp-parts li { display: grid; grid-template-columns: 5.6rem 1fr; gap: 0.7rem; align-items: baseline; }
.rp-label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; background: var(--navy); color: #fff; padding: 0.2rem 0.45rem; border-radius: 6px; text-align: center; }
.rp-label.p1 { background: var(--sea); color: #fff; } .rp-label.p2 { background: var(--safe); color: #fff; }
.rp-label.p3 { background: var(--danger); color: #fff; } .rp-label.p4 { background: var(--signal); color: var(--ink); }
.rp-sent { font-size: 0.97em; border-left: 3px solid var(--signal); padding-left: 0.8rem; }
.rp-l { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.rp-tip { font-size: 0.95em; color: var(--ink-2); }
.seg { padding: 0 0.15em; border-bottom: 3px solid; border-radius: 3px; }
.seg.s1 { border-color: var(--sea); background: var(--sea-tint); } .seg.s2 { border-color: var(--safe); background: var(--safe-tint); }
.seg.s3 { border-color: var(--danger); background: var(--danger-tint); } .seg.s4 { border-color: var(--signal); background: var(--signal-tint); }

/* ===== Pictures: tap to explore, find the hazards ===== */
.fig { position: relative; width: 100%; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: visible; box-shadow: var(--sh-1); }
.fig .scene-svg { border-radius: 15px; }
.figwrap { display: grid; gap: 0.5rem; }
.fig-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0.35rem; margin: -0.35rem; }
.figwrap.zoomed .fig { width: 200%; max-width: none; }
.zoom-b { display: none; min-height: 44px; padding: 0.4rem 0.9rem; font-size: 0.95rem; justify-self: start; }
@media (max-width: 40rem) { .zoom-b { display: inline-flex; } }
.hot {
  position: absolute; transform: translate(-50%, -50%); width: 2.15rem; height: 2.15rem; padding: 0; border-radius: 50%;
  background: #fff; color: var(--navy); border: 2px solid var(--navy); font-weight: 800; font-size: 0.95rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 4px 10px -2px rgba(18, 40, 74, 0.45); transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.hot:hover { background: var(--signal-tint); transform: translate(-50%, -50%) scale(1.12); }
.hot.seen { background: var(--navy); color: #fff; }
.hot[aria-pressed="true"] { background: var(--accent); color: var(--ink); border-color: var(--navy); transform: translate(-50%, -50%) scale(1.15); }
.hot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; pointer-events: none; }
.hot.ping::after { animation: ping 1.6s ease-out 2; }
@keyframes ping { 0% { transform: scale(0.85); opacity: 0.9; } 100% { transform: scale(1.7); opacity: 0; } }
.zone {
  position: absolute; transform: translate(-50%, -50%); min-width: 32px; min-height: 32px; padding: 0; background: transparent;
  border: 2px dashed transparent; border-radius: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 0.15s ease, border-color 0.15s ease;
}
.zone:hover { border-color: rgba(18, 40, 74, 0.45); }
.zone.on { border: 3px solid var(--navy); background: rgba(245, 179, 1, 0.34); }
.zone.right { border: 3px solid var(--safe); background: rgba(12, 122, 92, 0.22); }
.zone.miss { border: 3px dashed var(--danger); background: rgba(194, 54, 43, 0.1); }
.zone.false { border: 3px solid var(--danger); background: rgba(194, 54, 43, 0.26); }
.zone.plain { border-color: transparent; }
.zone:disabled { cursor: default; }
.zone-n { position: absolute; top: -12px; left: -12px; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 0.78rem; font-weight: 800; display: grid; place-items: center; }
.xp-ask { font-weight: 700; margin-top: 0.2rem; }
.xp-sort { display: grid; gap: 0.45rem; margin-top: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.xp-res { font-weight: 700; margin-bottom: 0.3rem; }
.xp-res.ok { color: var(--safe); } .xp-res.no { color: var(--danger); }
.xp-panel { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); padding: 0.85rem 1.05rem 0.95rem; min-height: 6.5rem; }
.xp-t { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.3rem; letter-spacing: -0.01em; line-height: 1.2; }
.xp-hint { color: var(--ink-2); }
.xp-count { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }

/* ===== Builders: Hold up, push back, who to call, write your own ===== */
.sy-beat { border: 1px solid var(--line); border-radius: 14px; padding: 0.7rem 0.95rem 0.85rem; background: #fff; box-shadow: var(--sh-1); }
.sy-beat + .sy-beat { margin-top: 0.7rem; }
.sy-beat legend { font-weight: 800; padding: 0; float: left; width: 100%; margin: 0 0 0.45rem; }
.sy-beat legend + * { clear: both; }
.sy-note { min-height: 1.4rem; font-size: 0.95em; margin-top: 0.4rem; color: var(--ink-2); }
.sy-note.ok { color: var(--safe); font-weight: 600; } .sy-note.no { color: var(--danger); font-weight: 600; }
.sy-prev { border-left: 4px solid var(--signal); padding: 0.4rem 0 0.4rem 0.9rem; font-size: 1.05em; margin-top: 0.8rem; background: var(--signal-tint); border-radius: 0 10px 10px 0; padding-right: 0.8rem; }
.sy-verdict { font-weight: 700; margin-top: 0.4rem; }
.sy-after { margin-top: 0.8rem; color: var(--ink-2); }
.sy-beat.pb { background: var(--signal-tint); border-color: #F2DB8B; }
.pushback .pb-ask { color: var(--ink-2); margin-top: 0.15rem; }
.pushback > * + * { margin-top: 0.7rem; }
.choice { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.7rem 0.85rem; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.choice + .choice { margin-top: 0.5rem; }
.choice:hover { border-color: var(--navy); }
.choice input { width: 1.3rem; height: 1.3rem; margin: 0.15rem 0 0; accent-color: var(--navy); flex: none; }
.choice:has(input:checked) { background: var(--safe-tint); border-color: var(--safe); }
.choice:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
.wc-list { display: grid; gap: 0.5rem; }
.wc-btn { text-align: left; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; padding: 0.7rem 0.95rem; min-height: 50px; font-weight: 600; cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.wc-btn:hover { border-color: var(--navy); background: var(--bg); }
.wc-btn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.wc-btn.sm { min-height: 44px; padding: 0.45rem 0.8rem; }
.wc-panel { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); padding: 0.85rem 1.05rem 0.95rem; margin-top: 0.7rem; min-height: 5rem; }
.wc-contact { font-weight: 800; margin-top: 0.45rem; }
.wc-note { font-size: 0.9em; color: var(--ink-2); margin-top: 0.6rem; }
.tel { font-weight: 800; }
.whocall { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
@media (min-width: 62rem) { .whocall { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; } .whocall .wc-panel { margin-top: 0; min-height: 100%; } .whocall .wc-note { grid-column: 1 / -1; } }
.wr-l { display: block; font-weight: 700; margin: 0.7rem 0 0.25rem; }
.cp-hint { font-weight: 400; color: var(--ink-2); }
.wr-i, .wr-t { width: 100%; font: inherit; font-size: 1.02rem; padding: 0.55rem 0.75rem; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); min-height: 46px; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.wr-i:focus, .wr-t:focus { border-color: var(--navy); }
.wr-t { resize: vertical; }
.wr-l .rp-label { display: inline-block; margin-right: 0.4rem; padding: 0.15rem 0.5rem; }
.compose { display: grid; gap: 0.6rem 2rem; }
@media (min-width: 62rem) {
  .compose { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-auto-flow: row; align-items: start; }
  .compose > .cp-facts { grid-column: 1; grid-row: 1 / span 6; position: sticky; top: 5rem; }
  .compose > :not(.cp-facts) { grid-column: 2; }
}
.cp-facts { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); padding: 0.75rem 1rem 0.9rem; }
.cp-warn { color: var(--danger); font-weight: 700; min-height: 1.4rem; }
.cp-out { display: grid; gap: 0.6rem; }
.cp-checks { display: grid; gap: 0.4rem; }
.cp-checks li { border: 1px solid var(--line-2); border-radius: 10px; padding: 0.4rem 0.75rem; background: #fff; }
.cp-checks li.ok { border-color: #8FD0B6; background: var(--safe-tint); } .cp-checks li.no { border-color: #E9A39C; background: var(--danger-tint); }
.cp-note { font-size: 0.92em; color: var(--ink-2); }
.cp-send { margin: 0; }
.fixit { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); padding: 0.8rem 1rem 1rem; margin-top: 0.8rem; }
.fx-msg { font-size: 1.02em; margin-bottom: 0.5rem; }
.fixit fieldset { margin-bottom: 0.6rem; }
.fixit legend { font-weight: 700; margin-bottom: 0.3rem; }
.fx-out { margin-top: 0.6rem; }
.fx-out .btn { margin-top: 0.5rem; }
.chain { display: grid; gap: 0.5rem; counter-reset: ch; }
.chain li { counter-increment: ch; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 0.6rem 0.9rem; display: grid; gap: 0.15rem; }
.chain li b { font-size: 1.1rem; }

/* ===== Questions: answer cards, feedback, practice items ===== */
.item { display: grid; gap: 1.2rem 2.5rem; align-items: start; }
.item .q-main { display: grid; gap: 1rem; min-width: 0; }
.item .fb-slot { min-width: 0; }
@media (min-width: 62rem) {
  .item.has-slot { grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); }
  .item.solo { max-width: 52rem; }
}
.fb-slot:empty { border: 1.5px dashed var(--line-2); border-radius: 16px; min-height: 9rem; display: grid; place-items: center; color: var(--ink-2); font-size: 0.92rem; padding: 1rem; text-align: center; }
.fb-slot:empty::before { content: "Your answer and the reason will show here."; }
@media (max-width: 62rem) { .fb-slot:empty { display: none; } }
.options { display: grid; gap: 0.7rem; margin-top: 0.85rem; }
.option, .opt {
  width: 100%; text-align: left; cursor: pointer; display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: start; min-height: 56px;
  padding: 0.8rem 1rem; background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r); box-shadow: var(--sh-1); position: relative;
  transition: border-color 0.15s ease, box-shadow 0.18s ease, transform 0.15s ease, background-color 0.15s ease;
}
.option:hover:not([disabled]), .opt:hover { border-color: var(--navy); transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(18, 40, 74, 0.5); }
.option .ltr, .opt .ltr, .opt .box { font-weight: 800; font-size: 0.9rem; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; background: var(--bg-2); color: var(--navy); border-radius: 9px; flex: none; transition: background-color 0.15s ease, color 0.15s ease; }
.opt .box { border-radius: 7px; border: 1.5px solid var(--line-2); background: #fff; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt input:checked + .ltr, .opt input:checked + .box { background: var(--navy); color: #fff; border-color: var(--navy); }
.opt input:checked + .box::after { content: "\2713"; font-weight: 800; }
.opt:has(input:checked) { background: var(--sea-tint); border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.opt:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
.opt:has(input:disabled) { cursor: default; transform: none; }
.opt:has(input:disabled):hover { border-color: var(--line-2); box-shadow: var(--sh-1); }
.option .txt, .opt .txt { display: block; padding-top: 0.2rem; }
.option .verdict { display: none; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.4rem; }
.option[disabled] { cursor: default; }
.option.tried { background: var(--bg); border-style: dashed; color: var(--ink); }
.option.tried .verdict { display: block; }
.option.tried.q-risky { border-color: var(--danger); } .option.tried.q-risky .verdict { color: var(--danger); }
.option.tried.q-partial { border-color: var(--signal-ink); } .option.tried.q-partial .verdict { color: var(--signal-ink); }
.option.tried.q-best { border-style: solid; border-color: var(--safe); background: var(--safe-tint); } .option.tried.q-best .verdict { color: var(--safe); }
.options.collapsed li:not(.keep) { display: none; }
.option.msg .txt, .opt.msg .txt { background: #fff; border: 1.5px solid var(--line-2); border-radius: 16px 16px 16px 4px; padding: 0.55rem 0.8rem; }
.opt.msg .txt::before, .option.msg .txt::before { content: attr(data-label); display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.15rem; }
.option.tried.msg .txt { background: transparent; }

.fb { border: 1px solid var(--line); border-radius: 16px; background: var(--bg); padding: 1rem 1.15rem 1.15rem; display: grid; gap: 0.85rem; box-shadow: var(--sh-1); }
.fb-h { margin: 0; font-size: 1rem; }
.pill { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; padding: 0.28rem 0.7rem; border-radius: 999px; border: 1.5px solid; }
.pill.q-risky { color: var(--danger); border-color: var(--danger); background: var(--danger-tint); }
.pill.q-partial { color: var(--signal-ink); border-color: #D9A400; background: var(--signal-tint); }
.pill.q-best { color: var(--safe); border-color: var(--safe); background: var(--safe-tint); }
.slip { padding: 0.75rem 0.95rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.slip p + p { margin-top: 0.4rem; }
.why { padding: 0.1rem 0 0.1rem 0.95rem; border-left: 4px solid var(--accent); }
.rule { padding: 0.75rem 0.95rem; background: var(--sea-tint); border-radius: 12px; font-size: 0.97em; }
.fb .actions { margin-top: 0; }
.order-hint { font-size: 0.93em; color: var(--ink-2); margin: 0.4rem 0 0; }
.ord { display: grid; gap: 0.5rem; margin-top: 0.8rem; }
.ord li { display: grid; grid-template-columns: auto 1fr auto; gap: 0.7rem; align-items: center; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; padding: 0.55rem 0.7rem; box-shadow: var(--sh-1); }
.ord-n { font-weight: 800; background: var(--navy); color: #fff; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 9px; font-size: 0.9rem; }
.ord-b { display: flex; gap: 0.35rem; }
.mv { width: 44px; height: 44px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 0.95rem; cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.mv:hover:not(:disabled) { border-color: var(--navy); background: var(--bg); }
.mv:disabled { opacity: 0.35; cursor: default; }
.ord-ans li { grid-template-columns: auto 1fr; }
.mf { display: grid; gap: 0.5rem; margin-top: 0.4rem; }
.mf li { border: 1px solid var(--line-2); border-radius: 12px; padding: 0.55rem 0.8rem; display: grid; gap: 0.1rem; background: #fff; }
.mf li.ok { border-color: #8FD0B6; background: var(--safe-tint); } .mf li.miss { border-color: #D9A400; background: var(--signal-tint); border-style: dashed; } .mf li.no { border-color: #E9A39C; background: var(--danger-tint); }
.mf-s { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }

/* use it or tag it */
.rapid { gap: 1rem; }
.rp-card { position: relative; border-radius: 20px; background: #fff; padding: 1.3rem 1.4rem; min-height: 8rem; box-shadow: var(--sh-2); border: 1px solid var(--line); overflow: hidden; }
.rp-card-t { font-size: 1.15em; font-weight: 600; line-height: 1.45; }
.rp-clock { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--bg-2); }
.rp-clock > i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left center; }
.rp-fb { min-height: 3.2rem; }
.rp-fb.ok b { color: var(--safe); } .rp-fb.no b { color: var(--danger); }
.rp-btns .btn { flex: 1 1 8rem; }

/* ===== Training map, intro, wrap, results ===== */
.resume { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; align-items: center; border: 1px solid #F2DB8B; border-radius: 14px; background: var(--signal-tint); padding: 0.7rem 1rem; }
.resume.back { background: var(--sea-tint); border-color: #BCD3EE; }
.resume .btn { min-height: 44px; padding: 0.4rem 1rem; font-size: 0.95rem; }
.lessons { display: grid; gap: 0.7rem; }
.ls { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 0.75rem 0.95rem; box-shadow: var(--sh-1); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.ls:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -14px rgba(18, 40, 74, 0.5); }
.ls.done { background: var(--safe-tint); border-color: #BFE4D4; }
.ls.locked { opacity: 0.85; border-style: dashed; background: var(--bg); }
.ls-n { font-weight: 800; background: var(--navy); color: #fff; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 12px; }
.ls-n.ic { background: var(--accent-tint); width: 3rem; height: 3rem; padding: 0.4rem; }
.ls-b { display: grid; gap: 0.1rem; min-width: 0; }
.ls-s { font-size: 0.92em; color: var(--ink-2); }
.ls-st { font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; font-weight: 800; color: var(--ink-2); }
.ls.done .ls-st { color: var(--safe); }
.ls .btn { min-height: 44px; padding: 0.4rem 1.1rem; font-size: 0.95rem; }
@media (max-width: 30rem) { .ls { grid-template-columns: auto 1fr; } .ls .btn { grid-column: 1 / -1; } }
.map-grid { display: grid; gap: 1.4rem 2.5rem; }
@media (min-width: 62rem) { .map-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; } }
.panel { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 1rem 1.1rem 1.15rem; box-shadow: var(--sh-1); }
.panel > h2 { margin-bottom: 0.35rem; }
.panel > p { color: var(--ink-2); font-size: 0.95em; }
.tbl-wrap { overflow-x: auto; }
.grid { width: 100%; border-collapse: separate; border-spacing: 4px; margin-top: 0.7rem; table-layout: fixed; }
.grid th, .grid td { border-radius: 10px; padding: 0.5rem 0.3rem; text-align: center; font-size: 0.82rem; overflow-wrap: anywhere; }
.grid thead th { background: var(--navy); color: #fff; font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.45rem 0.15rem; }
.grid tbody th { text-align: left; background: var(--bg-2); font-weight: 800; width: 4.6rem; padding-left: 0.55rem; }
.grid td { background: var(--bg); font-weight: 600; transition: background-color 0.4s ease; }
.gs-solid { background: var(--safe-tint) !important; color: var(--safe); }
.gs-partial { background: var(--signal-tint) !important; color: var(--signal-ink); }
.gs-review { background: var(--danger-tint) !important; color: var(--danger); }
.gs-learned { color: var(--ink-2); background: #fff !important; box-shadow: inset 0 0 0 1.5px var(--line-2); } .gs-none { color: var(--ink-2); font-weight: 400; }
.cell-go { display: block; margin: 0.3rem auto 0; min-height: 36px; padding: 0.15rem 0.55rem; border: 1.5px solid var(--line-2); border-radius: 8px; background: #fff; font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.cell-go:hover { border-color: var(--navy); }
.plan { counter-reset: pl; display: grid; gap: 0.5rem; }
.plan li { counter-increment: pl; padding-left: 2.2rem; position: relative; }
.plan li::before { content: counter(pl); position: absolute; left: 0; top: 0.1em; font-weight: 800; background: var(--accent-tint); color: var(--accent-ink); width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; font-size: 0.8rem; }
.cardrow { display: grid; gap: 0.6rem; }
.cardrow div { border: 1px solid var(--line); border-radius: 14px; padding: 0.65rem 0.9rem; background: #fff; display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.7rem; box-shadow: var(--sh-1); }
.cardrow dt { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; padding-top: 0.2rem; color: var(--accent-ink); }
.cardrow dd { margin: 0; }
.review { display: grid; gap: 0.8rem; }
.review li { border: 1px solid var(--line); border-radius: 14px; padding: 0.75rem 0.95rem 0.9rem; background: #fff; display: grid; gap: 0.35rem; box-shadow: var(--sh-1); }
.rv-a { font-size: 0.95em; }
.review .btn { justify-self: start; min-height: 44px; padding: 0.4rem 1rem; font-size: 0.95rem; margin-top: 0.2rem; }
.commit { border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; background: #fff; }
.saved { font-weight: 700; color: var(--safe); margin-top: 0.6rem; }
.res-grid { display: grid; gap: 1.4rem 2.5rem; }
@media (min-width: 62rem) { .res-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.score-ring { display: flex; align-items: center; gap: 1.2rem; }
.score-ring svg { width: 7.5rem; height: 7.5rem; flex: none; }
.score-ring .big { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }

/* intro slides */
.cover-art { width: 100%; max-width: 34rem; justify-self: center; }
.cover-art svg { width: 100%; height: auto; max-height: 22rem; display: block; }
.moves3 { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); counter-reset: mv; }
.mv-t { position: relative; border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 1.1rem 1.1rem 1.2rem; box-shadow: var(--sh-1); display: grid; gap: 0.5rem; align-content: start; }
.mv-t .mv-ic { width: 3.6rem; height: 3.6rem; }
.mv-t b { font-size: 1.3rem; letter-spacing: -0.01em; }
.mv-t p { color: var(--ink-2); font-size: 0.95em; }
.mv-t .mv-n { position: absolute; top: 0.9rem; right: 1rem; font-weight: 800; color: var(--line-2); font-size: 1.6rem; }
.cases4 { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.case { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 1rem 1.1rem 1.1rem; display: grid; gap: 0.5rem; box-shadow: var(--sh-1); }
.case .hz-ic { width: 2.6rem; height: 2.6rem; padding: 0.35rem; background: var(--accent-tint); border-radius: 12px; }
.case b { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.goal-card { border-radius: 20px; background: var(--navy); color: #fff; padding: 1.4rem 1.5rem 1.5rem; display: grid; gap: 0.5rem; box-shadow: var(--sh-2); }
.goal-card .mini { color: #AFC3E0; }
.goal-card p { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.8rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.two-up { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.two-up .panel p { color: var(--ink); font-size: 0.97em; margin-top: 0.2rem; }
.path { display: grid; gap: 0.6rem; position: relative; }
.path li { display: grid; grid-template-columns: auto 1fr auto; gap: 0.9rem; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 0.6rem 0.9rem; box-shadow: var(--sh-1); }
.path .p-ic { width: 2.4rem; height: 2.4rem; padding: 0.3rem; background: var(--accent-tint); border-radius: 10px; }
.path .p-t { font-weight: 700; }
.path .p-m { font-size: 0.85rem; color: var(--ink-2); font-weight: 600; }
.wrap-ok { display: flex; align-items: center; gap: 1rem; }
.wrap-ok svg { width: 4.5rem; height: 4.5rem; flex: none; }
.ok-ring { fill: none; stroke: var(--safe); stroke-width: 4; }
.ok-tick { fill: none; stroke: var(--safe); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.course-bar { display: grid; gap: 0.5rem; }
.course-bar li { display: grid; grid-template-columns: 2rem 1fr auto; gap: 0.7rem; align-items: center; font-weight: 600; }
.course-bar .cb-i { width: 1.9rem; height: 1.9rem; padding: 0.2rem; border-radius: 8px; background: var(--bg); }
.course-bar li.done .cb-i { background: var(--safe-tint); }
.course-bar .cb-s { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.course-bar li.done .cb-s { color: var(--safe); }
.course-bar li.now { color: var(--accent-ink); }

/* session data dialog */
dialog.data { width: min(46rem, calc(100vw - 1.5rem)); max-height: calc(100vh - 2rem); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px -20px rgba(15, 27, 45, 0.5); }
dialog.data::backdrop { background: rgba(15, 27, 45, 0.55); backdrop-filter: blur(2px); }
.data-in { padding: 1.3rem; overflow: auto; max-height: calc(100vh - 2rem); }
.warn { background: var(--signal-tint); border: 1px solid #F2DB8B; border-radius: 12px; padding: 0.65rem 0.85rem; font-size: 0.95rem; margin-top: 0.7rem; }
.stmts { margin-top: 0.9rem; display: grid; gap: 0.5rem; }
.stmt { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0.5rem 0.7rem; font-size: 0.92rem; }
.stmt .who { font-size: 0.78rem; color: var(--ink-2); }
.stmt b { font-weight: 800; }
pre.json { margin: 0.9rem 0 0; padding: 0.8rem; background: var(--navy); color: #E8EEF8; border-radius: 12px; max-height: 16rem; overflow: auto; font-family: var(--mono); font-size: 0.78rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
noscript .slide { margin: 1rem; }

/* ===== Illustrations: one clean flat style, thin slate outlines ===== */
.scene-svg, .art, .dg, .ic { --o: #34435C; }
.art { display: block; width: 100%; height: auto; margin: 0 auto; }
.scene-svg { display: block; width: 100%; height: 100%; }
.k { fill: none; stroke: var(--o); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic .k { stroke-width: 2.2; }
.f-p { fill: #EEF1F7; } .f-w { fill: #fff; } .f-s { fill: #FFC21A; } .f-i { fill: #26354E; }
.f-b { fill: #A9CBEA; } .f-r { fill: #E5533D; } .f-g { fill: #8CCBAA; }
.f-wall { fill: #F4F1EA; } .f-tile { fill: #E1E6EE; } .f-gray { fill: #C8D0DC; }
.f-wood { fill: #D9B890; } .f-sky { fill: #DCEBF6; } .f-sea { fill: #B6D3E8; }
.soft { opacity: 0.55; }
.dash { stroke-dasharray: 2 8; }
.dash.red { stroke: var(--danger); } .dash.sig { stroke: var(--o); stroke-dasharray: 8 6; }
.red-stroke { stroke: var(--danger); }
.cord-edge { stroke-width: 12; stroke: #B84F1D; }
.cord { fill: none; stroke: var(--cord); stroke-width: 8.5; stroke-linecap: round; }
.gap { stroke: #fff; stroke-width: 11; stroke-linecap: butt; fill: none; }
.copper { stroke: var(--copper); stroke-width: 3; stroke-linecap: round; fill: none; }
.tag-t { font-family: var(--mono); font-weight: 800; font-size: 11px; fill: var(--ink); letter-spacing: 0.04em; }
.thick { stroke-width: 3.6; } .thin { stroke-width: 1.1; }
.wh { stroke: #fff; }
.blade { fill: none; stroke: #9AA7BA; stroke-width: 5; stroke-linecap: round; }
.dashed-hole { fill: none; stroke-dasharray: 3 4; stroke-width: 2; }
.duct { stroke-width: 10; stroke: #9AA7BA; }
.crush-edge { fill: none; stroke: #B84F1D; stroke-width: 8; stroke-linecap: round; }
.crush { fill: none; stroke: var(--cord); stroke-width: 3.6; stroke-linecap: round; }
.tape-g .tape { fill: none; stroke: #6B7280; stroke-width: 8; stroke-linecap: butt; }
.rust { fill: #B2653A; stroke: var(--o); stroke-width: 1.5; }
.gapbox { fill: rgba(245, 179, 1, 0.14); stroke: var(--o); stroke-width: 2.4; stroke-dasharray: 9 7; }
.line { fill: none; stroke-width: 2.6; }
.rope { fill: none; stroke: #8A6A3A; stroke-width: 4.5; stroke-linecap: round; }
.mop { stroke-width: 4.5; }
.cord-coil { fill: none; stroke: var(--cord); stroke-width: 5; }
.picto { stroke-width: 4; stroke: var(--danger); }
.lbl-t { font-family: var(--sans); font-weight: 800; font-size: 40px; fill: var(--ink); }
.lbl-s { font-family: var(--sans); font-weight: 700; font-size: 20px; fill: var(--ink); letter-spacing: 0.04em; }
.lbl-b { font-family: var(--sans); font-weight: 500; font-size: 22px; fill: var(--ink); }
.lbl-n { font-family: var(--mono); font-size: 14px; fill: var(--ink-2); }
.fig-d { margin: 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 0.9rem 0.8rem 0.8rem; box-shadow: var(--sh-1); }
.fig-d figcaption, .fig-d .cites { padding: 0 0.3rem; }
.fig-d .dg { display: block; width: 100%; height: auto; max-height: 31rem; margin: 0 auto; }
.fig-d figcaption { margin-top: 0.6rem; font-size: 0.93em; color: var(--ink-2); }
.fig-d .cites { margin-top: 0.3rem; }
.dg-wrap { container-type: inline-size; }
.fig-d .dg.dg-w { display: none; }
@container (min-width: 34rem) { .fig-d .dg.dg-p.has-w { display: none; } .fig-d .dg.dg-w { display: block; } }
@media (min-width: 62rem) { .fig-d .dg { max-height: 26rem; } }
@supports (height: 100dvh) { @media (min-width: 62rem) { .fig-d .dg { max-height: clamp(14rem, calc(100dvh - 24rem), 26rem); } } }
.dg-h { font-family: var(--sans); font-weight: 800; font-size: 18px; fill: var(--ink); }
.dg-t { font-family: var(--sans); font-weight: 700; font-size: 16px; fill: var(--ink); }
.dg-s { font-family: var(--sans); font-weight: 500; font-size: 15px; fill: var(--ink-2); }
.dg-m { font-family: var(--sans); font-weight: 800; font-size: 12px; letter-spacing: 0.08em; fill: var(--ink-2); }
.dg-big { font-family: var(--sans); font-weight: 800; font-size: 28px; fill: var(--ink); }
.dg .light { fill: #fff; }
.dg .f-red { fill: #C2362B; } .dg .f-amber { fill: #FFC21A; } .dg .f-gbox { fill: #F1F4F9; } .dg .f-fire { fill: #FFEBC2; }
.dg .cord-line { stroke: var(--cord); stroke-width: 5; }
.dg .green { stroke: var(--safe); stroke-width: 3.4; }
.dg .red-dash { stroke: var(--danger); stroke-dasharray: 6 6; stroke-width: 3.4; }
.dg .light-stroke { stroke: #fff; }
.dg .sig-stroke { stroke: var(--signal-ink); stroke-width: 2.6; }
.ic { display: block; width: 100%; height: 100%; }
.ic-t { font-family: var(--sans); font-weight: 800; font-size: 12px; fill: var(--ink); }
.ic .red-dash { stroke: var(--danger); stroke-dasharray: 3 3; stroke-width: 2; fill: none; }
.ic .red-stroke { stroke: var(--danger); stroke-width: 2.6; }
.st-ic { width: 44px; height: 44px; flex: none; }
.hz-ic { width: 34px; height: 34px; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .flow { stroke-dasharray: 7 7; animation: flow 1.1s linear infinite; }
  .flow.slow { animation-duration: 2.2s; }
  .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 1.8s ease-in-out infinite; }
  @keyframes flow { to { stroke-dashoffset: -14; } }
  @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
}
.ok-pop { transform-origin: center; }

@media print {
  .top, .deck-nav, .actions, .tool { display: none !important; }
  body { background: #fff; }
  .slide { box-shadow: none; border: 0; }
}

/* ===== Slide regions and the pieces that fill them ===== */
.slide.two.no-b .s-a { grid-column: 1 / -1; }
.slide.two.no-a .s-b { grid-column: 1 / -1; }
.s-w { grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); }
.s-w > .steps, .s-w > .cards-grid, .s-w > .explore, .s-w > .compose, .s-w > .item, .s-w > .map-grid, .s-w > .res-grid,
.s-w > .cases4, .s-w > .moves3, .s-w > .fig-d, .s-w > .rp, .s-w > .stack { grid-column: 1 / -1; }
.explore { display: grid; gap: 1.2rem 2rem; align-items: start; }
@media (min-width: 62rem) { .explore { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.xp-pic { min-width: 0; }
.xp-pic .fig { max-width: 40rem; }
.xp-side { display: grid; gap: 0.6rem; min-width: 0; align-content: start; }
.art-wrap { max-width: 36rem; justify-self: center; width: 100%; }
.art-wrap .art { max-height: 22rem; }
.test-dots { display: grid; place-items: center; align-content: center; gap: 0.3rem; padding: 2.2rem 1.5rem; border-radius: 24px; background: var(--navy); color: #fff; min-height: 14rem; box-shadow: var(--sh-2); }
.test-dots .big { font-size: clamp(4.5rem, 3rem + 6vw, 8.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.test-dots .sm { font-size: 1rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #AFC3E0; }
.opt.is-best, .opt.is-best:has(input:checked) { border-color: var(--safe); background: var(--safe-tint); box-shadow: 0 0 0 1px var(--safe); }
.opt.is-bad, .opt.is-bad:has(input:checked) { border-color: var(--danger); background: var(--danger-tint); box-shadow: 0 0 0 1px var(--danger); }
.opt.is-miss { border-color: #D9A400; border-style: dashed; background: var(--signal-tint); }
.opt.is-best .ltr, .opt.is-best .box, .opt.is-best input:checked + .ltr { background: var(--safe); color: #fff; border-color: var(--safe); }
.opt.is-bad .ltr, .opt.is-bad .box, .opt.is-bad input:checked + .ltr { background: var(--danger); color: #fff; border-color: var(--danger); }
.rp-card.ok { border-color: var(--safe); box-shadow: 0 0 0 4px var(--safe-tint), var(--sh-2); }
.rp-card.no { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-tint), var(--sh-2); }
.course-bar .cb-i { display: block; }
[data-hz] .hz-ic, [data-hz] .p-ic, [data-hz] .cb-i { color: var(--accent); }
.s-a > .lead { max-width: 38rem; }

.cover-art { position: relative; }
.cover-badge { position: absolute; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #fff; box-shadow: var(--sh-2); border: 1px solid var(--line); display: grid; place-items: center; padding: 0.6rem; }
.cover-badge .cb { display: block; width: 100%; height: 100%; }
.cover-badge.b0 { left: 4%; top: 14%; } .cover-badge.b1 { right: 6%; top: 2%; } .cover-badge.b2 { right: 0; top: 50%; } .cover-badge.b3 { left: 30%; top: -3%; }
@media (prefers-reduced-motion: no-preference) {
  .cover-badge { animation: bob 4.6s ease-in-out infinite; }
  .cover-badge.b1 { animation-delay: -1.2s; } .cover-badge.b2 { animation-delay: -2.4s; } .cover-badge.b3 { animation-delay: -3.4s; }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
}

/* short screens: tighten the slide so more fits without scrolling */
@media (min-width: 62rem) and (max-height: 800px) {
  .slide { padding: 1.2rem 1.9rem 1.4rem; row-gap: 0.9rem; }
  .chip, .label { margin-bottom: 0.45rem; }
  h1 { font-size: clamp(1.55rem, 1rem + 1.4vw, 2.1rem); }
  .s-head .lead { margin-top: 0.5rem; }
  .steps li { padding: 0.75rem 0.85rem 0.8rem; }
  .steps li .st-ic { width: 2.4rem; height: 2.4rem; }
  .callout { padding: 0.6rem 0.85rem 0.7rem; }
}
.xp-pic .fig { max-width: clamp(22rem, calc((100vh - 26rem) * 1.55), 42rem); }
@supports (height: 100dvh) { .xp-pic .fig { max-width: clamp(22rem, calc((100dvh - 26rem) * 1.55), 42rem); } }
@media (min-width: 62rem) { .slide.intro.solo { align-content: center; } }
.notes3 { display: grid; gap: 0.8rem 1.4rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.notes3 .note-line { font-size: 0.84rem; line-height: 1.45; }
.meta { font-size: 0.95rem; color: var(--ink-2); font-weight: 600; margin-top: 0.5rem; }
.scene-art { justify-self: start; width: 100%; max-width: 21rem; }
.scene-art .art-wrap { max-width: none; }
.scene-art .art { max-height: 12rem; }
.grid thead th:first-child { background: transparent; }
.art-wrap .art { margin: 0; }

.slide.two.wide-a { --ca: 7fr; --cb: 3fr; }
.qrail p { font-size: 0.9rem; margin-top: 0.8rem; }
.qdots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.45rem; margin-top: 0.5rem; }
.qdots li { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; background: var(--bg); color: var(--ink-2); font-weight: 800; font-size: 0.95rem; border: 1.5px solid var(--line); transition: background-color 0.3s ease, color 0.3s ease; }
.qdots li.done { background: var(--navy); color: #fff; border-color: var(--navy); }
.qdots li.now { background: var(--accent-tint); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.item.solo { max-width: none; }

.scene p + p { margin-top: 0.7rem; }
.scene { display: block; }
.commit legend { float: left; width: 100%; padding: 0; margin: 0 0 0.5rem; }
.commit legend + * { clear: both; }


.sr-track { fill: none; stroke: var(--bg-2); stroke-width: 12; }
.sr-bar { fill: none; stroke-width: 12; stroke-linecap: round; }
.sr-bar.ok { stroke: var(--safe); } .sr-bar.no { stroke: var(--danger); }
.score-ring .mini { display: block; margin-top: 0.3rem; }

/* When the reader asks for less motion: no animation, no transition, nothing smooth */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
.tool[aria-pressed="false"] { color: var(--ink-2); }
.tool:disabled { opacity: 0.6; cursor: default; }

.card-i.has-ic { display: grid; gap: 0.3rem; justify-items: start; }
.card-i.has-ic .st-ic { width: 2.8rem; height: 2.8rem; margin-bottom: 0.2rem; }
