/* «هدهد» website, «آسمان روشن» identity (areas/podcast/03-branding/design-system.md). Mobile first, RTL.
   Colours only from the design system; no gradients except the sky itself, no glow, no drop shadows (hairlines are
   drawn as inset 1 px rings). One type scale, one spacing scale and two weights (400 and 800; 900 only for numerals,
   600 only for the product lockup's label, as its spec says): rebuilt 2026-10-12 after Maryam's «یه جاهایی فونت خیلی
   درشته. یه جاهایی خط ها خیلی به هم نزدیکه». */
/* Type: build.py › build_font() writes the @font-face rules between the markers (Vazirmatn, the free fallback, until
   Pinar's web licence is confirmed). */
/*FONT*/
@font-face { font-family: "HodhodText"; src: url("fonts/vazirmatn.woff") format("woff"); font-weight: 100 900; font-display: swap; }
/*/FONT*/

:root {
  --sky: #EAF6FA; --sky-top: #D8EEF7; --cream: #FCF6EA; --navy: #19364A; --ink-2: #41596B;
  --cinnamon: #EF9245; --coral: #EA655A; --leaf: #7CAF59; --sunshine: #F4C64C; --turquoise: #36A8B2;
  --night: #234A60; --shelf: #F1E5CC; --ledge: #DCCBA8; --white: #FFFFFF;
  --line: rgba(25, 54, 74, .14); --line-2: rgba(25, 54, 74, .08); --on-navy: #DCE6EC;
  --accent: var(--leaf);

  /* type: one fluid scale from 360 to 1280 px, in rem so a reader's own text size is kept */
  --fs-meta: .875rem;                                       /* 14 */
  --fs-small: .9375rem;                                     /* 15 */
  --fs-body: clamp(1rem, .975rem + .11vw, 1.0625rem);       /* 16 to 17 */
  --fs-lead: clamp(1.0625rem, 1.01rem + .22vw, 1.1875rem);  /* 17 to 19 */
  --fs-h3: clamp(1.125rem, 1.07rem + .27vw, 1.3125rem);     /* 18 to 21 */
  --fs-display: clamp(1.3125rem, 1.18rem + .65vw, 1.6875rem); /* 21 to 27 */
  --fs-h2: clamp(1.4375rem, 1.27rem + .76vw, 1.875rem);     /* 23 to 30 */
  --fs-h1: clamp(1.6875rem, 1.42rem + 1.2vw, 2.375rem);     /* 27 to 38 */
  /* Persian leading: Vazirmatn's ink runs from +0.83 em (گ) to −0.34 em (the dots of ج، چ، پ), so a heading needs at
     least 1.5 to keep its lines' dots apart; running text 1.85 */
  --lh-text: 1.85; --lh-h1: 1.45; --lh-head: 1.5; --lh-sub: 1.6; --lh-ui: 1.55;
  --bold: 800;
  --measure: 34em;                                          /* about 70 to 75 Persian characters a line */

  /* space */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --section: clamp(48px, 36px + 3.2vw, 80px);
  --block: clamp(36px, 30px + 1.7vw, 52px);
  --pad-card: clamp(18px, 15px + .9vw, 28px);
  --gap: clamp(14px, 12px + .6vw, 22px);
  --r: 20px; --r-s: 14px; --wrap: 1180px; --gutter: 16px; --head-h: 60px;

  --grain: url("../img/grain.png");
  --arch: url("arch.svg");
  color-scheme: light;
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 980px) { :root { --head-h: 68px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; background: var(--sky); color: var(--navy); font-family: "HodhodText", Tahoma, sans-serif;
       font-size: var(--fs-body); line-height: var(--lh-text); font-weight: 400; -webkit-font-smoothing: antialiased; }
main { display: block; overflow-x: clip; padding-bottom: var(--section); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .42em; text-decoration-color: rgba(25, 54, 74, .45); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.site-foot :focus-visible, .trust :focus-visible { outline-color: var(--sunshine); }
strong, b { font-weight: var(--bold); }
em, i { font-style: normal; font-weight: var(--bold); }   /* Persian has no italic: emphasis is weight */
h1, h2, h3, h4 { margin: 0; font-weight: var(--bold); text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-head); }
h3, h4 { font-size: var(--fs-h3); line-height: var(--lh-sub); }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.1em; padding-inline-start: 1.5em; }
ol { list-style-type: persian; }
li { margin-bottom: .65em; }
li:last-child { margin-bottom: 0; }
li::marker { color: var(--ink-2); }
blockquote { margin: 0; }
main :is(p, li, dd, blockquote) { max-inline-size: var(--measure); }
[lang="ar"] { font-size: 1.06em; }
:is(p, div, blockquote)[lang="ar"], .lamp .ar, .ayah .ar { line-height: 2; }
.latin { direction: ltr; unicode-bidi: isolate; display: inline-block; }
main bdi { white-space: nowrap; }   /* a short Latin name (Product Placement, Ctrl+P) never splits across lines */
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow > * { max-width: 760px; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-meta); }
.strong { font-weight: var(--bold); }
.nowrap { white-space: nowrap; }
.lead { font-size: var(--fs-lead); line-height: 1.8; }

/* skip link */
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--navy); color: var(--cream);
        padding: 8px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

/* grain: 50 % on accent shapes, 35 % on cream panels (design system) */
.grain, .grain-50 { position: relative; isolation: isolate; }
.grain::after, .grain-50::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--grain) 0 0 / 256px 256px; opacity: .35; border-radius: inherit; }
.grain-50::after { opacity: .5; }

/* the arch glyph before labels */
.glyph { display: inline-block; width: .72em; height: .92em; vertical-align: -.08em; margin-inline-end: .45em; flex: none; }
.glyph path { fill: var(--g, var(--accent)); }

/* ---------- header (sticky: the menu is one tap away on every long page) ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--sky); box-shadow: inset 0 -1px 0 var(--line-2); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--head-h); }
.brand-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand { display: inline-flex; align-items: center; color: var(--navy); padding: 6px 0; }
.brand svg { height: 26px; width: auto; }
@media (min-width: 980px) { .brand svg { height: 28px; } }
/* on a product's pages the header carries the product lockup (.lockup below): the wordmark leads home, the label to
   the product's page */
