/* ═══════════════════════════════════════════════════════════
   AREÁL SLATINA · AI POZNATKY — "BOZP pro AI"
   Occupational-safety-manual design system.
   EU safety-sign taxonomy drives the palette:
     yellow triangle = warning (rizika)
     red circle      = prohibition (nikdy)
     blue circle     = mandatory (pravidla)
     green square    = safe condition (klidně)
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=Archivo+Black&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #131313;
  --ink-soft: #3d3d3b;
  --ink-faint: #6f6e6a;
  --paper: #f7f6f2;
  --card: #fffefb;
  --line: #d9d7d0;

  --signal: #ffc800;        /* warning yellow */
  --signal-deep: #e0ac00;
  --signal-bg: #fff6d6;
  --zakaz: #d7263d;         /* prohibition red */
  --zakaz-bg: #fceaec;
  --prikaz: #1b6ca8;        /* mandatory blue */
  --prikaz-bg: #e8f1f8;
  --bezpeci: #1f7a4d;       /* safety green */
  --bezpeci-bg: #e7f3ec;

  --display: 'Archivo Black', 'Arial Black', sans-serif;
  --body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;

  --sheet-shadow: 5px 5px 0 rgba(19,19,19,.14);
  --sheet-border: 2px solid var(--ink);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--prikaz); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
strong { font-weight: 700; }

:focus-visible { outline: 3px solid var(--prikaz); outline-offset: 2px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--signal); color: var(--ink); font-family: var(--mono);
  padding: 10px 18px; font-size: 14px; text-decoration: none;
}
.skip:focus-visible { left: 8px; top: 8px; }

