/* ============================================================
   Iran petition share kit
   Built for a phone first: most readers open it from a message.
   Self-contained: no stylesheet, script or font from outside this
   folder tree, so the page can move to another domain unchanged.
   Logical properties throughout, so one set of rules serves
   left-to-right English and right-to-left Persian.
============================================================ */

@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist-400-600.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/vazirmatn-arabic.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC;
}

:root {
  --bg: #0A0F1C;
  --bg-elev: #131A2A;
  --bg-soft: #1A2233;
  --edge: rgba(240, 237, 227, 0.10);
  --edge-strong: rgba(240, 237, 227, 0.22);
  --text: #F0EDE3;
  --text-soft: #C9C7C0;
  --text-muted: #9A9B9E;
  --accent: #6BA6E8;
  --accent-solid: #2F74C4;
  --ember: #FF6B57;
  --ok: #6FCF97;
  --font-en: 'Geist', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --font-fa: 'Vazirmatn', 'Geist', Tahoma, system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --page: 720px;
  --gutter: 20px;
  --gap: 56px;
}
@media (min-width: 720px) { :root { --gutter: 28px; --gap: 80px; } }
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F5F3ED;
    --bg-elev: #FFFFFF;
    --bg-soft: #ECE9E1;
    --edge: rgba(12, 19, 34, 0.11);
    --edge-strong: rgba(12, 19, 34, 0.26);
    --text: #0C1322;
    --text-soft: #2E3344;
    --text-muted: #5A5E69;
    --accent: #1F5293;
    --accent-solid: #1F5293;
    --ember: #C93A27;
    --ok: #1E7A46;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-en);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--accent); text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
img, canvas { display: block; max-width: 100%; }
img { height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-solid); color: #fff; }
[hidden] { display: none !important; }

.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; inset-inline-start: 12px; top: -80px; z-index: 300;
  padding: 10px 14px; border-radius: 8px;
  background: var(--accent-solid); color: #fff; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--page) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------------------------------------------------------- language
   <html data-lang> is set before first paint by kit-lang.js. With JavaScript
   off there is no data-lang: both languages show and nothing is hidden.   */
html[data-lang="en"] .fa,
html[data-lang="fa"] .en { display: none !important; }
html:not([data-lang]) .js-only { display: none !important; }
html:not([data-lang]) span.fa { display: block; }

[lang="fa"] { font-family: var(--font-fa); letter-spacing: 0; }
html[data-lang="fa"] body { font-family: var(--font-fa); line-height: 1.9; }
[lang="en"], .ltr { font-family: var(--font-en); }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 10px 22px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 14%, var(--bg-elev));
  color: var(--text); font-size: 16.5px; font-weight: 600; line-height: 1.3; text-decoration: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.1s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 24%, var(--bg-elev)); }