.brand-row.lockup { --h: 26px; display: block; padding-block: 6px; }
@media (min-width: 980px) { .brand-row.lockup { --h: 28px; } }
.brand-row.lockup .brand { display: inline; padding: 0; }
.brand-row.lockup .brand svg { display: inline-block; }
a.lockup-label { text-decoration: none; }
a.lockup-label:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.menu-btn { display: none; font: inherit; font-size: var(--fs-small); font-weight: var(--bold); line-height: 1; color: var(--navy);
  background: var(--cream); border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; padding: 0 16px 0 14px;
  min-height: 44px; cursor: pointer; align-items: center; gap: 10px; flex: none; }
.menu-btn .bars { width: 18px; height: 12px; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after, .menu-btn .bars span { content: ""; position: absolute; inset-inline: 0; height: 2px;
  background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s, top .2s; }
.menu-btn .bars::before { top: 0; } .menu-btn .bars span { top: 5px; } .menu-btn .bars::after { top: 10px; }
.menu-btn[aria-expanded="true"] .bars span { opacity: 0; }
.menu-btn[aria-expanded="true"] .bars::before { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { top: 5px; transform: rotate(-45deg); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.nav li { margin: 0; }
.nav a, .nav-group-btn { display: block; text-decoration: none; font-size: var(--fs-small); line-height: var(--lh-ui);
  padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav-group-btn:hover { background: rgba(255, 255, 255, .7); }
.nav a[aria-current="page"] { background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); font-weight: var(--bold); }
.nav a[aria-current="true"] { font-weight: var(--bold); }
/* several products: one «تولیدات هدهد» menu (build.py › NAV_INLINE) */
.nav-group { position: relative; }
.nav-group-btn { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; color: var(--navy); background: none; border: 0; cursor: pointer; }
.nav-group-btn svg { width: 15px; height: 15px; transition: transform .15s; }
.nav-group-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-group.inside .nav-group-btn { font-weight: var(--bold); }
.nav-group-label { display: none; }
.nav .nav-sub { display: none; position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 30; width: 290px;
  flex-direction: column; align-items: stretch; gap: 2px; padding: 8px; background: var(--cream); border-radius: var(--r-s);
  box-shadow: inset 0 0 0 1px var(--line); }
.nav-group.open .nav-sub { display: flex; }
.nav-sub a { border-radius: 12px; padding: 8px 12px; }
.nav-sub a b { display: block; }
.nav-sub a small { display: block; font-size: var(--fs-meta); color: var(--ink-2); line-height: var(--lh-ui); }
.nav-sub a[aria-current] { background: var(--sky); box-shadow: none; }
@media (max-width: 979px) {
  .js .menu-btn { display: inline-flex; }
  .js .nav { position: absolute; inset-inline: 0; top: 100%; z-index: 21; background: var(--sky); padding: 8px var(--gutter) 20px;
    box-shadow: inset 0 1px 0 var(--line-2), inset 0 -1px 0 var(--line); display: none; max-height: calc(100dvh - var(--head-h)); overflow-y: auto; }
  .js .nav.open { display: block; }
  .js .nav ul { flex-direction: column; align-items: stretch; gap: 2px; max-width: 520px; margin-inline: auto; }
  .js .nav a { font-size: var(--fs-lead); padding: 11px 16px; border-radius: var(--r-s); }
  .js .nav a[aria-current] { background: var(--cream); box-shadow: inset 0 0 0 1px var(--line-2); }
  .nav-group-btn { display: none; }
  .nav-group-label { display: block; font-size: var(--fs-meta); font-weight: var(--bold); color: var(--ink-2); padding: 12px 16px 2px; }
  .nav .nav-sub { display: flex; position: static; width: auto; padding: 0 0 6px; background: none; box-shadow: none; }
  .no-js .head-row { flex-wrap: wrap; padding-block: 8px; }
  body.menu-open { overflow: hidden; }
  body.menu-open::after { content: ""; position: fixed; inset: 0; z-index: 15; background: rgba(25, 54, 74, .35); }
}
@media (max-width: 379px) { .brand svg { height: 23px; } .brand-row.lockup { --h: 21px; } .menu-btn { padding-inline: 12px 10px; } }

/* breadcrumbs */
.crumbs { padding-top: var(--s-3); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 2px; font-size: var(--fs-meta); line-height: var(--lh-ui); color: var(--ink-2); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-inline: 8px; color: rgba(25, 54, 74, .35); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--navy); }

/* ---------- buttons, links, chips ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: var(--s-5); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 22px;
  border-radius: 999px; font: inherit; font-size: 1rem; font-weight: var(--bold); line-height: 1.5; text-align: center;
  text-decoration: none; cursor: pointer; border: 0; box-shadow: inset 0 0 0 1.5px var(--navy); transition: background-color .15s, color .15s; }
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--night); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--cream); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: var(--fs-small); }
@media (max-width: 479px) { .actions { flex-direction: column; align-items: stretch; } .actions .btn { width: 100%; } }
.go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: var(--bold); text-decoration: none; }
.go svg { width: 18px; height: 18px; flex: none; }
.go:hover { text-decoration: underline; }
.go-row { display: flex; flex-wrap: wrap; gap: 0 28px; margin: var(--s-4) 0 0; max-inline-size: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-meta); line-height: var(--lh-ui); padding: 3px 12px;
  border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.status { font-weight: var(--bold); }
.status:empty { display: none; }
.status[data-state="out"] { background: var(--navy); color: var(--cream); box-shadow: none; }
.status[data-state="today"] { background: var(--sunshine); box-shadow: none; }

.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: var(--fs-meta); font-weight: var(--bold);
  line-height: var(--lh-ui); color: var(--ink-2); margin: 0 0 var(--s-2); }
.eyebrow .glyph { margin-inline-end: 0; }

/* ---------- sections ---------- */
.section { padding-top: var(--section); }
.section-tight { padding-top: var(--s-6); }
.section-head { margin-bottom: var(--s-6); max-width: 46rem; }
.section-head p { color: var(--ink-2); margin-top: var(--s-3); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.sec-title { margin-bottom: var(--s-4); }
.sec-gap { margin-top: var(--s-7); }
.sec-gap-s { margin-top: var(--s-5); }
.sub-title { margin: var(--s-6) 0 var(--s-3); }
.card { background: var(--cream); border-radius: var(--r); padding: var(--pad-card); box-shadow: inset 0 0 0 1px var(--line-2); }
.card > h3 + p, .card > h3 + div { margin-top: var(--s-2); }
.grid { display: grid; gap: var(--gap); }
@media (min-width: 700px) {
  .grid-2, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-3 > :last-child:nth-child(odd) { grid-column: auto; }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 700px) and (max-width: 999px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prose h3 { margin: 1.6em 0 .5em; }
.prose blockquote, blockquote.prose { padding: 16px 20px; background: var(--cream); border-radius: var(--r-s); margin: 0 0 1em; box-shadow: inset 0 0 0 1px var(--line-2); }
.page-head { padding-top: var(--s-5); }
@media (min-width: 900px) { .page-head { padding-top: var(--s-7); } }
.page-head .lead { color: var(--navy); font-weight: var(--bold); margin-top: var(--s-3); }
.page-head .lead-2 { color: var(--ink-2); margin-top: var(--s-2); }
.page-head div.lead { font-weight: 400; color: var(--ink-2); }
.page-head .toc { margin-top: var(--s-5); }

/* ---------- home: hero ---------- */
.hero { background: linear-gradient(var(--sky) 0, var(--sky-top) 30%, var(--sky) 100%); padding-block: var(--s-4) var(--s-7); overflow: clip; }
.hero-grid { display: grid; gap: var(--s-2); align-items: center; }
.hero-art { position: relative; width: min(200px, 54%); margin-inline: auto; padding-bottom: 6%; }
.hero-bird { position: relative; z-index: 2; width: 74%; margin-inline: auto; }
.hero-ground { position: absolute; z-index: 1; bottom: -2%; inset-inline: -18%; width: 136%; max-width: none; }
.hero-cloud { position: absolute; z-index: 0; width: 46%; opacity: .95; }
.hero-cloud-a { top: 4%; inset-inline-start: -24%; width: 42%; }
.hero-cloud-b { top: 56%; inset-inline-start: -40%; width: 30%; }
.hero-text { text-align: center; }
.hero-text .eyebrow { justify-content: center; }
.hero-title { display: grid; justify-items: center; gap: 10px; color: var(--navy); margin: var(--s-1) 0 var(--s-4); }
.hero-title .wm { width: min(58%, 230px); height: auto; }
.hero-title .tag { width: min(84%, 300px); height: auto; }
.hero .lead { margin-inline: auto; text-wrap: balance; }
.hero + .section { padding-top: var(--s-6); }
.hero .actions { justify-content: center; }
.release { display: grid; justify-items: center; gap: 0; width: fit-content; max-width: 100%; margin: var(--s-5) auto 0; padding: 12px 20px;
  background: var(--cream); border-radius: var(--r-s); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-small); line-height: 1.75; }
.release .kicker { font-size: var(--fs-meta); font-weight: var(--bold); color: var(--ink-2); }
.release b { font-size: var(--fs-body); }
.release > * { text-wrap: balance; }
.release small { font-size: var(--fs-meta); color: var(--ink-2); }
.release .next { margin-top: 2px; color: var(--navy); }
@media (min-width: 900px) {
  .hero { padding-block: var(--s-6) var(--s-7); }
  /* Hudhud on the right, facing the text (design system: he faces left in an RTL layout) */
  .hero-grid { grid-template-columns: 5fr 7fr; grid-template-areas: "art text"; gap: var(--s-7); }
  .hero-art { grid-area: art; width: 100%; max-width: 340px; }
  .hero-cloud-a { inset-inline-start: -14%; } .hero-cloud-b { inset-inline-start: -30%; }
  .hero-text { grid-area: text; text-align: start; }
  .hero-text .eyebrow { justify-content: flex-start; }
  .hero-title { justify-items: start; margin-bottom: var(--s-5); }
  .hero-title .wm { width: 300px; }
  .hero-title .tag { width: 340px; }
  .hero .lead { margin-inline: 0; }
  .hero .actions { justify-content: flex-start; }
  .release { justify-items: start; margin-inline: 0; }
}

/* ---------- niche (the Persian arch) ---------- */
.niche { position: relative; container-type: inline-size; aspect-ratio: 1 / 1.18; }
.niche-arch { position: absolute; inset: 0 0 2.4cqw; background: var(--accent);
  -webkit-mask: var(--arch) top center / 100% auto no-repeat; mask: var(--arch) top center / 100% auto no-repeat; }
.niche-shelf { position: absolute; inset-inline: 0; bottom: 2.4cqw; height: 12cqw; background: var(--shelf); }
.niche-ledge { position: absolute; inset-inline: -2.4cqw; bottom: 0; height: 2.6cqw; background: var(--ledge); border-radius: 1px; }
.niche-art { position: absolute; z-index: 2; inset-inline: 8%; bottom: 4.6cqw; height: 86%; display: flex; align-items: flex-end; justify-content: center; }
.niche-art img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }

/* ---------- home: the three promise arches (cream niches, as in the brand book) ---------- */
.promise-grid { display: grid; gap: var(--gap); }
@media (min-width: 600px) { .promise-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.promise-card { position: relative; padding: 44px 22px 28px; text-align: center; isolation: isolate; width: 100%; max-width: 440px; margin-inline: auto; }
@media (min-width: 600px) { .promise-card { max-width: none; } }
.promise-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--cream);
  -webkit-mask: var(--arch) top center / 100% auto no-repeat; mask: var(--arch) top center / 100% auto no-repeat; }
.promise-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain) 0 0 / 256px 256px; opacity: .35;
  -webkit-mask: var(--arch) top center / 100% auto no-repeat; mask: var(--arch) top center / 100% auto no-repeat; }
