
*,*::before,*::after{box-sizing:border-box}
body{margin:0}
img{max-width:100%}
[hidden]{display:none!important}

@font-face { font-family: "IRANSansX D4"; src: url(../fonts/2f7a1d33e8.woff2) format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSansX D4"; src: url(../fonts/eb492c8124.woff2) format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSansX D4"; src: url(../fonts/ac759848f7.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSansX D4"; src: url(../fonts/8a7255fea1.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSansX D4"; src: url(../fonts/6accdd30be.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSansX D4"; src: url(../fonts/ce39bb2099.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSansX D4"; src: url(../fonts/af043daf66.woff2) format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSansX D4"; src: url(../fonts/62c169a0b3.woff2) format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSansX D4"; src: url(../fonts/40cfba52d7.woff2) format("woff2"); font-weight: 950; font-style: normal; font-display: swap; }
/* Layout: a scrolling print report — yellow chapter openers, then "sheets" (text column + chart panel) in report order */
:root {
  --yellow: #ffde00;
  --on-yellow: #0d0d0b;
  --ink: #111110;
  --bg: #ffffff;
  --panel: #f6f6f2;
  --fig: #f7f7f7;
  --muted: #66655d;
  --line: #e6e5dd;
  --bar: #0d0d0b;
  --on-bar: #ffffff;
  --dot: #c9c8c0;
  --font: "IRANSansX D4", Tahoma, "Segoe UI", sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-h3: clamp(1.45rem, 1.1rem + 1.4vw, 2rem);
  --fs-h2: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  --measure: 62ch;
  --gut: clamp(16px, 4vw, 48px);
  color-scheme: only light;   /* the report is always light: no dark theme, and browsers are asked not to darken it */
}

*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
/* never let anything widen the page sideways (clip keeps position: sticky working) */
html, body { max-width: 100%; overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: normal;
  direction: rtl; text-rendering: optimizeLegibility;
  font-feature-settings: "ss01";
}
main { display: block; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gut); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; line-height: normal; }
p { margin: 0; }

/* progress + topbar */
.progress { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress b { display: block; height: 100%; width: 100%; background: var(--yellow); transform-origin: right; transform: scaleX(0); }
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 20px; max-width: 1180px; margin-inline: auto; padding: 10px var(--gut); }
.logo {
  display: inline-block; width: 104px; aspect-ratio: 754 / 262; max-width: 100%;
  background: currentColor;
  -webkit-mask: url(../img/f67f5d0234.png) center / contain no-repeat; mask: url(../img/f67f5d0234.png) center / contain no-repeat;
}
.brand { flex: none; display: flex; color: var(--ink); }
.chapnav {
  flex: 1; min-width: 0; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
  position: relative; padding-block: 2px 4px;
}
.chapnav::-webkit-scrollbar { display: none; }
.chapnav a {
  flex: 1 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  text-decoration: none; font-size: .75rem; color: var(--muted); padding-inline-end: 14px;
  position: relative; white-space: nowrap;
}
.chapnav a::before { content: ""; position: absolute; inset-inline: 0; bottom: 4px; height: 1px; background: var(--line); }
.chapnav a i { order: 2; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--muted); background: var(--bg); position: relative; z-index: 1; transition: background .3s, border-color .3s, transform .3s; }
.chapnav a.on { color: var(--ink); font-weight: 800; }
.chapnav a.on i, .chapnav a.done i { background: var(--ink); border-color: var(--ink); }
.chapnav a.on i { background: var(--yellow); border-color: var(--ink); transform: scale(1.35); }

/* hero = the cover */
.hero { padding-block: clamp(28px, 6vw, 72px) 24px; }
.hero-in { display: grid; gap: 28px; }
.net { width: 100%; aspect-ratio: 13 / 7.4; max-height: 62vh; display: block; }
.cover-bar { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; }
.cover-bar h1 {
  flex: 1 1 340px; background: var(--bar); color: var(--on-bar);
  font-weight: 300; font-size: clamp(1.25rem, .8rem + 2vw, 2.1rem); padding: 14px 22px;
}
.cover-bar h1 b { font-weight: 900; }
.year { background: var(--yellow); color: var(--on-yellow); font-weight: 900; font-size: clamp(1rem, .8rem + 1vw, 1.5rem); padding: 14px 22px; display: flex; align-items: center; }
.cover-bar .logo.big { width: 150px; align-self: center; margin-inline-start: auto; padding: 0; margin-block: 14px; color: var(--ink); }

