@font-face { font-family: "Playfair Display"; src: url("vendor/fonts/playfair-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("vendor/fonts/playfair-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("vendor/fonts/playfair-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
/* Vazirmatn (Google Fonts, variable 100-900), self-hosted; used for Persian and Arabic */
/* arabic */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("vendor/fonts/vazirmatn-arabic.woff2") format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("vendor/fonts/vazirmatn-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("vendor/fonts/vazirmatn-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f7f5f0;
  --paper-2: #efece5;
  --ink: #1c1b19;
  --ink-2: #45433f;
  --muted: #85817a;
  --line: #e2ded5;
  --blue: #0a47d1;
  --blue-ink: #0638a8;
  --blue-wash: rgba(10, 71, 209, 0.08);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --body: var(--sans);
  --surface: #ffffff;
  --overlay: rgba(255, 255, 255, 0.9);
  --line-strong: #cfc9bd;
  --land-shape: #c9c4ba;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131416; --paper-2: #1a1b1e; --ink: #ecebe6; --ink-2: #c3c0b9; --muted: #8d8982;
    --line: #2d2e32; --line-strong: #45464c; --blue: #6f96ff; --blue-ink: #a8c0ff; --blue-wash: rgba(111, 150, 255, 0.16);
    --surface: #1c1d20; --overlay: rgba(28, 29, 32, 0.88); --cut: #77736c; --land-shape: #55575e; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #131416; --paper-2: #1a1b1e; --ink: #ecebe6; --ink-2: #c3c0b9; --muted: #8d8982;
  --line: #2d2e32; --line-strong: #45464c; --blue: #6f96ff; --blue-ink: #a8c0ff; --blue-wash: rgba(111, 150, 255, 0.16);
  --surface: #1c1d20; --overlay: rgba(28, 29, 32, 0.88); --cut: #77736c; --land-shape: #55575e; color-scheme: dark;
}
html[lang="fa"], html[lang="ar"] { --serif: "Vazirmatn", Tahoma, sans-serif; --sans: "Vazirmatn", Tahoma, sans-serif; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* top bar, shared by every page */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 3vw, 40px); }
.brand { display: flex; align-items: baseline; gap: 14px; text-decoration: none; min-width: 0; }
.brand b { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; white-space: nowrap; }
.brand span { font-family: "Playfair Display", Georgia, serif; font-style: italic; color: var(--muted); font-size: 15px; padding-inline-start: 14px; border-inline-start: 1px solid var(--line); white-space: nowrap; }
.bar-right { display: flex; align-items: center; gap: 18px; }
.langs { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.langs a { text-decoration: none; padding: 5px 12px; border-radius: 999px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.langs a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.langs a.fa { font-family: "Vazirmatn", Tahoma, sans-serif; }
.credit { font-size: 13px; color: var(--muted); white-space: nowrap; }
.credit a { color: var(--blue); text-decoration: none; }
.credit a:hover { text-decoration: underline; }

/* ---------- country page ---------- */
body.story { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); overflow: hidden; height: 100dvh; }
.stage { position: relative; display: grid; grid-template-columns: minmax(340px, 440px) minmax(0, 1fr); min-height: 0; min-width: 0; }
.panel { position: relative; z-index: 2; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
/* the story scrolls; the player stays put under it */
.panel-body { flex: 1; min-height: 0; overflow: auto; padding: 8px clamp(16px, 3vw, 40px) 20px; scrollbar-width: thin; }
.js .ch { display: none; }
.js .ch.on { display: block; }
.ch + .ch { margin-top: 40px; }
.js .ch + .ch { margin-top: 0; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.country { font-family: var(--serif); font-weight: 400; font-size: 18px; letter-spacing: 0.02em; color: var(--ink-2); margin: 0; line-height: 1.3; }
.year { font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 7.2vw, 104px); line-height: 0.95; letter-spacing: -0.035em; margin: 6px 0 0; font-variant-numeric: lining-nums; }
html[lang="fa"] .year { letter-spacing: 0; font-weight: 400; }
.title { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 2.4vw, 34px); color: var(--blue); letter-spacing: -0.015em; margin: 14px 0 0; line-height: 1.15; }
html[lang="fa"] .title { letter-spacing: 0; }
.text { font-size: 17px; line-height: 1.68; color: var(--ink-2); margin: 14px 0 0; max-width: 34em; }
html[lang="fa"] .text { font-size: 17.5px; line-height: 1.95; }
.chapter { transition: opacity 0.28s ease, transform 0.28s ease; }
.chapter.out { opacity: 0; transform: translateY(6px); }
/* song card: a Vocaler player, in Vocaler's own colours whatever the page theme */
.song { --v-ink: #0A0A0B; --v-red: #FF2D1F; --v-red-glow: rgba(255, 45, 31, 0.4); display: none; flex: none; margin: 0 clamp(16px, 3vw, 40px) 16px; padding: 16px 16px 12px; border-radius: 14px; background: var(--v-ink); color: #F4F1EC; box-shadow: 0 10px 30px rgba(10, 10, 11, 0.18); }
.song.on { display: block; }
.vad-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.vad-brand { display: inline-flex; line-height: 0; }
.vad-brand img { width: 88px; height: auto; }
.vad-tag { font-size: 11.5px; letter-spacing: 0.04em; color: rgba(244, 241, 236, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-top { display: flex; align-items: center; gap: 12px; }
.song-play { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--v-red); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 0 var(--v-red-glow); transition: box-shadow 0.3s, transform 0.1s; }
.song-play:hover { box-shadow: 0 0 0 6px var(--v-red-glow); }
.song-play:active { transform: scale(0.96); }
.song.playing .song-play { box-shadow: 0 0 0 5px var(--v-red-glow); }
.song-play svg { width: 16px; height: 16px; }
.song-meta { min-width: 0; flex: 1; }
.song-meta b { display: block; font-family: var(--serif); font-size: 16px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-meta b a { color: inherit; text-decoration: none; }
.song-meta b a:hover { text-decoration: underline; }
.song-meta span { font-size: 12.5px; color: rgba(244, 241, 236, 0.6); }
.song-seek { position: relative; height: 18px; margin-top: 12px; cursor: pointer; touch-action: none; }
.song-seek::before { content: ""; position: absolute; inset: 8px 0 auto; height: 2px; background: rgba(244, 241, 236, 0.18); border-radius: 2px; }
.song-seek i { position: absolute; inset-inline-start: 0; top: 8px; height: 2px; width: 0; background: var(--v-red); border-radius: 2px; }
.song-seek b { position: absolute; top: 4px; width: 10px; height: 10px; margin-inline-start: -5px; border-radius: 50%; background: var(--v-red); }
.song-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(244, 241, 236, 0.6); font-variant-numeric: tabular-nums; }
.follow { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }
.follow input { accent-color: var(--v-red); margin: 0; }
.vad-cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(244, 241, 236, 0.08); color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; transition: background 0.15s; }
.vad-cta:hover { background: var(--v-red); }
.vad-cta svg { width: 14px; height: 14px; }
html[dir="rtl"] .vad-cta svg { transform: scaleX(-1); }
.vad-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--v-red); }
.vad-cta:hover .vad-dot { background: #fff; }

/* globe */
.globe { position: relative; min-height: 0; min-width: 0; }
.globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.globe canvas.dragging { cursor: grabbing; }
.pins { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pin { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 7px; transform: translate(-6px, -6px); transition: opacity 0.25s; white-space: nowrap; }
.pin i { width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,0.18); }
.pin span { font-size: 13px; font-weight: 600; color: var(--ink); background: var(--overlay); padding: 2px 8px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
html[lang="fa"] .pin span { font-family: "Vazirmatn", Tahoma, sans-serif; }
.legend { position: absolute; inset-inline-start: 18px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-2); background: var(--overlay); padding: 7px 10px; border-radius: 8px; backdrop-filter: blur(6px); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--blue); }
.legend i.other { background: var(--cut, #aaa399); }
.legend .cut-only { display: none; }
.legend.has-cut .cut-only { display: inline-flex; }
.tools { position: absolute; inset-inline-end: 18px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.tools button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--overlay); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.tools button:hover { border-color: var(--ink-2); }
.tools svg { width: 16px; height: 16px; }
.hint { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-size: 12.5px; color: var(--muted); background: var(--overlay); padding: 5px 12px; border-radius: 999px; transition: opacity 0.6s; white-space: nowrap; }
.hint.gone { opacity: 0; }
.fail { position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: 24px; color: var(--muted); }

/* timeline: fixed prev / next at both ends, a progress bar with dates spaced by time between them */
.timeline { position: relative; min-width: 0; display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); background: var(--paper); padding: 12px clamp(12px, 2.5vw, 32px); }
.step { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color 0.15s, transform 0.1s; }
.step:hover { border-color: var(--ink-2); }
.step:active { transform: scale(0.95); }
.step:disabled { opacity: 0.35; cursor: default; }
.step svg { width: 16px; height: 16px; }
html[dir="rtl"] .step svg { transform: scaleX(-1); }
.tl-scroll { flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 8px 4px 2px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); }
.tl-scroll::-webkit-scrollbar { display: none; }
.tl { position: relative; min-width: 100%; padding: 0 6px; box-sizing: border-box; }
.tl-bar { position: relative; height: 4px; border-radius: 4px; background: var(--line); cursor: pointer; }
.tl-bar::before { content: ""; position: absolute; inset: -9px 0; }
.tl-fill { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: var(--blue); transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.tl-labels { position: relative; height: 22px; margin-top: 9px; }
.tl-label { position: absolute; top: 0; transform: translateX(-50%); border: 0; background: none; padding: 0 3px; font-family: var(--serif); font-size: 14px; line-height: 22px; color: var(--muted); cursor: pointer; white-space: nowrap; transition: color 0.2s; }
html[dir="rtl"] .tl-label { transform: translateX(50%); }
.tl-label.first, html[dir="rtl"] .tl-label.first { transform: none; padding-inline-start: 0; }
.tl-label.last { transform: translateX(-100%); padding-inline-end: 0; }
html[dir="rtl"] .tl-label.last { transform: translateX(100%); }
.tl-label.past { color: var(--ink-2); }
.tl-label:hover { color: var(--ink); }
.tl-label.on { color: var(--blue); font-weight: 700; }
.country .count { margin-inline-start: 10px; font-family: var(--sans); font-size: 13px; color: var(--muted); letter-spacing: 0; }

/* the current lyric line, over the globe while the song plays */
.lyric { position: absolute; left: 50%; bottom: 70px; transform: translate(-50%, 8px); width: min(560px, calc(100% - 32px)); text-align: center; pointer-events: none; opacity: 0; transition: opacity 0.4s, transform 0.4s; }
.lyric.on { opacity: 1; transform: translate(-50%, 0); }
.lyric p { margin: 0; }
.lyric-main { display: inline-block; font-family: "Vazirmatn", Tahoma, sans-serif; font-size: 20px; font-weight: 600; line-height: 1.6; color: var(--ink); background: var(--overlay); padding: 4px 14px; border-radius: 10px; backdrop-filter: blur(6px); }
.lyric-sub { margin-top: 4px !important; font-size: 13.5px; font-style: italic; color: var(--ink-2); }
.lyric-sub:empty { display: none; }

@media (max-width: 900px) {
  body.story { height: auto; overflow: visible; grid-template-rows: auto auto auto; }
  .bar { padding: 12px 16px; }
  .brand span, .credit { display: none; }
  .stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; }
  .bar-right { gap: 10px; }
  .langs a { padding: 5px 10px; }
  .globe { order: -1; height: min(56vh, 460px); }
  .panel { overflow: visible; padding: 12px 16px 24px; }
  .crumbs { display: none; }
  .year { font-size: 64px; }
  .text { font-size: 16.5px; }
  .timeline { position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -6px 20px rgba(0,0,0,0.04); }
  .timeline { padding: 10px 12px; gap: 10px; }
  .step { width: 38px; height: 38px; }
  .tl-label { font-size: 13px; }
  .lyric { bottom: 100px; }
  .lyric-main { font-size: 17px; }
  .legend { inset-inline-start: 10px; inset-inline-end: 10px; bottom: 56px; font-size: 12px; width: fit-content; }
  .tools { inset-inline-end: 10px; bottom: 10px; flex-direction: row; }
  .tools button { width: 36px; height: 36px; }
  .hint { top: 8px; }
}

/* ---------- home ---------- */
body.home main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: clamp(28px, 6vw, 72px) 0 80px; }
.home h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 8vw, 104px); line-height: 0.95; letter-spacing: -0.04em; margin: 0; }
.home .lead { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2vw, 24px); color: var(--ink-2); max-width: 30em; margin: 20px 0 0; line-height: 1.45; }
.home .about { max-width: 40em; margin: 18px 0 0; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.home h2 { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: clamp(40px, 6vw, 64px) 0 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.card:hover { border-color: var(--line-strong); box-shadow: 0 14px 40px rgba(28,27,25,0.08); transform: translateY(-2px); }
.card > a { display: block; }
.card-img { aspect-ratio: 4 / 3; background: var(--paper); display: block; width: 100%; height: auto; object-fit: cover; border-bottom: 1px solid var(--line); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.card-name { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-name b { font-family: "Playfair Display", Georgia, serif; font-size: 30px; font-weight: 400; letter-spacing: -0.02em; }
.card-name span { font-size: 20px; color: var(--muted); }
.card-name span.fa { font-family: "Vazirmatn", Tahoma, sans-serif; }
.card p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.card-langs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.card-langs a { text-decoration: none; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.card-langs a:hover { border-color: var(--ink); color: var(--ink); }
.card-langs a.main { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.card-langs a.fa { font-family: "Vazirmatn", Tahoma, sans-serif; }
.method { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.method h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 6px; font-weight: 700; }
.method p { margin: 0; color: var(--ink-2); line-height: 1.6; font-size: 15px; }
.foot { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.6; }
.legend em { font-style: normal; }

:lang(fa), :lang(ar), :lang(prs) { font-family: "Vazirmatn", Tahoma, sans-serif; }

/* theme switch */
.theme { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.theme:hover { border-color: var(--ink-2); }
.theme svg { width: 16px; height: 16px; }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }

/* continents and the atlas of countries */
.continent { margin-top: 36px; }
.continent + .continent { margin-top: 48px; }
.cont-head { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cont-head h2 { font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -0.02em; text-transform: none; color: var(--ink); margin: 0; }
.cont-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.cont-globe { width: 84px; height: 84px; flex: none; }
.g-sea { fill: var(--surface); }
.g-land { fill: var(--land-shape); }
.g-mine { fill: var(--blue); }
.g-rim { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.atlas { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; margin-top: 16px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); min-width: 0; }
.tile svg { width: 100%; aspect-ratio: 1; height: auto; margin-bottom: 8px; }
.tile svg path { fill: var(--land-shape); }
.tile b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.tile span { font-size: 13px; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.tile.off { opacity: 0.55; }
.tile.off svg path { fill: var(--muted); opacity: 0.55; }
.tile.live { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.tile.live svg path { fill: var(--blue); }
.tile-main { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.tile-main:hover b { color: var(--blue); }
.tile-langs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: 12.5px; }
.tile-langs a { color: var(--blue); text-decoration: none; }
.tile-langs a:hover { text-decoration: underline; }
.vaz, .vaz * { font-family: "Vazirmatn", Tahoma, sans-serif; }
@media (max-width: 560px) {
  .atlas { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
  .cont-head h2 { font-size: 26px; }
  .cont-globe { width: 52px; height: 52px; }
}

/* lyrics, folded under the story */
.lyrics { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 12px; }
.lyrics summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 8px; }
.lyrics summary::-webkit-details-marker { display: none; }
.lyrics summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); font-weight: 400; }
.lyrics[open] summary::before { content: "−"; }
.lyrics ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.lyrics li { display: grid; gap: 1px; }
.lyrics li span:first-child { font-size: 15.5px; color: var(--ink); }
.lyrics li span + span { font-size: 13px; font-style: italic; color: var(--muted); }
.lyrics [lang="fa"] { font-family: "Vazirmatn", Tahoma, sans-serif; font-style: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .panel { overflow: visible; }
  .panel-body { overflow: visible; padding: 12px 16px 16px; }
  /* on phones the player is a compact bar that stays above the timeline */
  .song { position: sticky; bottom: 66px; z-index: 6; margin: 0 10px 8px; padding: 8px 12px 4px; border-radius: 12px; }
  .vad-head { position: absolute; top: 12px; inset-inline-end: 12px; margin: 0; }
  .vad-tag, .vad-cta, .song-foot { display: none; }
  .vad-brand img { width: 64px; }
  .song-top { gap: 10px; padding-inline-end: 76px; }
  .song-play { width: 36px; height: 36px; }
  .song-meta b { font-size: 14px; }
  .song-meta span { font-size: 11.5px; }
  .song-seek { margin-top: 2px; height: 14px; }
  .song-seek::before, .song-seek i { top: 6px; }
  .song-seek b { top: 2px; }
}

/* ---------- home ---------- */
.bar-nav { display: flex; gap: 22px; font-size: 14px; }
.bar-nav a { text-decoration: none; color: var(--ink-2); }
.bar-nav a:hover { color: var(--ink); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.eyebrow { margin: 0 0 14px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.home .hero h1 { font-size: clamp(42px, 6vw, 80px); line-height: 1; }
.hero .lead { font-style: normal; font-family: var(--sans); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; transition: background 0.15s, border-color 0.15s; }
.btn:hover { border-color: var(--ink); }
.btn.main { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.main:hover { background: var(--blue-ink); }
.hero-img { display: block; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(10, 10, 11, 0.18); }
.hero-img img { display: block; width: 100%; height: auto; }
.how ol { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: how; }
.how li { counter-increment: how; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: grid; gap: 6px; }
.how li::before { content: counter(how); font-family: var(--serif); font-size: 28px; color: var(--blue); line-height: 1; }
.how b { font-size: 16px; }
.how span { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.home h2.section-h { font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); font-weight: 400; letter-spacing: -0.02em; text-transform: none; color: var(--ink); margin: clamp(56px, 7vw, 88px) 0 8px; }
.section-lead { margin: 0 0 8px; color: var(--ink-2); font-size: 15.5px; max-width: 44em; line-height: 1.6; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; margin-top: 18px; }
.feature { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s; }
.feature:hover { box-shadow: 0 16px 44px rgba(28, 27, 25, 0.1); transform: translateY(-2px); }
.feature-img img { display: block; width: 100%; height: auto; }
.feature-body { padding: 20px 22px 22px; display: grid; gap: 10px; }
.feature h3 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 400; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.feature h3 a { color: inherit; text-decoration: none; }
.feature h3 span { font-size: 20px; color: var(--muted); }
.feature h3 span[lang="fa"] { font-family: "Vazirmatn", Tahoma, sans-serif; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.facts li { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--blue-wash); color: var(--blue); font-weight: 600; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; }
.faq p { margin: 10px 0 0; color: var(--ink-2); line-height: 1.65; max-width: 46em; }
.foot a { color: var(--ink-2); }
.foot img { vertical-align: -2px; }
@media (max-width: 900px) {
  .bar-nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .how ol { grid-template-columns: 1fr; }
}