.promise-card img { display: block; height: 80px; width: auto; max-width: 60%; margin: 0 auto var(--s-3); object-fit: contain; }
.promise-card h3 { font-size: var(--fs-display); line-height: var(--lh-head); margin-bottom: var(--s-1); }
.promise-card p { color: var(--ink-2); max-width: 19em; margin-inline: auto; text-wrap: balance; }
@media (min-width: 600px) and (max-width: 819px) { .promise-card { padding: 40px 14px 22px; } .promise-card img { height: 64px; } }
@media (min-width: 820px) { .promise-card { padding: 64px 26px 32px; } .promise-card img { height: 100px; } }

/* ---------- an episode as a feature (home, /podcast/): the player right under the title ---------- */
.ep-feature { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: var(--s-4); row-gap: var(--s-4);
  grid-template-areas: "cover head" "player player" "about about" "actions actions"; align-items: start; }
.ep-feature-cover { grid-area: cover; display: block; }
.ep-feature-cover img { border-radius: 12px; width: 100%; }
.ep-feature-head { grid-area: head; align-self: center; min-width: 0; }
.ep-feature > .player { grid-area: player; }
.ep-feature-about { grid-area: about; }
.ep-feature > .actions { grid-area: actions; margin-top: 0; }
.ep-feature .eyebrow { margin-bottom: var(--s-1); }
@media (min-width: 700px) {
  .ep-feature { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: auto auto auto auto 1fr; column-gap: var(--s-6);
    grid-template-areas: "cover head" "cover about" "cover player" "cover actions" "cover ."; }
  .ep-feature-cover img { border-radius: var(--r-s); }
  .ep-feature-head { align-self: start; }
}
.ep-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; font-size: var(--fs-h2); line-height: 1.4; }
.ep-num { font-size: max(.58em, var(--fs-meta)); color: var(--ink-2); }
.ep-title { font-size: var(--fs-h3); font-weight: var(--bold); line-height: var(--lh-sub); margin: 2px 0 0; text-wrap: balance; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--s-3); padding: 0; list-style: none; }
.meta li { margin: 0; }
.logline { color: var(--ink-2); }
.next-line { font-size: var(--fs-small); margin: var(--s-3) 0 0; color: var(--navy); }
.ai-note { font-size: var(--fs-small); color: var(--ink-2); margin: var(--s-3) 0 0; }