.btn:active { transform: scale(0.98); }
.btn-primary { border-color: var(--accent-solid); background: var(--accent-solid); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent-solid) 86%, #fff); border-color: transparent; }
.btn-small { min-height: 44px; padding: 8px 16px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.btn-solid { border-color: var(--text); background: var(--text); color: var(--bg); font-weight: 600; }
.btn-solid:hover { border-color: var(--text); background: color-mix(in srgb, var(--text) 88%, var(--bg)); }
.btn.is-done { border-color: var(--ok); background: transparent; color: var(--ok); }
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- top bar */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--edge);
}
.bar .wrap { display: flex; align-items: center; gap: 10px; min-height: 58px; }
.bar-name {
  display: flex; align-items: center; gap: 9px; min-width: 0;
  margin-inline-end: auto;
  font-size: 15px; font-weight: 600; line-height: 1.3;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
/* The Lion and Sun beside the name, and a hairline above the bar in flag colours: Iran's in Persian, Britain's in English. */
.bar-name::before { content: ""; flex: none; width: 30px; height: 22px; background: url('img/lion-sun.png') center / contain no-repeat; }
.bar::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, #239F40 0 33.33%, #FFFFFF 33.33% 66.66%, #DA0000 66.66%); }
/* In English there is no stripe (blue, white and red in a line reads as France): a small Union Flag sits beside the Lion and Sun instead. */
html[data-lang="en"] .bar::before { display: none; }
html[data-lang="en"] .bar-name::after { content: ""; flex: none; order: -1; width: 30px; height: 15px; border-radius: 2px; background: url('img/uk.svg') center / cover no-repeat; }
html[data-lang="en"] .bar-name::before { order: -2; }
.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1.5px solid var(--edge-strong); border-radius: 999px; background: var(--bg-elev); }
.lang-switch a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 2px 12px; border-radius: 999px;
  font-size: 14px; line-height: 1.4; color: var(--text-soft); text-decoration: none;
}
html[data-lang="en"] .lang-switch a[data-set-lang="en"],
html[data-lang="fa"] .lang-switch a[data-set-lang="fa"] { background: var(--text); color: var(--bg); font-weight: 600; }
.bar-sign {
  display: inline-flex; align-items: center; min-height: 38px; padding: 6px 18px;
  border-radius: 999px; background: var(--accent-solid); color: #fff;
  font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none; white-space: nowrap;
}
/* On a phone the Lion and Sun stands in for the name: there is no room for both. */
@media (max-width: 480px) {
  .bar-name span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .bar-name::before { width: 36px; height: 26px; }
}

/* ---------------------------------------------------------------- hero */
.hero { padding: 40px 0 var(--gap); }
@media (min-width: 720px) { .hero { padding-top: 72px; } }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.eyebrow.fa, html[data-lang="fa"] .eyebrow { letter-spacing: 0; font-size: 15px; }
h1 {
  margin-top: 12px;
  font-size: clamp(36px, 9.6vw, 60px); font-weight: 600; line-height: 1.04; letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 .fa { font-size: 0.86em; line-height: 1.4; }
.lede { margin-top: 18px; max-width: 34em; font-size: clamp(18px, 2.4vw, 20px); line-height: 1.55; color: var(--text-soft); }
.lede.fa { line-height: 1.9; }
.lede + .lede { margin-top: 14px; }
.fa > .lede { line-height: 1.9; }

.count { margin-top: 32px; }
.count-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 16px; color: var(--text-soft); }
.count-num {
  font-size: clamp(56px, 16vw, 84px); font-weight: 600; line-height: 0.95; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; color: var(--text);
}
html[data-lang="fa"] .count-num { letter-spacing: 0; line-height: 1.15; }
.count-bar { margin-top: 14px; height: 6px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.count-bar i { display: block; width: 0; min-width: 6px; height: 100%; border-radius: 999px; background: var(--ember); transition: width 0.8s var(--ease); }
.count-meta { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--text-muted); }
html[data-lang="fa"] .count-meta { line-height: 1.8; }

.cta { display: grid; gap: 10px; margin-top: 26px; }
@media (min-width: 520px) { .cta { display: flex; flex-wrap: wrap; } }