h1, h2, h3, h4 { line-height: 1.12; text-wrap: balance; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ── Hazard stripe (section divider / accents) ── */
.stripe {
  height: 14px;
  background: repeating-linear-gradient(-45deg,
    var(--signal) 0 16px, var(--ink) 16px 32px);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.stripe.thin { height: 8px; border-width: 1.5px; }

/* ── Topbar ── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; gap: 14px;
  padding: 0 18px; height: 54px;
  border-bottom: 3px solid var(--signal);
}
.topbar .logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: .04em;
}
.topbar .logo a { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.topbar .logo .plate {
  background: var(--signal); color: var(--ink);
  font-family: var(--display); font-size: 13px; letter-spacing: .02em;
  padding: 4px 8px; line-height: 1;
}
.topbar .logo .sub { color: rgba(255,255,255,.65); font-weight: 400; }
.topbar nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.topbar nav a {
  color: rgba(255,255,255,.85); text-decoration: none;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .03em;
  padding: 7px 11px;
}
.topbar nav a:hover { color: var(--signal); }
.topbar nav a.cta {
  background: var(--signal); color: var(--ink); font-weight: 600;
  border: 2px solid var(--signal);
}
.topbar nav a.cta:hover { background: #fff; border-color: #fff; color: var(--ink); }
@media (max-width: 640px) {
  .topbar nav a:not(.cta) { display: none; }
}

/* ── Hero ── */
.hero {
  background: var(--signal);
  border-bottom: 3px solid var(--ink);
  padding: 64px 24px 56px;
  position: relative; overflow: hidden;
}
.hero .inner { max-width: 1000px; margin: 0 auto; position: relative; z-index: 2; }
.hero .kicker {
  display: inline-block; font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--ink); color: var(--signal);
  padding: 7px 14px; margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(38px, 7vw, 84px);
  letter-spacing: -.015em;
  text-transform: uppercase;
  line-height: .98;
  margin: 0 0 22px;
}
.hero h1 .under {
  box-shadow: inset 0 -0.28em 0 var(--card);
}
.hero .tagline {
  font-size: clamp(16px, 2.2vw, 20px); max-width: 620px; line-height: 1.5;
  font-weight: 500; margin: 0 0 10px;
}
.hero .meta { font-family: var(--mono); font-size: 13px; color: rgba(19,19,19,.7); }
.hero .hero-sign {
  position: absolute; right: -30px; bottom: -46px; width: 300px; opacity: .16; z-index: 1;
  transform: rotate(8deg);
}
@media (max-width: 760px) { .hero .hero-sign { width: 190px; } }

/* ── Data plate (impact bar) ── */
.plateband { background: var(--ink); color: #fff; padding: 0 24px; }
.plateband .inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.plateband .cell {
  padding: 22px 18px;
  border-left: 1px solid rgba(255,255,255,.16);
}
.plateband .cell:first-child { border-left: none; }
.plateband .cell .v {
  font-family: var(--display); font-size: clamp(22px, 3.4vw, 34px);
  color: var(--signal); line-height: 1;
}
.plateband .cell .l {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em;
  color: rgba(255,255,255,.7); margin-top: 7px; text-transform: uppercase;
}
@media (max-width: 700px) {
  .plateband .inner { grid-template-columns: 1fr 1fr; }
  .plateband .cell { border-left: none; border-top: 1px solid rgba(255,255,255,.16); }
  .plateband .cell:nth-child(-n+2) { border-top: none; }
  .plateband .cell:nth-child(even) { border-left: 1px solid rgba(255,255,255,.16); }
}

/* ── Layout containers ── */
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
section.blk { padding: 64px 0; }
@media (max-width: 700px) { section.blk { padding: 48px 0; } }

.sechead { margin-bottom: 30px; }
.sechead .tag {
  display: inline-block; font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  border: 2px solid var(--ink); padding: 5px 12px; margin-bottom: 16px;
  background: var(--card);
}
.sechead h2 {
  font-family: var(--display); font-size: clamp(26px, 4vw, 42px);
  text-transform: uppercase; letter-spacing: -.01em; margin: 0 0 10px;
}
.sechead .sub { color: var(--ink-soft); font-size: 16.5px; max-width: 640px; }

/* ── Sheet (laminated card) ── */
.sheet {
  background: var(--card);
  border: var(--sheet-border);
  box-shadow: var(--sheet-shadow);
  border-radius: 3px;
}

/* ── TLDR plate ── */
.tldr {
  border-left: 12px solid var(--signal);
  padding: 24px 28px;
  margin: 40px auto;
}
.tldr .label {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 10px;
}
.tldr p { font-size: 17px; line-height: 1.55; }

/* ── Stamp (severity) ── */
.stamp {
  display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border: 2px solid; border-radius: 2px;
  transform: rotate(-1.5deg);
  background: var(--card);
}
.stamp.vysoke { color: var(--zakaz); border-color: var(--zakaz); }
.stamp.stredni { color: var(--signal-deep); border-color: var(--signal-deep); }
.stamp.nizke { color: var(--bezpeci); border-color: var(--bezpeci); }
.stamp.neutral { color: var(--ink-faint); border-color: var(--ink-faint); transform: none; }
.stamp.zive { color: var(--bezpeci); border-color: var(--bezpeci); transform: none; }

/* ═══════════════ SCROLLY ═══════════════ */
.scrolly { position: relative; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 900px) {
  .scrolly { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: start; }
}
.stagewrap {
  position: sticky; top: 70px; height: calc(100vh - 90px); max-height: 620px;
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
@media (max-width: 899px) {
  .stagewrap { top: 54px; height: 42vh; min-height: 250px; background: var(--paper); }
}
.stage { width: 100%; max-width: 480px; }
.stage svg { width: 100%; height: auto; }

.stage .sc { opacity: 0; transition: opacity .4s ease; }
.stagewrap[data-active="0"] .sc[data-r="0"],
.stagewrap[data-active="1"] .sc[data-r="1"],
.stagewrap[data-active="2"] .sc[data-r="2"],
.stagewrap[data-active="3"] .sc[data-r="3"],
.stagewrap[data-active="4"] .sc[data-r="4"],
.stagewrap[data-active="5"] .sc[data-r="5"],
.stagewrap[data-active="6"] .sc[data-r="6"],
.stagewrap[data-active="7"] .sc[data-r="7"] { opacity: 1; }

/* caption plate under the sign */
.stage .cap { opacity: 0; transition: opacity .4s ease; }
.stagewrap[data-active="0"] .cap[data-r="0"],
.stagewrap[data-active="1"] .cap[data-r="1"],
.stagewrap[data-active="2"] .cap[data-r="2"],
.stagewrap[data-active="3"] .cap[data-r="3"],
.stagewrap[data-active="4"] .cap[data-r="4"],
.stagewrap[data-active="5"] .cap[data-r="5"],
.stagewrap[data-active="6"] .cap[data-r="6"],
.stagewrap[data-active="7"] .cap[data-r="7"] { opacity: 1; }

.steps-col { position: relative; z-index: 2; }
.stepcard-spacer { height: 14vh; }
.step { min-height: 76vh; display: flex; align-items: center; }
.step .stepcard {
  width: 100%;
  background: var(--card); border: var(--sheet-border); border-radius: 3px;
  box-shadow: var(--sheet-shadow);
  padding: 26px 28px;
  opacity: .35; transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
}
.step.active .stepcard { opacity: 1; transform: none; }
.step .meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.step .rnum {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em;
  background: var(--ink); color: var(--signal); padding: 4px 10px;
}
.step h3 {
  font-family: var(--display); font-size: clamp(19px, 2.6vw, 25px);
  text-transform: uppercase; letter-spacing: -.005em; margin: 0 0 12px;
}
.step p { font-size: 15.5px; color: var(--ink-soft); margin: 0 0 20px; }
.step .open {
  display: inline-block; font-family: var(--mono); font-size: 13.5px; font-weight: 600;
  background: var(--ink); color: var(--signal); text-decoration: none;
  padding: 12px 20px; border: 2px solid var(--ink);
  transition: background .15s ease, color .15s ease;
}
.step .open:hover { background: var(--signal); color: var(--ink); }
.step.intro .stepcard { border-left: 12px solid var(--signal); }

/* ── Walker progress ── */
.walkbar {
  position: fixed; top: 54px; left: 0; right: 0; height: 40px; z-index: 90;
  pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: linear-gradient(to bottom, var(--paper) 70%, transparent);
}
.walkbar.on { opacity: 1; }
.walkbar .track {
  position: absolute; left: 24px; right: 24px; top: 28px; height: 3px;
  background: var(--line);
}
.walkbar .track .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); }
.walkbar .walker { position: absolute; top: 2px; left: 24px; width: 18px; height: 28px; transform: translateX(-9px); }
.walker svg { width: 18px; height: 28px; overflow: visible; }
.walker .leg { stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; transform-origin: 9px 17px; }
.walker .arm { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; transform-origin: 9px 10px; }
.walkbar.walking .legA { animation: stepA .4s ease-in-out infinite; }
.walkbar.walking .legB { animation: stepB .4s ease-in-out infinite; }
.walkbar.walking .armA { animation: stepB .4s ease-in-out infinite; }
.walkbar.walking .armB { animation: stepA .4s ease-in-out infinite; }
@keyframes stepA { 0%,100% { transform: rotate(26deg); } 50% { transform: rotate(-26deg); } }
@keyframes stepB { 0%,100% { transform: rotate(-26deg); } 50% { transform: rotate(26deg); } }

/* stage micro-animation */
.pulse { animation: pl 1.7s ease-in-out infinite; }
@keyframes pl { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
.tapL { animation: tapl .34s ease-in-out infinite; }
.tapR { animation: tapl .34s ease-in-out infinite .17s; }
@keyframes tapl { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* ═══════════════ MANDATORY RULES (blue) ═══════════════ */
.rulesband { background: var(--prikaz); color: #fff; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.rulesband .inner { max-width: 860px; margin: 0 auto; padding: 64px 24px; }
.rulesband .tag {
  display: inline-block; font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  border: 2px solid rgba(255,255,255,.5); color: #fff; padding: 5px 12px; margin-bottom: 18px;
}
.rulesband h2 {
  font-family: var(--display); font-size: clamp(26px, 4vw, 40px);
  text-transform: uppercase; margin: 0 0 12px;
}
.rulesband > .inner > p { color: rgba(255,255,255,.85); max-width: 620px; margin-bottom: 34px; }
.rules { list-style: none; display: grid; gap: 18px; }
.rules li {
  position: relative; padding-left: 66px; font-size: 16.5px; line-height: 1.5;
  color: rgba(255,255,255,.88); min-height: 48px; display: flex; align-items: center;
}
.rules li strong { color: #fff; }
.rules li::before {
  content: attr(data-n);
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--prikaz);
  border: 3px solid var(--ink);
  font-family: var(--display); font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}

/* ═══════════════ SEMAFOR (sign taxonomy) ═══════════════ */
.semafor { display: grid; gap: 20px; margin-top: 8px; }
@media (min-width: 780px) { .semafor { grid-template-columns: repeat(3, 1fr); } }
.sem { border: var(--sheet-border); border-radius: 3px; background: var(--card); box-shadow: var(--sheet-shadow); }
.sem .shead { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 2px solid var(--ink); }
.sem .shead .sig { width: 44px; height: 44px; flex: none; }
.sem .shead .t { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.sem .shead .h { font-family: var(--display); font-size: 17px; text-transform: uppercase; }
.sem.green .shead { background: var(--bezpeci-bg); }
.sem.orange .shead { background: var(--signal-bg); }
.sem.red .shead { background: var(--zakaz-bg); }
.sem ul { list-style: none; padding: 18px 20px; display: grid; gap: 11px; }
.sem li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.5; }
.sem.green li::before { content: '✓'; position: absolute; left: 0; color: var(--bezpeci); font-weight: 700; }
.sem.orange li::before { content: '!'; position: absolute; left: 5px; color: var(--signal-deep); font-weight: 800; }
.sem.red li::before { content: '✕'; position: absolute; left: 0; color: var(--zakaz); font-weight: 700; }

/* ═══════════════ QUIZ (inspection form) ═══════════════ */
.quiz { display: grid; gap: 22px; margin-top: 8px; }
.q { padding: 26px 28px; }
.q .q-num {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 10px;
}
.q .q-text { font-size: 17.5px; font-weight: 700; margin-bottom: 18px; }
.q .opts { display: grid; gap: 10px; }
.q .opt {
  position: relative; text-align: left; width: 100%; font: inherit; font-size: 15px; line-height: 1.45;
  padding: 14px 16px 14px 48px;
  border: 2px solid var(--ink); border-radius: 2px; background: var(--paper);
  cursor: pointer; color: var(--ink);
  transition: background .12s ease;
}
.q .opt::before {
  content: ''; position: absolute; left: 14px; top: 16px;
  width: 18px; height: 18px; border: 2px solid var(--ink); background: var(--card);
}
.q .opt:hover { background: var(--signal-bg); }
.q .opt[data-state="correct"] { background: var(--bezpeci-bg); border-color: var(--bezpeci); }
.q .opt[data-state="correct"]::before { content: '✓'; color: var(--bezpeci); font-weight: 800; line-height: 15px; text-align: center; border-color: var(--bezpeci); }
.q .opt[data-state="wrong"] { background: var(--zakaz-bg); border-color: var(--zakaz); }
.q .opt[data-state="wrong"]::before { content: '✕'; color: var(--zakaz); font-weight: 800; line-height: 15px; text-align: center; border-color: var(--zakaz); }
.q .opt:disabled { cursor: default; }
.q .why { display: none; margin-top: 16px; padding: 15px 18px; font-size: 14.5px; line-height: 1.55; border: 2px solid; border-radius: 2px; }
.q .why.show { display: block; }
.q .why.good { background: var(--bezpeci-bg); border-color: var(--bezpeci); color: #14523a; }
.q .why.bad { background: var(--zakaz-bg); border-color: var(--zakaz); color: #8f1a2b; }

/* ═══════════════ REPORT LIST (hub) ═══════════════ */
.reportlist { display: grid; gap: 22px; }
.report {
  display: grid; grid-template-columns: 92px 1fr; text-decoration: none; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
a.report:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 rgba(19,19,19,.14); }
.report .rn {
  background: var(--ink); color: var(--signal);
  font-family: var(--display); font-size: 34px;
  display: flex; align-items: center; justify-content: center;
  border-right: 2px solid var(--ink);
}
.report.planned .rn { background: var(--paper); color: var(--ink-faint); border-right: var(--sheet-border); }
.report .rb { padding: 22px 26px; }
.report .rb .rt { font-family: var(--display); font-size: 20px; text-transform: uppercase; margin: 0 0 8px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.report .rb p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ═══════════════ DETAIL PAGES ═══════════════ */
.dhero { background: var(--signal); border-bottom: 3px solid var(--ink); padding: 46px 24px 40px; }
.dhero .inner { max-width: 760px; margin: 0 auto; }
.dhero .crumbs { font-family: var(--mono); font-size: 12.5px; margin-bottom: 20px; }
.dhero .crumbs a { color: rgba(19,19,19,.75); }
.dhero .crumbs .sep { margin: 0 8px; color: rgba(19,19,19,.4); }
.dhero h1 {
  font-family: var(--display); font-size: clamp(26px, 4.6vw, 46px);
  text-transform: uppercase; letter-spacing: -.01em; line-height: 1.04; margin: 0 0 18px;
}
.dhero .dmeta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.dhero .lede { font-size: 17px; font-weight: 500; line-height: 1.55; max-width: 640px; }

article.detail { max-width: 760px; margin: 0 auto; padding: 48px 24px; }
article.detail > p { margin-bottom: 18px; font-size: 16.5px; }
article.detail h2 {
  font-family: var(--display); font-size: clamp(22px, 3.2vw, 30px);
  text-transform: uppercase; margin: 44px 0 20px;
  scroll-margin-top: 70px;
}

/* chain */
.chain { display: grid; margin: 26px 0; }
.chain .cstep {
  position: relative; padding: 0 0 26px 64px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
}
.chain .cstep.in { opacity: 1; transform: none; }
.chain .cstep::before {
  content: attr(data-n);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px;
  background: var(--card); border: var(--sheet-border);
  font-family: var(--display); font-size: 19px;
  display: flex; align-items: center; justify-content: center;
}
.chain .cstep::after {
  content: ''; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px;
  background: var(--ink); opacity: .25;
}
.chain .cstep:last-child::after { display: none; }
.chain .cstep:last-child::before { background: var(--zakaz); color: #fff; border-color: var(--zakaz); }
.chain .cstep h4 { font-size: 16.5px; font-weight: 700; margin: 9px 0 4px; }
.chain .cstep p { font-size: 15px; color: var(--ink-soft); }

/* story */
.story { border-left: 12px solid var(--signal); padding: 22px 26px; margin: 30px 0; }
.story .label { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 10px; }
.story p { font-size: 15.5px; line-height: 1.6; }

/* stage comparison */
.bandalt { background: #eceae3; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.stagecards { display: grid; gap: 18px; margin-top: 8px; }
@media (min-width: 860px) { .stagecards { grid-template-columns: repeat(3, 1fr); } }
.stagecard { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.stagecard .icon { font-size: 26px; line-height: 1; }
.stagecard .sname { font-family: var(--display); font-size: 15px; text-transform: uppercase; }
.stagecard .tools { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); line-height: 1.5; }
.stagecard .desc { font-size: 13px; color: var(--ink-faint); }
.stagecard .meter { height: 12px; border: 2px solid var(--ink); background: var(--card); margin-top: 4px; }
.stagecard .meter .m { height: 100%; }
.stagecard .meter .m.low { width: 25%; background: var(--bezpeci); }
.stagecard .meter .m.mid { width: 58%; background: var(--signal); }
.stagecard .meter .m.high { width: 92%; background: var(--zakaz); }
.stagecard .mlabel { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.stagecard .mlabel.low { color: var(--bezpeci); }
.stagecard .mlabel.mid { color: var(--signal-deep); }
.stagecard .mlabel.high { color: var(--zakaz); }
.stagecard .why { font-size: 14px; color: var(--ink-soft); }

/* auto split */
.autosplit { display: grid; gap: 18px; margin-top: 8px; }
@media (min-width: 760px) { .autosplit { grid-template-columns: 1fr 1fr; } }
.autocol { border: var(--sheet-border); border-radius: 3px; box-shadow: var(--sheet-shadow); }
.autocol h4 {
  font-family: var(--display); font-size: 14px; text-transform: uppercase; letter-spacing: .02em;
  padding: 14px 20px; border-bottom: 2px solid var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.autocol.ok { background: var(--card); }
.autocol.ok h4 { background: var(--bezpeci); color: #fff; }
.autocol.stop { background: var(--card); }
.autocol.stop h4 { background: var(--zakaz); color: #fff; }
.autocol ul { list-style: none; padding: 18px 20px; display: grid; gap: 11px; }
.autocol li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.5; }
.autocol.ok li::before { content: '▸'; position: absolute; left: 2px; color: var(--bezpeci); font-weight: 700; }
.autocol.stop li::before { content: '✋'; position: absolute; left: 0; font-size: 13px; top: 1px; }

/* defend */
.defend { padding: 24px 28px; margin: 26px 0; }
.defend .label { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 14px; }
.defend ul { list-style: none; display: grid; gap: 12px; }
.defend li { position: relative; padding-left: 34px; font-size: 15.5px; line-height: 1.55; }
.defend li::before {
  content: '✓'; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border: 2px solid var(--bezpeci); color: var(--bezpeci);
  font-size: 13px; font-weight: 800; text-align: center; line-height: 17px;
}

/* takeaway */
.takeaway {
  background: var(--ink); color: rgba(255,255,255,.9);
  padding: 24px 28px; margin: 30px 0; border-radius: 3px;
  border-left: 12px solid var(--signal);
}
.takeaway .label { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); display: block; margin-bottom: 8px; }
.takeaway p { font-size: 17px; }
.takeaway strong { color: #fff; }

/* prev/next */
.pnnav { display: grid; gap: 16px; margin: 44px 0 10px; }
@media (min-width: 720px) { .pnnav { grid-template-columns: 1fr 1fr; } }
.pnnav a {
  display: block; padding: 18px 20px; text-decoration: none; color: var(--ink);
  background: var(--card); border: var(--sheet-border); border-radius: 3px;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 4px 4px 0 rgba(19,19,19,.12);
}
.pnnav a:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 rgba(19,19,19,.14); }
.pnnav a .dir { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 6px; }
.pnnav a .t { font-size: 14.5px; font-weight: 700; }
.pnnav a.next { text-align: right; }

/* ── Annexes (click-to-open deep layer) ── */
.annexes { display: grid; gap: 16px; margin: 26px 0 8px; }
details.annex {
  background: var(--card); border: var(--sheet-border); border-radius: 3px;
  box-shadow: var(--sheet-shadow);
}
details.annex summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 16px 20px;
}
details.annex summary::-webkit-details-marker { display: none; }
details.annex summary:hover { background: var(--signal-bg); }
details.annex summary .aplate {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em;
  background: var(--ink); color: var(--signal); padding: 5px 10px; white-space: nowrap;
}
details.annex summary .atitle { font-weight: 700; font-size: 16px; }
details.annex summary .aplus {
  font-family: var(--display); font-size: 24px; line-height: 1;
  transition: transform .18s ease;
}
details.annex[open] summary .aplus { transform: rotate(45deg); }
details.annex[open] summary { border-bottom: 2px solid var(--ink); background: var(--signal-bg); }
details.annex .abody { padding: 10px 22px 24px; }
details.annex .abody p { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
details.annex .abody p strong { color: var(--ink); }
.qa { margin: 16px 0 0; padding-left: 16px; border-left: 4px solid var(--signal); }
.qa .qq { font-weight: 700; font-size: 15px; }
.qa .aa { font-size: 14.5px; color: var(--ink-soft); margin-top: 3px; }
.abody .src {
  font-family: var(--mono); font-size: 11px; color: var(--ink-faint);
  margin-top: 18px; letter-spacing: .02em;
}
.roletable { width: 100%; border-collapse: collapse; margin: 16px 0 6px; font-size: 13.5px; }
.roletable th {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; background: var(--ink); color: var(--signal);
  padding: 8px 12px; text-align: left;
}
.roletable td { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; color: var(--ink-soft); }
.roletable td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.abody ul.hooks { list-style: none; display: grid; gap: 10px; margin: 12px 0 0; padding: 0; }
.abody ul.hooks li { position: relative; padding-left: 24px; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.abody ul.hooks li::before { content: '»'; position: absolute; left: 2px; top: -1px; color: var(--prikaz); font-weight: 800; font-size: 16px; }
.abody ul.hooks li strong { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { details.annex summary .aplus { transition: none; } }

/* ── Path / stages (List 00 — Cesta) ── */
.stagesheet { margin: 0 0 34px; }
.stagesheet .shband {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--ink); color: #fff; padding: 16px 22px;
  border-bottom: 2px solid var(--ink);
}
.stagesheet .shband .snum {
  font-family: var(--display); font-size: 26px; color: var(--signal); line-height: 1;
}
.stagesheet .shband .sname { font-family: var(--display); font-size: clamp(17px, 2.6vw, 22px); text-transform: uppercase; }
.stagesheet .shband .swho { margin-left: auto; }
.stagesheet .shbody { padding: 24px 26px; }
.stagesheet .what { font-size: 16px; margin: 0 0 16px; }
.stagesheet .what strong { font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.chip {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  border: 2px solid var(--ink); background: var(--paper); padding: 6px 12px;
}
.autocol.na h4 { background: var(--ink-faint); color: #fff; }
.autocol.na li::before { content: '—'; position: absolute; left: 0; color: var(--ink-faint); font-weight: 700; }
.risklinks { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 20px 0 4px; }
.risklinks .rl-label { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
a.stamp { text-decoration: none; }
a.stamp:hover { background: var(--signal-bg); }

/* qualification gate between stages */
.gate {
  border: 3px solid var(--prikaz); background: var(--prikaz-bg); border-radius: 3px;
  padding: 20px 24px; margin: 22px 0 0;
}
.gate .gt {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--prikaz); display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.gate .gt .gc {
  width: 26px; height: 26px; border-radius: 50%; background: var(--prikaz); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 13px; flex: none;
}
.gate ul { list-style: none; display: grid; gap: 9px; }
.gate li { position: relative; padding-left: 30px; font-size: 14.5px; line-height: 1.5; }
.gate li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 16px; height: 16px;
  border: 2px solid var(--prikaz); background: #fff;
}
.gate li strong { font-weight: 700; }

/* timeline (naše cesta) */
.waypath { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 780px) { .waypath { grid-template-columns: repeat(3, 1fr); } }
.wp { padding: 20px 22px; }
.wp .wt { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.wp .wh { font-family: var(--display); font-size: 17px; text-transform: uppercase; margin-bottom: 8px; }
.wp p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.wp.now { border-left: 12px solid var(--bezpeci); }

/* closing band */
.closing { background: var(--ink); color: rgba(255,255,255,.88); border-top: 3px solid var(--signal); }
.closing .inner { max-width: 860px; margin: 0 auto; padding: 60px 24px; }
.closing h2 { font-family: var(--display); font-size: clamp(24px, 3.6vw, 36px); text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.closing p { max-width: 640px; margin-bottom: 14px; }
.closing strong { color: var(--signal); }

/* footer */
.footer {
  background: var(--ink); color: rgba(255,255,255,.6);
  font-family: var(--mono); font-size: 12.5px;
  padding: 26px 24px; border-top: 1px solid rgba(255,255,255,.15);
}
.footer .inner { max-width: 1000px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between; }
.footer a { color: rgba(255,255,255,.85); }
.footer a:hover { color: var(--signal); }

@media (prefers-reduced-motion: reduce) {
  .pulse, .tapL, .tapR,
  .walkbar.walking .legA, .walkbar.walking .legB,
  .walkbar.walking .armA, .walkbar.walking .armB { animation: none !important; }
  .stage .sc, .stage .cap, .step .stepcard, .chain .cstep,
  .report, .pnnav a { transition: none; }
  .step .stepcard, .chain .cstep { opacity: 1; transform: none; }
}