/* player */
.player { background: var(--white); border-radius: var(--r-s); padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line); }
.player-native { width: 100%; }
.player-ui { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; }
.player-ui[hidden] { display: none; }
.player-play { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--navy); color: var(--cream); display: grid; place-items: center; cursor: pointer; }
.player-play svg { width: 22px; height: 22px; }
.player-play .i-pause { display: none; }
.player.playing .i-play { display: none; } .player.playing .i-pause { display: block; }
.player-track { min-width: 0; }
.player-track input { width: 100%; accent-color: var(--navy); height: 28px; margin: 0; cursor: pointer; }
.player-times { display: flex; justify-content: space-between; font-size: var(--fs-meta); color: var(--ink-2); line-height: var(--lh-ui); }
.player-speed { font: inherit; font-weight: var(--bold); font-size: var(--fs-meta); min-width: 52px; min-height: 44px; border-radius: 999px; border: 0;
  box-shadow: inset 0 0 0 1px var(--line); background: var(--cream); color: var(--navy); cursor: pointer; }
.player-dl { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); color: var(--navy); }
.player-dl svg { width: 18px; height: 18px; }
.player-wait, .player-gate { display: flex; gap: 12px; align-items: center; }
.player-wait { background: var(--sky); }
.player-wait svg, .player-gate svg { width: 40px; height: 40px; flex: none; color: var(--navy); }
.player-wait p, .player-gate p { margin: 0; font-size: var(--fs-small); line-height: 1.75; }

/* where to listen, where to follow: buttons only for what exists, one line for the rest */
.platforms { margin-top: var(--s-5); }
.platforms h2, .platforms h3 { font-size: var(--fs-body); line-height: var(--lh-ui); margin-bottom: var(--s-2); }
.platforms ul { list-style: none; padding: 0; margin: 0 0 var(--s-2); display: flex; flex-wrap: wrap; gap: 8px; }
.platforms li { margin: 0; }
.platform { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 18px; border-radius: 999px; background: var(--cream);
  box-shadow: inset 0 0 0 1px var(--line); font-weight: var(--bold); font-size: var(--fs-small); text-decoration: none; }
