/* U_CAN Leadership Program - shared styles
   Palette taken from ucan-ukraine.eu */
:root {
  --navy: #00305e;
  --blue: #0057b8;
  --blue-soft: #3679c3;
  --green: #058554;
  --green-soft: #63a65f;
  --yellow: #ffcc00;
  --paper: #f8f7f3;
  --white: #ffffff;
  --ink: #242323;
  --muted: #5b6573;
  --line: #e3e1d9;
  --blue-tint: #eaf1fa;
  --green-tint: #e9f4ee;
  --yellow-tint: #fff7d6;
  --red-tint: #fdecec;
  --red: #b42318;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 48, 94, .06), 0 6px 24px rgba(0, 48, 94, .06);
  --font: "Nunito Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 980px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 20px;
  min-height: 72px;
}
.site-header .logo img { height: 46px; width: auto; }
.site-header nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.site-header nav a {
  color: var(--green); text-decoration: none; font-weight: 700; font-size: 15px;
}
.site-header nav a:hover { color: var(--navy); }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  border: 0; background: transparent; padding: 6px 12px; cursor: pointer;
  font: 700 13px var(--font); color: var(--muted);
}
.lang-switch button.on { background: var(--navy); color: var(--white); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 56px; background: var(--paper); }
.hero .eyebrow {
  font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); font-size: 14px; margin-bottom: 12px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); color: var(--blue-soft); font-weight: 800; margin-bottom: 16px; }
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: var(--navy); max-width: 760px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: 15px; color: var(--navy); font-weight: 600;
}
.chip b { color: var(--green); }
.hero-logos { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-logos .eu { height: 48px; width: auto; }

.band { height: 8px; background: linear-gradient(90deg, var(--navy) 0 40%, var(--blue-soft) 40% 70%, var(--green-soft) 70% 90%, var(--yellow) 90%); }

/* ---------- Sections ---------- */
section.block { padding: 64px 0; }
section.block.alt { background: var(--white); }
.section-kicker { color: var(--green); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
section.block h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 6px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 24px; } }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

