/* ===== القرار 62 — الفريق التقني بالقليوبية ===== */
:root {
  --navy: #081a2e; --navy-2: #0d2742;
  --blue: #1b5aa6; --teal: #0a6466; --green: #1a6b30; --gold: #6f4d0c; --gold-2: #e2bd62;
  --sel-bg: #081a2e; --sel-ink: #fff;
  --bg: #f4f0e4; --bg-alt: #ebe6d6; --surface: #fffdf6; --ink: #0f2238; --muted: #556579; --line: #dcd5c0;
  --ok: #1f8a3f; --bad: #b3372b;
  --r: 18px; --r-s: 10px;
  --shadow: 0 1px 2px rgba(8,26,46,.06), 0 12px 32px -14px rgba(8,26,46,.22);
  --f-head: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-legal: "Amiri", "Traditional Arabic", serif;
  --nav-h: 64px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #071626; --bg-alt: #0a1d32; --surface: #0f2640; --ink: #e9f0f7; --muted: #9fb2c6; --line: #1f3a57;
  --blue: #5ea3ec; --teal: #3fc1c1; --green: #56c873; --gold: #e2bd62; --ok: #56c873; --bad: #f08273; --sel-bg: #e2bd62; --sel-ink: #221803;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 34px -14px rgba(0,0,0,.6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071626; --bg-alt: #0a1d32; --surface: #0f2640; --ink: #e9f0f7; --muted: #9fb2c6; --line: #1f3a57;
    --blue: #5ea3ec; --teal: #3fc1c1; --green: #56c873; --gold: #e2bd62; --ok: #56c873; --bad: #f08273; --sel-bg: #e2bd62; --sel-ink: #221803;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 34px -14px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.85 var(--f-body); overflow-x: hidden; }
h1, h2, h3, h4, h5 { font-family: var(--f-head); line-height: 1.35; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; inset-inline-start: 12px; top: -80px; z-index: 100; background: var(--gold-2); color: #1a1405; padding: 8px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(780px, 100% - 32px); }

/* ---------- progress + nav ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: right; transform: scaleX(0); background: linear-gradient(90deg, var(--green), var(--gold-2), #5ea3ec); }
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50; display: flex; align-items: center; gap: 16px; padding: 0 max(16px, calc((100vw - 1280px) / 2)); color: #eaf1f8; transition: background .3s, box-shadow .3s; }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: rgba(8,26,46,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.08); transition: opacity .3s; }
.nav.solid::before { opacity: 1; }
.brand { min-height: 44px; display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.brand span { display: grid; line-height: 1.25; }
.brand b { font: 700 15px var(--f-head); }
.brand small { font-size: 12px; opacity: .85; }
.links { display: flex; gap: 2px; margin-inline: auto; }
.links a { text-decoration: none; font-size: 14px; padding: 6px 11px; border-radius: 99px; opacity: .78; white-space: nowrap; transition: background .2s, opacity .2s; }
.links a:hover { opacity: 1; background: rgba(255,255,255,.09); }
.links a.on { opacity: 1; background: rgba(226,189,98,.18); color: var(--gold-2); }
.nav-tools { display: flex; gap: 6px; margin-inline-start: auto; }
.links + .nav-tools { margin-inline-start: 0; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.icon-btn:hover { background: rgba(127,150,180,.18); }
.icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: block; } :root[data-theme="dark"] .icon-btn .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-btn .sun { display: block; } :root:not([data-theme="light"]) .icon-btn .moon { display: none; } }
.menu-btn { display: none; }
@media (max-width: 1140px) {
  .menu-btn { display: grid; }
  .links { position: fixed; inset: var(--nav-h) 0 0 0; margin: 0; flex-direction: column; gap: 4px; padding: 20px 16px 40px; background: var(--navy); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility 0s .25s; }
  .links.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .links a { font: 600 19px var(--f-head); padding: 13px 16px; border-radius: 12px; opacity: 1; }
  .links + .nav-tools { margin-inline-start: auto; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 28px) 0 0; color: #eaf1f8; background: radial-gradient(120% 90% at 85% 10%, #123a63 0%, transparent 55%), radial-gradient(90% 70% at 5% 95%, #0d4a3a 0%, transparent 55%), var(--navy); overflow: hidden; isolation: isolate; }
.hero canvas, .foot canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-in { width: min(1180px, 100% - 32px); margin-inline: auto; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 40px; flex: 1; }
.eyebrow { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; margin-bottom: 22px; }
.eyebrow span { border: 1px solid rgba(226,189,98,.4); color: var(--gold-2); padding: 3px 14px; border-radius: 99px; background: rgba(226,189,98,.07); }
.hero h1 { font-weight: 800; display: grid; gap: 4px; }
.h1-a { font-size: clamp(22px, 3.2vw, 34px); font-weight: 500; opacity: .85; }
.h1-b { font-size: clamp(60px, 11vw, 132px); line-height: 1.1; letter-spacing: -.01em; }
.h1-b em { font-style: normal; background: linear-gradient(120deg, #7ec0ff 0%, #58d6a0 45%, var(--gold-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h1-c { font-size: clamp(26px, 4.4vw, 50px); color: #fff; }
.lead { max-width: 56ch; margin-top: 22px; font-size: clamp(16px, 1.5vw, 19px); color: #c4d3e3; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 99px; font: 600 15.5px var(--f-head); text-decoration: none; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(135deg, var(--gold-2), #c9972f); color: #221803; box-shadow: 0 10px 26px -10px rgba(226,189,98,.7); }
.btn.primary:hover { transform: translateY(-2px); }
.btn.ghost { border: 1.5px solid rgba(255,255,255,.3); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn.line { border: 1.5px solid var(--line); color: var(--ink); min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn.line:hover { border-color: var(--gold); }
.btn[disabled] { opacity: .4; pointer-events: none; }

.hero-mark { position: relative; aspect-ratio: 1; width: min(100%, 360px); margin-inline: auto; display: grid; place-items: center; }
.hero-mark img { width: 78%; height: auto; border-radius: 50%; background: #fff; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7), 0 0 0 8px rgba(255,255,255,.06); animation: float 7s ease-in-out infinite; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(226,189,98,.45); animation: spin 60s linear infinite; }
.ring.r2 { inset: 7%; border: 1px solid rgba(94,163,236,.35); border-inline-start-color: transparent; border-block-end-color: transparent; animation: spin 18s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }

.stats { width: min(1180px, 100% - 32px); margin: 36px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.14); }
.stats div { padding: 20px 8px 26px; text-align: center; border-inline-start: 1px solid rgba(255,255,255,.1); }
.stats div:first-child { border: 0; }
.stats dt { font: 800 clamp(30px, 5vw, 52px)/1.1 var(--f-head); color: var(--gold-2); font-variant-numeric: tabular-nums; }
.stats dd { font-size: clamp(12.5px, 1.3vw, 15px); color: #b4c5d8; }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .hero-mark { order: -1; width: 190px; }
  .eyebrow, .cta { justify-content: center; }
  .lead { margin-inline: auto; }
}

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.sec.alt { background: var(--bg-alt); }
.sec-head { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: baseline; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-no { font: 800 clamp(38px, 6vw, 68px)/1 var(--f-head); color: transparent; -webkit-text-stroke: 1.5px var(--gold); grid-row: span 2; align-self: start; }
.sec-head h2 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; }
.sec-head p { grid-column: 2; max-width: 68ch; color: var(--muted); margin-top: 10px; }
.sub-h { font-size: clamp(20px, 2.4vw, 26px); margin: clamp(44px, 6vw, 72px) 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sub-p { color: var(--muted); max-width: 70ch; margin-bottom: 22px; }
@media (max-width: 560px) { .sec-head { grid-template-columns: 1fr; } .sec-head p { grid-column: 1; } .sec-no { grid-row: auto; margin-bottom: 6px; } }

.art { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 99px; font: 600 12.5px var(--f-body); color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: color-mix(in srgb, var(--gold) 9%, transparent); white-space: nowrap; vertical-align: middle; transition: background .2s, transform .2s; position: relative; }
.art::after { content: ""; position: absolute; inset: -9px -4px; }
.art:hover { background: color-mix(in srgb, var(--gold) 22%, transparent); transform: translateY(-1px); }
.arts { display: flex; flex-wrap: wrap; gap: 6px; }

.rv { opacity: 1; }
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- decree ---------- */
.decree-grid { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.facts { background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: #eaf1f8; border-radius: var(--r); padding: 26px; position: sticky; top: calc(var(--nav-h) + 16px); box-shadow: var(--shadow); }
.facts h3 { font-size: 19px; color: var(--gold-2); margin-bottom: 12px; }
.facts dl div { display: grid; gap: 0; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.facts dt { font-size: 12.5px; color: #9fb2c6; }
.facts dd { font-weight: 600; line-height: 1.6; }
.facts .btn { margin-top: 18px; width: 100%; color: #fff; border-color: rgba(255,255,255,.25); }
.issue { display: grid; gap: 10px; counter-reset: i; }
.issue li { counter-increment: i; }
.issue button { width: 100%; text-align: start; display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 14px 16px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.issue button::before { content: counter(i); font: 800 22px/46px var(--f-head); width: 46px; height: 46px; text-align: center; border-radius: 12px; background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue); }
.issue button:hover { border-color: var(--gold); transform: translateX(-4px); box-shadow: var(--shadow); }
.issue b { font: 700 15px var(--f-head); display: block; }
.issue span { color: var(--muted); font-size: 15.5px; line-height: 1.7; display: block; }
@media (max-width: 900px) { .decree-grid { grid-template-columns: 1fr; } .facts { position: static; } }

/* ---------- segmented ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 26px; max-width: 100%; }
.seg button { min-height: 44px; padding: 0 20px; border-radius: 99px; font: 600 14.5px var(--f-head); color: var(--muted); transition: background .25s, color .25s; }
.seg button[aria-selected="true"] { background: var(--sel-bg); color: var(--sel-ink); }
@media (max-width: 560px) { .seg { border-radius: 18px; display: flex; } .seg button { flex: 1 1 auto; padding: 0 12px; border-radius: 14px; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; animation: pop .5s both; animation-delay: calc(var(--i, 0) * 50ms); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); }
.card .num { font: 800 44px/1 var(--f-head); color: transparent; -webkit-text-stroke: 1.2px color-mix(in srgb, var(--teal) 70%, transparent); position: absolute; inset-inline-end: 16px; top: 12px; opacity: .7; }
.card h4 { font-size: 18px; margin-bottom: 8px; padding-inline-end: 48px; color: var(--blue); }
.card p, .card .legal { color: var(--muted); font-size: 15.5px; line-height: 1.85; }
.card .subs { margin-top: 8px; display: grid; gap: 4px; font-size: 15px; color: var(--muted); }
.card .subs li { padding-inline-start: 14px; border-inline-start: 2px solid var(--gold); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ---------- pyramid ---------- */
.pyr-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.pyramid { display: grid; gap: 8px; justify-items: center; position: sticky; top: calc(var(--nav-h) + 16px); }
.pyramid button { width: calc(48% + var(--w) * 13%); min-height: 66px; padding: 8px 14px; border-radius: 14px; display: grid; place-items: center; text-align: center; background: var(--surface); border: 1.5px solid var(--line); transition: transform .25s, background .25s, color .25s, border-color .25s, box-shadow .25s; position: relative; }
.pyramid button b { font: 700 clamp(15px, 1.7vw, 18px) var(--f-head); }
.pyramid button small { font-size: 12.5px; color: var(--muted); }
.pyramid button:hover { border-color: var(--gold); transform: scale(1.02); }
.pyramid button[aria-selected="true"] { background: linear-gradient(135deg, var(--navy-2), #124a7a); color: #fff; border-color: var(--gold-2); box-shadow: 0 16px 36px -16px rgba(18,74,122,.9); }
.pyramid button[aria-selected="true"] small { color: var(--gold-2); }
.pyr-arrow { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.level-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); min-height: 420px; }
.level-panel > * { animation: pop .45s both; }
.level-panel h3 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 6px; }
.level-panel .scope { color: var(--muted); margin-bottom: 18px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.kv div { background: var(--bg); border-radius: 12px; padding: 12px; text-align: center; }
.kv dt { font-size: 12.5px; color: var(--muted); }
.kv dd { font: 700 15.5px/1.5 var(--f-head); color: var(--blue); }
.blk { padding: 14px 0; border-top: 1px dashed var(--line); }
.blk h4 { font-size: 15px; color: var(--gold); margin-bottom: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.blk ul { display: grid; gap: 4px; }
.blk li { padding-inline-start: 20px; position: relative; }
.blk li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .8em; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); transform: rotate(45deg); }
.blk ul.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills li { padding: 3px 12px !important; border-radius: 99px; background: color-mix(in srgb, var(--teal) 13%, transparent); font-size: 14.5px; }
.pills li::before { display: none; }
.pills li.staff { background: color-mix(in srgb, var(--gold) 16%, transparent); }
@media (max-width: 900px) { .pyr-grid { grid-template-columns: 1fr; } .pyramid { position: static; } .pyramid button { min-height: 56px; } .level-panel { min-height: 0; } }
@media (max-width: 480px) { .kv { grid-template-columns: 1fr; } .kv div { display: flex; justify-content: space-between; align-items: center; text-align: start; } }

.committees { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.committees li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 12px; text-align: center; transition: transform .3s, box-shadow .3s; }
.committees li:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow); }
.committees svg { width: 40px; height: 40px; color: var(--c); margin: 0 auto 10px; display: block; }
.committees b { font: 700 15.5px var(--f-head); display: block; }
@media (max-width: 760px) { .committees { grid-template-columns: repeat(2, 1fr); } .committees li:last-child { grid-column: span 2; } }

/* ---------- timeline ---------- */
.timeline { display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 190px 1fr; gap: 14px; align-items: center; }
.timeline .who { font: 700 15px var(--f-head); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.timeline .track { position: relative; height: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.timeline .fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--p) * 1%); border-radius: 99px; background: linear-gradient(270deg, var(--c), color-mix(in srgb, var(--c) 55%, var(--navy))); display: flex; align-items: center; justify-content: flex-end; padding-inline: 14px; color: #fff; font: 600 13.5px var(--f-head); white-space: nowrap; min-width: max-content; transform-origin: right; transform: scaleX(1); transition: transform 1.1s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i) * 90ms); }
.js .timeline li:not(.in) .fill { transform: scaleX(0); }
.js .timeline li.rv { transform: none; }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } .timeline .fill { min-width: max-content; } }

/* ---------- stepper ---------- */
.stepper { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 30px); box-shadow: var(--shadow); }
.step-dots { display: flex; gap: 6px; margin-bottom: 22px; }
.step-dots button { flex: 1; height: 8px; border-radius: 99px; background: var(--line); transition: background .3s; position: relative; }
.step-dots button::after { content: ""; position: absolute; inset: -18px 0; }
.step-dots button.done { background: var(--green); }
.step-dots button[aria-selected="true"] { background: var(--gold-2); }
.step-body { min-height: 190px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.step-body > * { animation: pop .4s both; }
.step-n { font: 800 clamp(52px, 8vw, 88px)/1 var(--f-head); color: transparent; -webkit-text-stroke: 2px var(--gold); min-width: 1.2ch; text-align: center; }
.step-body h4 { font-size: clamp(19px, 2.2vw, 24px); margin-bottom: 8px; }
.step-body p { color: var(--muted); max-width: 66ch; }
.step-body .tip { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--ink); font-size: 15px; border-inline-start: 3px solid var(--gold); }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.step-nav span { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .step-body { grid-template-columns: 1fr; gap: 6px; min-height: 280px; } .step-n { text-align: start; } }

/* ---------- tools ---------- */
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(32px, 5vw, 56px); }
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 2.6vw, 28px); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tool.wide { grid-column: 1 / -1; }
.tool header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.tool h3 { font-size: 20px; }
.tool-p { color: var(--muted); font-size: 15.5px; margin-bottom: 16px; }
.checks { display: grid; gap: 8px; }
.checks label, .sign, .opts label { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; font-size: 15.5px; line-height: 1.7; }
.checks label:has(:checked), .opts label:has(:checked) { border-color: var(--green); background: color-mix(in srgb, var(--green) 9%, transparent); }
.sign:has(:checked) { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 9%, transparent); }
input[type="checkbox"] { appearance: none; flex: none; width: 22px; height: 22px; margin-top: 4px; border-radius: 6px; border: 2px solid var(--muted); display: grid; place-items: center; transition: background .2s, border-color .2s; cursor: pointer; }
input[type="checkbox"]::after { content: ""; width: 11px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); transition: transform .2s; margin-top: -3px; }
input[type="checkbox"]:checked { background: var(--green); border-color: var(--green); }
.sign input:checked { background: var(--bad); border-color: var(--bad); }
input[type="checkbox"]:checked::after { transform: rotate(-45deg) scale(1); }
.meter { height: 8px; border-radius: 99px; background: var(--line); margin: 16px 0 10px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(270deg, var(--gold-2), var(--green)); transition: width .4s; }
.verdict { margin-top: auto; padding: 12px 16px; border-radius: 12px; font-weight: 500; background: var(--bg); border-inline-start: 4px solid var(--muted); font-size: 15.5px; }
.verdict.ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 11%, transparent); }
.verdict.bad { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.verdict b { font-family: var(--f-head); }
.ballot { border: 2px dashed var(--line); border-radius: 14px; padding: 14px; margin-bottom: 14px; background: repeating-linear-gradient(0deg, transparent 0 31px, color-mix(in srgb, var(--line) 50%, transparent) 31px 32px); }
.ballot-head { text-align: center; font: 700 15px var(--f-head); padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.ballot fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.ballot legend { font: 700 14px var(--f-head); color: var(--gold); margin-bottom: 6px; padding: 0; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.opts label { padding: 8px 10px; font-size: 14.5px; background: var(--surface); align-items: center; }
.opts input { margin: 0; }
.sign { background: var(--surface); align-items: center; }
.sign input { margin: 0; }
@media (max-width: 420px) { .opts { grid-template-columns: 1fr; } }
.range { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; font-weight: 600; }
.range output { font: 800 34px/1 var(--f-head); color: var(--blue); font-variant-numeric: tabular-nums; }
.range input { grid-column: 1 / -1; width: 100%; height: 44px; accent-color: var(--gold); cursor: pointer; }
.calc-out { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.calc-out .big { grid-column: 1 / -1; padding: 16px 18px; border-radius: 14px; background: linear-gradient(135deg, var(--navy-2), #124a7a); color: #fff; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; }
.calc-out .big b { font: 800 clamp(30px, 5vw, 46px)/1.1 var(--f-head); color: var(--gold-2); font-variant-numeric: tabular-nums; }
.calc-out .big span { flex: 1 1 260px; color: #c8d6e5; font-size: 15.5px; }
.calc-out .mini { background: var(--bg); border-radius: 12px; padding: 12px; text-align: center; }
.calc-out .mini b { font: 800 26px/1.2 var(--f-head); color: var(--teal); display: block; font-variant-numeric: tabular-nums; }
.calc-out .mini span { font-size: 13.5px; color: var(--muted); line-height: 1.5; display: block; }
.calc-out .mini .art { margin-top: 6px; }
@media (max-width: 900px) { .tools { grid-template-columns: 1fr; } .calc-out { grid-template-columns: repeat(2, 1fr); } }

/* ---------- pioneers ---------- */
.pio { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.pio article { grid-column: span 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .3s, box-shadow .3s; }
.pio article:nth-child(1), .pio article:nth-child(2) { grid-column: span 3; }
.pio article:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pio .tag { align-self: flex-start; font: 600 12.5px var(--f-head); padding: 2px 12px; border-radius: 99px; background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.pio h3 { font-size: 20px; }
.pio dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 15px; }
.pio dt { color: var(--muted); }
.pio dd { font-weight: 600; }
.pio ul { display: grid; gap: 4px; font-size: 15px; color: var(--muted); }
.pio ul li { padding-inline-start: 16px; position: relative; }
.pio ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: .85em; width: 7px; height: 2px; background: var(--gold); }
.pio .arts { margin-top: auto; padding-top: 8px; }
@media (max-width: 900px) { .pio { grid-template-columns: 1fr; } .pio article, .pio article:nth-child(1), .pio article:nth-child(2) { grid-column: auto; } }

/* ---------- roles ---------- */
.roles { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.role-list { display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; position: sticky; top: calc(var(--nav-h) + 16px); max-height: calc(100vh - var(--nav-h) - 32px); overflow-y: auto; }
.role-list h4 { font-size: 12.5px; color: var(--gold); padding: 10px 12px 2px; letter-spacing: .02em; }
.role-list button { text-align: start; padding: 9px 12px; border-radius: 10px; font-size: 15px; line-height: 1.6; min-height: 44px; transition: background .2s, color .2s; }
.role-list button:hover { background: var(--bg); }
.role-list button[aria-selected="true"] { background: var(--sel-bg); color: var(--sel-ink); font-weight: 600; }
.role-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 34px); box-shadow: var(--shadow); min-height: 400px; }
.role-panel > * { animation: pop .4s both; }
.role-panel .kick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.role-panel h3 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 16px; }
@media (max-width: 900px) {
  .roles { grid-template-columns: 1fr; }
  .role-list { position: static; display: flex; overflow-x: auto; max-height: none; gap: 6px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .role-list h4 { display: none; }
  .role-list button { flex: none; white-space: nowrap; border: 1px solid var(--line); border-radius: 99px; padding: 6px 16px; scroll-snap-align: center; }
}

/* ---------- legal text ---------- */
.legal { font: 400 19px/2 var(--f-legal); }
.legal p { margin-bottom: 8px; }
.legal h5 { font: 700 15.5px/1.6 var(--f-head); color: var(--blue); margin: 18px 0 8px; padding-inline-start: 12px; border-inline-start: 3px solid var(--gold); }
.legal .li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 5px 0; align-items: start; }
.legal .li > b { font: 700 13px/28px var(--f-head); height: 28px; min-width: 28px; text-align: center; border-radius: 8px; background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal); margin-top: 5px; font-variant-numeric: tabular-nums; }
.legal .li.sub { margin-inline-start: 34px; }
.legal .li.sub > b { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.legal .li.pct { grid-template-columns: 54px 1fr; }
.legal .gap { height: 6px; }
.legal mark { background: color-mix(in srgb, var(--gold-2) 55%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; }

/* ---------- finance ---------- */
.fin-grid { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: center; }
.donut-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.donut-box h3 { font-size: 19px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.donut-wrap { position: relative; width: min(100%, 280px); margin: 14px auto; }
#donut { width: 100%; height: auto; transform: rotate(-90deg); overflow: visible; }
#donut circle { stroke-width: 30; stroke-linecap: butt; cursor: pointer; transition: stroke-width .25s, opacity .25s, stroke-dasharray 1.1s cubic-bezier(.2,.7,.2,1); }
#donut.dim circle:not(.hot) { opacity: .28; }
#donut circle.hot { stroke-width: 38; }
.donut-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; padding: 26%; }
.donut-mid b { font: 800 38px/1.1 var(--f-head); color: var(--blue); font-variant-numeric: tabular-nums; }
.donut-mid span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.money { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.money input { height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); padding: 0 14px; font: 700 20px var(--f-head); width: 100%; direction: ltr; text-align: center; }
.fin-list { display: grid; gap: 8px; }
.fin-list li { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px 10px 14px; cursor: default; transition: border-color .2s, transform .2s; border-inline-start: 6px solid var(--c); }
.fin-list li.hot { transform: translateX(-6px); border-color: var(--c); }
.fin-list .p { font: 800 24px/1 var(--f-head); color: var(--ink); font-variant-numeric: tabular-nums; }
.fin-list .t { font-size: 15.5px; line-height: 1.6; }
.fin-list .a { font: 700 15.5px var(--f-head); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); }
.note { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 10%, transparent); border-inline-start: 3px solid var(--gold); font-size: 15.5px; }
@media (max-width: 900px) { .fin-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .fin-list li { grid-template-columns: 52px 1fr; } .fin-list .a { grid-column: 2; } .fin-list .p { font-size: 20px; } }

.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.flow li { position: relative; padding: 16px 12px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-inline-start-width: 0; }
.flow li:first-child { border-radius: 0 14px 14px 0; border-inline-start-width: 1px; }
.flow li:last-child { border-radius: 14px 0 0 14px; }
.flow li:not(:last-child)::after { content: ""; position: absolute; inset-inline-end: -9px; top: 50%; width: 16px; height: 16px; background: var(--surface); border: 1px solid var(--line); border-top: 0; border-right: 0; transform: translateY(-50%) rotate(45deg); z-index: 1; }
.flow b { font: 700 16px var(--f-head); display: block; color: var(--blue); }
.flow span { font-size: 13.5px; color: var(--muted); line-height: 1.6; display: block; }
@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; }
  .flow li, .flow li:first-child, .flow li:last-child { border-radius: 0; border-inline-start-width: 1px; border-top-width: 0; }
  .flow li:first-child { border-radius: 14px 14px 0 0; border-top-width: 1px; } .flow li:last-child { border-radius: 0 0 14px 14px; }
  .flow li:not(:last-child)::after { inset-inline-end: auto; inset-inline-start: 50%; top: auto; bottom: -9px; transform: translateX(50%) rotate(-45deg); }
}
.fin-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; margin-top: 24px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 4px; align-content: start; }
.fact b { font: 700 16px var(--f-head); }
.fact p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.fact .art { justify-self: start; margin-top: 4px; }
.sign-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sign-grid section { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; animation: pop .4s both; }
.sign-grid h4 { font-size: 15.5px; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.sign-grid ol { counter-reset: s; display: grid; gap: 6px; }
.sign-grid li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 8px; font-size: 15px; line-height: 1.7; }
.sign-grid li::before { content: counter(s); font: 700 12.5px/26px var(--f-head); width: 26px; height: 26px; text-align: center; border-radius: 50%; background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
@media (max-width: 900px) { .sign-grid { grid-template-columns: 1fr; } }

/* ---------- general ---------- */
.gen { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.gen article { grid-column: span 4; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 6px; transition: transform .3s, box-shadow .3s; }
.gen article.w12 { grid-column: 1 / -1; } .gen article.w6 { grid-column: span 6; } .gen article.w8 { grid-column: span 8; }
.gen article:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gen .fig { font: 800 clamp(30px, 4vw, 42px)/1.15 var(--f-head); color: var(--teal); }
.gen .fig small { display: block; font-size: 17.5px; line-height: 1.6; font-weight: 700; color: var(--ink); margin-top: 2px; }
.gen .dark .fig small { color: #fff; }
.gen h3 { font-size: 17.5px; }
.gen p, .gen li { color: var(--muted); font-size: 15.5px; line-height: 1.8; }
.gen ul { display: grid; gap: 2px; }
.gen li { padding-inline-start: 16px; position: relative; }
.gen li::before { content: ""; position: absolute; inset-inline-start: 0; top: .85em; width: 7px; height: 2px; background: var(--gold); }
.gen .art, .gen .arts { margin-top: auto; align-self: flex-start; }
.gen .dark { background: linear-gradient(150deg, var(--navy-2), var(--navy)); color: #eaf1f8; border-color: transparent; }
.gen .dark p, .gen .dark li { color: #b9c9da; } .gen .dark .fig { color: var(--gold-2); }
@media (max-width: 980px) { .gen article, .gen article.w6, .gen article.w8 { grid-column: span 6; } }
@media (max-width: 620px) { .gen article, .gen article.w6, .gen article.w8 { grid-column: 1 / -1; } }

/* ---------- quiz ---------- */
.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.quiz .meter { margin: 0 0 22px; }
.quiz h3 { font-size: clamp(19px, 2.4vw, 24px); margin-bottom: 18px; animation: pop .4s both; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opts button { text-align: start; min-height: 54px; padding: 10px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); font-size: 16px; line-height: 1.7; transition: border-color .2s, background .2s, transform .2s; animation: pop .4s both; animation-delay: calc(var(--i) * 60ms); }
.quiz-opts button:not([disabled]):hover { border-color: var(--gold); transform: translateX(-4px); }
.quiz-opts button.right { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); font-weight: 600; }
.quiz-opts button.wrong { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); animation: shake .4s; }
.quiz-opts button[disabled] { cursor: default; }
@keyframes shake { 25% { transform: translateX(6px); } 50% { transform: translateX(-6px); } 75% { transform: translateX(3px); } }
.quiz-fb { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; min-height: 48px; }
.quiz-fb p { flex: 1 1 260px; font-size: 15.5px; }
.quiz-end { text-align: center; display: grid; gap: 12px; justify-items: center; animation: pop .5s both; }
.quiz-end .score { font: 800 clamp(56px, 12vw, 96px)/1 var(--f-head); background: linear-gradient(120deg, var(--blue), var(--green), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quiz-end p { color: var(--muted); max-width: 46ch; }

/* ---------- reader ---------- */
.reader-bar { position: sticky; top: var(--nav-h); z-index: 5; background: var(--bg-alt); background: color-mix(in srgb, var(--bg-alt) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 12px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 14px; }
.search { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px; border-radius: 99px; background: var(--surface); border: 1.5px solid var(--line); color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: 0; font-size: 16.5px; color: var(--ink); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; white-space: nowrap; transition: background .2s, color .2s; }
.chips button[aria-selected="true"] { background: var(--sel-bg); color: var(--sel-ink); border-color: var(--sel-bg); }
.count { font-size: 13.5px; color: var(--muted); }
@media (max-width: 640px) { .reader-bar { padding: 8px 0; gap: 6px; } .search { height: 48px; } .count { display: none; } }
.reader { display: grid; gap: 12px; }
.chap { font: 800 clamp(20px, 2.6vw, 26px) var(--f-head); margin: 26px 0 4px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.chap small { font: 600 14px var(--f-head); color: var(--gold); }
.sect { font: 700 15px var(--f-head); color: var(--teal); margin-top: 10px; }
.m { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 16px clamp(14px, 2.4vw, 26px) 18px; scroll-margin-top: calc(var(--nav-h) + 150px); }
.m:target { border-color: var(--gold); }
.m-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.m-head h4 { font-size: 16.5px; color: var(--blue); }
.m-head h4 span { color: var(--muted); font-weight: 500; }
.m-head button { font-size: 13px; color: var(--muted); min-height: 44px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); flex: none; }
.m-head button:hover { color: var(--gold); border-color: var(--gold); }
.empty { text-align: center; padding: 50px 16px; color: var(--muted); }
.sig { text-align: center; font: 700 19px/1.9 var(--f-legal); color: var(--muted); padding: 18px; }

/* ---------- footer ---------- */
.foot { position: relative; isolation: isolate; background: var(--navy); color: #eaf1f8; padding: 70px 0 calc(50px + env(safe-area-inset-bottom)); overflow: hidden; }
.foot-in { display: grid; justify-items: center; gap: 16px; text-align: center; }
.foot img { width: 120px; height: 120px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.07); }
.foot-by { font: 500 clamp(17px, 2.2vw, 22px)/1.9 var(--f-head); }
.foot-by b { color: var(--gold-2); }
.foot-note { max-width: 62ch; font-size: 14px; color: #9fb2c6; }

/* ---------- modal + toast ---------- */
html:has(dialog[open]) { overflow: hidden; }
noscript p { margin: 90px 16px 0; padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.modal { width: min(760px, 100% - 24px); max-height: min(86vh, 900px); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 100px -20px rgba(0,0,0,.6); overflow: hidden; }
.modal[open] { display: flex; flex-direction: column; animation: modal .35s cubic-bezier(.2,.8,.2,1); }
.modal::backdrop { background: rgba(4,14,26,.66); backdrop-filter: blur(4px); }
@keyframes modal { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head small { color: var(--gold); font: 600 12.5px var(--f-head); display: block; }
.modal-head h3 { font-size: 19px; }
.modal-body { padding: 18px 22px; overflow-y: auto; overscroll-behavior: contain; }
.modal-foot { display: flex; justify-content: space-between; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.modal-foot .btn { padding: 0 14px; font-size: 13.5px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 80px); background: var(--navy); color: #fff; padding: 10px 22px; border-radius: 99px; font-size: 14.5px; z-index: 200; opacity: 0; transition: transform .35s, opacity .35s; box-shadow: 0 10px 30px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.15); pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .rv { opacity: 1; transform: none; }
}
@media print { .nav, .progress, .hero canvas, .reader-bar, .foot canvas { display: none; } .js .rv { opacity: 1; transform: none; } }