a.platform:hover { background: var(--white); }
.platforms .note { font-size: var(--fs-small); color: var(--ink-2); margin-bottom: var(--s-1); }
.platforms-band { background: var(--cream); border-radius: var(--r); padding: var(--s-4) var(--pad-card); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- home: the podcast's block ---------- */
.product-block { display: grid; gap: var(--s-5); }
.product-head { display: grid; gap: var(--s-2); container-type: inline-size; max-width: 46rem; }
.product-head p { color: var(--ink-2); font-size: var(--fs-lead); margin: 0; }
.product-name { margin: 0; line-height: 1; }
.product-name a { text-decoration: none; display: inline-block; }
.product-name .lockup { --h: 30px; }
@supports (width: 1cqi) { .product-name .lockup { --h: clamp(30px, 8cqi, 42px); } }
.product-block > .platforms, .product-block > .go-row { margin-top: 0; }

/* ---------- home: cast ---------- */
.cast-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (min-width: 640px) { .cast-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cast-row { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.cast-card { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; text-decoration: none;
  background: var(--cream); border-radius: var(--r); padding: 14px 12px 18px; box-shadow: inset 0 0 0 1px var(--line-2); }
.cast-card .niche { width: 100%; max-width: 190px; margin-bottom: 6px; }
.cast-card b { font-size: var(--fs-h3); line-height: var(--lh-ui); }
.cast-card .say { font-size: var(--fs-meta); line-height: 1.7; color: var(--ink-2); text-wrap: balance; }
.cast-card:hover { background: var(--white); }
@media (max-width: 639px) { .cast-card:last-child { grid-column: 1 / -1; } .cast-card:last-child .niche { max-width: 150px; } }

/* ---------- audience cards ---------- */
.who-grid { display: grid; gap: var(--gap); }
@media (min-width: 700px) { .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .who-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .who-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .who-grid > * { grid-column: span 2; } .who-grid > :nth-child(n+4) { grid-column: span 3; } .who-grid > :last-child:nth-child(odd) { grid-column: span 3; } }
.who { background: var(--cream); border-radius: var(--r); padding: var(--pad-card); box-shadow: inset 0 0 0 1px var(--line-2);
  display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; column-gap: 14px; row-gap: 4px; align-content: start; }
.who img { grid-row: 1 / span 2; grid-column: 1; height: 64px; width: auto; max-width: 64px; object-fit: contain; justify-self: center; align-self: center; }
.who .kicker { grid-column: 2; align-self: end; font-size: var(--fs-meta); font-weight: var(--bold); line-height: var(--lh-ui); color: var(--ink-2); }
.who .say { grid-column: 2; font-size: var(--fs-h3); font-weight: var(--bold); line-height: var(--lh-sub); text-wrap: balance; }
.who p { grid-column: 1 / -1; color: var(--ink-2); margin: var(--s-2) 0 0; }
.who .btn { grid-column: 1 / -1; justify-self: start; align-self: end; margin-top: var(--s-4); }

/* trust: the promise to families, and the parents' safety section */
.trust { background: var(--navy); color: var(--cream); border-radius: var(--r); padding: clamp(24px, 18px + 2.4vw, 48px); }
.trust h2 { color: var(--cream); margin-bottom: var(--s-5); }
.trust .grid > div { box-shadow: inset 0 3px 0 var(--sunshine); padding-top: 16px; }
.trust h3 { color: var(--cream); margin-bottom: 6px; }
.trust p, .trust li { color: var(--on-navy); }
.trust li::marker { color: var(--sunshine); }
.trust a { color: var(--cream); text-decoration-color: rgba(252, 246, 234, .5); }
.trust .trust-more { margin: var(--s-5) 0 0; }
.trust-text h3 { margin: var(--s-5) 0 var(--s-2); }
.trust-text .golden { font-size: var(--fs-lead); font-weight: var(--bold); color: var(--cream); margin-bottom: var(--s-4); }

/* ---------- /podcast/ ---------- */
.product-hero { padding-bottom: 0; }
.product-grid { display: grid; gap: var(--s-6); align-items: center; }
.product-text { container-type: inline-size; min-width: 0; }
.product-title { margin: var(--s-2) 0 var(--s-4); line-height: 1; }
.product-title .lockup { --h: 34px; }
@supports (width: 1cqi) { .product-title .lockup { --h: clamp(34px, 9cqi, 50px); } }
.product-hero .lead { color: var(--navy); font-weight: 400; }
.platform-name { font-size: var(--fs-small); color: var(--ink-2); margin: var(--s-2) 0 0; }
.platform-name span { font-weight: var(--bold); }
.product-hero .release { margin-inline: 0; justify-items: start; }
.product-hero .schedule { font-size: var(--fs-small); margin-top: var(--s-3); }
.product-art img { width: min(400px, 100%); margin-inline: auto; border-radius: var(--r); }
@media (min-width: 900px) { .product-grid { grid-template-columns: 7fr 5fr; gap: var(--s-7); } }
/* one column: no show cover (it would stand alone between the hero and the episode card, which has its own cover) */
@media (max-width: 899px) { .product-art { display: none; } }
#latest .platforms-band { margin-top: var(--gap); }

/* story and cast strip */
.story { display: grid; gap: var(--s-6); align-items: center; }
.story blockquote { font-size: var(--fs-lead); }
.lineup { width: 100%; }
@media (min-width: 900px) { .story { grid-template-columns: 6fr 6fr; gap: var(--s-7); } }

/* the fixed segments */
.feature { background: var(--cream); border-radius: var(--r); padding: var(--pad-card); box-shadow: inset 0 0 0 1px var(--line-2); }
.feature h3 { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s-2); }
.feature p { color: var(--ink-2); margin: 0; }
.feature p.strong { color: var(--navy); }

/* season strip of knots */
.knots { display: grid; grid-template-columns: repeat(13, 1fr); gap: 4px; align-items: end; max-width: 560px; margin: 0 0 var(--s-6); padding: 12px 14px 10px; background: var(--navy); border-radius: 12px; }
.knots img { width: 100%; height: auto; }
.knots .gold { display: none; }
.knots .done .gold { display: block; } .knots .done .grey { display: none; }
.mini { text-decoration: none; display: block; }
.mini img { border-radius: var(--r-s); width: 100%; }
.mini span { display: block; font-size: var(--fs-small); line-height: 1.7; margin-top: 8px; }

/* the season's episodes: a compact row per episode at every width, the cover as a thumbnail (a big cover would
   only repeat what the card's text says); two columns from 640px */
.ep-grid { display: grid; gap: var(--gap); }
@media (min-width: 640px) { .ep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ep-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: start; align-content: start;
  padding: 14px; background: var(--cream); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-2); }
@media (min-width: 640px) { .ep-card { grid-template-columns: 120px minmax(0, 1fr); column-gap: 18px; padding: 18px; } }
.ep-card .body { display: contents; }
.ep-card .cover { display: block; grid-column: 1; grid-row: 1 / span 4; }
.ep-card .cover img { width: 100%; border-radius: 10px; }
.ep-card .top, .ep-card h3, .ep-card h2, .ep-card .title, .ep-card .date { grid-column: 2; }
.ep-card .logline, .ep-card .ep-note, .ep-card .verse-mini, .ep-card .more { grid-column: 1 / -1; }
.ep-card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ep-card .num { font-size: var(--fs-meta); font-weight: var(--bold); line-height: var(--lh-ui); color: var(--ink-2); display: inline-flex; align-items: center; }
.ep-card h2, .ep-card h3 { font-size: var(--fs-h3); line-height: var(--lh-ui); }
.ep-card .title { font-size: var(--fs-small); font-weight: var(--bold); line-height: var(--lh-ui); margin: 0; }
.ep-card .date { font-size: var(--fs-meta); color: var(--ink-2); line-height: 1.7; margin: 0; }
.ep-card .date span, .ep-card .date small { display: block; font-size: inherit; }
.ep-card .logline { font-size: var(--fs-small); line-height: 1.8; margin: var(--s-2) 0 0; }
.ep-card .ep-note { font-size: var(--fs-meta); color: var(--ink-2); margin: 4px 0 0; }
.ep-card .verse-mini { margin: var(--s-2) 0 0; padding: 10px 14px; background: var(--white); border-radius: 12px; font-size: var(--fs-small); line-height: 1.85; box-shadow: inset 0 0 0 1px var(--line-2); }
.ep-card .verse-mini span { display: block; }
.ep-card .verse-mini small { display: block; color: var(--ink-2); font-size: var(--fs-meta); margin-top: 2px; }
.ep-card .more { padding-top: var(--s-3); }
.ep-card .more .btn { width: 100%; }

/* ---------- an episode's page ---------- */
.ep-hero { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: var(--s-4); row-gap: var(--s-4); padding-top: var(--s-4);
  grid-template-areas: "cover head" "player player" "about about" "actions actions" "toc toc"; align-items: start; }
.ep-hero .cover { grid-area: cover; }
.ep-hero .cover img { border-radius: 12px; width: 100%; }
.ep-hero-head { grid-area: head; align-self: center; min-width: 0; }
.ep-hero > .player { grid-area: player; }
.ep-hero-about { grid-area: about; }
.ep-hero > .actions { grid-area: actions; margin-top: 0; }
.ep-hero > .toc { grid-area: toc; margin: 0; }
.ep-hero .eyebrow { margin-bottom: var(--s-1); }
.ep-hero h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; }
.ep-hero .when { font-size: var(--fs-small); color: var(--ink-2); margin: 0 0 var(--s-2); }
.ep-hero .when .local { display: block; }
@media (min-width: 700px) {
  .ep-hero { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: auto auto auto auto auto 1fr; column-gap: var(--s-7);
    grid-template-areas: "cover head" "cover about" "cover player" "cover actions" "cover toc" "cover ."; padding-top: var(--s-6); }
  .ep-hero .cover img { border-radius: var(--r); }
  .ep-hero-head { align-self: start; }
}
.guide-sec { padding-top: var(--block); }
.guide-sec .intro { margin-bottom: var(--s-4); }
.guide-sec .lesson-link { margin-top: var(--s-4); }
.verse-card { position: relative; text-align: center; padding: 64px 14px 36px; isolation: isolate; color: var(--navy); max-width: 760px; margin-inline: auto; }
@media (min-width: 420px) { .verse-card { padding-inline: 22px; } }
@media (min-width: 700px) { .verse-card { padding: 110px 48px 48px; } }
.verse-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--cream);
  -webkit-mask: var(--arch) top center / 100% auto no-repeat; mask: var(--arch) top center / 100% auto no-repeat; }