.motivation { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
@media (max-width: 820px) { .motivation { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.alt .card { background: var(--paper); box-shadow: none; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* format strip */
.format { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.format > div { padding: 20px; background: var(--white); border-right: 1px solid var(--line); }
.format > div:last-child { border-right: 0; }
.format .num { font-size: 30px; font-weight: 800; color: var(--blue-soft); line-height: 1; margin-bottom: 6px; }
@media (max-width: 820px) { .format { grid-template-columns: 1fr 1fr; } .format > div:nth-child(2) { border-right: 0; } .format > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- Modules ---------- */
.modules { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.module {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.module > summary {
  list-style: none; cursor: pointer; display: grid;
  grid-template-columns: 64px 1fr auto; align-items: center; gap: 18px; padding: 18px 22px;
}
.module > summary::-webkit-details-marker { display: none; }
.module .mnum {
  width: 52px; height: 52px; border-radius: 12px; background: var(--blue-tint); color: var(--navy);
  display: grid; place-items: center; font-weight: 800; font-size: 20px;
}
.module.ready .mnum { background: var(--navy); color: var(--white); }
.module .mtitle { font-weight: 800; color: var(--navy); font-size: 19px; line-height: 1.3; }
.module .mstatus { font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.mstatus.ready { background: var(--green-tint); color: var(--green); }
.mstatus.soon { background: var(--paper); color: var(--muted); }
.module .mbody { padding: 0 22px 22px 104px; }
@media (max-width: 640px) {
  .module > summary { grid-template-columns: 44px 1fr; }
  .module .mnum { width: 44px; height: 44px; font-size: 17px; }
  .module .mstatus { grid-column: 2; justify-self: start; }
  .module .mbody { padding: 0 18px 18px; }
}
.benefit { background: var(--green-tint); border-left: 4px solid var(--green); padding: 12px 16px; border-radius: 8px; margin: 12px 0 18px; }
.benefit b { color: var(--green); }

.lessons { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.lesson-card {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: var(--paper);
  transition: border-color .15s, transform .15s;
}
.lesson-card:hover { border-color: var(--blue-soft); transform: translateY(-2px); }
.lesson-card .ltag { font-size: 13px; font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: .06em; }
.lesson-card .ltitle { font-weight: 800; color: var(--navy); font-size: 18px; line-height: 1.3; }
.lesson-card .lmeta { font-size: 14px; color: var(--muted); }
.lesson-card .go { margin-top: auto; font-weight: 800; color: var(--blue); font-size: 15px; }
.lesson-card.placeholder { border-style: dashed; background: transparent; color: var(--muted); pointer-events: none; }
.lesson-card.placeholder .ltitle { color: var(--muted); }

/* tech table */
.tech-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; margin-top: 20px; font-size: 15px; }
.tech-table th, .tech-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tech-table th { background: var(--navy); color: var(--white); font-weight: 700; }
.tech-table td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #d7e2ef; padding: 40px 0; font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.site-footer .eu-box { background: var(--white); padding: 10px 14px; border-radius: 8px; }
.site-footer .eu-box img { height: 40px; width: auto; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--yellow); }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* =====================================================
   LESSON PLAYER
   ===================================================== */
.lesson-top {
  background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 30;
}
.lesson-top .bar { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.lesson-top .home { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 800; }
.lesson-top .home img { height: 34px; background: var(--white); border-radius: 6px; padding: 3px 6px; }
.lesson-top .ltitle { font-weight: 700; font-size: 15px; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lesson-top .lang-switch { margin-left: auto; border-color: rgba(255,255,255,.3); }
.lesson-top .lang-switch button { color: #c9d6e6; }
.lesson-top .lang-switch button.on { background: var(--white); color: var(--navy); }

.progress-row { background: var(--white); border-bottom: 1px solid var(--line); }
.progress-row .wrap { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; font-size: 14px; color: var(--muted); }
.progress { flex: 1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green-soft); transition: width .25s; }
.progress-row b { color: var(--green); }

.stepnav { background: var(--white); border-bottom: 1px solid var(--line); }
.stepnav .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 12px; scrollbar-width: thin; }
.stepnav button {
  flex: 0 0 auto; border: 1px solid var(--line); background: var(--white); color: var(--navy);
  border-radius: 999px; padding: 7px 14px; font: 700 14px var(--font); cursor: pointer;
}
.stepnav button.done { border-color: var(--green-soft); color: var(--green); }
.stepnav button.on { background: var(--navy); border-color: var(--navy); color: var(--white); }

.stage { padding: 36px 0 120px; }
.step-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); }
.step-kicker { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-soft); margin-bottom: 6px; }
.step-card h1 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 22px; }
.step-card h2 { font-size: 22px; margin: 30px 0 12px; }
.step-card h3 { font-size: 18px; margin: 0 0 6px; }

.callout { border-radius: var(--radius); padding: 20px 22px; margin: 0 0 18px; background: var(--paper); border: 1px solid var(--line); }
.callout .ctitle { font-weight: 800; color: var(--navy); margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }
.callout.key { background: var(--blue-tint); border-color: transparent; border-left: 5px solid var(--blue-soft); }
.callout.key .big { font-size: clamp(19px, 2.2vw, 23px); font-weight: 800; color: var(--navy); line-height: 1.35; margin-bottom: 10px; }
.callout.goal { background: var(--green-tint); border-color: transparent; }
.callout.warn { background: var(--yellow-tint); border-color: transparent; border-left: 5px solid var(--yellow); }
.callout p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 14px; margin: 0 0 18px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 820px) { .grid.c3, .grid.c4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--white); }
.tile .kick { font-size: 13px; font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.tile .ttl { font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.tile p { margin: 0; font-size: 16px; }
.tile .sub { font-size: 14px; color: var(--muted); margin-top: 6px; }
.tile.accent { border-top: 4px solid var(--blue-soft); }
.tile.green { border-top: 4px solid var(--green-soft); }

.stat .val { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; color: var(--blue-soft); line-height: 1.1; margin-bottom: 6px; }

.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0 0 18px; }
.steps-list li { counter-increment: s; position: relative; padding: 14px 16px 14px 62px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.steps-list li::before {
  content: counter(s); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 800;
}
.steps-list .ttl { font-weight: 800; color: var(--navy); }
.steps-list .min { font-size: 13px; font-weight: 800; color: var(--green); margin-left: 8px; }
.steps-list .ex { font-size: 15px; color: var(--muted); margin-top: 4px; }

.timeline { border-left: 3px solid var(--line); margin: 0 0 18px 8px; padding-left: 22px; }
.timeline .ti { position: relative; padding-bottom: 16px; }
.timeline .ti::before { content: ""; position: absolute; left: -31px; top: 5px; width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 3px solid var(--blue-soft); }
.timeline .time { font-size: 13px; font-weight: 800; color: var(--green); }
.timeline .ttl { font-weight: 800; color: var(--navy); }

.data-table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.data-table th, .data-table td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.data-table thead th { background: var(--blue-tint); color: var(--navy); }
.data-table tfoot td { font-weight: 800; color: var(--navy); background: var(--paper); }
.data-table td.num, .data-table th.num { text-align: center; }

.spectrum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0 0 8px; }
.spectrum .sp { border-radius: 12px; padding: 12px; overflow-wrap: break-word; color: var(--white); }
.spectrum .sp .ttl { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.spectrum .sp p { font-size: 14px; margin: 0 0 8px; }
.spectrum .sp .how { font-size: 13px; opacity: .9; border-top: 1px solid rgba(255,255,255,.35); padding-top: 6px; }
.spectrum-axis { font-size: 13px; font-weight: 800; color: var(--muted); text-align: right; margin-bottom: 18px; }
@media (max-width: 820px) { .spectrum { grid-template-columns: 1fr; } }

.quad { display: grid; grid-template-columns: 28px 1fr 1fr; grid-template-rows: 1fr 1fr 28px; gap: 8px; margin: 0 0 18px; }
.quad .q { border-radius: 12px; padding: 14px; background: var(--paper); border: 1px solid var(--line); }
.quad .q.hi { background: var(--blue-tint); border-color: transparent; }
.quad .q.focus { background: var(--navy); color: var(--white); }
.quad .q.focus .ttl { color: var(--yellow); }
.quad .q .ttl { font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.quad .q p { margin: 0; font-size: 15px; }
.quad .ax-y { grid-row: 1 / 3; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: 13px; font-weight: 800; color: var(--muted); }
.quad .ax-x { grid-column: 2 / 4; text-align: center; font-size: 13px; font-weight: 800; color: var(--muted); }

.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 18px; }
.compare .col { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.compare .col h3 { margin: 0; padding: 12px 14px; color: var(--white); font-size: 17px; }
.compare .col dl { margin: 0; padding: 10px 14px; }
.compare dt { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 8px; }
.compare dd { margin: 0; font-size: 15px; }
@media (max-width: 820px) { .compare { grid-template-columns: 1fr; } }

.cascade { list-style: none; padding: 0; margin: 0 0 18px; }
.cascade li { display: grid; grid-template-columns: 42px 220px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.cascade .n { width: 34px; height: 34px; border-radius: 8px; background: var(--blue-soft); color: var(--white); display: grid; place-items: center; font-weight: 800; }
.cascade li:nth-child(1) .n { background: var(--navy); }
.cascade li:nth-child(5) .n { background: var(--green); }
.cascade .ttl { font-weight: 800; color: var(--navy); }
.cascade .ex { font-size: 15px; color: var(--muted); }
@media (max-width: 640px) { .cascade li { grid-template-columns: 42px 1fr; } .cascade .ex { grid-column: 2; } }

.case { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.case .place { font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.case .place::before { content: "📍 "; }
.case p { margin: 0; font-size: 16px; }
.case.has-img { padding-top: 0; overflow: hidden; }
.case-img { margin: 0 -18px 14px; }
.case-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--line); }
.case-img figcaption { font-size: 12px; color: var(--muted); padding: 4px 18px 0; line-height: 1.4; }
.case-img figcaption a { color: inherit; }

.mistake { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.mistake .ttl { font-weight: 800; color: var(--red); margin-bottom: 4px; }
.mistake p { margin: 0 0 8px; font-size: 15px; }
.mistake .instead { font-size: 15px; background: var(--green-tint); border-radius: 8px; padding: 8px 10px; margin: 0; }
.mistake .instead b { color: var(--green); }

.res { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; transition: border-color .15s; }
.res:hover { border-color: var(--blue-soft); }
.res .ttl { font-weight: 800; color: var(--navy); }
.res p { font-size: 15px; margin: 4px 0 6px; }
.res .url { font-size: 14px; color: var(--blue); font-weight: 700; }

.template {
  border: 2px dashed var(--blue-soft); border-radius: 14px; padding: 18px 20px; background: var(--blue-tint);
  font-size: 15px; margin: 0 0 18px;
}
.template .ttl { font-weight: 800; letter-spacing: .1em; color: var(--navy); margin-bottom: 10px; }
.template div.line { background: var(--white); border-radius: 8px; padding: 8px 12px; margin-bottom: 6px; color: var(--muted); }

.facts { background: var(--paper); border-radius: 12px; padding: 16px 20px; margin: 0 0 18px; }
.facts p { margin: 0 0 6px; }
.facts b { color: var(--navy); }

.option { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; gap: 14px; }
.option .letter { flex: 0 0 40px; height: 40px; border-radius: 10px; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.option .ttl { font-weight: 800; color: var(--navy); }
.option p { margin: 2px 0 0; font-size: 15px; }

.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 18px; }
.principles div { background: var(--yellow-tint); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.principles b { display: block; color: var(--navy); }
@media (max-width: 820px) { .principles { grid-template-columns: 1fr 1fr; } }

.takeaway { margin-top: 26px; border-radius: var(--radius); background: var(--navy); color: var(--white); padding: 18px 22px; }
.takeaway .ttl { font-weight: 800; color: var(--yellow); margin-bottom: 4px; }
.takeaway p { margin: 0; }

.reflect { margin-top: 18px; border: 1px solid var(--line); border-left: 5px solid var(--green-soft); border-radius: 12px; padding: 14px 18px; }
.reflect .ttl { font-weight: 800; color: var(--navy); }
.reflect p { margin: 4px 0 0; }



/* task */
.task-field { margin-bottom: 16px; }
.task-field label { display: block; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.task-field .hint { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.task-field textarea, .task-field input {
  width: 100%; font: 16px var(--font); color: var(--ink); border: 1px solid #cfd6df; border-radius: 10px; padding: 10px 12px; background: var(--white);
}
.task-field textarea { min-height: 84px; resize: vertical; }
.task-field textarea:focus, .task-field input:focus { outline: 2px solid var(--blue-soft); outline-offset: 1px; border-color: transparent; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.btn {
  border: 0; border-radius: 999px; padding: 11px 22px; font: 800 15px var(--font); cursor: pointer;
  background: var(--navy); color: var(--white);
}
.btn.ghost { background: var(--white); color: var(--navy); border: 1px solid var(--line); }
.btn.green { background: var(--green); }
.btn:disabled { opacity: .45; cursor: default; }
.toast { font-size: 14px; color: var(--green); font-weight: 700; align-self: center; }

/* quiz */
.quiz-q { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.quiz-q .qt { font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.quiz-q label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 16px; }
.quiz-q label:hover { background: var(--paper); }
.quiz-q input { margin-top: 5px; accent-color: var(--navy); }
.quiz-q label.right { background: var(--green-tint); }
.quiz-q label.wrong { background: var(--red-tint); }
.quiz-q .explain { display: none; margin-top: 8px; font-size: 15px; padding: 8px 12px; border-radius: 8px; background: var(--blue-tint); }
.quiz-q.checked .explain { display: block; }
.score { font-weight: 800; color: var(--navy); font-size: 18px; align-self: center; }

/* bottom nav */
.pager { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(6px); z-index: 25; }
.pager .wrap { display: flex; justify-content: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.pager .btn { min-width: 130px; }

.final { text-align: center; padding: 20px 0; }
.final .quote { font-size: clamp(22px, 3vw, 32px); font-weight: 800; color: var(--navy); line-height: 1.3; max-width: 760px; margin: 0 auto 18px; }
.final .next { display: inline-block; background: var(--green-tint); color: var(--green); font-weight: 800; padding: 10px 18px; border-radius: 999px; }

@media print {
  .lesson-top, .progress-row, .stepnav, .pager { display: none; }
}

/* keep logo and language switch from shrinking in narrow lesson header */
.lesson-top .home, .lesson-top .lang-switch, .site-header .logo, .site-header .lang-switch { flex-shrink: 0; }
.lesson-top .home img, .site-header .logo img { width: auto; max-width: none; }
.lesson-top .ltitle { min-width: 0; flex: 1; }
@media (max-width: 640px) {
  .site-header nav { display: none; }
  .site-header .lang-switch { margin-left: auto; }
  .lesson-top .ltitle { font-size: 13px; }
}

/* primary audience highlight */
.primary-aud { display: flex; align-items: center; gap: 14px; background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 18px; }
.primary-aud .pa-kick { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
.primary-aud .pa-title { font-size: 22px; font-weight: 800; }
.primary-aud { flex-direction: column; align-items: flex-start; gap: 2px; }

/* plain closing strip instead of a footer */
.footer-bar { height: 28px; background: var(--navy); }

/* further reading and TED videos */
.library { display: grid; gap: 12px; margin: 0 0 22px; }
.book { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; transition: border-color .15s; }
.book:hover { border-color: var(--blue-soft); }
.book-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.book-tag { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--yellow-tint); color: var(--navy); }
.book-tag.intl { background: var(--blue-tint); }
.book-meta { font-size: 13px; color: var(--muted); font-weight: 700; }
.book .ttl, .video .ttl { font-weight: 800; color: var(--navy); line-height: 1.35; }
.book p, .video p { font-size: 15px; margin: 6px 0 8px; }
.book .url, .video .url { font-size: 14px; color: var(--blue); font-weight: 700; text-decoration: none; }
.video { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.video .frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .vbody { padding: 14px 16px; }

/* ---------- Theory and reference blocks (v2 lessons) ---------- */
.step-card h3 { font-size: 19px; margin: 22px 0 8px; }
.steps-list .out { font-size: 15px; margin-top: 6px; color: var(--ink); }
.steps-list .out b { color: var(--green); }

.defs { margin: 0 0 20px; display: grid; gap: 10px; }
.def { border: 1px solid var(--line); border-left: 5px solid var(--blue-soft); border-radius: 12px; padding: 14px 18px; background: var(--white); }
.def dt { font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.def .en-term { font-weight: 600; color: var(--muted); font-size: 14px; }
.def dd { margin: 0; font-size: 16px; }
.cite { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

.src { font-size: 14px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 18px; }
.src b { color: var(--muted); }

.examples { display: grid; gap: 12px; margin: 0 0 20px; }
.ex-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ex-bad, .ex-good { padding: 12px 16px; font-size: 16px; }
.ex-bad { background: var(--red-tint); }
.ex-good { background: var(--green-tint); }
.ex-pair .lbl { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ex-why { grid-column: 1 / -1; padding: 10px 16px; font-size: 15px; background: var(--white); border-top: 1px solid var(--line); }
@media (max-width: 640px) { .ex-pair { grid-template-columns: 1fr; } }

.res-list { display: grid; gap: 12px; margin: 0 0 22px; }
.res-list .res { cursor: default; }
.res-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.res-top:empty { display: none; }
.res dl { margin: 8px 0 10px; display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 15px; }
.res dt { font-weight: 800; color: var(--muted); }
.res dd { margin: 0; }
.res a.url { text-decoration: none; }
@media (max-width: 640px) { .res dl { grid-template-columns: 1fr; } .res dd { margin-bottom: 6px; } }

.refs { margin: 0 0 22px; padding-left: 22px; font-size: 15px; }
.refs li { margin-bottom: 8px; overflow-wrap: anywhere; }

.qref { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

.speaker { border-radius: var(--radius); background: var(--blue-tint); border-left: 5px solid var(--blue); padding: 20px 22px; margin: 0 0 18px; }
.speaker .kick { font-size: 13px; font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.speaker .ttl { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.speaker .who { font-weight: 700; margin-bottom: 8px; }
.speaker .who span { font-weight: 400; color: var(--muted); }
.speaker .sub { font-size: 14px; color: var(--muted); margin: 0; }

/* Interactive diagrams (assets/js/anim.js) */
.anim { margin: 8px 0 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, #fbfcfe, var(--white)); padding: 18px 20px 16px; }
.anim-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 10px; }
.anim-tag { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--white); background: var(--blue); border-radius: 999px; padding: 2px 10px; }
.anim-title { font-weight: 800; color: var(--navy); font-size: 18px; }
.anim-body svg { width: 100%; height: auto; display: block; }
.anim-cap { min-height: 72px; background: var(--blue-tint); border-radius: 12px; padding: 12px 16px; margin: 12px 0 10px; font-size: 16px; }
.anim-cap b { display: block; color: var(--navy); margin-bottom: 2px; }
.anim-cap:empty { display: none; }
.anim-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.anim-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.abtn { font: inherit; font-size: 15px; font-weight: 700; border: 1px solid var(--blue); background: var(--blue); color: var(--white); border-radius: 999px; padding: 6px 16px; cursor: pointer; }
.abtn.ghost { background: var(--white); color: var(--blue); }
.abtn:disabled { opacity: .35; cursor: default; }
.adots { display: inline-flex; gap: 6px; margin: 0 4px; }
.adots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--blue-soft); background: var(--white); padding: 0; cursor: pointer; }
.adots button.on { background: var(--blue); border-color: var(--blue); }
.seg { display: inline-flex; border: 1px solid var(--blue); border-radius: 999px; overflow: hidden; }
.seg button { font: inherit; font-size: 15px; font-weight: 700; border: 0; background: var(--white); color: var(--blue); padding: 6px 16px; cursor: pointer; }
.seg button.on { background: var(--blue); color: var(--white); }
@media (max-width: 600px) {
  .seg { display: flex; flex-wrap: wrap; border-radius: 14px; }
  .seg button { flex: 1 1 auto; padding: 6px 12px; }
}

/* venn */
.venn { max-width: 520px; margin: 0 auto; cursor: pointer; }
.venn .vset, .venn .vset-l { transition: transform .9s cubic-bezier(.3, .7, .2, 1); }
.venn .vlabel { font-size: 17px; font-weight: 800; }
.venn .vhl { opacity: 0; transition: opacity .5s; pointer-events: none; }
.venn .vhl circle { fill: var(--navy); fill-opacity: .55; }
.venn .vhl.on { opacity: 1; }
.venn .vcenter { font-size: 15px; font-weight: 800; fill: var(--white); opacity: 0; transition: opacity .5s .2s; pointer-events: none; }
.venn .vcenter.on { opacity: 1; }

/* tests */
.tests-grid { width: 100%; border-collapse: collapse; font-size: 15px; }
.tests-grid th { font-size: 14px; color: var(--muted); padding: 6px 8px; text-align: center; transition: color .3s, background .3s; border-radius: 8px 8px 0 0; }
.tests-grid th.cur { color: var(--white); background: var(--blue); }
.tests-grid td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
.tests-grid tr { transition: opacity .5s, transform .6s ease; }
.tests-grid tr.out { opacity: .4; }
.tests-grid tr.out .cand { text-decoration: line-through; }
.tests-grid .cand { font-weight: 700; color: var(--navy); }
.tests-grid .mk { text-align: center; font-weight: 800; font-size: 18px; opacity: 0; transform: scale(.4); transition: opacity .35s, transform .35s; }
.tests-grid .mk.on { opacity: 1; transform: none; }
.tests-grid .mY { color: var(--green); } .tests-grid .mP { color: #b7791f; } .tests-grid .mN { color: var(--red); }
.tests-grid .vd { font-size: 14px; font-weight: 800; white-space: nowrap; opacity: 0; transition: opacity .4s; }
.tests-grid .vd.on { opacity: 1; }
.tests-grid .v-keep { color: var(--green); } .tests-grid .v-proof { color: #b7791f; } .tests-grid .v-drop { color: var(--red); }

/* related */
.related .re { stroke: #d5d9e0; stroke-width: 2; transition: stroke .5s, stroke-width .5s; }
.related .re.near { stroke: #9bbbe2; stroke-dasharray: 5 5; }
.related .re.on { stroke: var(--blue); stroke-width: 3.5; }
.related .re.on.old { stroke: #9bbbe2; stroke-width: 2.5; }
.related .re.draw { stroke-dasharray: 400; animation: re-draw 1.2s ease forwards; }
@keyframes re-draw { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
.related .rn circle { fill: var(--white); stroke: #9aa5b4; stroke-width: 2.5; transition: fill .5s, stroke .5s; }
.related .rn.on circle { fill: var(--blue); stroke: var(--blue); }
.related .rn.new circle { animation: rn-pop .8s ease; }
@keyframes rn-pop { 0% { r: 6; } 60% { r: 19; } 100% { r: 13; } }
.related .rn.far circle { stroke-dasharray: 3 3; fill: #f3f4f6; }
.related .rl { font-size: 12.5px; fill: var(--ink); font-weight: 600; paint-order: stroke; stroke: #fbfcfe; stroke-width: 5px; stroke-linejoin: round; }
.related .rn.on .rl { fill: var(--navy); font-weight: 800; }
.related .rn.far .rl { fill: #8a95a3; }

/* audiences */
.aud-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.aud-tabs button { font: inherit; font-size: 15px; font-weight: 700; border: 1px solid var(--line); background: var(--white); color: var(--navy); border-radius: 10px; padding: 8px 14px; cursor: pointer; }
.aud-tabs button.on { background: var(--navy); color: var(--white); border-color: var(--navy); }
.aud-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.aud-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aud-facts li { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--white); font-size: 15px; opacity: .5; transition: transform .55s ease, opacity .4s, border-color .4s; }
.aud-facts li.top { opacity: 1; border-color: var(--blue-soft); box-shadow: 0 2px 10px rgba(0, 87, 184, .08); }
.aud-facts .rk { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.aud-facts li:not(.top) .rk { background: transparent; }
.aud-panel { margin: 0; background: var(--paper); border-radius: 12px; padding: 12px 16px; font-size: 15px; }
.aud-panel dt { font-weight: 800; color: var(--navy); margin-top: 8px; }
.aud-panel dt:first-child { margin-top: 0; }
.aud-panel dd { margin: 2px 0 0; }
@media (max-width: 640px) { .aud-grid { grid-template-columns: 1fr; } }

/* mlp */
.mlp .band { stroke: none; }
.mlp .band.ls { fill: #f1ecdc; } .mlp .band.rg { fill: var(--blue-tint); } .mlp .band.ni { fill: var(--green-tint); }
.mlp .band-l { font-size: 13px; font-weight: 800; fill: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.mlp .arrow { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.mlp .la .arrow { stroke: #a0782a; }
.mlp .la { opacity: .25; transition: opacity .6s, transform .8s; }
.mlp[data-phase="1"] .la, .mlp[data-phase="2"] .la { opacity: 1; transform: translateY(14px); }
.mlp[data-phase="3"] .la { opacity: .5; }
.mlp .la-t { font-size: 12.5px; font-weight: 700; fill: #6b5216; }
.mlp .rline { transition: transform 1s cubic-bezier(.3, .7, .2, 1); }
.mlp .rline line { stroke: var(--blue); stroke-width: 6; stroke-linecap: round; transition: stroke .8s; }
.mlp[data-phase="3"] .rline line { stroke: var(--green); }
.mlp .rl-t { font-size: 12.5px; font-weight: 700; fill: var(--navy); }
.mlp .na { transition: opacity .5s; opacity: .55; }
.mlp .na .long { stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; transition: stroke-dashoffset 1.2s ease, opacity .3s; }
.mlp[data-phase="2"] .na .long, .mlp[data-phase="3"] .na .long { stroke-dashoffset: 0; opacity: 1; }
.mlp[data-phase="2"] .na.win .tip, .mlp[data-phase="3"] .na.win .tip { opacity: 0; }
.mlp[data-phase="2"] .na:not(.win), .mlp[data-phase="3"] .na:not(.win) { opacity: .3; }
.mlp .na .arrow { stroke: var(--green-soft); }
.mlp .na.win { opacity: 1; }
.mlp .na.win .arrow { stroke: var(--green); }
.mlp .tip { transition: opacity .4s; }
.mlp[data-phase="0"] .tip, .mlp[data-phase="1"] .tip { animation: na-try 2.4s ease-in-out infinite; }
.mlp .na:nth-child(2) .tip { animation-delay: .6s; } .mlp .na:nth-child(3) .tip { animation-delay: 1.2s; } .mlp .na:nth-child(4) .tip { animation-delay: 1.8s; }
@keyframes na-try { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.35); } }
.mlp .na-t { font-size: 12px; font-weight: 700; fill: #1d5e3b; }

/* peers */
.peer-you { background: var(--navy); color: var(--white); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 15px; }
.peer-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.peer-chips button { font: inherit; font-size: 14px; font-weight: 700; border: 1px dashed var(--blue-soft); background: var(--white); color: var(--blue); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.peer-chips button.on { border-style: solid; background: var(--blue); color: var(--white); }
.peer-count { font-size: 14px; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.peer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.peer { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--white); font-size: 14px; transition: opacity .5s, transform .5s, filter .5s; }
.peer .ttl { font-weight: 800; color: var(--navy); font-size: 15px; }
.peer p { margin: 2px 0 0; }
.peer.out { opacity: .32; transform: scale(.96); filter: grayscale(1); }
.peer .pwhy { display: none; font-size: 12px; font-weight: 800; color: var(--red); margin-top: 4px; }
.peer.out .pwhy { display: block; }
.peer .prole { display: none; margin-top: 6px; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 9px; color: var(--white); }
.peers-done .peer:not(.out) .prole, .peer.fixed .prole { display: inline-block; }
.peer.fixed { border-style: dashed; border-color: #b7791f; }
.prole.r-similar { background: var(--blue); } .prole.r-aspirational { background: var(--green); } .prole.r-specialist { background: #b7791f; }
@media (max-width: 720px) { .peer-grid { grid-template-columns: 1fr 1fr; } }

/* trend */
.trend .gl { stroke: #eceae3; }
.trend .ax { font-size: 12px; fill: var(--muted); }
.trend .unit { font-weight: 700; }
.trend .line { fill: none; stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.trend .bar { opacity: 0; transition: opacity .5s; }
.trend .pt { opacity: 0; transition: opacity .4s; }
.trend .sl { font-size: 13px; font-weight: 800; }
.trend .chg { font-size: 12.5px; font-weight: 700; opacity: 0; transition: opacity .5s .9s; }
.trend[data-mode="0"] .line { opacity: 0; }
.trend[data-mode="0"] .bar, .trend[data-mode="0"] .pt.last { opacity: .9; }
.trend[data-mode="1"] .pt { opacity: 1; transition-delay: 1.2s; }
.trend[data-mode="1"] .chg { opacity: 1; }

/* iceberg */
.ice { position: relative; }
.ice-lbl { text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ice-lbl.below { display: none; color: var(--white); background: #0b4a8f; margin: 0; padding: 10px 12px 0; }
.ice.open .ice-lbl.below { display: block; }
.ice-top { max-width: 460px; margin: 0 auto; text-align: center; background: var(--white); border: 2px solid var(--navy); border-radius: 14px; padding: 12px 16px; position: relative; z-index: 2; }
.ice-top .ttl { font-weight: 800; color: var(--navy); }
.ice-top p { margin: 4px 0 0; font-size: 15px; }
.ice-water { margin-top: -10px; padding: 26px 12px 18px; text-align: center; border-radius: 0 0 16px 16px; background: linear-gradient(180deg, #cfe2f7 0, #0b4a8f 100%); transition: padding .8s; }
.ice.open .ice-water { padding: 12px; background: linear-gradient(180deg, #cfe2f7 0, #9cc3ea 100%); }
.ice.open .ice-water .abtn { display: none; }
.ice-conds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: #0b4a8f; border-radius: 0 0 16px 16px; padding: 0 12px; max-height: 0; overflow: hidden; transition: max-height 1s ease, padding .6s; }
.ice.open .ice-conds { max-height: 900px; padding: 12px; }
.cond { background: var(--white); border-radius: 12px; padding: 10px 12px; font-size: 14px; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--d), transform .5s var(--d), box-shadow .3s; }
.ice.open .cond { opacity: 1; transform: none; }
.cond .ttl { font-weight: 800; color: var(--navy); }
.cond p { margin: 2px 0 8px; }
.cond[data-v="have"] { box-shadow: inset 0 0 0 3px var(--green); }
.cond[data-v="build"] { box-shadow: inset 0 0 0 3px #d97706; }
.cbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.cbtns button { font: inherit; font-size: 13px; font-weight: 700; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.cbtns button[data-v="have"].on { background: var(--green); color: var(--white); border-color: var(--green); }
.cbtns button[data-v="build"].on { background: #d97706; color: var(--white); border-color: #d97706; }
.ice-meter { margin-top: 12px; display: none; }
.ice.open .ice-meter { display: block; }
.ice-meter .lbl { font-size: 14px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.ice-meter .bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ice-meter .bar span { display: block; height: 100%; width: 0; background: var(--green); transition: width .6s; }
@media (max-width: 720px) { .ice-conds { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ice-conds, .peer-grid { grid-template-columns: 1fr; } }
/* trail: project data trail */
.trail { position: relative; }
.trail-line { position: absolute; left: 10%; right: 10%; top: 21px; height: 4px; background: var(--line); border-radius: 4px; }
.trail-fill { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 4px; transition: width .7s ease; }
.trail-st { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.trail-st button { font: inherit; background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 0; color: var(--muted); }
.trail-st .dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--white); border: 3px solid var(--line); transition: all .4s; }
.trail-st .nm { font-size: 14px; font-weight: 800; text-align: center; }
.trail-st li.past .dot { border-color: var(--blue); color: var(--blue); }
.trail-st li.on .dot { background: var(--blue); border-color: var(--blue); color: var(--white); transform: scale(1.12); }
.trail-st li.on .nm { color: var(--navy); }
.trail-id { position: relative; display: inline-block; transform: translateX(-50%); left: 10%; margin: 8px 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--white); background: var(--navy); border-radius: 6px; padding: 2px 8px; transition: left .7s ease; white-space: nowrap; }
.trail-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.trail-panel.in .tp { animation: tp-in .5s ease both; }
.trail-panel.in .tp:nth-child(2) { animation-delay: .08s; } .trail-panel.in .tp:nth-child(3) { animation-delay: .16s; }
@keyframes tp-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tp { border-radius: 12px; padding: 10px 12px; font-size: 15px; }
.tp p { margin: 2px 0 0; }
.tp .tl { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.tp.pub { background: var(--blue-tint); } .tp.pub .tl { color: var(--blue); }
.tp.flags { background: var(--red-tint); } .tp.flags .tl { color: var(--red); }
.tp.guard { background: var(--green-tint); } .tp.guard .tl { color: var(--green); }
@media (max-width: 720px) { .trail-panel { grid-template-columns: 1fr; } .trail-st .nm { font-size: 12px; } .trail-st .dot { width: 34px; height: 34px; } .trail-line { top: 16px; } }

/* klitgaard: formula with safeguards */
.kg-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px; }
.kg-f .op { font-size: 26px; font-weight: 800; color: var(--muted); }
.kg-f .op.res { font-size: 17px; color: var(--navy); }
.kgf { cursor: pointer; border-radius: 12px; padding: 8px 14px; text-align: center; min-width: 130px; border: 2px solid; }
.kgf .nm { font-weight: 800; font-size: 15px; }
.kgf.k-m, .kgf.k-d { border-color: #e2a29b; background: var(--red-tint); color: var(--red); }
.kgf.k-a { border-color: #8cc9a6; background: var(--green-tint); color: var(--green); }
.kgf .pips { display: flex; justify-content: center; gap: 5px; margin-top: 6px; }
.kgf .pips i { width: 22px; height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .1); transition: background .4s; }
.kgf.k-m .pips i.on, .kgf.k-d .pips i.on { background: var(--red); }
.kgf.k-a .pips i.on { background: var(--green); }
.kg-meter .lbl { display: flex; justify-content: space-between; font-weight: 800; color: var(--navy); font-size: 15px; margin-bottom: 4px; }
.kg-meter .bar { height: 14px; border-radius: 999px; background: var(--line); overflow: hidden; }
.kg-meter .bar span { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .7s ease, background .7s; }
.kg-meter .bar span.hi { background: var(--red); } .kg-meter .bar span.mid { background: #d97706; } .kg-meter .bar span.lo { background: var(--green); }
.kg-meter .ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 3px; }
.kg-sg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.kg-sg button { font: inherit; font-size: 14px; font-weight: 700; border: 1px dashed var(--green); background: var(--white); color: var(--green); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.kg-sg button.on { border-style: solid; background: var(--green); color: var(--white); }
.kg-sg button.on::before { content: "✓ "; }

/* dashboard: mock public reconstruction dashboard */
.dash { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
.dash-head { background: var(--navy); color: var(--white); font-weight: 800; padding: 10px 14px; font-size: 15px; letter-spacing: .02em; }
.dash-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.dash-kpi div { background: var(--white); padding: 10px 12px; }
.dash-kpi b { display: block; font-size: 22px; color: var(--navy); }
.dash-kpi span { font-size: 13px; color: var(--muted); }
.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list > li { border-bottom: 1px solid var(--line); }
.dash-list > li:last-child { border-bottom: 0; }
.dash-list button { font: inherit; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 14px; cursor: pointer; text-align: left; font-size: 15px; color: var(--ink); }
.dash-list button:hover { background: var(--paper); }
.dash-list .pn::before { content: "▸ "; color: var(--muted); }
.dash-list li.open .pn::before { content: "▾ "; }
.ps { flex: none; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 10px; }
.ps.s-done { background: var(--green-tint); color: var(--green); } .ps.s-ok { background: var(--blue-tint); color: var(--blue); }
.ps.s-late { background: var(--red-tint); color: var(--red); } .ps.s-tender { background: var(--yellow-tint); color: #8a6100; }
.dash .pd { margin: 0; padding: 0 14px 0 40px; max-height: 0; overflow: hidden; transition: max-height .5s ease, padding .3s; font-size: 14px; color: var(--muted); }
.dash li.open .pd { max-height: 400px; padding: 2px 14px 12px 40px; }
.dash .pd li { margin: 3px 0; }
@media (max-width: 600px) { .dash-kpi { grid-template-columns: 1fr 1fr; } }

/* cycle */
.cyc .ring { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 4 6; }
.cyc .arc { fill: none; stroke: var(--blue); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; transition: stroke-dashoffset .8s ease, opacity .2s; }
.cyc .arc.on { stroke-dashoffset: 0; opacity: 1; }
.cyc .cn { cursor: pointer; }
.cyc .cn circle { fill: var(--white); stroke: var(--blue-soft); stroke-width: 3; transition: fill .4s, stroke .4s, transform .4s; }
.cyc .cn .cnum { font-weight: 800; font-size: 18px; fill: var(--blue); }
.cyc .cn .cl { font-weight: 800; font-size: 15px; fill: var(--navy); }
.cyc .cn.past circle { fill: var(--blue-tint); }
.cyc .cn.on circle { fill: var(--blue); stroke: var(--blue); transform: scale(1.12); }
.cyc .cn.on .cnum { fill: var(--white); }
.cyc .cn.stall circle { stroke: #d97706; }
.cyc .warn { font-weight: 900; font-size: 18px; fill: #d97706; }
.cyc .cc { font-weight: 800; font-size: 15px; fill: var(--muted); }

/* gap: self-assessment radar */
.gap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.radar .rg { fill: none; stroke: var(--line); }
.radar .rx { stroke: var(--line); }
.radar .rv { fill: rgba(0, 87, 184, .18); stroke: var(--blue); stroke-width: 2.5; transition: all .6s ease; }
.radar .rlab { font-size: 13px; font-weight: 800; fill: var(--navy); }
.gap-list { display: flex; flex-direction: column; gap: 8px; }
.ga { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; background: var(--white); transition: border-color .4s, background .4s; }
.ga .nm { font-weight: 700; font-size: 15px; }
.ga.weak { border-color: #d97706; background: var(--yellow-tint); }
.ga .sc { display: flex; gap: 4px; flex: none; }
.ga .sc button { font: inherit; font-weight: 800; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--blue-soft); background: var(--white); color: var(--blue); cursor: pointer; }
.ga .sc button.on { background: var(--blue); color: var(--white); }
@media (max-width: 720px) { .gap { grid-template-columns: 1fr; } .radar { max-width: 360px; margin: 0 auto; } }

/* chain: strategy to report */
.chn { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.chn li { position: relative; border: 2px solid var(--blue); border-radius: 12px; padding: 10px 10px; background: var(--white); font-size: 14px; transition: opacity .5s, filter .5s, border-color .5s; }
.chn li .nm { font-weight: 800; color: var(--navy); font-size: 15px; }
.chn li p { margin: 4px 0 0; color: var(--muted); }
.chn li:not(:last-child)::after { content: "→"; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--blue); font-size: 18px; }
.chn.run li { animation: chn-in .6s ease both; animation-delay: var(--d); }
@keyframes chn-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.chn li.cut { opacity: .38; filter: grayscale(1); border-style: dashed; border-color: var(--muted); }
.chn li.brk::before { content: "✕"; position: absolute; left: -19px; top: 50%; transform: translateY(-50%); font-weight: 900; color: var(--red); font-size: 18px; z-index: 1; background: var(--white); }
.chn li.cut.brk { border-color: var(--red); filter: none; opacity: .75; }
.chn li:has(+ li.brk)::after { color: transparent; }
@media (max-width: 760px) { .chn { grid-template-columns: 1fr; gap: 18px; } .chn li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -19px; transform: translateX(-50%); } .chn li.brk::before { left: 50%; top: -17px; transform: translateX(-50%); } }

/* hierarchy: energy hierarchy with bars */
.hier-st { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hier-st li { font-size: 14px; font-weight: 800; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--white); transition: all .4s; }
.hier-st li .n { display: inline-block; min-width: 18px; color: inherit; opacity: .7; }
.hier-st li.past { color: var(--blue); border-color: var(--blue-soft); }
.hier-st li.on { color: var(--white); background: var(--blue); border-color: var(--blue); }
.hier-bars { display: flex; flex-direction: column; gap: 10px; }
.hb { display: grid; grid-template-columns: 210px 1fr 110px; align-items: center; gap: 10px; font-size: 15px; }
.hb .hl { font-weight: 700; color: var(--navy); }
.hb .ht { height: 22px; background: var(--line); border-radius: 6px; overflow: hidden; }
.hb .ht span { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--blue-soft); transition: width .8s ease; }
.hb .ht span.need { background: #c2410c; } .hb .ht span.local { background: var(--green); } .hb .ht span.store { background: #7c3aed; } .hb .ht span.grid { background: var(--muted); }
.hb .hv { font-weight: 800; color: var(--navy); text-align: right; }
@media (max-width: 640px) { .hb { grid-template-columns: 1fr 90px; } .hb .hl { grid-column: 1 / -1; } }

/* sort: assign items to categories */
.srt { display: flex; flex-direction: column; gap: 8px; }
.si { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--white); transition: border-color .3s, background .3s; }
.si .nm { font-weight: 700; font-size: 15px; }
.si .sb { display: flex; gap: 6px; flex-wrap: wrap; }
.si .sb button { font: inherit; font-size: 13px; font-weight: 700; border: 1px solid var(--blue-soft); background: var(--white); color: var(--blue); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.si .sb button.on { background: var(--blue); color: var(--white); }
.si.bad .sb button.on { background: var(--red); border-color: var(--red); }
.si.bad .sb button.right { border: 2px solid var(--green); color: var(--green); }
.si .sw { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.si .sw:empty { display: none; }
.si.ok { border-color: #8cc9a6; background: var(--green-tint); } .si.ok .sw b { color: var(--green); }
.si.bad { border-color: #e2a29b; background: var(--red-tint); } .si.bad .sw b { color: var(--red); }
.srt-score { margin-top: 10px; font-weight: 800; color: var(--navy); }
@media (max-width: 640px) { .si { grid-template-columns: 1fr; } }

/* matrix: 2x2 with projects */
.mtx { max-width: 620px; margin: 0 auto; }
.mtx .mq rect { stroke: var(--white); stroke-width: 3; cursor: pointer; }
.mtx .q0 rect { fill: #fff4e5; } .mtx .q1 rect { fill: var(--green-tint); } .mtx .q2 rect { fill: #f1f1ee; } .mtx .q3 rect { fill: var(--blue-tint); }
.mtx .mq text { font-size: 14px; font-weight: 800; fill: var(--navy); pointer-events: none; }
.mtx .ax { font-size: 13px; font-weight: 800; fill: var(--muted); }
.mtx .md { cursor: pointer; }
.mtx .md circle { fill: var(--white); stroke: var(--blue); stroke-width: 2.5; transition: all .3s; }
.mtx .md text { font-size: 13px; font-weight: 800; fill: var(--blue); pointer-events: none; }
.mtx .md.on circle { fill: var(--blue); } .mtx .md.on text { fill: var(--white); }
.mtx-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; font-size: 14px; }
.mtx-list li { cursor: pointer; border-radius: 8px; padding: 3px 6px; }
.mtx-list li .n { display: inline-block; min-width: 22px; font-weight: 800; color: var(--blue); }
.mtx-list li.on { background: var(--blue-tint); }
@media (max-width: 640px) { .mtx-list { grid-template-columns: 1fr; } }

/* portfolio: choose projects within a budget */
.pf-list { display: flex; flex-direction: column; gap: 6px; }
.pi { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--white); cursor: pointer; font-size: 15px; }
.pi:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }
.pi input { width: 18px; height: 18px; accent-color: var(--blue); }
.pi .nm small { display: block; color: var(--muted); font-size: 13px; }
.pi .pc { font-weight: 800; color: var(--navy); white-space: nowrap; }
.pi .pg { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.pi .pg.y { background: var(--green-tint); color: var(--green); } .pi .pg.n { background: var(--yellow-tint); color: #8a6100; }
.pf-sum { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--white); }
.pf-sum .row { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.pf-sum .row.s { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pf-sum .bar { display: flex; height: 14px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 6px; }
.pf-sum .bar span { display: block; height: 100%; transition: width .5s ease; }
.pf-sum .bar .a { background: var(--green); } .pf-sum .bar .b2 { background: var(--blue); }
.pf.over .pf-sum .bar .b2 { background: var(--red); }
.pf-sum .msg { margin-top: 8px; font-weight: 800; font-size: 14px; }
.pf-sum .msg.ok { color: var(--green); } .pf-sum .msg.bad { color: var(--red); }
@media (max-width: 640px) { .pi { grid-template-columns: auto 1fr; } .pi .pc, .pi .pg { grid-column: 2; justify-self: start; } }

@media (prefers-reduced-motion: reduce) { .anim * { transition: none !important; animation: none !important; } }
@media print { .anim-ctrl, .anim-tag { display: none; } }

/* 19. Circular hierarchy (ladder) */
.lad { display: flex; flex-direction: column; gap: 8px; }
.lad-ax { text-align: center; font-size: 13px; font-weight: 800; }
.lad-ax.up { color: var(--green); } .lad-ax.dn { color: var(--red); }
.lad-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lad-l li { width: var(--w); display: flex; align-items: center; gap: 10px; justify-content: center; padding: 10px 14px; border-radius: 10px; background: var(--green-tint); color: var(--navy); font-weight: 800; cursor: pointer; border: 2px solid transparent; transition: background .3s, border-color .3s, opacity .3s; }
.lad-l li:nth-child(4) { background: var(--yellow-tint); } .lad-l li:nth-child(5) { background: var(--red-tint); }
.lad-l li .k { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--white); font-size: 13px; }
.lad-l li.on { border-color: var(--blue); }
.lad-l li.past { opacity: .6; }

/* 20. Debris plan */
.dbr { display: flex; flex-direction: column; gap: 8px; }
.dr { display: grid; grid-template-columns: 200px 1fr; gap: 6px 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--white); transition: border-color .3s, background .3s; }
.dr .nm { font-weight: 800; color: var(--navy); font-size: 15px; } .dr .nm small { display: block; font-weight: 600; color: var(--muted); font-size: 13px; }
.dr .sb { display: flex; gap: 6px; flex-wrap: wrap; }
.dr .sb button, .tp .sb button { font: inherit; font-size: 13px; font-weight: 700; border: 1px solid var(--blue-soft); background: var(--white); color: var(--blue); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.dr .sb button.on { background: var(--blue); border-color: var(--blue); color: var(--white); }
.dr .sb button.lf.on { background: var(--red); border-color: var(--red); }
.dr .sw { grid-column: 1 / -1; font-size: 14px; color: var(--muted); } .dr .sw:empty { display: none; }
.dr.spoiled { border-color: var(--red); background: var(--red-tint); } .dr.spoiled .sw b { color: var(--red); }
.dbr-sum { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--white); }
.dbr-sum .bar { display: flex; height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; }
.dbr-sum .bar span { display: block; height: 100%; transition: width .4s; } .dbr-sum .bar .kept { background: var(--green-soft); } .dbr-sum .bar .lf { background: var(--red); }
.dbr-sum .row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-size: 15px; font-weight: 700; }
.dbr-sum .row .a { color: var(--green); } .dbr-sum .row .b { color: var(--red); }
.dbr-sum .msg { margin-top: 6px; font-size: 14px; color: var(--navy); } .dbr-sum .msg:empty { display: none; }
@media (max-width: 640px) { .dr { grid-template-columns: 1fr; } }

/* 21. Tender builder */
.tnd-m { background: var(--yellow-tint); border-radius: 10px; padding: 10px 14px; font-size: 15px; margin-bottom: 10px; }
.tnd { display: flex; flex-direction: column; gap: 8px; }
.tp { display: grid; grid-template-columns: 200px 1fr; gap: 6px 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--white); transition: border-color .3s, background .3s; }
.tp .nm { font-weight: 800; color: var(--navy); font-size: 15px; } .tp .nm small { display: block; font-weight: 600; color: var(--muted); font-size: 13px; }
.tp .sb { display: flex; gap: 6px; flex-wrap: wrap; } .tp .sb button.on { background: var(--blue); border-color: var(--blue); color: var(--white); }
.tp .sw { grid-column: 1 / -1; font-size: 14px; color: var(--muted); } .tp .sw:empty { display: none; }
.tp.ok { border-color: var(--green-soft); background: var(--green-tint); } .tp.fail { border-color: var(--red); background: var(--red-tint); } .tp.none { background: var(--paper); }
.tnd-res { margin-top: 12px; border-radius: 12px; padding: 10px 14px; font-weight: 700; } .tnd-res:empty { display: none; }
.tnd-res.ok { background: var(--green-tint); color: var(--green); } .tnd-res.fail { background: var(--red-tint); color: var(--red); } .tnd-res.none { background: var(--yellow-tint); color: #8a6100; }
@media (max-width: 640px) { .tp { grid-template-columns: 1fr; } }

/* 22. Street with nature-based solutions */
.str-svg { width: 100%; height: auto; display: block; border-radius: 12px; }
.str-svg .bld { fill: #d8dde4; } .str-svg .walk { fill: #bfc5cc; } .str-svg .road { fill: #6b7380; } .str-svg .soil { fill: #e8dcc8; }
.str-svg .pipe { fill: #8a95a3; } .str-svg .lbl { font-size: 13px; font-weight: 700; fill: var(--muted); }
.str-svg .rain line { stroke: #7fa7d6; stroke-width: 2; stroke-linecap: round; animation: rain 1.1s linear infinite; animation-delay: var(--d); }
@keyframes rain { from { transform: translateY(-8px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(40px); opacity: 0; } }
.str-svg [data-f] { opacity: 0; transition: opacity .5s; } .str-svg [data-f].on { opacity: 1; }
.str-svg .f-roof { fill: var(--green-soft); } .str-svg .f-paving { fill: #9cc79a; } .str-svg .f-garden { fill: #7fb27c; stroke: var(--green); stroke-width: 2; }
.str-svg .trunk { fill: #8a6a4a; } .str-svg .crown { fill: var(--green-soft); }
.str-svg .flow path { fill: none; stroke: var(--blue); stroke-width: calc(10px * var(--flow, 1)); stroke-linecap: round; opacity: .7; transition: stroke-width .5s; }
.str-svg .soak path { stroke: var(--blue); stroke-width: 3; stroke-linecap: round; opacity: 0; transition: opacity .5s; }
.str-svg.green .soak path { opacity: .8; animation: soak 1.4s linear infinite; animation-delay: var(--d); }
@keyframes soak { from { stroke-dasharray: 0 30; } to { stroke-dasharray: 22 30; } }
.str-f { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sf { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--blue-soft); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 700; color: var(--blue); cursor: pointer; background: var(--white); }
.sf input { accent-color: var(--green); }
.str-b { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.str-b span { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: var(--paper); color: var(--muted); border: 1px solid var(--line); transition: background .3s, color .3s; }
.str-b span.on { background: var(--green-tint); color: var(--green); border-color: var(--green-soft); }
@media (prefers-reduced-motion: reduce) { .str-svg .rain line, .str-svg.green .soak path { animation: none; } }

/* 23. Layered stack */
.stk { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.stk li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; border: 2px solid var(--blue-soft); border-radius: 10px; padding: 8px 12px; background: var(--blue-tint); cursor: pointer; transition: background .4s, border-color .4s, opacity .4s; }
.stk li .k { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--white); color: var(--navy); font-weight: 800; font-size: 13px; }
.stk li .nm { font-weight: 800; color: var(--navy); font-size: 15px; } .stk li .nm small { display: block; font-weight: 600; color: var(--muted); font-size: 13px; }
.stk li .lk { font-size: 12px; font-weight: 800; color: var(--red); opacity: 0; transition: opacity .4s; }
.stk li.on { border-color: var(--navy); }
.stk li.lock { background: var(--red-tint); border-color: #e6a19b; } .stk li.lock .lk { opacity: 1; }
.stk li.gate { border-color: var(--red); border-width: 3px; }
@media (max-width: 640px) { .stk li { grid-template-columns: 30px 1fr; } .stk li .lk { grid-column: 2; } }

/* 24. Functions around a governing function */
.csf { width: 100%; max-width: 560px; display: block; margin: 0 auto; }
.csf .ring { fill: none; stroke: var(--line); stroke-width: 2; } .csf .spoke { stroke: var(--line); stroke-width: 2; stroke-dasharray: 4 4; }
.csf .cf { cursor: pointer; } .csf .cf circle { fill: var(--blue-tint); stroke: var(--blue-soft); stroke-width: 2; transition: fill .3s, stroke .3s; }
.csf .cf.c circle { fill: var(--navy); stroke: var(--navy); } .csf .cf.c .cl { fill: var(--white); }
.csf .cl { font-size: 14px; font-weight: 800; fill: var(--navy); pointer-events: none; } .csf .cl.sm { font-size: 12.5px; }
.csf { max-width: 580px; }
.csf .cf.on circle { fill: var(--yellow-tint); stroke: var(--yellow); stroke-width: 4; } .csf .cf.c.on circle { fill: var(--blue); stroke: var(--yellow); } 

/* 25. Backup copies */
.bkp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bc { border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--white); transition: background .4s, border-color .4s; }
.bc .nm { font-weight: 800; color: var(--navy); } .bc small { display: block; color: var(--muted); font-size: 13px; margin: 2px 0 6px; }
.bc .st { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 10px; }
.bc.safe { border-color: var(--green-soft); background: var(--green-tint); } .bc.safe .st { background: var(--white); color: var(--green); }
.bc.lost { border-color: var(--red); background: var(--red-tint); } .bc.lost .st { background: var(--white); color: var(--red); } .bc.lost .nm { text-decoration: line-through; }
@media (max-width: 640px) { .bkp { grid-template-columns: 1fr; } }

/* 26. Tabletop exercise */
.ttx { display: flex; flex-direction: column; gap: 8px; }
.ti { display: none; grid-template-columns: 92px 1fr; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--white); transition: border-color .3s, background .3s; }
.ti.open { display: grid; animation: chn-in .5s ease both; }
.ti .tm { font-weight: 900; color: var(--blue); font-size: 15px; } .ti .nm { font-weight: 800; color: var(--navy); } .ti p { margin: 4px 0 8px; font-size: 15px; }
.ti .sb { display: flex; gap: 6px; flex-wrap: wrap; }
.ti .sb button { font: inherit; font-size: 13px; font-weight: 700; border: 1px solid var(--blue-soft); background: var(--white); color: var(--blue); border-radius: 999px; padding: 4px 10px; cursor: pointer; text-align: left; }
.ti .sb button.on { background: var(--blue); color: var(--white); }
.ti .sw { margin-top: 8px; font-size: 14px; } .ti .sw:empty { display: none; }
.ti.ok { border-color: var(--green-soft); background: var(--green-tint); } .ti.ok .sw b { color: var(--green); }
.ti.weak { border-color: var(--yellow); background: var(--yellow-tint); } .ti.weak .sw b { color: #8a6100; }
.ti.bad { border-color: var(--red); background: var(--red-tint); } .ti.bad .sw b { color: var(--red); }
.ttx-res { margin-top: 12px; border-radius: 12px; padding: 10px 14px; background: var(--blue-tint); font-size: 15px; } .ttx-res:empty { display: none; } .ttx-res b { color: var(--navy); }
@media (max-width: 640px) { .ti { grid-template-columns: 1fr; gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .ti.open { animation: none; } }

/* 27. Self-assessment of roles */
.srf { display: flex; flex-direction: column; gap: 8px; }
.sr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--white); transition: border-color .3s, background .3s; }
.sr .nm { font-weight: 800; color: var(--navy); font-size: 15px; } .sr .nm small { display: block; font-weight: 600; color: var(--muted); font-size: 13px; }
.sr .sc { display: flex; gap: 4px; }
.sr .sc button { font: inherit; font-size: 14px; font-weight: 800; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--blue-soft); background: var(--white); color: var(--blue); cursor: pointer; }
.sr .sc button.on { background: var(--blue); color: var(--white); }
.sr .bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; } .sr .bar span { display: block; height: 100%; width: 0; background: var(--green-soft); transition: width .4s ease; }
.sr.low { border-color: #e2a29b; background: var(--red-tint); } .sr.low .bar span { background: var(--red); }
.srf-ax { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.srf-res { margin-top: 12px; border-radius: 12px; padding: 10px 14px; background: var(--blue-tint); font-size: 15px; } .srf-res:empty { display: none; }
.srf-res > b { color: var(--navy); } .srf-res p { margin: 6px 0 0; } .srf-res .dn { color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { .sr { grid-template-columns: 1fr; } }

/* 28. Statement builder */
.bld-w { background: var(--paper); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 14px; font-size: 15px; color: var(--muted); }
.bld-w span { font-weight: 800; color: var(--red); }
.bld-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.bld-chips button { font: inherit; font-size: 14px; font-weight: 700; border: 1px solid var(--blue-soft); background: var(--white); color: var(--blue); border-radius: 999px; padding: 5px 12px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.bld-chips button.on { background: var(--green-tint); border-color: var(--green-soft); color: var(--green); }
.bld-chips .pl { font-weight: 900; }
.bld-card { border: 2px solid var(--blue-soft); border-radius: 12px; padding: 10px 14px; background: var(--white); transition: border-color .4s, background .4s; }
.bld-card .hd { font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.bld-card .row { display: none; grid-template-columns: 170px 1fr; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 15px; }
.bld-card .row.on { display: grid; animation: chn-in .45s ease both; } .bld-card .row b { color: var(--navy); }
.bld-card .cnt { margin-top: 6px; font-size: 13px; font-weight: 800; color: var(--muted); }
.bld-card .strong { margin-top: 8px; } .bld-card .strong:empty { display: none; } .bld-card .strong b { color: var(--green); }
.bld-card.done { border-color: var(--green-soft); background: var(--green-tint); }
@media (max-width: 640px) { .bld-card .row { grid-template-columns: 1fr; gap: 2px; } }
@media (prefers-reduced-motion: reduce) { .bld-card .row.on { animation: none; } }

/* 29. Stress test of decisions */
.sts { display: flex; flex-direction: column; gap: 8px; }
.sd { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--white); transition: border-color .3s, background .3s; }
.sd .nm { font-weight: 800; color: var(--navy); font-size: 15px; margin-bottom: 6px; }
.sd .mk { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sd .m { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 10px 3px 4px; background: var(--paper); color: var(--muted); border: 1px solid var(--line); transition: background .3s var(--d), color .3s var(--d), border-color .3s var(--d); }
.sd .m i, .sts-lg i { font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--white); font-weight: 900; }
.sd .m.w, .sts-lg .w { background: var(--green-tint); color: var(--green); border-color: var(--green-soft); }
.sd .m.p, .sts-lg .p { background: var(--yellow-tint); color: #8a6100; border-color: var(--yellow); }
.sd .m.f, .sts-lg .f { background: var(--red-tint); color: var(--red); border-color: #e2a29b; }
.sd .sb { display: flex; gap: 6px; flex-wrap: wrap; }
.sd .sb button { font: inherit; font-size: 13px; font-weight: 700; border: 1px solid var(--blue-soft); background: var(--white); color: var(--blue); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.sd .sb button.on { background: var(--blue); color: var(--white); }
.sd.bad .sb button.on { background: var(--red); border-color: var(--red); } .sd.bad .sb button.right { border: 2px solid var(--green); color: var(--green); }
.sd .sw { margin-top: 8px; font-size: 14px; color: var(--muted); } .sd .sw:empty { display: none; }
.sd.ok { border-color: #8cc9a6; } .sd.ok .sw b { color: var(--green); } .sd.bad { border-color: #e2a29b; } .sd.bad .sw b { color: var(--red); }
.sts-lg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sts-lg span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 10px 3px 4px; border: 1px solid; }