/* the three things */
.musts { margin-top: 44px; }
.musts-title { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
html[data-lang="fa"] .musts-title, .musts-title.fa { letter-spacing: 0; font-size: 15px; }
.musts ol { margin-top: 6px; counter-reset: must; }
.musts li {
  counter-increment: must; position: relative;
  padding: 14px 0; padding-inline-start: 34px; border-bottom: 1px solid var(--edge);
  font-size: 17px; line-height: 1.5; color: var(--text-soft);
}
html[data-lang="fa"] .musts li { line-height: 1.8; }
.musts li::before {
  content: counter(must); position: absolute; inset-inline-start: 0; top: 14px;
  font-family: var(--font-en); font-weight: 600; color: var(--ember);
}
html[data-lang="fa"] .musts li::before { content: counter(must, persian); font-family: var(--font-fa); }
.musts strong { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------- jump nav */
.jump { position: relative; border-block: 1px solid var(--edge); }
.jump ul {
  display: flex; gap: 6px; padding: 10px var(--gutter); margin: 0 auto; max-width: calc(var(--page) + var(--gutter) * 2);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.jump ul::-webkit-scrollbar { display: none; }
.jump a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 5px 14px;
  border-radius: 999px; background: var(--bg-elev);
  color: var(--text-soft); font-size: 14.5px; line-height: 1.4; text-decoration: none; white-space: nowrap;
}
.jump a:hover { color: var(--text); }
/* a fade on the trailing edge hints that the row scrolls */
.jump::after {
  content: ""; position: absolute; inset-block: 1px; inset-inline-end: 0; width: 36px; pointer-events: none;
  background: linear-gradient(to right, transparent, var(--bg));
}
html[dir="rtl"] .jump::after { background: linear-gradient(to left, transparent, var(--bg)); }

/* ---------------------------------------------------------------- sections */
.sec { padding: var(--gap) 0 0; }
h2 { font-size: clamp(28px, 6.4vw, 38px); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
h2 .fa { line-height: 1.5; }
.sec-intro strong { font-weight: 600; color: var(--text); }
.sec-intro { margin-top: 10px; max-width: 34em; font-size: 17px; color: var(--text-soft); }

/* language of the posts and images */
.plang { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; font-size: 15px; font-weight: 600; color: var(--text); }
.seg { display: inline-flex; padding: 3px; border: 1.5px solid color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 999px; background: var(--bg-elev); }
.seg button {
  min-height: 38px; padding: 4px 18px; border: 0; border-radius: 999px; background: transparent;
  color: var(--text); font-size: 15px; line-height: 1.4;
}
.seg button[aria-pressed="true"] { background: var(--accent-solid); color: #fff; font-weight: 600; }

/* posts */
.post-list { margin-top: 18px; display: grid; gap: 14px; }
.post { position: relative; border-radius: 18px; background: var(--bg-elev); overflow: hidden; }
.post-head { padding: 18px 20px 0; }
.post h3 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.post-for { margin-top: 1px; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.post-body {
  position: relative;
  margin: 14px 20px 0; padding-inline-start: 14px;
  border-inline-start: 2px solid var(--edge-strong);
  font-size: 16.5px; line-height: 1.6; color: var(--text);
  white-space: pre-line; text-align: start;
}
.post-body[lang="fa"] { line-height: 1.9; }
html[data-posts="en"] [data-plang="fa"],
html[data-posts="fa"] [data-plang="en"] { display: none; }
html:not([data-lang]) .post-body + .post-body { margin-top: 18px; }
/* long posts fold to a few lines; Copy always takes the whole text */
.post.is-clamped .post-body { max-height: 12.8em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.post.is-clamped .post-body[lang="fa"] { max-height: 15.2em; }
.post-more {
  margin: 4px 20px 0; padding: 8px 0; border: 0; background: none;
  color: var(--accent); font-size: 15px; font-weight: 500; min-height: 40px;
}
.post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 20px 18px; }
.post-count { position: absolute; top: 21px; inset-inline-end: 20px; font-family: var(--font-en); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text-muted); direction: ltr; }
.post-count.is-over { color: var(--ember); }
.post-note { padding: 0 20px 18px; margin-top: -6px; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
html[data-lang="fa"] .post-note { line-height: 1.8; }

/* images: story beside post, the wide one under them, the QR code last */
.img-grid { margin-top: 18px; display: grid; grid-template-columns: 9fr 12.8fr; gap: 22px 14px; align-items: end; }
.img-card { display: flex; flex-direction: column; min-width: 0; }
.img-card.is-wide, .img-card.is-qr { grid-column: 1 / -1; }
.img-card img { width: 100%; border-radius: 12px; background: var(--bg-elev); }
.img-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; }
.img-meta strong { font-size: 15px; font-weight: 600; line-height: 1.4; }
.img-meta small { font-family: var(--font-en); font-size: 13px; color: var(--text-muted); direction: ltr; }
.img-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-inline-start: auto; }
.img-card:not(.is-wide):not(.is-qr) .img-actions { width: 100%; margin: 0; }
.img-card:not(.is-wide):not(.is-qr) .img-actions .btn { flex: 1; }
.img-card.is-qr { flex-direction: row; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid var(--edge); }
.img-card.is-qr img { width: 84px; flex: none; border-radius: 8px; }
.img-card.is-qr .img-meta { flex: 1; margin: 0; }
/* where the phone can hand the image straight to another app, Share leads and Download steps back */
html.can-share .img-actions [download] { order: 2; border-color: transparent; color: var(--text-muted); padding-inline: 8px; flex: 0 0 auto !important; }
.img-note { margin-top: 20px; max-width: 34em; font-size: 15px; color: var(--text-muted); }
@media (min-width: 720px) {
  .img-grid { grid-template-columns: 9fr 12.8fr 28.4fr; align-items: start; }
  .img-card.is-wide { grid-column: auto; }
  .img-card.is-wide .img-actions { width: 100%; margin: 0; }
}

/* video */
.points { margin-top: 36px; }
.points h3, .rule h3 { font-size: 18px; font-weight: 600; }
.points ol { margin-top: 6px; counter-reset: pt; }
.points li {
  counter-increment: pt; position: relative;
  padding: 13px 0; padding-inline-start: 34px; border-bottom: 1px solid var(--edge);
  font-size: 17px; line-height: 1.55; color: var(--text-soft);
}
html[data-lang="fa"] .points li { line-height: 1.85; }
.points li::before {
  content: counter(pt); position: absolute; inset-inline-start: 0; top: 13px;
  font-family: var(--font-en); font-weight: 600; color: var(--ember);
}
html[data-lang="fa"] .points li::before { content: counter(pt, persian); font-family: var(--font-fa); }

/* ---------------------------------------------------------------- landing page pieces */
.sign-note { margin-top: 16px; max-width: 36em; }
.hero + .mem, .hero + .fi-memorial { margin-top: 0; }

.timeline { margin-top: 22px; }
.timeline li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--edge); }
.t-date { font-size: 14px; font-weight: 500; color: var(--ember); font-variant-numeric: tabular-nums; }
.timeline.fa .t-date { font-size: 15px; }
.t-text { font-size: 17px; line-height: 1.55; color: var(--text-soft); }
.timeline.fa .t-text { line-height: 1.85; }
.timeline .t-key .t-text { font-weight: 600; color: var(--text); }
@media (min-width: 720px) {
  .timeline li { grid-template-columns: 10.5em 1fr; gap: 24px; }
  .timeline.fa li { grid-template-columns: 13em 1fr; }
}

.kit-cta {
  display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 22px 22px;
  border-radius: 18px; background: var(--accent-solid); color: #fff; text-decoration: none;
  transition: transform 0.15s var(--ease);
}
.kit-cta:hover { transform: translateY(-2px); }
.kit-cta-text { flex: 1; font-size: 16px; line-height: 1.5; color: #fff; }
html[data-lang="fa"] .kit-cta-text { line-height: 1.8; }
.kit-cta strong { display: block; margin-bottom: 2px; font-size: 22px; font-weight: 600; line-height: 1.3; color: #fff; }
/* the documentary card: gold edge and glow, like the petition row on the contact card */
.kit-cta.is-quiet {
  margin-top: 28px; color: var(--text);
  border: 1px solid #D9A521;
  background: linear-gradient(135deg, rgba(245, 184, 30, 0.14), rgba(245, 184, 30, 0.04)), var(--bg-elev);
  box-shadow: 0 0 0 1px rgba(245, 184, 30, 0.25), 0 0 34px -6px rgba(245, 184, 30, 0.5);
}
.kit-cta.is-quiet { animation: gold-pulse 2.8s ease-in-out infinite; }
@keyframes gold-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(245, 184, 30, 0.22), 0 0 24px -8px rgba(245, 184, 30, 0.35); }
  50% { box-shadow: 0 0 0 2px rgba(245, 184, 30, 0.65), 0 0 48px 0 rgba(245, 184, 30, 0.8); }
}
@media (prefers-reduced-motion: reduce) { .kit-cta.is-quiet { animation: none; } }
/* a point of light that travels round the gold border */
@property --gold-turn { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.kit-cta.is-quiet { position: relative; }
.kit-cta.is-quiet::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--gold-turn), transparent 0 74%, rgba(255, 214, 102, 0.5) 88%, #FFF3C4 97%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: gold-turn 4.5s linear infinite;
}
@keyframes gold-turn { to { --gold-turn: 360deg; } }
@media (prefers-reduced-motion: reduce) { .kit-cta.is-quiet::after { display: none; } }
.kit-cta.is-quiet .kit-cta-text { color: var(--text-soft); }
.kit-cta.is-quiet strong { color: var(--text); font-size: 19px; }
.kit-cta.is-quiet .kit-cta-arrow { color: #F5B81E; }
@media (prefers-color-scheme: light) { .kit-cta.is-quiet { border-color: #B8860B; } .kit-cta.is-quiet .kit-cta-arrow { color: #8A6508; } }
.kit-cta-arrow { flex: none; font-family: var(--font-en); font-size: 26px; }
html[dir="rtl"] .kit-cta-arrow { transform: scaleX(-1); }

.sources-fold { margin-top: 14px; border-block: 1px solid var(--edge); }
.sources-fold summary { display: flex; align-items: center; min-height: 60px; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.sources-fold summary::-webkit-details-marker { display: none; }
.sources-fold summary::after { content: "+"; margin-inline-start: auto; font-family: var(--font-en); font-size: 24px; font-weight: 400; color: var(--text-muted); }
.sources-fold[open] summary::after { content: "−"; }
.sources { padding-bottom: 18px; font-family: var(--font-en); }
.sources h3 { margin-top: 22px; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.sources h3:first-child { margin-top: 4px; }
.sources li { padding: 7px 0; font-size: 16px; line-height: 1.5; color: var(--text-muted); }
.sources a { color: var(--text-soft); text-decoration-color: var(--edge-strong); overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- the dots
   12,000 dots: the lower end of the Home Office bulletin's estimate.
   Always dark, in both themes, so the dots sit on the same ground as
   in the share images. The count is set in kit.js and must match the
   caption and the source.                                              */
.mem { margin-top: var(--gap); padding: 48px 0 44px; background: #070A13; color: #F0EDE3; }
.mem-field { direction: ltr; }
.mem canvas { width: 100%; }
.mem-cap { margin-top: 24px; max-width: 30em; font-size: 17px; line-height: 1.55; color: #C9C7C0; }
.mem-cap.fa { line-height: 1.9; }
.mem-cap strong { display: block; margin-bottom: 4px; font-size: clamp(24px, 5.6vw, 30px); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; color: #F0EDE3; }
.mem-cap.fa strong { letter-spacing: 0; line-height: 1.6; }
.mem .src { border-color: rgba(240, 237, 227, 0.3); color: #C9C7C0; }
.mem .src:first-of-type { margin-inline-start: 2px; }

/* facts */
.facts { margin-top: 18px; }
.facts li { padding: 16px 0; border-bottom: 1px solid var(--edge); font-size: 17px; line-height: 1.6; color: var(--text); }
html[data-lang="fa"] .facts li { line-height: 1.9; }
.src {
  display: inline-block; margin-inline-start: 2px; padding: 0 8px;
  border: 1px solid var(--edge-strong); border-radius: 6px;
  font-family: var(--font-en); font-size: 12.5px; font-weight: 500; line-height: 1.8;
  color: var(--text-soft); text-decoration: none; white-space: nowrap; direction: ltr;
}
.src:hover { border-color: var(--accent); color: var(--accent); }

/* do and don't */
.rules { margin-top: 36px; display: grid; gap: 32px; }

.rule ul { margin-top: 4px; }
.rule li { position: relative; padding: 11px 0; padding-inline-start: 28px; font-size: 16.5px; line-height: 1.5; color: var(--text-soft); border-bottom: 1px solid var(--edge); }
html[data-lang="fa"] .rule li { line-height: 1.8; }
.rule li::before { position: absolute; inset-inline-start: 0; top: 11px; font-family: var(--font-en); font-weight: 600; }
.rule-do li::before { content: "✓"; color: var(--ok); }
.rule-dont li::before { content: "✕"; color: var(--ember); }

/* questions */
.qa { margin-top: 14px; }
.qa details { border-bottom: 1px solid var(--edge); }
.qa summary {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 14px 0;
  font-size: 17.5px; font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none;
  -webkit-tap-highlight-color: transparent;
}
html[data-lang="fa"] .qa summary { line-height: 1.7; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; margin-inline-start: auto; flex: none;
  font-family: var(--font-en); font-size: 24px; font-weight: 400; line-height: 1; color: var(--text-muted);
}
.qa details[open] summary::after { content: "−"; }
.qa details p { padding: 0 0 18px; max-width: 34em; font-size: 17px; color: var(--text-soft); }
.qa details p + p { margin-top: -6px; }

/* MP letter */
.letter { margin-top: 22px; }
.steps { margin-top: 18px; display: grid; gap: 10px; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding-inline-start: 30px; font-size: 17px; color: var(--text-soft); }
.steps li::before { content: counter(st); position: absolute; inset-inline-start: 0; font-family: var(--font-en); font-weight: 600; color: var(--ember); }
html[data-lang="fa"] .steps li::before { content: counter(st, persian); font-family: var(--font-fa); }
.steps a { overflow-wrap: anywhere; }

/* about */
.about p { margin-top: 14px; max-width: 34em; font-size: 17px; color: var(--text-soft); }

.foot { margin-top: var(--gap); padding: 26px 0 max(40px, env(safe-area-inset-bottom)); border-top: 1px solid var(--edge); font-size: 14px; color: var(--text-muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.foot a { color: var(--text-soft); }

/* ---------------------------------------------------------------- text size
   The reader's choice scales the page content; the top bar stays as it is. */
main, .foot { zoom: var(--text-scale, 1); }
.a11y-btn {
  position: fixed; z-index: 120;
  inset-inline-end: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom));
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--edge-strong); background: var(--bg-elev); color: var(--text);
  font-family: var(--font-en); font-size: 19px; font-weight: 600; line-height: 1;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.55);
}
.a11y-btn small { font-size: 0.68em; }
.a11y-btn:hover { border-color: var(--accent); }
.a11y-panel {
  position: fixed; z-index: 120;
  inset-inline-end: max(14px, env(safe-area-inset-right)); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 60px);
  padding: 14px 14px 12px; border-radius: 16px;
  border: 1px solid var(--edge-strong); background: var(--bg-elev);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
}
.a11y-panel p { margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--text-muted); }
.a11y-panel .seg { background: var(--bg-soft); }
.a11y-panel .seg button { min-width: 48px; min-height: 44px; padding: 4px 10px; font-weight: 600; }
.toast { padding-inline: 70px; }
.hero + .sec { padding-top: 0; }

/* copied toast */
.toast {
  position: fixed; inset-inline: 0; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 200;
  display: flex; justify-content: center; pointer-events: none;
}
.toast span {
  padding: 11px 20px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-size: 15px; font-weight: 600; line-height: 1.4;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translateY(8px); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.toast.is-on span { opacity: 1; transform: none; }
.toast span:empty { display: none; }

/* ---------------------------------------------------------------- press and sharing kit */
/* tabs: one per kind of reader; stays under the top bar while scrolling */
.aud-title { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.aud-title .wrap { display: block; }
html[data-lang="fa"] .aud-title { letter-spacing: 0; font-size: 15px; }
.aud {
  position: sticky; top: 58px; z-index: 40; margin-top: 10px; padding: 8px 0;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--edge);
}
.aud-tabs { display: flex; gap: 4px; padding: 4px; border: 1.5px solid var(--edge-strong); border-radius: 16px; background: var(--bg-elev); }
.aud-tabs li { flex: 1 1 auto; }
.aud-tabs a {
  display: grid; place-items: center; min-height: 46px; padding: 4px 6px; border-radius: 12px;
  color: var(--text); font-size: 14.5px; font-weight: 500; line-height: 1.3; text-align: center; text-decoration: none; white-space: nowrap;
}
.aud-tabs a:hover { color: var(--text); }
.aud-tabs a[aria-current="true"] { background: var(--accent-solid); color: #fff; font-weight: 600; }
@media (min-width: 600px) { .aud-tabs a { font-size: 16.5px; min-height: 50px; } }
html:has(.aud) { scroll-padding-top: 140px; }

html[data-aud="share"] [data-aud-sec]:not([data-aud-sec="share"]),
html[data-aud="print"] [data-aud-sec]:not([data-aud-sec="print"]),
html[data-aud="press"] [data-aud-sec]:not([data-aud-sec="press"]),
html[data-aud="parliament"] [data-aud-sec]:not([data-aud-sec="parliament"]) { display: none; }

/* inside a tab: the first section sits close to the tabs, later ones start after a rule */
[data-aud-sec] { padding-top: 40px; }
#images, #video, #mp { margin-top: var(--gap); padding-top: var(--gap); border-top: 1px solid var(--edge-strong); }

/* a card for each block, so one block ends before the next begins */
.block { margin-top: 16px; padding: 20px; border: 1px solid var(--edge); border-radius: 18px; background: var(--bg-elev); }
.block .sub-h { margin-top: 0; }
.block .glance > div:last-child, .block .angles li:last-child { border-bottom: 0; padding-bottom: 0; }
.block .steps { margin-top: 12px; }
.block .quotes blockquote { font-size: 17px; }
.musts.in-sec, .points { padding: 20px; border: 1px solid var(--edge); border-radius: 18px; background: var(--bg-elev); }
.musts.in-sec li:last-child, .points li:last-child { border-bottom: 0; padding-bottom: 0; }

/* every section opens with a short coloured bar above its heading */
.aud ~ .sec > .wrap > h2::before {
  content: ""; display: block; width: 48px; height: 5px; margin-bottom: 18px; border-radius: 3px; background: var(--ember);
}
.aud ~ #questions, .aud ~ #about { margin-top: var(--gap); padding-top: var(--gap); border-top: 1px solid var(--edge-strong); }
.quotes-more { margin-top: 22px; }

/* press pictures: portraits side by side, the caption and download under each */
.press-pics { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px 14px; align-items: start; }
.press-pic { display: flex; flex-direction: column; min-width: 0; }
.press-pic img { width: 100%; height: auto; border-radius: 12px; background: var(--bg); }
.press-pic figcaption { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--text-soft); }
.press-pic .btn { align-self: flex-start; }
.block-cta { margin-top: 16px; }
.block-cta .btn { width: 100%; }
@media (min-width: 520px) { .block-cta .btn { width: auto; } }

/* the break before the sections everyone sees: a full-width band in the accent colour,
   so nobody scrolls from one tab's material into the shared sections without noticing */
.ref { margin-top: calc(var(--gap) + 16px); padding: 44px 0 46px; background: var(--accent-solid); color: #fff; }
.ref-kicker { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1.5px solid #fff; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
html[data-lang="fa"] .ref-kicker { letter-spacing: 0; font-size: 14.5px; }
.ref h2 { margin-top: 16px; color: #fff; }
.ref .link-row { margin-top: 22px; }
.ref .btn { border-color: #fff; background: #fff; color: var(--accent-solid); }
.ref .btn:hover { border-color: #fff; background: rgba(255, 255, 255, 0.88); }
.ref + .mem { margin-top: 0; }

.musts.in-sec { margin-top: 22px; }

.sub-h { margin-top: 40px; font-size: 20px; font-weight: 600; line-height: 1.35; }
.sub-note { margin-top: 4px; font-size: 15px; color: var(--text-muted); }
.sub-body { margin-top: 8px; max-width: 34em; font-size: 17px; line-height: 1.6; color: var(--text-soft); }
html[data-lang="fa"] .sub-body { line-height: 1.9; }

/* at a glance: label on the left, value on the right; stacked on a phone */
.glance { margin-top: 8px; }
.glance > div { display: grid; gap: 2px 18px; padding: 13px 0; border-bottom: 1px solid var(--edge); }
@media (min-width: 560px) { .glance > div { grid-template-columns: 150px 1fr; } }
.glance dt { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.glance dd { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--text); }
html[data-lang="fa"] .glance dd { line-height: 1.85; }
.glance .ltr { display: inline-block; }

.angles { margin-top: 4px; }
.angles li { padding: 14px 0; border-bottom: 1px solid var(--edge); font-size: 16.5px; line-height: 1.6; color: var(--text-soft); }
html[data-lang="fa"] .angles li { line-height: 1.9; }
.angles strong { font-weight: 600; color: var(--text); }

.quotes { margin-top: 12px; display: grid; gap: 12px; }
.quotes blockquote {
  margin: 0; padding: 4px 0; padding-inline-start: 18px; border-inline-start: 3px solid var(--ember);
  font-size: 18px; line-height: 1.55; color: var(--text);
}
html[data-lang="fa"] .quotes blockquote { line-height: 1.9; }

.link-row { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }

/* posters: three across, two on a narrow phone */
.poster-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 520px) { .poster-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.poster-grid img { width: 100%; height: auto; border-radius: 8px; background: var(--bg-elev); }

/* the landing page's sign box: the button and the three steps, before any reading */
.sign-box { margin-top: 24px; padding: 20px; border: 1px solid var(--edge-strong); border-radius: 18px; background: var(--bg-elev); }
.sign-box .btn-primary { width: 100%; min-height: 60px; font-size: 18px; text-align: center; justify-content: center; }
.sign-where { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--text-muted); text-align: center; }
.sign-steps { margin-top: 16px; counter-reset: sg; display: grid; gap: 10px; }
.sign-steps li { counter-increment: sg; position: relative; padding-inline-start: 34px; font-size: 16.5px; line-height: 1.5; color: var(--text-soft); }
html[data-lang="fa"] .sign-steps li { line-height: 1.8; }
.sign-steps li::before {
  content: counter(sg); position: absolute; inset-inline-start: 0; top: 1px;
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ember); color: #fff; font-family: var(--font-en); font-size: 14px; font-weight: 600;
}
html[data-lang="fa"] .sign-steps li::before { content: counter(sg, persian); font-family: var(--font-fa); }
.sign-steps strong { font-weight: 600; color: var(--text); }
.sign-box + .count { margin-top: 24px; }
.why-h { margin-top: 44px; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
html[data-lang="fa"] .why-h { letter-spacing: 0; font-size: 15px; }
.why-h + div .lede:first-child { margin-top: 10px; }

@media print {
  .bar, .jump, .toast, .a11y-btn, .a11y-panel, .post-actions, .post-more, .img-actions, .cta, .plang, .mem { display: none !important; }
  .post.is-clamped .post-body { max-height: none; -webkit-mask-image: none; mask-image: none; }
  body { background: #fff; color: #000; }
}