.verse-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain) 0 0 / 256px 256px; opacity: .35;
  -webkit-mask: var(--arch) top center / 100% auto no-repeat; mask: var(--arch) top center / 100% auto no-repeat; }
.verse-card .eyebrow { justify-content: center; margin-top: var(--s-2); }
/* a half-line (مصراع) never breaks: at 360 px a half-line is about 265 px of the 300 available */
.verse-card .lines { font-size: clamp(17px, 3.2vw + 7px, 27px); font-weight: var(--bold); line-height: 2; margin: var(--s-2) auto var(--s-2); max-inline-size: none; }
.verse-card .lines span { display: block; text-wrap: balance; }
.verse-card .poet { color: var(--ink-2); margin-inline: auto; }
.verse-card .meaning { max-width: 30em; margin: var(--s-4) auto 0; font-size: var(--fs-small); color: var(--ink-2); text-wrap: balance; }
.verse-card .knot { width: 40px; margin: 0 auto; }
.lamp { display: grid; gap: var(--gap); margin-top: var(--gap); }
@media (min-width: 760px) { .lamp { grid-template-columns: 1fr 1fr; } }
.lamp .ar { font-size: var(--fs-display); font-weight: var(--bold); display: block; margin-bottom: 6px; }
.glance { display: grid; gap: 0; margin: 0; background: var(--white); border-radius: var(--r-s); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.glance > div { display: grid; gap: 0 18px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); }
.glance > div:last-child { border-bottom: 0; }
.glance dt { font-weight: var(--bold); font-size: var(--fs-small); }
.glance dd { margin: 0; color: var(--navy); }
/* a word list («گنجِ واژه»): the word, then its meaning */
.glossary { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.glossary dt { font-weight: var(--bold); color: var(--navy); }
.glossary dd { margin: 0; }
.glossary small { font-size: var(--fs-meta); color: var(--ink-2); }
@media (min-width: 700px) { .glance > div { grid-template-columns: 170px 1fr; } }
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: var(--s-4) 0 0; }
.toc li { margin: 0; }
.toc a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; font-weight: var(--bold); font-size: var(--fs-small); line-height: var(--lh-ui);
  padding: 6px 14px; border-radius: 999px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.toc a:hover { background: var(--white); }
.vals { display: grid; gap: var(--gap); }
@media (min-width: 760px) { .vals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .vals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.val { background: var(--cream); border-radius: var(--r-s); padding: var(--pad-card); box-shadow: inset 0 0 0 1px var(--line-2); }
.val h4 { margin-bottom: var(--s-2); }
.val p { font-size: var(--fs-small); margin: 0 0 var(--s-2); }
.val .home { color: var(--ink-2); }
.lbl { display: block; font-size: var(--fs-meta); font-weight: var(--bold); line-height: var(--lh-ui); color: var(--ink-2); margin-bottom: 2px; }
.qs { display: grid; gap: var(--gap); }
.q { background: var(--cream); border-radius: var(--r-s); padding: var(--pad-card); box-shadow: inset 0 0 0 1px var(--line-2); }
.q h3 { margin-bottom: var(--s-3); }
.q .pair { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .q .pair { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }
.q .pair div { font-size: var(--fs-small); line-height: 1.85; padding-inline-start: 14px; box-shadow: inset -3px 0 0 var(--line); }
.q .listen { margin: var(--s-3) 0 0; font-size: var(--fs-small); color: var(--ink-2); }
.fold { margin-top: var(--s-5); }
.fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--cream); border-radius: var(--r-s); padding: 12px 20px; min-height: 56px; box-shadow: inset 0 0 0 1px var(--line-2); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary :is(h2, h3) { font-size: var(--fs-h3); line-height: var(--lh-sub); }
.fold > summary::after { content: "+"; font-weight: var(--bold); font-size: 24px; line-height: 1; color: var(--ink-2); flex: none; }
.fold[open] > summary::after { content: "−"; }
.fold[open] > summary { margin-bottom: var(--s-4); }
.faq details { background: var(--cream); border-radius: var(--r-s); margin-bottom: 10px; box-shadow: inset 0 0 0 1px var(--line-2); max-width: 52rem; }
.faq summary { cursor: pointer; font-weight: var(--bold); line-height: var(--lh-sub); padding: 12px 20px; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 52px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--ink-2); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 20px 16px; }
.faq .a blockquote { padding: 0; background: none; box-shadow: none; }
.note-box { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border-radius: var(--r-s); padding: 16px 18px; margin-top: var(--s-5); box-shadow: inset 0 0 0 1px var(--line); }
.note-box img, .note-box svg { width: 30px; height: auto; flex: none; margin-top: 4px; }
.note-box p { margin: 0; }
.next-ep { max-width: 220px; }