/* toc + preface */
.toc-wrap { padding-block: 40px 72px; }
.toc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.toc { background: var(--bar); color: var(--on-bar); padding: 28px 28px 22px; }
.toc h2 { font-size: 1.6rem; font-weight: 900; color: var(--yellow); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; }
.toc a { display: grid; grid-template-columns: 2.6em 1fr; gap: 8px; padding-block: 9px; text-decoration: none; border-top: 1px solid color-mix(in srgb, var(--on-bar) 16%, transparent); font-size: .98rem; line-height: normal; }
.toc a:hover .tn, .toc a:focus-visible .tn { color: var(--yellow); }
.tn { font-weight: 300; color: color-mix(in srgb, var(--on-bar) 55%, transparent); font-variant-numeric: tabular-nums; }
.preface h2 { font-size: var(--fs-h3); font-weight: 900; margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.preface h2::after, .txt h3::after, .opener h2::after { content: ""; width: 12px; height: 12px; background: var(--yellow); }
.preface p + p { margin-top: 1em; }
.preface { max-width: var(--measure); }

/* chapter opener */
.opener { position: relative; background: var(--yellow); color: var(--on-yellow); overflow: hidden; padding-block: clamp(48px, 8vw, 110px); }
.opener .dots { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.opener-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.num {
  font-size: clamp(7rem, 4rem + 14vw, 16rem); line-height: .8; font-weight: 900;
  color: transparent; -webkit-text-stroke: 1px var(--on-yellow); letter-spacing: -.02em;
  order: 2; justify-self: start; font-variant-numeric: tabular-nums;
}
.opener-txt { max-width: var(--measure); }
/* openers with an illustration: desktop keeps the classic opener (dot pattern, big number at the left);
   phones show the drawing on top and the half-size number above the title */
.opener.has-illu .opener-illu, .opener.has-illu .opener-txt > .num { display: none; }
.opener.has-illu .opener-illu svg { display: block; height: auto; overflow: visible; }
.eyebrow { font-size: var(--fs-small); font-weight: 700; letter-spacing: .02em; margin-bottom: 6px; opacity: .75; }
.opener h2 { font-size: var(--fs-h2); font-weight: 900; display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
.opener h2::after { background: #fff; }
.intro p { margin-top: .8em; font-weight: 400; }
.intro h4.sub { font-size: 1.15rem; font-weight: 800; margin-top: 1em; }
.intro .notes p { font-size: .95rem; }
ul.q { list-style: none; margin: 1em 0 0; padding: 0; display: grid; gap: 4px; }
ul.q li { position: relative; padding-inline-start: 22px; }
ul.q li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #111; }
.opener ul.q li::before { background: var(--on-yellow); }
.sheet ul.q li::before { background: var(--ink); }

/* sheets */
.sheets { display: grid; gap: 0; padding-block: 24px 40px; }
.sheet { display: grid; gap: 28px; padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.sheet:last-child { border-bottom: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.side { display: grid; gap: 18px; position: sticky; top: 92px; }
.txt { max-width: var(--measure); }
.txt.wide { max-width: none; columns: 2 26rem; column-gap: clamp(28px, 4vw, 56px); }
.txt.wide h3 { column-span: all; }
.txt h3 { font-size: var(--fs-h3); font-weight: 900; margin-bottom: 18px; display: flex; flex-direction: column; gap: 12px; }
.txt h4 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.txt p { margin-bottom: .9em; break-inside: avoid-column; }
.notes { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-small); line-height: normal; break-inside: avoid; }
.notes p { margin-bottom: .35em; }
.txt.wide .notes { column-span: all; }

figure { margin: 0; }
.panel, .card { background: var(--fig); border-radius: 14px; overflow: hidden; }
.card { background: #fff; border: 1px solid var(--line); }
.fig { display: block; width: 100%; height: auto; }
.zoom { cursor: zoom-in; position: relative; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.zoom::after {
  content: "بزرگ‌نمایی"; position: absolute; inset-inline-start: 12px; top: 12px;
  background: var(--on-yellow); color: var(--yellow); font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 99px;
  opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s;
}
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; transform: none; }
.zoom:hover { box-shadow: 0 10px 40px -18px rgba(0,0,0,.35); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 900px; }
.cards.n1 { grid-template-columns: minmax(0, 420px); }
.src { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; }
.src-logo { height: 22px; width: auto; border-radius: 4px; background: #fff; padding: 2px 6px; }

/* team / partners / thanks / contact */
.team { background: var(--bar); color: var(--on-bar); padding: clamp(28px, 5vw, 56px); margin-block: 40px 8px; display: grid; gap: 12px; }
.team h3 { font-size: var(--fs-h3); font-weight: 900; display: flex; flex-direction: column; gap: 12px; }
.team h3::after { content: ""; width: 12px; height: 12px; background: var(--yellow); }
.team p { max-width: var(--measure); }
.partners { display: grid; gap: 18px; padding-block: 18px; }
.partner { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: center; padding-block: 8px; }
.partner .logo { width: auto; aspect-ratio: auto; background: none; -webkit-mask: none; mask: none; }
.partner figure.logo { border-radius: 14px; overflow: hidden; background: #fff; }
.ptxt { font-size: .98rem; max-width: var(--measure); }
.thanks { background: var(--panel); padding-block: clamp(48px, 7vw, 96px); }
.thx-h { font-size: var(--fs-h3); font-weight: 900; margin-bottom: 28px; display: flex; flex-direction: column; gap: 12px; }
.thx-h::after { content: ""; width: 12px; height: 12px; background: var(--yellow); }
/* names run down each column, then to the next one on the left, as in the PDF */
.people { list-style: none; margin: 0; padding: 0; columns: 3 250px; column-gap: 28px; }
.people li { break-inside: avoid; margin-bottom: 14px; }
.people li { display: grid; padding-inline-start: 14px; border-inline-start: 3px solid var(--yellow); line-height: normal; }
.people b { font-weight: 800; }
.people span { color: var(--muted); font-size: var(--fs-small); }
.thx-tail { margin-top: 28px; color: var(--muted); max-width: var(--measure); }
.contact { background: var(--bar); color: var(--on-bar); padding: clamp(28px, 5vw, 56px); margin-block: 40px; display: grid; gap: 12px; }
.contact .mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.addr { font-weight: 800; color: var(--yellow); user-select: all; font-size: 1.2rem; }
.copy { font: inherit; font-size: .8rem; background: transparent; color: var(--on-bar); border: 1px solid color-mix(in srgb, var(--on-bar) 40%, transparent); border-radius: 99px; padding: 2px 14px; cursor: pointer; }
.copy:hover { border-color: var(--yellow); color: var(--yellow); }

.foot { background: var(--bar); color: var(--on-bar); padding-block: 40px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.foot .logo { width: 130px; }
.foot a { text-decoration: none; opacity: .8; }

/* lightbox */
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: color-mix(in srgb, #000 88%, transparent); }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lb-scroll { width: 100%; height: 100%; overflow: auto; display: grid; place-items: center; padding: 56px 16px 24px; }
.lb-scroll img { width: min(1400px, 100%); height: auto; border-radius: 12px; background: #fff; }
.lb-close { position: fixed; top: 12px; left: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--yellow); color: #000; font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 2; }

/* reveal: visible at rest; only below-the-fold items get the entrance */
.reveal.pre { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) { .reveal.pre { opacity: 1; transform: none; } .zoom, .reveal.in { transition: none; } }

@media (max-width: 900px) {
  .toc-grid, .split, .opener-in, .partner { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .num { order: 0; font-size: clamp(5.5rem, 22vw, 9rem); }
  .chapnav a span { font-size: .7rem; }
  .opener.has-illu .opener-in { grid-template-columns: minmax(0, 1fr); }
  .opener.has-illu .dots, .opener.has-illu .opener-in > .num { display: none; }
  .opener.has-illu .opener-illu, .opener.has-illu .opener-txt > .num { display: block; }
  .opener.has-illu .opener-txt > .num { margin-bottom: 22px; }
  /* ch4: the cursor's weight sits on its left (the tip), so it moves right until the arrow itself is centred */
  #ch4 .opener.has-illu .opener-illu svg { transform: translateX(25px); }
  .opener.has-illu .opener-illu { order: -1; max-width: 420px; justify-self: center; width: 100%; }
  .opener.has-illu .opener-illu { padding-block: 14% 10%; }
  /* phones: 10% smaller and centred; the width is set from the drawing's own proportions (no max-height),
     so every browser sizes and centres it the same way */
  .opener.has-illu .opener-illu svg { margin: 0 auto; width: min(90%, calc(270px * var(--ar, 1))); }
  .opener.has-illu .num { font-size: clamp(3.4rem, 13vw, 5rem); }
  .txt.wide { columns: 1; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .topbar-in { gap: 12px; }
  .brand .logo { width: 78px; }
  .cover-bar .logo.big { margin-inline: 22px auto; }
}

.stack { display: grid; gap: 16px; max-width: 820px; }
.panel.short { max-width: 820px; }

/* ---- live charts ---- */
:root { --chartbg: #fafafa; --dotmap: #d9d8d0; --teal: #00a59b; --orange: #ffa900; --card: #ffffff; --grid: #efeee8; --chip: #f2f1ec; }

.split.live { grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); }
.chart-card {
  background: var(--chartbg); border: 0; border-radius: 18px;
  padding: clamp(14px, 2.2vw, 26px); display: grid; gap: 14px; min-width: 0;
}
.cc-head { display: grid; gap: 14px; }
.cc-cap { font-size: 1.02rem; font-weight: 800; line-height: normal; display: flex; gap: 10px; align-items: baseline; }
.cc-cap::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--yellow); transform: translateY(-1px); }
.cc-q { color: var(--muted); font-size: .92rem; display: flex; gap: 8px; align-items: baseline; line-height: normal; }
.qm { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow); color: #111; font-weight: 900; font-size: .8rem; }
.cc-tools { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.cc-tools:empty { display: none; }
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip-label { font-size: .75rem; color: var(--muted); margin-inline-end: 2px; }
.chip {
  font: inherit; font-size: .78rem; line-height: 1.4; padding: 5px 12px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--line); background: var(--chip); color: var(--muted); display: inline-flex; gap: 7px; align-items: center;
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.legend-chip { background: transparent; color: var(--ink); }
.legend-chip.on { background: transparent; color: var(--ink); border-color: var(--line); }
.legend-chip:not(.on) { opacity: .45; text-decoration: line-through; }
.legend-chip i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.cc-body { width: 100%; min-height: 200px; position: relative; direction: ltr; }
.cc-body.is-html { direction: rtl; }
.cc-foot { display: grid; gap: 10px; padding-top: 6px; }
.cc-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.cc-foot .cc-cap { font-size: .8rem; font-weight: 500; }
.cc-foot .cc-cap::before { width: 0; height: 0; background: none; border-inline: 5px solid transparent; border-bottom: 9px solid var(--yellow); transform: translateY(-1px); }
.txt.intro1 { columns: auto; max-width: 66.666%; }
@media (max-width: 900px) { .txt.intro1 { max-width: none; } }
.fn-ic { display: block; width: 20px; height: 20px; background: var(--ink); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; margin-bottom: 4px; }
.cc-src { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .78rem; }
.cc-logos { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cc-logos img { display: block; width: auto; }
@media (max-width: 560px) { .cc-logos img { zoom: .9; } }
/* dark theme: the logos are dark artwork, give them a light chip so they stay legible */
.cc-note { color: var(--muted); font-size: .72rem; }
.cc-table { font: inherit; font-size: .78rem; background: none; border: 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; cursor: pointer; padding: 4px 0; }
.cc-tablewrap { overflow-x: auto; }
.cc-tablewrap table { width: 100%; border-collapse: collapse; font-size: .85rem; font-variant-numeric: tabular-nums; }
.cc-tablewrap th, .cc-tablewrap td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.cc-tablewrap thead th { color: var(--muted); font-weight: 700; font-size: .78rem; }
.cc-tablewrap tbody th { font-weight: 500; white-space: normal; min-width: 160px; }
.cc-tablewrap small { color: var(--muted); }

/* stat tiles — desktop: up to 3 side by side; mobile: one column */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stats.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats.n1 { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "val val" "text icon";
  gap: 18px 16px; padding: 26px 26px 28px; align-items: end; align-content: space-between;
}
.stat-val { grid-area: val; font-size: clamp(3rem, 2rem + 2.6vw, 4.6rem); font-weight: 900; line-height: 1; color: var(--yellow); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.stat-pre { font-weight: 300; }
.stat-text { grid-area: text; display: grid; gap: 8px; align-content: start; }
.stat-unit { font-weight: 800; font-size: 1.05rem; }
.stat-mark { width: 9px; height: 9px; background: var(--yellow); display: block; }
.stat-desc { color: var(--muted); font-size: .95rem; line-height: normal; margin: 0; }
.stat-icon {
  grid-area: icon; display: block; width: 68px; aspect-ratio: 1; background: var(--ink); opacity: .9;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
@media (max-width: 560px) { .stats, .stats.n4, .stats.n2 { grid-template-columns: minmax(0, 1fr); } .stat-icon { width: 56px; } }

/* bubble map */
.cc-body.is-svg { min-height: 0; }
.bmap { width: 100%; height: auto; display: block; overflow: visible; }
.bm-land { fill: var(--dotmap); stroke: var(--card); stroke-width: .6; }
.bm-b { cursor: default; outline: none; }
.bm-b circle { fill: var(--yellow); fill-opacity: .72; stroke: none; mix-blend-mode: multiply; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform 1.125s cubic-bezier(.3,1.5,.5,1) var(--d), fill-opacity .25s; }
.play .bm-b circle { transform: scale(1); }
.bm-b:hover circle, .bm-b:focus circle { fill-opacity: .9; }
.bm-v { font: 900 19px "IRANSansX D4", Tahoma, sans-serif; fill: #111; text-anchor: middle; opacity: 0; transition: opacity .5s calc(var(--d) + .75s); }
.bm-n { font: 500 15px "IRANSansX D4", Tahoma, sans-serif; fill: var(--ink); text-anchor: middle; opacity: 0; transition: opacity .5s calc(var(--d) + .875s); }
.play .bm-v, .play .bm-n { opacity: 1; }

/* funnel */
.cc-body.is-html { min-height: 0; }
.fn { display: grid; gap: 10px; }
.fn-row { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fn-row:last-child { border-bottom: 0; }
.fn-name { display: grid; line-height: normal; font-size: .9rem; }
.fn-name small { color: var(--muted); font-size: .7rem; }
.fn-bars { display: grid; gap: 5px; }
.fn-bar { display: flex; align-items: center; height: 18px; position: relative; background: #fff; }   /* white track = 100% */
.fn-bar::before { content: ""; height: 100%; width: var(--w); border-radius: 0 0 0 0; transform: scaleX(0); transform-origin: right; transition: transform 1.25s cubic-bezier(.2,.7,.2,1) var(--d); }
.play .fn-bar::before { transform: scaleX(1); }
.fn-bar.seen::before { background: var(--ink); }
.fn-bar.attn::before { background: var(--yellow); }
.fn-bar.act::before { background: var(--orange); }
.fn-bar em { font-style: normal; font-size: .72rem; font-weight: 800; padding-inline-start: 6px; opacity: 0; transition: opacity .5s calc(var(--d) + .875s); }
.play .fn-bar em { opacity: 1; }
.fn-rates { position: relative; width: 66px; margin-inline-start: -10px; height: 64px; align-self: center; font-size: .74rem; font-weight: 800; --blue: #1f9be0; }
.fn-rates span { position: absolute; inset-inline-start: 0; display: flex; align-items: center; gap: 4px; height: 23px; cursor: help; }
.fn-rates span.r1 { top: 9px; } .fn-rates span.r2 { top: 32px; }
.fn-rates b { min-width: 48px; text-align: center; color: var(--blue); background: var(--card); border: 1px dashed var(--blue); border-radius: 6px; padding: 1px 6px; font-weight: 700; }
.fn-rates .r2 b { border-style: solid; }
.fn-arr { width: 12px; height: 23px; flex: none; fill: none; stroke: var(--blue); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.fn-key { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 16px; font-size: .72rem; color: var(--muted); line-height: 1.5; }
.fn-key span { display: flex; align-items: baseline; gap: 6px; max-width: 200px; }
.fn-key i { flex: none; width: 9px; height: 9px; display: inline-block; transform: translateY(1px); }
.fn-key .k-seen { background: var(--ink); } .fn-key .k-attn { background: var(--yellow); } .fn-key .k-act { background: var(--orange); }
.fn-key .k-r1 { border: 1.5px dashed #1f9be0; border-radius: 2px; } .fn-key .k-r2 { border: 1.5px solid #1f9be0; border-radius: 2px; }
.fn-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .75rem; color: var(--muted); }
.fn-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-inline-end: 6px; vertical-align: middle; }

.toc li.off { opacity: .45; }
.toc-off { display: grid; grid-template-columns: 2.6em 1fr; gap: 8px; padding-block: 9px; border-top: 1px solid color-mix(in srgb, var(--on-bar) 16%, transparent); font-size: .98rem; line-height: normal; }

@media (max-width: 900px) {
  .split.live { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {

  .fn-row { grid-template-columns: minmax(0, 1fr) auto; }
  .fn-name { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .bm-b circle, .fn-bar::before { transform: none !important; transition: none; }
  .bm-v, .bm-n, .fn-bar em { opacity: 1; transition: none; }
}

.bm-v.out { fill: var(--ink); text-anchor: start; font-size: 16px; }

.cc-body svg text { unicode-bidi: plaintext; }

@media (max-width: 560px) {
  .chart-card { padding: 14px 10px 12px; gap: 10px; border-radius: 14px; }
  .cc-tools { gap: 6px; }
  .chip { padding: 4px 10px; }
  .cc-foot { padding-top: 2px; gap: 8px; }
}

/* legend chips: when a label wraps, keep it right-aligned next to its colour square */
.legend-chip { text-align: start; align-items: flex-start; border-radius: 14px; }
.legend-chip i { flex: none; margin-top: .3em; }
.legend-chip span { min-width: 0; }

/* placeholder: chart box kept, chart to come */
.cc-body.is-ph { min-height: 340px; border-radius: 12px; background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--ink) 3%, transparent) 10px 11px); }
@media (max-width: 560px) { .cc-body.is-ph { min-height: 240px; } }

/* crisis table */
.cr { display: grid; gap: 10px; }
.cr-h, .cr-row { display: grid; grid-template-columns: 130px 170px minmax(0, 1fr); gap: 10px; }
.cr-h span { color: var(--muted); font-size: .82rem; text-align: center; padding-bottom: 2px; }
.cr-h span::after { content: ""; display: block; margin: 6px auto 0; width: 0; height: 0; border-inline: 4px solid transparent; border-top: 5px solid var(--ink); }
.cr-row > div { background: var(--card); border-radius: 10px; min-height: 92px; display: flex; align-items: center; justify-content: center; }
.cr-name { font-size: .95rem; }
.cr-drop { gap: 10px; }
.cr-drop b { font-size: 1.7rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.cr-drop i { width: 22px; height: 22px; border-radius: 50%; background: var(--orange); position: relative; flex: none; }
.cr-drop i::before { content: ""; position: absolute; left: 50%; top: 5px; width: 2px; height: 10px; margin-left: -1px; background: #fff; border-radius: 1px; }
.cr-drop i::after { content: ""; position: absolute; left: 50%; top: 9px; width: 7px; height: 7px; margin-left: -3.5px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); box-sizing: border-box; }
.cr-track { position: relative; padding: 0 6%; }
.cr-line { position: absolute; inset-inline: 6%; top: 50%; border-top: 2px dotted #999; }
.cr-dot { position: absolute; top: 50%; inset-inline-start: 6%; width: 22px; height: 22px; margin: -11px -11px 0 0; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--yellow); transition: inset-inline-start 1.5s cubic-bezier(.2,.7,.2,1) var(--d); }
.cr-dot::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #111; }
.play .cr-dot { inset-inline-start: calc(6% + var(--p) * .88); }
.cr-dot em { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); font-style: normal; font-weight: 900; white-space: nowrap; font-size: 1.05rem; opacity: 0; transition: opacity .5s calc(var(--d) + 1.25s); }
.play .cr-dot em { opacity: 1; }
@media (max-width: 700px) {
  .cr-h { display: none; }
  .cr-row { grid-template-columns: 1fr 1fr; }
  .cr-row > div { min-height: 64px; }
  .cr-track { grid-column: 1 / -1; min-height: 76px !important; }
  .cr-drop b { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) { .cr-dot, .cr-dot em { transition: none; } }

/* donut list on phones */
.dn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dn-list li { display: grid; grid-template-columns: 10px 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--line); font-size: .85rem; }
.dn-list li:last-child { border-bottom: 0; }
.dn-sw { width: 10px; height: 10px; border-radius: 2px; }
.dn-ic { width: 20px; height: 20px; background: var(--ink); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.dn-ic.is-none { background: none; }
.dn-ic.is-color { background: var(--icon) center / contain no-repeat; -webkit-mask: none; mask: none; }
.dn-list b { font-weight: 800; }
.stat-suf { font-weight: 300; }
/* "+", number and "٪" as separate boxes so bidi cannot reorder them: + right, ٪ left (as in the PDF) */
.stat-val.has-suf { display: flex; align-items: baseline; justify-content: flex-start; }

@media (max-width: 700px) { .cr-row > .cr-track { background: transparent; } }

/* intro text with its stat tile beside it (desktop), stacked on narrow screens */
.intro-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(28px, 4vw, 56px); align-items: start; }
.intro-side .stats, .intro-side .stats.n1 { grid-template-columns: minmax(0, 1fr); max-width: none; }
@media (max-width: 900px) { .intro-side { grid-template-columns: minmax(0, 1fr); } .intro-side .stats.n1 { max-width: 420px; } }
.intro-head h3 { margin-bottom: 0; }
.intro-side > .txt > :first-child { margin-top: 0; }

/* timeline events list (phones) */
.tl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .8rem; }
.tl-list.pair { margin-top: 12px; }
.tl-list li { display: grid; grid-template-columns: 18px auto minmax(0, 1fr); gap: 8px; align-items: baseline; }
.tl-list i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: var(--card); display: inline-grid; place-items: center; font-size: .68rem; font-weight: 800; align-self: center; }
.tl-list b { font-weight: 800; white-space: nowrap; }
.tl-list span { color: var(--muted); }

/* full-screen (landscape) chart viewer — phones */
.chart-card { position: relative; }
.cc-fs { display: none; }
@media (max-width: 560px) {
  .chart-card.has-fs .cc-tools:not(:empty) { padding-top: 34px; }
  .cc-fs { display: inline-flex; position: absolute; top: 10px; left: 10px; z-index: 3; font: inherit; font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
  .k-timeline .cc-tools:empty + .cc-body { margin-top: 26px; }
  .chart-card.has-fs .cc-tools:empty + .cc-body { margin-top: 26px; }
}
.fs-ov { position: fixed; inset: 0; z-index: 300; background: var(--chartbg, #fafafa); overflow: hidden; }
.fs-rot { position: absolute; top: 0; left: 0; transform-origin: top left; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.fs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .85rem; }
.fs-close { font: inherit; font-size: .8rem; font-weight: 800; padding: 6px 16px; border-radius: 99px; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; flex: none; }
.fs-body { width: 100%; direction: ltr; }
html.fs-open, html.fs-open body { overflow: hidden; }
.fs-head { font-size: .72rem; }
.fs-close { font-size: .7rem; padding: 5px 14px; }
/* one PDF figure with three donuts: three cards stacked */
.cc-trio { display: grid; gap: 18px; }
@media (min-width: 1000px) { .cc-trio.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
.cc-trio > .chart-card { margin: 0; }
@media (min-width: 900px) { .cc-trio.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; } }
.cc-trio.col { grid-template-columns: minmax(0, 1fr) !important; }

/* source line under a row of stat tiles */
.stats-src { margin: 12px 0 0; font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
/* change vs last year under a tile's description */
.stat-delta { margin: 4px 0 0; display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; line-height: 1.5; }
.stat-delta i { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .72rem; font-weight: 900; color: #fff; margin-top: 2px; }
.stat-delta.up i { background: var(--teal); }
.stat-delta.down i { background: var(--orange); }
.stat-delta span { display: grid; }
.stat-delta small { color: var(--muted); font-size: .85rem; }

/* one bar split in two (c5-p10-1) */
.sb { direction: ltr; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px 4px 6px; }
.sb-end { direction: rtl; display: grid; justify-items: center; line-height: 1.2; }
.sb-end b { font-size: 1.35rem; font-weight: 900; }
.sb-end span { font-size: .8rem; color: var(--muted); }
.sb-bar { display: flex; height: 40px; background: var(--card); }
.sb-bar i { display: block; height: 100%; flex: 0 0 0; transition: flex-basis 1.375s cubic-bezier(.2, .7, .2, 1); }
@media (max-width: 560px) { .sb { gap: 8px; } .sb-bar { height: 28px; } .sb-end b { font-size: 1.05rem; } }

/* ratio rows (c5-p19-1) */
.rt { display: grid; gap: 34px; padding: 10px 0; }
.rt-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; align-items: center; }
.rt-text { font-size: 1.15rem; line-height: 1.7; margin: 0; }
.rt-text b { font-weight: 900; }
.rt-fig { display: grid; gap: 10px; }
.rt-track { height: 40px; background: var(--card); position: relative; }
.rt-track i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--yellow); transition: width 1.375s cubic-bezier(.2, .7, .2, 1); }
.rt-nums { direction: ltr; display: flex; align-items: center; gap: 18px; }
.rt-name { font-size: 1.9rem; font-weight: 300; letter-spacing: .01em; }
.rt-arrow { color: var(--yellow); font-size: .9rem; }
.rt-val { color: var(--yellow); font-size: 2.6rem; font-weight: 900; line-height: 1; }
.rt-sub { color: var(--muted); font-size: .78rem; margin: 0; max-width: 260px; }
@media (max-width: 700px) { .rt-row { grid-template-columns: minmax(0, 1fr); gap: 12px; } .rt-name { font-size: 1.4rem; } .rt-val { font-size: 2rem; } .rt-text { font-size: 1rem; } }

/* top-20 app grids */
.ag { list-style: none; margin: 0; padding: 6px 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 12px; }
.ag li { display: grid; justify-items: center; gap: 8px; text-align: center; opacity: 0; transform: translateY(8px); transition: opacity .625s ease, transform .625s ease; }
.ag.play li { opacity: 1; transform: none; }
.ag img { width: 64px; height: 64px; object-fit: contain; }
.ag b { font-size: .88rem; font-weight: 600; line-height: 1.4; }
.ag small { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; }
@media (max-width: 560px) { .ag { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 6px; } .ag img { width: 48px; height: 48px; } .ag b { font-size: .74rem; } .ag small { font-size: .68rem; } }

/* install ranges: apps above the band, games below (c5-p08-1) */
.mr { display: grid; gap: 10px; }
.mr-legend { display: flex; gap: 16px; font-size: .8rem; color: var(--muted); }
.mr-legend i { display: inline-block; width: 10px; height: 10px; margin-inline-end: 6px; vertical-align: -1px; }
.mr-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; }
.mr-col { --H: 150px; display: grid; grid-template-rows: var(--H) auto auto; align-items: start; }
.mr-half.top { height: var(--H); }
.mr-half.bot { height: calc(26px + (var(--H) - 26px) * var(--hb, 1)); }
.mr-half { position: relative; background: var(--card); margin: 0 14px; display: flex; flex-direction: column; }
.mr-half.top { justify-content: flex-end; }
.mr-half i { display: block; height: 0; transition: height 1.375s cubic-bezier(.2, .7, .2, 1); min-height: 1px; }
.mr-half b { font-size: .92rem; font-weight: 800; text-align: center; padding: 4px 0; }
.mr-band { padding: 12px 4px; text-align: center; font-size: .82rem; font-weight: 600; line-height: 1.4; min-height: calc(2.8em + 24px); display: grid; align-content: center; }
@media (max-width: 560px) { .mr-col { --H: 120px; } .mr-half { margin: 0 5px; } .mr-half b { font-size: .72rem; } .mr-band { font-size: .68rem; } }

/* top-10 slope charts (c6-p16..18): list on the right, slope chart on the left */
.sl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.sl-title { margin: 0; font-size: 1.5rem; font-weight: 900; line-height: 1.35; }
.sl-mark { display: block; width: 12px; height: 12px; background: var(--yellow); margin: 12px 0 18px; }
.sl-head { margin: 0 0 8px; color: var(--muted); font-size: .8rem; text-align: right; }
.sl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sl-list li { direction: ltr; display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1.2fr); gap: 10px; align-items: center; background: var(--card); padding: 6px 10px; cursor: default; }
.sl-list li { border-radius: 6px; }
@media (min-width: 761px) { .sl-list li { transition: transform .25s ease, box-shadow .25s ease, padding .25s ease, margin .25s ease, opacity .25s ease; }
  .sl-list.has-on li:not(.on) { opacity: .4; }
  /* the grown row gets more room top and bottom; the negative margins keep the rows around it in place */
  .sl-list li.on { padding-top: 11px; padding-bottom: 11px; margin-top: -5px; margin-bottom: -5px; } }
.sl-list li.on { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(0, 0, 0, .10); position: relative; z-index: 1; }
@media (min-width: 761px) { .sl-list li { grid-template-columns: minmax(0, .75fr) 34px minmax(0, 1.2fr); margin-inline-end: 8%; } .sl-head { margin-inline-end: 8%; } }
.sl-name { display: grid; justify-items: end; gap: 3px; }
.sl-name b { font-weight: 400; font-size: .82rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.sl-sw { display: block; width: 18px; height: 3px; background: var(--c); }
.sl-sw.dash { background: repeating-linear-gradient(90deg, var(--c) 0 3px, transparent 3px 5px); }
.sl-list img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.sl-bar { display: flex; align-items: center; gap: 8px; }
.sl-bar i { display: block; height: 14px; background: var(--yellow); min-width: 4px; }
.sl-bar em { font-style: normal; font-weight: 800; font-size: .9rem; white-space: nowrap; }
@media (max-width: 760px) { .sl { grid-template-columns: minmax(0, 1fr); } .sl-title { font-size: 1.2rem; } }
.sl-chart { direction: ltr; }   /* text anchors in the svg follow the page direction: keep the start/end labels on their own side */
.stat-delta.flat i { background: #9a9a9a; }
.cc-footnote { margin: 4px 0 0; font-size: .75rem; color: var(--muted); }
@media (min-width: 900px) { .cc-trio.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

/* channel status rows (c7-p07-1) */
.stx { display: grid; gap: 10px; padding: 8px 0; }
.stx-ev, .stx-axis, .stx-groups { position: relative; margin-inline-start: 120px; height: 34px; }
.stx-axis { height: 18px; } .stx-groups { height: 22px; }
.stx-ev span { position: absolute; bottom: 0; transform: translateX(-50%); font-size: .75rem; color: var(--muted); white-space: nowrap; display: grid; justify-items: center; }
.stx-ev i { font-style: normal; font-size: .6rem; color: var(--ink); }
.stx-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; direction: ltr; align-items: center; }
.stx-track { position: relative; height: 62px; background: var(--card); }
.stx-track i { position: absolute; top: 24px; height: 14px; transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.stx.play .stx-track i { transform: scaleX(1); }
.stx-line { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--muted); opacity: .6; }
.stx-name { direction: rtl; display: grid; justify-items: center; gap: 4px; font-size: .82rem; font-weight: 700; background: var(--card); height: 62px; align-content: center; }
.stx-axis { direction: ltr; margin: 0 120px 0 0; }
.stx-ev, .stx-groups { direction: ltr; margin: 0 120px 0 0; }
.stx-axis span { position: absolute; transform: translateX(-50%); font-size: .72rem; color: var(--muted); }
.stx-groups span { position: absolute; top: 0; text-align: center; font-size: .72rem; color: var(--muted); padding-top: 9px; direction: rtl; }
/* month groups as in the report: a line under the months with short ticks at both ends, a small gap between the years */
.stx-groups span::before { content: ""; position: absolute; top: 0; left: 3px; right: 3px; height: 5px; border: 1px solid var(--muted); border-top: 0; opacity: .7; }
.stx-legend { display: flex; gap: 18px; font-size: .78rem; color: var(--muted); }
.stx-legend i { display: inline-block; width: 9px; height: 9px; margin-inline-end: 6px; }
@media (max-width: 560px) {
  .stx-row { grid-template-columns: minmax(0, 1fr) 64px; gap: 6px; } .stx-ev, .stx-axis, .stx-groups { margin: 0 70px 0 0; }
  .stx-name { font-size: .56rem; letter-spacing: -.02em; } .stx-ev span { font-size: .6rem; white-space: normal; width: 64px; text-align: center; } .stx-axis span { font-size: .6rem; }
  .stx-track { height: 48px; } .stx-track i { top: 18px; height: 12px; } .stx-name { height: 48px; } }
/* c5-p08: the white track is exactly as tall as the tallest bar (124px desktop / 94px phone); the 26px label strip stays outside it */
.mr-half { background: none; }
.mr-half.top { background: linear-gradient(to top, var(--card) calc(100% - 26px), transparent 0); }
.mr-half.bot { background: linear-gradient(to bottom, var(--card) calc(100% - 26px), transparent 0); }
.mr-legend { cursor: default; pointer-events: none; user-select: none; }   /* c5-p08: a plain key, not a filter */
.chart-card.k-appgrid { background: transparent; }   /* top-20 grids sit straight on the page, no grey card behind the logos */
.stat-delta img { flex: none; width: 18px; height: 18px; margin-top: 2px; }

.sl-chart { position: relative; }
.sl-tip { position: absolute; z-index: 5; direction: rtl; display: flex; align-items: center; gap: 14px; padding: 8px 12px; background: var(--card); border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); pointer-events: none; opacity: 0; transition: opacity .15s ease; white-space: nowrap; }
.sl-tip.on { opacity: 1; }
.sl-tip .sl-who { display: flex; align-items: center; gap: 8px; }
.sl-tip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.sl-tip .sl-name { justify-items: start; }
.sl-tip .sl-name b { font-weight: 600; font-size: .8rem; }
.sl-tip .sl-sw { width: 22px; }
.sl-tip .sl-pg { display: grid; justify-items: start; gap: 1px; }
.sl-tip .sl-pg small { font-size: .64rem; color: var(--muted); }
.sl-tip .sl-pg b { font-weight: 800; font-size: .9rem; }

/* desktop: the lifted row unfolds a strip with the start / end followers, laid over the row below so nothing shifts */
.sl-list li { position: relative; }
.sl-more { position: absolute; left: 0; right: 0; top: calc(100% - 4px); direction: rtl; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 4px 12px 12px; background: var(--card); border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .10); clip-path: inset(0 -24px -24px -24px); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.sl-list li.on .sl-more { opacity: 1; transform: none; }
.sl-more span { display: flex; align-items: baseline; gap: 6px; }
.sl-more small { font-size: .68rem; color: var(--muted); }
.sl-more b { font-weight: 800; font-size: .8rem; }
.sl-arrow { width: 44px; height: 8px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
/* desktop: a subtle hover on the number tiles — lifts a touch, soft shadow, icon nudges up (all number tiles) */
@media (hover: hover) and (min-width: 761px) {
  /* every tile, whether or not it played the scroll-in entrance (tiles already on screen at load never get .in) */
  .stat { transition: translate .25s ease, box-shadow .25s ease, border-color .25s ease; }
  .stat.reveal.in { transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1), translate .25s ease, box-shadow .25s ease, border-color .25s ease; }
  .stat:hover { translate: 0 -3px; box-shadow: 0 10px 24px rgba(0, 0, 0, .07); border-color: color-mix(in srgb, var(--ink) 14%, transparent); }
  .stat .stat-icon { transition: transform .3s ease; }
  .stat:hover .stat-icon { transform: translateY(-2px) scale(1.04); }
}
.cc-src-name { margin-inline-end: -2px; }

/* two charts the report draws in one grey box: one background, one source line under both */
.cc-trio.merge { background: var(--chartbg); border-radius: 18px; padding: clamp(14px, 2.2vw, 26px); gap: 28px; }
.cc-trio.merge > .chart-card { background: transparent; padding: 0; border-radius: 0; }
.cc-trio.merge .cc-meta:empty { display: none; }
/* c7-p08: the two timelines sit closer together */
.cc-trio.merge.col:has([data-chart="c7-p08-1"]) { row-gap: 8px; }
.cc-trio.merge > .trio-src { grid-column: 1 / -1; margin: 0; }
@media (max-width: 760px) { .cc-trio.merge { border-radius: 14px; padding: 14px 10px 12px; } }

/* share button: bottom corner of the chart card, opens a small panel (a bottom sheet on phones) */
.chart-card.has-share { position: relative; }
.chart-card.has-share .cc-foot { padding-inline-end: 46px; }
.cc-share { position: absolute; inset-inline-end: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); transition: background .2s, color .2s, transform .2s; }
.cc-share svg { width: 17px; height: 17px; }
.cc-share:hover { background: var(--ink); color: var(--card); }
.cc-share:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.sh-pop { position: absolute; z-index: 40; inset-inline-end: 14px; bottom: 56px; width: min(380px, calc(100% - 28px)); background: var(--card); color: var(--ink); border-radius: 14px; box-shadow: 0 12px 36px rgba(0, 0, 0, .16); padding: 14px; display: grid; gap: 12px; opacity: 0; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease; }
.sh-pop.in { opacity: 1; transform: none; }
.sh-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sh-head b { font-size: .88rem; font-weight: 700; }
.sh-x { border: 0; background: none; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.sh-link { display: flex; gap: 6px; }
.sh-link input { flex: 1; min-width: 0; font: inherit; font-feature-settings: normal; font-size: .75rem; color: var(--muted); background: var(--chartbg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
.sh-copy { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 8px; background: var(--ink); color: var(--card); font: inherit; font-size: .78rem; font-weight: 700; padding: 0 12px; cursor: pointer; white-space: nowrap; }
.sh-copy svg { width: 15px; height: 15px; }
.sh-copy.ok { background: #1f9d6b; }
.sh-nets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 4px; }
.sh-nets a, .sh-nets button { display: grid; justify-items: center; gap: 4px; text-decoration: none; color: var(--muted); font: inherit; font-size: .66rem; background: none; border: 0; padding: 0; cursor: pointer; }
.sh-nets i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; transition: transform .15s; }
.sh-nets i svg { width: 19px; height: 19px; }
.sh-nets a:hover i, .sh-nets button:hover i { transform: translateY(-2px); }
.sh-pop.sheet { position: fixed; inset: auto 0 0 0; width: auto; border-radius: 18px 18px 0 0; padding: 16px 16px max(20px, env(safe-area-inset-bottom)); z-index: 90; transform: translateY(100%); box-shadow: 0 -8px 30px rgba(0, 0, 0, .18); }
.sh-pop.sheet.in { transform: none; }
.sh-pop.sheet .sh-nets { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 4px; }
/* desktop: hovering the share button names it */
@media (hover: hover) and (min-width: 761px) {
  .cc-share::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); inset-inline-end: 0; white-space: nowrap; background: var(--ink); color: var(--card); font-size: .72rem; font-weight: 500; padding: 5px 9px; border-radius: 6px; pointer-events: none; opacity: 0; transform: translateY(3px); transition: opacity .15s ease, transform .15s ease; }
  .cc-share:hover::after { opacity: 1; transform: none; }
  .sh-open .cc-share::after { display: none; }
}
/* merged boxes: one share button for the whole box */
.cc-trio.merge.has-share { position: relative; }
.cc-trio.merge.has-share > .trio-src { padding-inline-end: 46px; }
.cc-trio.merge .chart-card .cc-foot { padding-inline-end: 0; }
.dn-list.no-ic li { grid-template-columns: 10px minmax(0, 1fr) auto; }
.dn-list.no-ic .dn-ic { display: none; }
/* phones flash a blue "tap highlight" over any element listening for taps — the whole chart box, since a chart
   finds the touched line itself. The flash is switched off; the lines still answer the tap (c6-p16..18 and all charts) */
.chart-card, .chart-card *, .cc-trio, .cc-trio * { -webkit-tap-highlight-color: transparent; }

/* ---- edit mode (?edit) ---- */
:root { --eid-sec: #2563eb; --eid-fig: #db2777; --eid-txt: #059669; }
.eid { display: none; }
.editing .eid-host { position: relative; outline: 1px dashed transparent; outline-offset: 4px; transition: outline-color .15s; }
.editing .eid-host:hover { outline-color: color-mix(in srgb, var(--eid-c) 70%, transparent); }
.editing .eid-sec { --eid-c: var(--eid-sec); }
.editing .eid-fig { --eid-c: var(--eid-fig); }
.editing .eid-txt { --eid-c: var(--eid-txt); }
.editing .eid {
  display: inline-flex; position: absolute; z-index: 30; top: -10px; inset-inline-end: -6px;
  font: 700 11px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; direction: ltr;
  background: var(--eid-c); color: #fff; border: 0; border-radius: 6px; padding: 1px 7px; cursor: copy;
  box-shadow: 0 2px 8px -2px rgba(0,0,0,.35); white-space: nowrap; letter-spacing: 0;
}
.editing .eid:hover, .editing .eid:focus-visible { filter: brightness(1.15); outline: 2px solid var(--yellow); outline-offset: 1px; }
.editing .eid-txt > .eid { position: static; vertical-align: middle; font-size: 10px; margin-inline-end: 8px; transform: translateY(-2px); opacity: .9; }
.editing h3.eid-txt > .eid, .editing h2.eid-txt > .eid { align-self: flex-start; transform: none; }
.editing .eid-sec > .eid { top: 6px; inset-inline-end: 0; }
.eid-panel {
  position: fixed; z-index: 70; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: 16px; max-width: min(320px, calc(100vw - 32px));
  background: var(--bar); color: var(--on-bar); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; font-size: .78rem; line-height: 1.7;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.5);
}
.eid-panel b { color: var(--yellow); font-size: .9rem; }
.eid-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.eid-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: -6px; }
.eid-legend .k-sec { background: var(--eid-sec); } .eid-legend .k-fig { background: var(--eid-fig); } .eid-legend .k-txt { background: var(--eid-txt); }
.eid-panel label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.eid-toast {
  position: fixed; z-index: 80; top: calc(70px + env(safe-area-inset-top, 0px)); left: 50%; transform: translate(-50%, -10px); opacity: 0;
  background: var(--yellow); color: #111; font-weight: 700; font-size: .85rem; padding: 6px 14px; border-radius: 99px; pointer-events: none; transition: opacity .2s, transform .2s;
}
.eid-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 560px) {
  .eid-panel { left: 8px; right: 8px; bottom: 8px; max-width: none; padding: 8px 12px; }
  .eid-panel > span, .eid-legend { display: none; }
  .eid-panel { grid-template-columns: auto auto; justify-content: space-between; align-items: center; }
}

.eid-fabs { position: fixed; z-index: 75; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); right: 16px; display: flex; gap: 8px; }
.eid-fab {
  font: 700 .82rem/1 "IRANSansX D4", Tahoma, sans-serif; background: var(--yellow); color: #111; border: 2px solid #111;
  border-radius: 99px; padding: 10px 16px; cursor: pointer; box-shadow: 0 10px 28px -12px rgba(0,0,0,.5);
}
.eid-fab[aria-pressed="true"] { background: #111; color: var(--yellow); border-color: var(--yellow); }
@media (max-width: 560px) { .eid-fabs { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); right: 8px; } .eid-fab { padding: 8px 12px; } .eid-mob { display: none; } }
.eid-mob { background: #fff; }
.mob-shell { position: fixed; inset: 0; z-index: 90; background: rgba(10,10,8,.72); display: grid; place-items: center; align-content: center; gap: 10px; padding: 16px; }
.mob-bar { display: flex; align-items: center; gap: 14px; color: #fff; font: 700 .85rem "IRANSansX D4", Tahoma, sans-serif; }
.mob-close { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--yellow); color: #111; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.mob-frame { width: 360px; height: 640px; transform-origin: top center; border-radius: 26px; overflow: hidden; box-shadow: 0 0 0 10px #111, 0 30px 80px -20px rgba(0,0,0,.7); background: #fff; }
.mob-frame iframe { width: 360px; height: 640px; border: 0; display: block; }

/* ---- shell: header, menu, hero, partner strip, footer (from the approved landing) ---- */
.topbar { position: fixed; inset-inline: 0; top: -90px; z-index: 50; background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--line); transition: top .4s cubic-bezier(.2,.7,.2,1); }
.topbar.show { top: env(safe-area-inset-top, 0px); }
.topbar-in { display: flex; align-items: center; gap: 20px; max-width: 1180px; margin-inline: auto; padding: 10px var(--gut); }
.tb-title { font-size: .875rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tb-title i { font-style: normal; margin-inline: 6px; opacity: .5; }
.dl { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 10px; background: #111110; color: #fff; font-weight: 700; font-size: .875rem; text-decoration: none; padding: 8px 18px; line-height: 1.5; white-space: nowrap; }
.dl i { width: 9px; height: 9px; background: var(--yellow); }
.dl:hover { background: #000; }
.burger { position: fixed; z-index: 70; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 56px; height: 56px; border: 0; border-radius: 50%; background: #000; box-shadow: 0 6px 24px -6px rgba(0,0,0,.5); display: grid; align-content: center; justify-items: center; gap: 5px; padding: 0; cursor: pointer; }
.burger b { display: block; width: 22px; height: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] b:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] b:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] b:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu { position: fixed; z-index: 69; right: max(16px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 68px); width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow: auto; background: var(--bar); color: var(--on-bar); border-radius: 14px; box-shadow: 0 16px 48px -12px rgba(0,0,0,.5); }
.menu ol { list-style: none; margin: 0; padding: 6px 20px 12px; display: grid; }
.menu a, .menu .m-off { display: grid; grid-template-columns: 2.6em 1fr; gap: 8px; padding-block: 10px; text-decoration: none; color: inherit; border-top: 1px solid color-mix(in srgb, var(--on-bar) 16%, transparent); font-size: .98rem; line-height: normal; }
.menu .m-off { opacity: .45; }
.menu a:hover .tn { color: var(--yellow); }

.hero { background: #f7f7f7; color: #111110; padding-block: clamp(40px, 7vw, 96px); overflow: hidden; }
.hero-in { position: relative; z-index: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-txt { max-width: 560px; position: relative; z-index: 2; }
.hero h1 { display: grid; gap: 10px; font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.2rem); line-height: 1.25; }
.hero h1 b { font-weight: 950; }   /* IRANSansX ExtraBlack D4 */
.hero h1 .sub { font-weight: 300; font-size: .62em; }
.hero h1 .yr { font-weight: 900; font-size: .42em; margin-top: 10px; }
.hero-txt p { margin-top: 28px; font-weight: 300; color: #444; max-width: 52ch; }
.hero-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; background: #111110; color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem; line-height: 1.5; padding: 12px 24px; }
.hero-btn i { width: 10px; height: 10px; background: var(--yellow); }
.hero-btn:hover { background: #000; }
.hero-book { position: relative; z-index: 0; aspect-ratio: 1; width: 100%; max-width: 700px; justify-self: center; }
.hero-book img { position: absolute; left: 50%; top: 50%; width: 230%; max-width: none; transform: translate(-50%, -50%) rotate(-9deg); }

.pl { background: #fff; color: #111110; padding-block: clamp(40px, 6vw, 72px); }
.pl-h { font-size: 1.35rem; font-weight: 900; display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.pl-h::before { content: ""; width: 12px; height: 12px; background: var(--yellow); }
.pl-g { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid #e6e5dd; border-inline-start: 1px solid #e6e5dd; }
.pl-g li { display: grid; min-width: 0; border-bottom: 1px solid #e6e5dd; border-inline-end: 1px solid #e6e5dd; }
.pl-g a { display: grid; place-items: center; min-width: 0; min-height: 120px; padding: 24px 20px; transition: background .2s; }
.pl-g a:hover { background: #f6f6f2; }
.pl-g img { display: block; width: 100%; height: 52px; min-width: 0; object-fit: contain; }
.partner figure.logo a { display: block; transition: opacity .2s; }
.partner figure.logo a:hover { opacity: .75; }
.endmatter { padding-block: 24px 0; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); } .hero-txt { margin-top: 30px; } .hero-book { order: -1; max-width: 420px; }
  .pl-g { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pl-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pl-g a { min-height: 96px; } .pl-g img { height: 42px; width: 80%; }
  .tb-yr { display: none; }
  .tb-title { margin-inline-start: auto; text-align: left; }
  .dl { position: fixed; z-index: 70; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); margin: 0; height: 56px; padding: 0 22px; font-size: .9rem; box-shadow: 0 6px 24px -6px rgba(0,0,0,.5); transform: translateY(140%); opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .3s; }
  .dl.show { transform: none; opacity: 1; pointer-events: auto; }
  /* phones: the menu button appears together with the header and the download button (after the first scroll),
     and stays while the menu is open; the hero has no download button of its own */
  .burger { transform: translateY(140%); opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .35s; }
  .burger.show, .burger[aria-expanded="true"] { transform: none; opacity: 1; pointer-events: auto; }
  .hero-btn { display: none; }
  .topbar-in { gap: 12px; }
  .brand .logo { width: 78px; }
}
/* review buttons sit bottom-left so they never cover the menu button */
.eid-fabs { right: auto !important; left: 16px; }
@media (max-width: 560px) { .eid-fabs { left: 8px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; } }
/* language switch beside the download button */
.lang-sw { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; margin-inline-start: 8px; padding: 7px 12px; border: 1px solid #111110; color: #111110; font-weight: 700; font-size: .8rem; line-height: 1.5; text-decoration: none; letter-spacing: .04em; }
.lang-sw:hover { background: #111110; color: #fff; }
@media (max-width: 760px) { .lang-sw { margin-inline-start: auto; padding: 5px 10px; } }
/* English parts: the page-wide ss01 set turns 0-9 into Persian numerals; English keeps the plain digits */
[lang="en"] { font-feature-settings: normal; }
/* contents menu with sub-sections */
.menu { width: min(420px, calc(100vw - 32px)); overscroll-behavior: contain; scrollbar-width: thin; }
.menu .m-row { display: grid; grid-template-columns: minmax(0, 1fr) 36px; align-items: center; border-top: 1px solid color-mix(in srgb, var(--on-bar) 16%, transparent); }
.menu .m-row > a { border-top: 0; }
.menu .m-tg { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; opacity: .7; }
.menu .m-tg:hover { background: color-mix(in srgb, var(--on-bar) 10%, transparent); opacity: 1; }
.menu .m-tg svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.menu li.open .m-tg svg { transform: rotate(180deg); }
.menu li.here > .m-row > a .tn { color: var(--yellow); }
.menu li.here > .m-row > a span:last-child { font-weight: 800; }
.menu ol.m-subs { padding: 0 0 10px; gap: 0; }
.menu ol.m-subs[hidden] { display: none; }
.menu .m-subs a { display: block; border: 0; padding: 7px 10px 7px 6px; padding-inline-start: calc(2.6em + 8px); font-size: .84rem; line-height: 1.6; opacity: .7; position: relative; border-radius: 8px; }
.menu .m-subs a:hover { opacity: 1; }
.menu .m-subs a.on { opacity: 1; font-weight: 700; background: color-mix(in srgb, var(--on-bar) 8%, transparent); }
/* a small bullet before every sub-section; the current one is the yellow square */
.menu .m-subs a::before { content: ""; position: absolute; inset-inline-start: .45em; top: 1.05em; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .8; }
.menu .m-subs a.on::before { inset-inline-start: calc(.45em - 1.5px); top: .95em; width: 7px; height: 7px; border-radius: 0; background: var(--yellow); opacity: 1; }
/* the bullets hang on a thin line that runs up to their chapter (a small tree): the last one closes the line */
.menu .m-subs li { position: relative; font-size: .84rem; }
.menu .m-subs a { font-size: inherit; }
.menu .m-subs li::before { content: ""; position: absolute; inset-inline-start: calc(.45em + 1.5px); top: 0; bottom: 0; width: 1px; background: var(--on-bar); opacity: .28; pointer-events: none; }
.menu .m-subs li:first-child::before { top: -14px; }
.menu .m-subs li:last-child::before { bottom: auto; height: calc(1.05em + 9px); }
.menu .m-subs li:first-child:last-child::before { height: calc(1.05em + 23px); }
.menu ol.m-subs { overflow: hidden; transition: height .5s cubic-bezier(.45, 0, .2, 1); }
/* the entries drift in one after another while the list opens, and fade out together when it closes */
.menu .m-subs > li { opacity: 1; transform: none; transition: opacity .35s ease, transform .35s ease; }
.menu li.m-ch:not(.open) .m-subs > li { opacity: 0; transform: translateY(-6px); transition-duration: .2s; }
.menu li.m-ch.open .m-subs > li { transition-delay: calc(var(--i, 0) * 25ms + 60ms); }
.menu .m-tg svg { transition: transform .4s cubic-bezier(.45, 0, .2, 1); }

/* «خانه» at the top of the contents menu */
.menu .m-home > a { border-top: 0; }
.menu .m-home .tn { display: flex; align-items: center; }
.menu .m-home svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.menu .m-home a:hover svg { stroke: var(--yellow); }
/* stays pinned at the top while the list scrolls, so it is always one tap away */
.menu .m-home { position: sticky; top: -6px; z-index: 2; background: var(--bar); padding-top: 6px; margin-top: -6px; border-bottom: 1px solid color-mix(in srgb, var(--on-bar) 16%, transparent); }

/* hero (the user's layout): the network pattern on the left, the text on the right; on phones the pattern sits above */
.hero { position: relative; min-height: clamp(460px, 42vw, 620px); display: flex; align-items: center; }
.hero > .wrap { width: 100%; }
.hero-in { grid-template-columns: minmax(0, 1fr); justify-items: start; }
.hero-txt { max-width: 400px; }
.hero h1 { gap: 8px; font-size: clamp(2.2rem, 1.4rem + 2.2vw, 3.2rem); line-height: 1.3; }
.hero h1 .sub { font-weight: 700; font-size: .5em; }
.hero h1 .yr { font-weight: 800; font-size: .36em; margin-top: 6px; }
.hero-sq { display: block; width: 14px; height: 14px; background: var(--yellow); margin-top: 26px; }
.hero-txt p { margin-top: 22px; font-weight: 400; color: #111110; font-size: .92rem; line-height: 1.75; max-width: 40ch; }
.hero-btn { margin-top: 40px; }
.hero-pat { position: absolute; z-index: 0; pointer-events: none; }
.hero-pat svg { display: block; width: 100%; height: 100%; overflow: hidden; }
/* desktop: on wide screens the hero uses more of the width than the page column; the pattern keeps one fixed size,
   its right end a set distance from the text, and whatever does not fit is simply cut off at the left edge of the screen */
.hero > .wrap { max-width: 1560px; }
.hero { min-height: 570px; }
.hero-pat.d { top: 45px; height: 480px; aspect-ratio: 1850.09 / 535.36;
  right: calc(max(var(--gut), (100% - 1560px) / 2 + var(--gut)) + 400px + 56px); }
.hero-pat.m { display: none; }
.hero-pat .hl { stroke: #d9dadc; stroke-width: 2; stroke-linecap: round; }
.hero-pat circle { transform-box: fill-box; transform-origin: center; }
.hero-pat .hc1 { fill: #e6e7e8; }
.hero-pat .hc3 { fill: #f1f1f2; }
.hero-pat .hc1 { animation: hp-glow1 var(--t) ease-in-out var(--d) infinite alternate; }
.hero-pat .hc3 { animation: hp-glow3 var(--t) ease-in-out var(--d) infinite alternate; }
.hero-pat .hc0 { fill: #fff; animation: hp-glow0 var(--t) ease-in-out var(--d) infinite alternate; }
.hero-pat .hy { fill: var(--yellow); }
/* the circles stay solid (the lines never show through them): only their grey eases lighter and back */
/* …and at the same time shrink smoothly down to 10% of their size and grow back to full size */
@keyframes hp-glow1 { 0%, 15% { fill: #e6e7e8; transform: scale(1); } 85%, 100% { fill: #f8f8f9; transform: scale(.1); } }
@keyframes hp-glow0 { 0%, 15% { transform: scale(1); } 85%, 100% { transform: scale(.1); } }
@keyframes hp-glow3 { 0%, 15% { fill: #f1f1f2; transform: scale(1); } 85%, 100% { fill: #dcdddf; transform: scale(.1); } }
@media (prefers-reduced-motion: reduce) { .hero-pat .hc0, .hero-pat .hc1, .hero-pat .hc3 { animation: none; } }
@media (max-width: 760px) {
  .hero { display: block; min-height: 0; padding-top: 0; }
  .hero-pat.d { display: none; }
  /* phones: the taller pattern fills most of the first screen (the download button comes after a scroll) */
  .hero-pat.m { display: block; position: relative; width: 100%; aspect-ratio: 289.87 / 356.08; margin: 16px 0 8px; }
  .hero-txt { margin-top: 28px; max-width: none; }
}
.hero-pat .hsq { transform-box: fill-box; transform-origin: center; }
/* desktop: half the space between the end of the hero pattern and the partners heading (132px → 66px) */
@media (min-width: 761px) { .pl { padding-top: 36px; } }


.eid-fabs { display: none !important; }