/* tables (three columns or more stack into one card per row on a phone) */
.table-wrap { margin: 0 0 1.2em; }
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border-radius: var(--r-s); box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: var(--fs-small); line-height: 1.8; }
table:not(:has(th:nth-child(3))) { max-width: 46rem; }
th, td { text-align: start; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
th { font-weight: var(--bold); background: var(--cream); font-size: var(--fs-meta); }
thead th:first-child { border-start-start-radius: var(--r-s); } thead th:last-child { border-start-end-radius: var(--r-s); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: var(--bold); }
@media (min-width: 760px) { td:first-child, th:first-child { white-space: nowrap; } }
@media (max-width: 759px) {
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack { background: none; box-shadow: none; }
  table.stack tr { background: var(--white); border-radius: var(--r-s); box-shadow: inset 0 0 0 1px var(--line-2); margin-bottom: 10px; padding: 10px 0; }
  table.stack td { border: 0; padding: 2px 16px; font-weight: 400; }
  table.stack td[data-label]::before { content: attr(data-label) ": "; font-weight: var(--bold); color: var(--ink-2); }
  table.stack td:first-child { font-weight: var(--bold); }
  td:first-child { white-space: normal; }
}

/* ---------- characters ---------- */
.cast-hero { margin-top: var(--s-5); }
.cast-hero img { width: 100%; max-width: 980px; margin-inline: auto; }
.chars { display: grid; gap: var(--gap); }
.char { display: grid; gap: var(--s-4); align-items: center; background: var(--cream); border-radius: var(--r); padding: var(--pad-card); box-shadow: inset 0 0 0 1px var(--line-2); }
.char .niche { width: min(260px, 70%); margin: 4px auto 0; }
.char h2 { font-size: var(--fs-h2); }
.char .age { font-weight: var(--bold); color: var(--ink-2); margin: 0 0 var(--s-2); }
.char .says { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.char .says li { margin: 0; background: var(--white); border-radius: 18px 18px 18px 4px; padding: 6px 14px; font-size: var(--fs-small); line-height: var(--lh-ui); box-shadow: inset 0 0 0 1px var(--line-2); }
.char .colour { font-size: var(--fs-small); color: var(--ink-2); margin-top: var(--s-3); }
@media (min-width: 860px) { .char { grid-template-columns: 300px 1fr; gap: var(--s-7); padding: 32px 40px; } .char .niche { width: 100%; }
  .char:nth-child(even) { grid-template-columns: 1fr 300px; } .char:nth-child(even) .niche { order: 2; } }
.rules { counter-reset: r; list-style: none; padding: 0; display: grid; gap: 10px; }
.rules li { counter-increment: r; position: relative; background: var(--white); border-radius: var(--r-s); padding: 12px 16px; padding-inline-start: 58px; margin: 0;
  max-inline-size: 52rem; box-shadow: inset 0 0 0 1px var(--line-2); }
.rules li::before { content: counter(r, persian); position: absolute; inset-inline-start: 14px; top: 13px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--sunshine); font-weight: 900; display: grid; place-items: center; font-size: var(--fs-small); line-height: 1; }

/* ---------- downloads ---------- */
.dl-grid { display: grid; gap: var(--gap); }
@media (min-width: 640px) { .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .dl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dl-grid > :only-child { grid-column: 1 / -1; max-width: 760px; }
.dl { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--s-4); background: var(--cream); border-radius: var(--r); padding: var(--s-4); box-shadow: inset 0 0 0 1px var(--line-2); }
.dl-grid > .dl:only-child { grid-template-columns: 120px minmax(0, 1fr); }
.dl > div { display: flex; flex-direction: column; }
.dl > div > .btn { margin-top: auto; align-self: flex-start; }
.dl .thumb { background: var(--white); border-radius: 10px; padding: 6px; align-self: start; box-shadow: inset 0 0 0 1px var(--line-2); }
.dl .thumb img { width: 100%; border-radius: 4px; }
.dl h3 { font-size: var(--fs-body); line-height: var(--lh-sub); margin-bottom: 2px; }
.dl .fmt { font-size: var(--fs-meta); color: var(--ink-2); margin: 0 0 var(--s-2); }
.dl p { font-size: var(--fs-small); line-height: 1.8; margin: 0 0 var(--s-3); }
.dl-wide { grid-template-columns: 1fr; }
.dl h3 .ptag { margin-inline-start: 8px; padding: 1px 10px; background: var(--accent); box-shadow: none; vertical-align: 2px; }
.color-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .color-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .color-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.color-grid a { display: block; text-decoration: none; background: var(--white); border-radius: 12px; padding: 8px; box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: var(--fs-meta); line-height: var(--lh-ui); text-align: center; }
.color-grid a:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.color-grid img { width: 100%; border-radius: 4px; margin-bottom: 6px; }
.stickers { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.stickers img { width: 56px; height: 56px; }
.tips { margin: 0; }
.tips li { margin-bottom: .7em; }

/* ---------- about ---------- */
.director { font-size: var(--fs-lead); line-height: 1.85; }
.core-card p { font-size: var(--fs-lead); margin: 0; }
.worlds { display: grid; gap: var(--gap); }
@media (min-width: 860px) { .worlds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.values { display: grid; gap: var(--gap); }
@media (min-width: 700px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } .values > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .values { grid-template-columns: repeat(6, minmax(0, 1fr)); } .values > * { grid-column: span 2; }
  .values > :nth-child(n+4) { grid-column: span 3; } .values > :last-child:nth-child(odd) { grid-column: span 3; } }
.value { --bar: var(--sunshine); background: var(--white); border-radius: var(--r-s); padding: var(--s-5) var(--s-4) var(--s-4);
  box-shadow: inset 0 5px 0 var(--bar), inset 0 0 0 1px var(--line-2); }
.value:nth-child(2) { --bar: var(--turquoise); } .value:nth-child(3) { --bar: var(--coral); }
.value:nth-child(4) { --bar: var(--leaf); } .value:nth-child(5) { --bar: var(--night); }
.value h3 { margin-bottom: 4px; }
.value p { font-size: var(--fs-small); line-height: 1.8; color: var(--ink-2); }
.value .means { font-weight: var(--bold); color: var(--navy); margin-bottom: 6px; }
.isnot { width: 100%; }
.ayah { text-align: center; padding: var(--s-6) var(--s-5); max-width: 760px; margin-inline: auto; }
.ayah .eyebrow { justify-content: center; }
.ayah p { margin-inline: auto; }
.ayah [lang="ar"] { font-size: 1.3em; font-weight: var(--bold); }

/* ---------- the band at the end of a page: the episode put forward ---------- */
.next-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s-3) var(--s-4); align-items: center; }
.next-cover img { border-radius: 10px; width: 100%; }
.next-text h2 { font-size: var(--fs-h3); line-height: var(--lh-sub); }
.next-text p.muted { margin: 2px 0 0; font-size: var(--fs-small); }
.next-text .eyebrow { margin-bottom: 2px; }
.next-card > .actions { grid-column: 1 / -1; margin-top: var(--s-1); }
@media (min-width: 900px) {
  .next-card { grid-template-columns: 88px minmax(0, 1fr) auto; column-gap: var(--s-5); }
  .next-card > .actions { grid-column: auto; margin-top: 0; }
}

/* the parents' guide card */
.guide-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.guide-cover img { border-radius: 12px; width: 100%; }
.guide-card h2 { margin-bottom: var(--s-2); }
.guide-card .actions { margin-top: var(--s-4); }
@media (max-width: 559px) { .guide-card > div { grid-column: 1 / -1; } .guide-cover { width: 96px; } }
@media (min-width: 700px) { .guide-card { grid-template-columns: 220px minmax(0, 1fr); column-gap: var(--s-6); align-items: center; } .guide-cover img { border-radius: var(--r-s); } }
.places p { margin-top: var(--s-2); }

/* ---------- footer ---------- */
.band { height: 96px; background: var(--sky) url("../img/band.webp") center / auto 96px repeat-x; }
.site-foot { background: var(--navy); color: var(--cream); padding-block: var(--s-7) var(--s-6); }
.site-foot a { color: var(--cream); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-decoration-color: rgba(252, 246, 234, .6); }
.foot-grid { display: grid; gap: var(--s-6); }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 4fr 3fr 3fr 3fr; gap: var(--s-6); } .foot-brand { grid-column: auto; } }
.foot-brand svg { height: 34px; width: auto; color: var(--cream); }
.foot-brand p { margin: var(--s-3) 0 0; color: var(--on-navy); font-size: var(--fs-small); }
.site-foot h2 { font-size: var(--fs-small); line-height: var(--lh-ui); color: var(--cream); margin-bottom: var(--s-2); }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 20px; }
.site-foot ul.cols { grid-template-columns: 1fr 1fr; }
@media (min-width: 1000px) { .site-foot ul.cols { grid-template-columns: 1fr; } }
.site-foot li { margin: 0; line-height: var(--lh-ui); }
.site-foot li a { display: inline-block; padding-block: 8px; }
.foot-products li { margin-bottom: 4px; }
.foot-products a { font-weight: var(--bold); padding-bottom: 0; }
.foot-products small { display: block; font-size: var(--fs-meta); color: var(--on-navy); line-height: var(--lh-ui); text-wrap: balance; }
.site-foot p { color: var(--on-navy); font-size: var(--fs-small); }
.foot-end { margin-top: var(--s-6); padding-top: var(--s-4); box-shadow: inset 0 1px 0 rgba(252, 246, 234, .18); display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 8px 20px; font-size: var(--fs-meta); color: var(--on-navy); }
.foot-end .closing { font-weight: var(--bold); color: var(--cream); }

/* ---------- the product lockup ---------- */
/* To design-system.md › Brand and product marks. --h is the wordmark's height; its width w is 4.0824 h (the vector
   file's 6046 x 1481 box, baseline 1415 down). From the right: the wordmark, a 0.1 w gap, a 2 px navy rule at 30 %
   from 12 % to 92 % of the wordmark's height, a 0.1 w gap, then the label at 600 and 0.19 w, navy, on the wordmark's
   baseline (the line's baseline: the wordmark sits 4.46 % of its height below it, the rule's foot 3.54 % above it).
   Cream on navy or night. */
.lockup { --h: 40px; --w: calc(var(--h) * 4.0824); display: inline-block; white-space: nowrap; color: var(--navy);
  font-size: calc(var(--w) * .19); font-weight: 600; line-height: 1; }
.lockup svg { display: inline-block; height: var(--h); width: var(--w); max-width: none; vertical-align: calc(var(--h) * -.0446);
  margin-inline-end: calc(var(--w) * .1); }
.lockup-rule { display: inline-block; width: 2px; height: calc(var(--h) * .8); vertical-align: calc(var(--h) * .0354);
  background: currentColor; opacity: .3; margin-inline-end: calc(var(--w) * .1); }
.lockup-label { font-weight: 600; color: inherit; }
.site-foot .lockup, .trust .lockup { color: var(--cream); }

/* ---------- the links page (لینک‌کده) ---------- */
.links-page { padding-block: var(--s-5) 0; }
.links-col { width: 100%; max-width: 520px; margin-inline: auto; padding-inline: var(--gutter); text-align: center; }
.links-col p { margin-inline: auto; }
.links-avatar { width: 96px; height: auto; margin: 0 auto 6px; }
.links-title { display: grid; justify-items: center; gap: 8px; color: var(--navy); margin: 0 0 var(--s-3); }
.links-title .wm { width: 170px; height: auto; }
.links-title .tag { width: min(270px, 86%); height: auto; }
.links-lead { color: var(--ink-2); margin-bottom: var(--s-5); text-wrap: balance; }
.link-list { display: grid; gap: 10px; }
.links-when { margin: -2px 0 4px; font-size: var(--fs-small); color: var(--ink-2); text-wrap: balance; }
.links-when small { display: block; font-size: var(--fs-meta); }
.link-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 10px 20px;
  border-radius: 16px; background: var(--cream); color: var(--navy); text-decoration: none; font-weight: var(--bold); font-size: 1rem; line-height: var(--lh-ui);
  box-shadow: inset 0 0 0 1px var(--line); text-align: start; }
.link-btn > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.link-btn svg { width: 18px; height: 18px; flex: none; }
.link-btn:hover { background: var(--white); }
.link-btn.primary { background: var(--navy); color: var(--cream); box-shadow: none; }
.link-btn.primary:hover { background: var(--night); }
.link-btn .status { background: var(--sky); color: var(--navy); }
.links-col .platforms { text-align: start; margin-top: var(--s-6); }

/* 404 */
.lost { text-align: center; padding-top: var(--s-7); }
.lost img { width: 200px; margin: 0 auto var(--s-4); }
.lost p { margin-inline: auto; }
.lost .lead { margin-top: var(--s-3); color: var(--ink-2); }
.lost .actions, .lost .go-row { justify-content: center; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .site-head, .band, .site-foot, .player, .platforms, .actions, .next-step { display: none !important; } body { background: #fff; } }
