/*
Theme Name: AnadeA
Theme URI: https://anadeafx.com
Author: AnadeA
Description: The AnadeA community site. Persian (RTL) first, English under /en/. Reads gold by the clock.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
License: GPLv2 or later
Text Domain: anadea
*/

/* ---------- Fonts (self-hosted: they load inside Iran and during shutdowns of foreign services) ---------- */
@font-face {
	font-family: "Vazirmatn";
	src: url(assets/fonts/vazirmatn-arabic-wght-normal.woff2) format("woff2-variations"), url(assets/fonts/vazirmatn-arabic-wght-normal.woff2) format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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;
}
@font-face {
	font-family: "Vazirmatn";
	src: url(assets/fonts/vazirmatn-latin-wght-normal.woff2) format("woff2-variations"), url(assets/fonts/vazirmatn-latin-wght-normal.woff2) format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	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;
}
@font-face {
	font-family: "Literata";
	src: url(assets/fonts/literata-latin-wght-normal.woff2) format("woff2-variations"), url(assets/fonts/literata-latin-wght-normal.woff2) format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Literata";
	src: url(assets/fonts/literata-latin-wght-italic.woff2) format("woff2-variations"), url(assets/fonts/literata-latin-wght-italic.woff2) format("woff2");
	font-weight: 200 900;
	font-style: italic;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	--stone: #ECEAE6;      /* page */
	--stone-2: #DEDBD6;    /* bands */
	--paper: #FAF9F7;      /* chart card */
	--ink: #13262E;        /* body text */
	--muted: #4E5F66;      /* quiet text, 6.3:1 on stone */
	--teal: #00627E;       /* brand */
	--teal-deep: #004A60;
	--signal: #F35224;     /* the logo arrow: one accent */
	--signal-ink: #A3320E; /* orange text on light: 5.0:1 even on the darker bands */
	--navy: #081627;
	--rule: rgba(0, 98, 126, .22);
	--wrap: 1180px;
	--gut: max(16px, calc((100vw - var(--wrap)) / 2));
	--body: "Vazirmatn", Tahoma, system-ui, sans-serif;
	--display: "Vazirmatn", Tahoma, system-ui, sans-serif;
	--fs-0: 1rem;          /* 17-18px */
	--fs-1: 1.25rem;
	--fs-2: clamp(1.45rem, 1.2rem + 1vw, 1.75rem);
	--fs-3: clamp(1.75rem, 1.35rem + 1.6vw, 2.4rem);
	--fs-4: clamp(2.3rem, 1.5rem + 3.4vw, 4.1rem);
	--lh: 1.95;            /* Persian needs room */
	--lh-head: 1.35;
}
html[lang="en"] {
	--display: "Literata", Georgia, serif;
	--lh: 1.65;
	--lh-head: 1.15;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }
html[lang="en"] { font-size: 106.25%; }
body {
	margin: 0;
	background: var(--stone);
	color: var(--ink);
	font-family: var(--body);
	font-size: var(--fs-0);
	line-height: var(--lh);
	font-feature-settings: "ss01" 0;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 {
	font-family: var(--display);
	line-height: var(--lh-head);
	color: var(--teal-deep);
	margin: 0 0 .5em;
	font-weight: 800;
	text-wrap: balance;
}
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: var(--fs-4); }
h2 { font-size: var(--fs-3); }
h3 { font-size: var(--fs-2); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 32px); margin-inline: auto; padding-inline: 16px; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 10; border-radius: 4px; }
.skip-link:focus { top: 8px; }

/* ---------- Buttons (theme and editor) ---------- */
.btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: .55em 1.35em;
	border-radius: 999px; border: 2px solid transparent;
	font-family: var(--body); font-weight: 700; font-size: 1rem; line-height: 1.3;
	text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn--signal, .wp-block-button__link {
	background: var(--signal); color: var(--navy); border-color: var(--signal);
}
.btn--signal:hover, .wp-block-button__link:hover { background: #E0451A; border-color: #E0451A; color: var(--navy); text-decoration: none; }
.btn--ghost, .wp-block-button.is-ghost .wp-block-button__link {
	background: transparent; color: var(--teal-deep); border-color: var(--teal);
}
.btn--ghost:hover, .wp-block-button.is-ghost .wp-block-button__link:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn--small { min-height: 40px; padding: .35em 1.05em; font-size: .9rem; }
.wp-block-buttons, .btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 0; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; color: var(--teal); text-decoration: none; }
.wordmark { width: 150px; height: auto; overflow: visible; direction: ltr; unicode-bidi: isolate; }
.wm-word { font-family: "Literata", Georgia, serif; font-weight: 700; font-size: 50px; fill: var(--teal); letter-spacing: -.5px; }
.wm-arrow { fill: none; stroke: var(--signal); stroke-width: 5; stroke-linecap: round; }
.wm-head { fill: var(--signal); }
.site-nav .nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 22px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .94rem; font-weight: 500; padding-block: 6px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--teal); border-bottom-color: var(--rule); }
.site-nav .current-menu-item > a, .site-nav [aria-current="page"] { color: var(--teal-deep); border-bottom-color: var(--signal); }
.site-nav--wide { margin-inline-start: auto; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch { font-size: .9rem; color: var(--muted); text-decoration: none; font-weight: 600; }
.lang-switch[lang="en"] { font-family: "Literata", Georgia, serif; }
.lang-switch:hover { color: var(--teal); }
.nav-toggle { display: none; }
.nav-toggle summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--teal-deep); padding: 8px 2px; }
.nav-toggle summary::-webkit-details-marker { display: none; }
.nav-toggle summary::after { content: ""; display: inline-block; width: 14px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; margin-inline-start: 10px; vertical-align: middle; }

@media (max-width: 1020px) {
	.site-nav--wide { display: none; }
	.nav-toggle { display: block; margin-inline-start: auto; order: 2; }
	.header-actions { order: 1; margin-inline-start: auto; }
	.nav-toggle[open] { position: static; }
	.nav-toggle[open] .site-nav {
		position: absolute; inset-inline: 0; top: 76px; z-index: 5;
		background: var(--stone); border-bottom: 1px solid var(--rule); padding: 8px 16px 18px;
	}
	.nav-toggle .nav-list { flex-direction: column; gap: 0; }
	.nav-toggle .nav-list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
	.site-header { position: relative; }
}
@media (max-width: 520px) {
	.header-row { gap: 12px; }
	.wordmark { width: 118px; }
	.header-actions .btn { display: none; }
}

/* ---------- Home: full-width bands from editor groups ---------- */
.home-blocks > .wp-block-group { padding: clamp(56px, 7vw, 104px) var(--gut); margin: 0; }
.home-blocks > .wp-block-group > * { max-width: var(--wrap); margin-inline: auto; }
.home-blocks > .wp-block-group > h2 { margin-bottom: .7em; }

/* Hero */
.home-blocks > .hero { padding-top: clamp(40px, 6vw, 84px); }
.hero .wp-block-columns { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin: 0 auto; }
.hero .wp-block-column { min-width: 0; }
.hero h1 { color: var(--teal-deep); margin-bottom: .35em; }
html[lang="fa-IR"] .hero h1 { font-weight: 900; letter-spacing: -.01em; }
.hero .lead { font-size: var(--fs-1); color: var(--ink); max-width: 34em; }
@media (max-width: 860px) {
	.hero .wp-block-columns { grid-template-columns: 1fr; }
}

/* The session chart: animated once on load (candles, position tool, R ladder), static with reduced motion */
.clock-figure { margin: 0; position: relative; background: radial-gradient(120% 90% at 85% 0%, #123452 0%, #0B1D31 55%, #081627 100%); border-radius: 18px; padding: 16px 14px 12px; box-shadow: 0 24px 60px -28px rgba(8, 22, 39, .65), inset 0 0 0 1px rgba(143, 208, 230, .12); overflow: hidden; }
.r-chart { display: block; width: 100%; height: auto; font-family: var(--body); direction: ltr; unicode-bidi: isolate; }
.clock-figure figcaption { font-size: .8rem; line-height: 1.7; color: #9FB3C2; margin-top: 8px; padding-inline: 6px; }
.rc-grid { stroke: rgba(143, 208, 230, .07); stroke-width: 1; }
.rc-zone { fill: rgba(243, 82, 36, .10); stroke: rgba(243, 82, 36, .45); stroke-width: 1; stroke-dasharray: 3 3; }
.rc-zone-label { font-size: 12px; fill: #F68A68; font-weight: 700; }
.rc-mark { stroke: rgba(143, 208, 230, .28); stroke-width: 1; stroke-dasharray: 2 4; }
.rc-mark.is-main { stroke: #F35224; stroke-dasharray: none; stroke-width: 1.5; }
.rc-mark-label { font-size: 13px; fill: #8FD0E6; text-anchor: middle; font-weight: 600; }
.rc-mark-label.is-main { fill: #F35224; font-weight: 800; }
.rc-up line, .rc-up rect { stroke: #2FA3C8; fill: #2FA3C8; stroke-width: 1; }
.rc-down line { stroke: #8A9BA8; stroke-width: 1; }
.rc-down rect { fill: #0B1D31; stroke: #8A9BA8; stroke-width: 1; }
.rc-down.is-main line, .rc-down.is-main rect { stroke: #F35224; }
.rc-down.is-main rect { fill: rgba(243, 82, 36, .25); }
.rc-risk { fill: rgba(243, 82, 36, .16); }
.rc-entry { stroke: #ECEAE6; stroke-width: 1.3; }
.rc-stop { stroke: #F35224; stroke-width: 1.3; }
.rc-tag { font-size: 11px; font-weight: 700; }
.rc-tag-entry { fill: #ECEAE6; }
.rc-tag-stop { fill: #F68A68; }
.rc-entry-dot { fill: #081627; stroke: #ECEAE6; stroke-width: 2; }
.rc-ny { font-size: 11px; font-weight: 700; fill: #F68A68; }
.rc-r-line { stroke: rgba(143, 208, 230, .35); stroke-width: 1; stroke-dasharray: 4 4; }
.rc-r-pill { fill: rgba(47, 163, 200, .10); stroke: rgba(47, 163, 200, .35); stroke-width: 1; }
.rc-r-text { font-size: 13px; font-weight: 800; fill: #8FD0E6; }
.rc-risk-pill { fill: rgba(243, 82, 36, .14); stroke: rgba(243, 82, 36, .5); stroke-width: 1; }
.rc-risk-text { font-size: 11px; font-weight: 700; fill: #F68A68; }
/* reached levels (the final state; animated below) */
.rc-r .rc-r-pill { fill: #2FA3C8; stroke: #2FA3C8; }
.rc-r .rc-r-text { fill: #081627; }
.rc-r .rc-r-line { stroke: rgba(47, 163, 200, .7); }
.rc-r.is-top .rc-r-pill { fill: #F35224; stroke: #F35224; }
.rc-badge-box { fill: #F35224; }
.rc-badge-big { font-size: 25px; font-weight: 900; fill: #081627; font-family: "Literata", Georgia, serif; }
.rc-badge-sub { font-size: 10.5px; font-weight: 700; fill: #081627; }
.rc-axis { stroke: rgba(143, 208, 230, .25); stroke-width: 1; }
.rc-tick { font-size: 12px; fill: #7F95A5; }
@media (prefers-reduced-motion: no-preference) {
	.rc-c, .rc-pos, .rc-ny, .rc-badge { opacity: 0; animation: rc-in .32s var(--d) ease-out forwards; }
	.rc-c { transform-box: fill-box; transform-origin: center; animation-name: rc-candle; }
	.rc-reward { transform-box: fill-box; transform-origin: top; transform: scaleY(0); animation: rc-grow var(--dur) var(--d) cubic-bezier(.35, 0, .4, 1) forwards; }
	.rc-r .rc-r-pill { animation: rc-pill .4s var(--d) forwards; fill: rgba(47, 163, 200, .10); stroke: rgba(47, 163, 200, .35); }
	.rc-r.is-top .rc-r-pill { animation-name: rc-pill-top; fill: rgba(47, 163, 200, .10); stroke: rgba(47, 163, 200, .35); }
	.rc-r .rc-r-text { animation: rc-text .4s var(--d) forwards; fill: #8FD0E6; }
	.rc-r .rc-r-line { animation: rc-line .4s var(--d) forwards; stroke: rgba(143, 208, 230, .35); }
	.rc-badge { transform-box: fill-box; transform-origin: center; animation-name: rc-pop; animation-duration: .5s; animation-timing-function: cubic-bezier(.3, 1.6, .5, 1); }
	.rc-glow { transform-box: fill-box; transform-origin: center; animation: rc-pulse 2.2s calc(var(--d) + .5s) ease-out infinite; }
	@keyframes rc-in { to { opacity: 1; } }
	@keyframes rc-candle { from { opacity: 0; transform: scaleY(.2); } to { opacity: 1; transform: none; } }
	@keyframes rc-grow { to { transform: scaleY(1); } }
	@keyframes rc-pill { to { fill: #2FA3C8; stroke: #2FA3C8; } }
	@keyframes rc-pill-top { to { fill: #F35224; stroke: #F35224; } }
	@keyframes rc-text { to { fill: #081627; } }
	@keyframes rc-line { to { stroke: rgba(47, 163, 200, .7); } }
	@keyframes rc-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
	@keyframes rc-pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
}

/* Method: a real sequence, so it is numbered, and drawn along a line */
.home-blocks > .method { background: var(--stone-2); }
.method-steps {
	list-style: none; margin: 0 auto; padding: 0;
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px;
	counter-reset: step; position: relative;
}
.method-steps::before { content: ""; position: absolute; inset-inline: 20px 20px; top: 20px; border-top: 2px solid var(--teal); opacity: .35; }
.method-steps li { counter-increment: step; position: relative; padding-top: 58px; font-size: .95rem; line-height: 1.85; }
html[lang="en"] .method-steps li { line-height: 1.6; }
.method-steps li::before {
	content: counter(step, persian); position: absolute; top: 0; inset-inline-start: 0;
	width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
	background: var(--stone-2); border: 2px solid var(--teal); color: var(--teal-deep); font-weight: 800; font-size: 1.05rem;
}
html[lang="en"] .method-steps li::before { content: counter(step); font-family: "Literata", Georgia, serif; }
.method-steps li:last-child::before { background: var(--signal); border-color: var(--signal); color: var(--navy); }
.method-steps strong { display: block; color: var(--teal-deep); font-size: 1.1rem; margin-bottom: .2em; }
@media (max-width: 960px) {
	.method-steps { grid-template-columns: 1fr; gap: 0; max-width: 40em; }
	.method-steps::before { top: 20px; bottom: 20px; inset-inline: 20px auto; border-top: 0; border-inline-start: 2px solid var(--teal); }
	.method-steps li { padding-top: 6px; padding-inline-start: 64px; padding-bottom: 26px; }
}

/* Ladder: free -> VIP -> course, drawn as rising steps */
.ladder-steps { margin-inline: auto; }
.ladder-steps .step { margin: 0; padding: 30px 32px; border: 1px solid var(--rule); border-radius: 16px; }
.ladder-steps .step > .wp-block-group__inner-container,
.ladder-steps .step:not(:has(> .wp-block-group__inner-container)) {
	display: grid; grid-template-columns: minmax(0, 14em) minmax(0, 1fr) auto; gap: 8px 40px; align-items: center;
}
.ladder-steps .step + .step { margin-top: 14px; }
.ladder-steps .step-1 { margin-inline-end: 16%; }
.ladder-steps .step-2 { margin-inline: 8%; background: var(--stone-2); }
.ladder-steps .step-3 { margin-inline-start: 16%; background: var(--teal); border-color: var(--teal); color: #fff; }
.ladder-steps .step h3 { margin: 0; font-size: var(--fs-2); }
.ladder-steps .step p, .ladder-steps .step ul { margin: 0; font-size: .95rem; }
.ladder-steps .step ul { padding-inline-start: 1.1em; }
.ladder-steps .step .wp-block-buttons { margin: 0; justify-content: flex-end; }
.ladder-steps .step-3 h3 { color: #fff; }
.ladder-steps .step-3 .wp-block-button__link { background: #fff; border-color: #fff; color: var(--teal-deep); }
.ladder-steps .step-3 .wp-block-button__link:hover { background: var(--signal); border-color: var(--signal); color: var(--navy); }
.ladder-steps .step-1 .wp-block-button__link { background: transparent; color: var(--teal-deep); border-color: var(--teal); }
.ladder-steps .step-1 .wp-block-button__link:hover { background: var(--teal); color: #fff; }
@media (max-width: 900px) {
	.ladder-steps .step { margin-inline: 0 !important; padding: 24px 20px; }
	.ladder-steps .step > .wp-block-group__inner-container,
	.ladder-steps .step:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: 1fr; }
	.ladder-steps .step .wp-block-buttons { justify-content: flex-start; margin-top: 10px; }
}

/* AATTOM band */
.home-blocks > .bot-band { background: var(--navy); color: #D7E2E6; }
.bot-band h2 { color: #fff; }
.bot-band p { max-width: 40em; }
.bot-band .wp-block-button__link { background: transparent; color: #fff; border-color: var(--signal); }
.bot-band .wp-block-button__link:hover { background: var(--signal); color: var(--navy); }
.bot-band .bot-note { font-size: .88rem; color: #9FB3BA; }

/* About */
.home-blocks > .about .wp-block-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; margin: 0 auto; }
.about .wp-block-column p { max-width: 38em; }
@media (max-width: 760px) { .home-blocks > .about .wp-block-columns { grid-template-columns: 1fr; gap: 0; } }

/* Lessons on home */
.home-blocks > .latest { background: var(--stone-2); }

/* Risk band */
.home-blocks > .risk-band { padding-block: 28px; border-top: 1px solid var(--rule); }
.risk-band p { font-size: .85rem; color: var(--muted); margin: 0 auto; }

/* ---------- Lessons list ---------- */
.lesson-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.lesson-row { border-bottom: 1px solid var(--rule); }
.lesson-row > a { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px 0; text-decoration: none; }
.lesson-title { font-weight: 700; font-size: 1.1rem; color: var(--teal-deep); }
.lesson-row > a:hover .lesson-title { text-decoration: underline; text-decoration-thickness: 2px; }
.lesson-meta { color: var(--muted); font-size: .85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lesson-row > p { margin: -8px 0 18px; color: var(--muted); font-size: .92rem; max-width: 46em; }
.more-link { margin-top: 18px; font-weight: 700; }
.empty-note { color: var(--muted); padding: 20px 0; border-top: 1px solid var(--rule); }
.pager { display: flex; justify-content: space-between; margin-top: 28px; font-weight: 700; }


/* ---------- Lesson cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 32px 28px; }
.card { min-width: 0; }
.card-link { display: flex; flex-direction: column; gap: 14px; height: 100%; color: inherit; text-decoration: none; }
.card-cover { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 12px; overflow: hidden; background: var(--teal-deep); }
.card-cover img, .card-cover .cover-art { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.card-topic { margin: 0; font-size: .82rem; font-weight: 700; color: var(--signal-ink); }
.card-title { margin: 0; font-size: 1.2rem; line-height: 1.5; color: var(--teal-deep); }
html[lang="en"] .card-title { line-height: 1.3; font-size: 1.25rem; }
.card-link:hover .card-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.card-link:focus-visible { outline-offset: 6px; }
.card-excerpt { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html[lang="en"] .card-excerpt { line-height: 1.55; }
.card-meta { margin: auto 0 0; padding-top: 4px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.card-play { position: absolute; inset-block-end: 12px; inset-inline-start: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--signal); }
.card-play::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--navy); }
.card--featured { margin-bottom: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--rule); }
.card--featured .card-link { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px; align-items: center; }
.card--featured .card-title { font-size: var(--fs-3); line-height: var(--lh-head); }
.card--featured .card-excerpt { -webkit-line-clamp: 4; font-size: 1rem; }
.card--featured .card-meta { margin-top: 10px; justify-content: flex-start; gap: 24px; }
@media (max-width: 760px) { .card--featured .card-link { grid-template-columns: 1fr; gap: 16px; } }

/* Generated cover: the post's own little chart */
.ca-bg { fill: var(--teal-deep); }
.ca-grid { stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.ca-up line, .ca-up rect { stroke: #CFE3E9; fill: #CFE3E9; stroke-width: 1.2; }
.ca-down line { stroke: #6E97A4; stroke-width: 1.2; }
.ca-down rect { fill: var(--teal-deep); stroke: #6E97A4; stroke-width: 1.2; }
.ca-mark { stroke: var(--signal); stroke-width: 2; stroke-dasharray: 4 5; }

/* Topic filter */
.topic-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; }
.topic-bar a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 16px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; }
.topic-bar a:hover { border-color: var(--teal); color: var(--teal-deep); }
.topic-bar a[aria-current="page"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.topic-count { font-size: .78rem; opacity: .7; font-variant-numeric: tabular-nums; }
.topic-desc { max-width: 42rem; color: var(--muted); margin: -12px 0 32px; }
.pager-now { color: var(--muted); font-weight: 500; font-size: .9rem; }

/* Lesson page */
.lesson-kicker { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 12px; font-size: .88rem; color: var(--muted); }
.lesson-kicker a { color: var(--signal-ink); font-weight: 700; text-decoration: none; }
.lesson-kicker a:hover { text-decoration: underline; }
.lesson .page-title { font-size: var(--fs-3); }
.lesson-lead { font-size: var(--fs-1); color: var(--ink); margin: 16px 0 0; max-width: 40rem; }
.prose .wp-block-video, .prose .wp-block-embed { margin: 1.6em 0; }
.prose video { width: 100%; border-radius: 12px; background: var(--navy); }
.prose .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; margin: 1.4em 0; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); }
.prose .wp-block-file > a:first-child { font-weight: 700; }
.prose .wp-block-file .wp-block-file__button { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 999px; background: var(--teal); color: #fff; text-decoration: none; font-size: .9rem; font-weight: 700; margin-inline-start: auto; }
.prose .wp-block-file .wp-block-file__embed { display: none; }
.prose figure { margin: 1.6em 0; }
.prose .wp-block-image img { height: auto; }
.lesson-cta { max-width: 42rem; margin-top: 48px; padding: 28px; border-radius: 16px; background: var(--teal); color: #E3EEF1; }
.lesson-cta-title { font-family: var(--display); font-weight: 800; font-size: var(--fs-2); line-height: var(--lh-head); color: #fff; margin-bottom: .4em; }
html[lang="en"] .lesson-cta-title { font-weight: 650; }
.lesson-cta .btn-row { margin-top: 18px; }
.post-risk { max-width: 42rem; margin-top: 24px; font-size: .85rem; color: var(--muted); }
.related { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--rule); }
.related h2 { font-size: var(--fs-2); margin-bottom: 1em; }
.footer-tag { margin: 8px 0 0; color: #9FB3BA; font-size: .85rem; }
.footer-note { display: block; font-size: .75rem; color: #7F98A1; }

/* ---------- Membership form ---------- */
.join-form, .join-thanks { max-width: 40rem; margin: 1.2em 0 0; padding: 28px; border: 1px solid var(--rule); border-radius: 16px; background: var(--paper); scroll-margin-top: 24px; }
.join-form { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.join-form .field { margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.join-form .field--textarea, .join-form .join-error, .join-form .join-submit, .join-form .join-note, .join-form .field:has(#join-name), .join-form .field:has(#join-payment) { grid-column: 1 / -1; }
.join-form label { font-weight: 700; font-size: .92rem; color: var(--teal-deep); }
.join-form input, .join-form select, .join-form textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #9DB2B9; border-radius: 10px;
	background: #fff; color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.5;
}
.join-form input[dir="ltr"] { text-align: left; }
.join-form textarea { min-height: 112px; resize: vertical; }
.join-form input:focus, .join-form select:focus, .join-form textarea:focus { outline: 3px solid rgba(0, 98, 126, .25); border-color: var(--teal); }
.join-form .has-error input, .join-form .has-error select, .join-form .has-error textarea { border-color: var(--signal-ink); }
.field-hint { font-size: .8rem; color: var(--muted); }
.field-err { font-size: .82rem; color: var(--signal-ink); font-weight: 600; }
.join-error { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: rgba(243, 82, 36, .1); color: var(--signal-ink); font-weight: 700; }
.join-submit { margin: 6px 0 0; }
.join-note { margin: 0; font-size: .85rem; color: var(--muted); }
.hp { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.join-form { position: relative; }
.join-thanks-title { font-family: var(--display); font-size: var(--fs-2); font-weight: 800; color: var(--teal-deep); margin-bottom: .3em; }
.pay-list { display: grid; gap: 12px; margin: 16px 0 20px; }
.pay-row { padding: 16px 18px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline; }
.pay-row p { margin: 0; }
.pay-name { font-weight: 700; color: var(--teal-deep); }
.pay-amount { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.pay-value { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pay-value code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; background: var(--stone); padding: 4px 8px; border-radius: 6px; word-break: break-all; }
.pay-note { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); }
.copy-btn { min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--teal); background: transparent; color: var(--teal-deep); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.copy-btn:hover { background: var(--teal); color: #fff; }
.prose .join-steps li { margin-bottom: .5em; }
@media (max-width: 640px) { .join-form { grid-template-columns: 1fr; padding: 20px 16px; } .join-thanks { padding: 20px 16px; } }

/* ---------- AATTOM live signals ---------- */
.signals-page .page-head { max-width: none; }
.sig-note { max-width: 46rem; color: var(--muted); margin: 12px 0 0; font-size: .92rem; }
.bot-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 14px 18px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); font-size: .9rem; margin-bottom: 20px; }
.bot-status span { color: var(--muted); }
.bot-status b { color: var(--ink); font-variant-numeric: tabular-nums; }
.bot-dot { width: 10px; height: 10px; border-radius: 50%; background: #9AA7AC; flex: none; }
.bot-status.is-online .bot-dot { background: #1F8A5B; box-shadow: 0 0 0 4px rgba(31, 138, 91, .15); }
.bot-status.is-online strong { color: #1F6F4A; }
.bot-status.is-offline strong { color: var(--signal-ink); }
.bot-status .bot-warn { color: var(--signal-ink); font-weight: 700; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 16px 18px; border-radius: 12px; background: var(--stone-2); min-width: 0; }
.kpi p { margin: 0; }
.kpi-label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.kpi-value { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; color: var(--teal-deep); line-height: 1.4; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.kpi.is-win .kpi-value { color: #1F6F4A; }
.kpi.is-loss .kpi-value { color: var(--signal-ink); }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis .kpi:first-child { grid-column: 1 / -1; } }
.sig-small { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.eq-figure { margin: 28px 0 0; padding: 18px 18px 10px; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); }
.eq-figure figcaption { font-weight: 700; color: var(--teal-deep); margin-bottom: 8px; }
.eq-box { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; }
.eq-ticks { position: relative; grid-row: 1; grid-column: 1; min-width: 34px; }
.eq-y { position: absolute; right: 0; transform: translateY(-50%); font-size: .75rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.eq-plot { position: relative; grid-row: 1; grid-column: 2; height: clamp(200px, 30vw, 300px); touch-action: pan-y; cursor: crosshair; }
.eq-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eq-x { grid-row: 2; grid-column: 2; display: flex; justify-content: space-between; margin-top: 8px; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.eq-grid { stroke: rgba(19, 38, 46, .08); stroke-width: 1; }
.eq-zero { stroke: rgba(19, 38, 46, .35); stroke-width: 1; }
.eq-line { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.eq-area { fill: rgba(0, 98, 126, .08); }
.eq-cross { stroke: rgba(19, 38, 46, .3); stroke-width: 1; stroke-dasharray: 3 3; }
.eq-end, .eq-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 2px var(--paper); pointer-events: none; }
.eq-tip { position: absolute; z-index: 2; pointer-events: none; display: flex; flex-direction: column; gap: 0; padding: 8px 12px; border-radius: 8px; background: var(--navy); color: #fff; font-size: .78rem; line-height: 1.6; white-space: nowrap; font-variant-numeric: tabular-nums; }
.eq-tip span { color: #B9CAD0; }
.eq-tip[hidden] { display: none; }
.kpi-value, .kpi-sub, .sig-table td.num, .bot-status b { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .sig-table td.num, html[dir="rtl"] .sig-table th.num { text-align: left; }
html[dir="rtl"] .kpi-value, html[dir="rtl"] .kpi-sub { text-align: right; }
.sig-block { margin-top: 40px; }
.sig-block h2 { font-size: var(--fs-2); margin-bottom: .6em; }
.sig-block h3 { font-size: var(--fs-1); margin: 1.4em 0 .5em; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); }
.sig-table { width: 100%; border-collapse: collapse; font-size: .88rem; white-space: nowrap; }
.sig-table th { text-align: start; font-weight: 700; color: var(--muted); font-size: .8rem; padding: 10px 14px; border-bottom: 1px solid var(--rule); background: rgba(0, 98, 126, .04); }
.sig-table td { padding: 10px 14px; border-bottom: 1px solid rgba(0, 98, 126, .1); font-variant-numeric: tabular-nums; }
.sig-table tbody tr:last-child td { border-bottom: 0; }
.sig-table .num { text-align: end; }
.sig-table .is-win { color: #1F6F4A; }
.sig-table .is-loss { color: var(--signal-ink); }
.sig-table .muted, .muted { color: var(--muted); font-size: .8rem; }
.side { display: inline-block; min-width: 3.2em; padding: 1px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; text-align: center; }
.side--buy { background: rgba(31, 138, 91, .12); color: #1F6F4A; }
.side--sell { background: rgba(243, 82, 36, .12); color: var(--signal-ink); }
.sig-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.sig-two .sig-block { min-width: 0; }
@media (max-width: 860px) { .sig-two { grid-template-columns: 1fr; } }
.sig-about { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--rule); }
.prose .backtest { padding: 18px 20px; border-radius: 12px; border: 1px dashed var(--teal); background: var(--paper); }
.prose .backtest p:last-child { margin-bottom: 0; }

/* ---------- Inner pages ---------- */
.page-wrap { padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.page-head { max-width: 46rem; margin-bottom: 28px; }
.page-title { font-size: var(--fs-4); margin: 0; }
.post-date { color: var(--muted); font-size: .9rem; margin: 0 0 6px; }
.prose { max-width: 42rem; }
html[lang="en"] .prose { max-width: 40rem; }
.prose > * + h2 { margin-top: 1.6em; }
.prose h2 { font-size: var(--fs-2); }
.prose h3 { font-size: var(--fs-1); }
.prose ul, .prose ol { padding-inline-start: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--teal); }
html[lang="fa-IR"] .prose ol { list-style-type: persian; }
.prose .lead { font-size: var(--fs-1); color: var(--ink); }
.prose .wp-block-buttons + .note { margin-top: 32px; }
.prose .note { font-size: .9rem; color: var(--muted); border-inline-start: 3px solid var(--signal); padding-inline-start: 14px; }
.prose blockquote { margin: 1.4em 0; padding-inline-start: 18px; border-inline-start: 3px solid var(--teal); color: var(--teal-deep); }
.prose img { border-radius: 10px; }
.post-cover { margin: 0 0 28px; max-width: 54rem; }
.post-cover img { border-radius: 12px; }
.post-foot { max-width: 42rem; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: .88rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C3D1D6; padding: 48px 0 28px; font-size: .92rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-risk { max-width: 52em; color: #9FB3BA; font-size: .85rem; padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-risk a { color: #fff; text-decoration: underline; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.site-footer .wm-word { fill: #fff; }
.footer-head { font-family: var(--body); font-size: .85rem; font-weight: 700; color: #7F98A1; margin: 0 0 10px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-copy { margin: 36px 0 0; font-size: .8rem; color: #7F98A1; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- WordPress bits ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alignwide { max-width: 54rem; }
.wp-block-image figcaption, .wp-element-caption { font-size: .85rem; color: var(--muted); }
.wp-block-separator { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Start page (Instagram link in bio): /start/ ---------- */
.start-page { background: var(--navy); color: var(--stone); min-height: 100vh; }
.start-wrap { max-width: 460px; margin: 0 auto; padding: 40px 16px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.start-logo .wordmark { width: 170px; }
.start-logo .wm-word { fill: #2FA3C8; }
.start-title { margin: 28px 0 8px; font-size: 1.55rem; line-height: 1.5; font-weight: 800; color: #fff; }
.start-sub { margin: 0 0 28px; color: #A9B4C2; font-size: .95rem; }
.start-links { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.start-btn { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; min-height: 44px; border-radius: 14px; background: #0D2238; border: 1.5px solid #2B4560; color: var(--stone); text-decoration: none; text-align: right; }
.start-btn strong { font-size: 1.1rem; font-weight: 800; }
.start-btn span { font-size: .88rem; color: #A9B4C2; }
.start-btn:hover, .start-btn:focus-visible { border-color: #2FA3C8; }
.start-btn.is-main { background: var(--signal); border-color: var(--signal); color: var(--navy); }
.start-btn.is-main span { color: rgba(8, 22, 39, .78); }
.start-small { margin: 26px 0 6px; font-size: .9rem; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.start-small a { color: #8FD0E6; }
.start-note { margin: 0; font-size: .8rem; color: #7F8EA3; }

/* ---------- Long articles: contents, tables, author ---------- */
.prose .toc { margin: 1.6em 0; padding: 16px 20px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); }
.prose .toc summary { cursor: pointer; font-weight: 700; color: var(--teal-deep); }
.prose .toc ol { margin: 12px 0 0; }
.prose .toc li { margin-bottom: .2em; font-size: .95rem; }
.prose .toc a { text-decoration: none; }
.prose .toc a:hover { text-decoration: underline; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 90px; }
.prose .wp-block-table { margin: 1.4em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); }
.prose .wp-block-table table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.prose .wp-block-table th { text-align: start; font-weight: 700; color: var(--teal-deep); background: rgba(0, 98, 126, .06); padding: 10px 14px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.prose .wp-block-table td { padding: 9px 14px; border-bottom: 1px solid rgba(0, 98, 126, .1); vertical-align: top; }
.prose .wp-block-table tr:last-child td { border-bottom: 0; }
.prose .wp-block-table figcaption, .prose .wp-block-image figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.prose .wp-block-table figcaption { padding: 0 14px 10px; }
.prose .ltr { direction: ltr; unicode-bidi: isolate; }
.prose .key-box { padding: 16px 20px; border-radius: 12px; background: var(--paper); border: 1px solid var(--rule); border-inline-start: 4px solid var(--teal); }
.prose .key-box p:last-child { margin-bottom: 0; }
.author-box { max-width: 42rem; margin: 36px 0 0; padding: 16px 20px; border-radius: 12px; border: 1px solid var(--rule); background: var(--paper); font-size: .92rem; }
.author-box p { margin: 0; }
.author-box .author-name { font-weight: 700; color: var(--teal-deep); margin-bottom: 4px; }
.prose .wp-block-table table.has-fixed-layout { table-layout: auto; }
.prose .wp-block-table thead { border: 0; }
.prose .wp-block-table th, .prose .wp-block-table td { border: 0; border-bottom: 1px solid rgba(0, 98, 126, .12); }
.prose .wp-block-table th { border-bottom-color: var(--rule); }
.prose .wp-block-table td { min-width: 7.5em; }
.prose .wp-block-image a { display: block; cursor: zoom-in; }

/* ---------- Home: newest article bar ---------- */
.news-bar { background: var(--navy); color: #ECEAE6; border-bottom: 3px solid var(--signal); }
.news-bar a { color: inherit; text-decoration: none; }
.news-bar-row { display: flex; align-items: center; gap: 10px 20px; padding-block: 12px; }
.news-bar-tag { flex: none; padding: 4px 12px; border-radius: 999px; background: var(--signal); color: var(--navy) !important; font-size: .8rem; font-weight: 800; }
.news-bar-list { flex: 1; min-width: 0; display: flex; gap: 6px 26px; margin: 0; padding: 0; list-style: none; }
.news-bar-list li { flex: 1 1 0; min-width: 0; position: relative; padding-inline-start: 14px; }
.news-bar-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #2FA3C8; }
.news-bar-list a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-weight: 700; font-size: .9rem; line-height: 1.65; }
.news-bar-list a:hover, .news-bar-list a:focus-visible { color: #fff; text-decoration: underline; }
.news-bar-new { display: inline-block; margin-inline-end: 8px; padding: 0 7px; border-radius: 4px; background: #2FA3C8; color: var(--navy); font-size: .72rem; font-weight: 800; vertical-align: 1px; }
.news-bar-go { flex: none; font-size: .86rem; font-weight: 700; color: #8FD0E6 !important; }
@media (max-width: 860px) {
	.news-bar-row { flex-wrap: wrap; }
	.news-bar-list { order: 3; flex-basis: 100%; flex-direction: column; gap: 6px; }
	.news-bar-go { margin-inline-start: auto; }
	.news-bar-list a { display: block; white-space: nowrap; text-overflow: ellipsis; font-size: .88rem; }
}

/* Header link to the articles, with a small dot while the newest one is under ten days old */
.news-link { position: relative; font-size: .92rem; font-weight: 700; color: var(--teal-deep); text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; white-space: nowrap; }
.news-link:hover { color: var(--teal); border-bottom-color: var(--rule); }
.news-link[aria-current="page"] { border-bottom-color: var(--signal); }
.news-link.is-hot::after { content: ""; position: absolute; top: 2px; inset-inline-end: -9px; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
@media (prefers-reduced-motion: no-preference) {
	.news-link.is-hot::after { animation: news-pulse 2.4s ease-out infinite; }
	@keyframes news-pulse { 0% { box-shadow: 0 0 0 0 rgba(243,82,36,.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(243,82,36,0); } }
}
.prose .wp-block-table th { white-space: normal; min-width: 7.5em; }

/* ---------- The earlier Farachart course and how the style grew ---------- */
.evo-box { margin-block: 48px 8px; padding: clamp(22px, 4vw, 36px); border-radius: 14px; background: var(--navy); color: #ECEAE6; }
.evo-box h2 { margin-top: 0; color: #fff; font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
.evo-box p { color: #ECEAE6; }
.evo-box strong { color: #fff; }
.evo-box ol.evo-line { list-style: none; margin: 26px 0 8px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; position: relative; }
.evo-line::before { content: ""; position: absolute; inset-inline-start: 22px; inset-inline-end: calc(50% - 22px); top: 21px; height: 2px; background: linear-gradient(to left, #2FA3C8, #F35224); }
[dir="ltr"] .evo-line::before, :lang(en) .evo-line::before { background: linear-gradient(to right, #2FA3C8, #F35224); }
.evo-box .evo-step { display: block; list-style: none; margin: 0; position: relative; padding-top: 52px; padding-inline-end: 22px; }
.evo-step::before { content: ""; position: absolute; top: 12px; inset-inline-start: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); border: 3px solid #2FA3C8; }
.evo-now::before { border-color: #F35224; background: #F35224; box-shadow: 0 0 0 6px rgba(243,82,36,.18); }
.evo-when { display: block; font-size: .82rem; font-weight: 700; color: #8FD0E6; }
.evo-name { display: block; font-size: 1.35rem; margin: 2px 0 6px; }
.evo-now .evo-name { color: #F35224; }
.evo-text { display: block; font-size: .93rem; line-height: 1.85; color: #C9D3DB; }
.evo-note { font-size: .93rem; color: #C9D3DB !important; }
.evo-go { margin-bottom: 0; }
.evo-go span { display: inline-block; margin-inline-start: 6px; }
.evo-box .btn--ghost { color: #fff; border-color: #2FA3C8; }
.evo-box .btn--ghost:hover { background: #2FA3C8; color: var(--navy); }
@media (max-width: 640px) {
	.evo-box ol.evo-line { grid-template-columns: 1fr; }
	.evo-line::before { inset-inline-end: auto; inset-inline-start: 21px; top: 22px; bottom: 22px; width: 2px; height: auto; background: linear-gradient(#2FA3C8, #F35224); }
	.evo-box .evo-step { padding-top: 8px; padding-inline-start: 52px; padding-bottom: 18px; }
	.evo-step::before { top: 10px; }
}

/* ---------- The members' course: stats, chapter map (home band), curriculum (community page) ---------- */
.course-stats { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.course-stats li { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--rule); }
.course-stats strong { display: block; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.1; color: var(--teal-deep); font-weight: 900; }
.course-stats li:first-child strong { color: var(--signal-ink); }
.course-stats span { display: block; margin-top: 4px; font-size: .86rem; color: var(--muted); font-weight: 600; }
@media (max-width: 640px) { .course-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.home-blocks > .course-band { background: var(--stone-2); }
.course-kicker { margin: 0 0 6px; font-size: .85rem; font-weight: 800; color: var(--signal-ink); letter-spacing: .02em; }
.course-band h2 { margin-top: 0; color: var(--teal-deep); }
.course-lead { max-width: 44em; }
.course-map { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.course-map li { margin: 0; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-rows: auto 6px; align-items: center; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid rgba(19, 38, 46, .1); }
.cm-n { grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-deep); color: #fff; font-size: .82rem; font-weight: 800; }
.cm-t { grid-column: 2; grid-row: 1; font-weight: 700; font-size: .95rem; min-width: 0; }
.cm-len { grid-column: 3; grid-row: 1; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.cm-bar { grid-column: 2 / span 2; grid-row: 2; height: 6px; border-radius: 3px; background: linear-gradient(to left, var(--teal), #2FA3C8); width: var(--w); }
:lang(en) .cm-bar { background: linear-gradient(to right, var(--teal), #2FA3C8); }
.course-map li:nth-child(7) .cm-bar { background: var(--signal); }
.course-map li:nth-child(7) .cm-n { background: var(--signal); color: var(--navy); }
.course-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 760px) { .course-map { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.course-map .cm-bar { transform-origin: right; animation: cm-grow linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
		:lang(en) .course-map .cm-bar { transform-origin: left; }
		@keyframes cm-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
	}
}

.course-full { margin-block: 40px; }
.course-ch { margin: 0 0 10px; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); overflow: hidden; }
.course-ch[open] { border-color: rgba(0, 98, 126, .35); }
.course-ch summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 18px; }
.course-ch summary::-webkit-details-marker { display: none; }
.course-ch summary::after { content: "+"; grid-column: 3; grid-row: 1; justify-self: end; font-size: 1.3rem; font-weight: 700; color: var(--teal); line-height: 1; }
.course-ch[open] summary::after { content: "−"; }
.ch-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-deep); color: #fff; font-weight: 800; font-size: .9rem; }
.ch-t { font-weight: 800; color: var(--teal-deep); font-size: 1.02rem; }
.ch-meta { grid-column: 2; font-size: .82rem; color: var(--muted); font-weight: 600; margin-top: -8px; }
.prose .ch-list, .ch-list { list-style: none; margin: 0; padding: 0 18px 10px; border-top: 1px solid var(--rule); }
.ch-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; margin: 0; padding: 10px 0; border-bottom: 1px dashed var(--rule); font-size: .95rem; line-height: 1.7; }
.ch-list li:last-child { border-bottom: 0; }
.v-n { text-align: center; color: var(--muted); font-size: .85rem; font-weight: 700; }
.v-len { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.v-tag { display: inline-block; margin-inline-start: 6px; padding: 0 8px; border-radius: 999px; background: rgba(243, 82, 36, .12); color: var(--signal-ink); font-size: .74rem; font-weight: 800; vertical-align: 1px; }
.course-note { margin-top: 18px; }


/* ---------- Home: scroll story (inc/story.php, parts/story.svg) ---------- */
.home-blocks > .story, .story { position: relative; background: radial-gradient(120% 80% at 85% 0%, #123452 0%, #0B1D31 55%, #081627 100%); color: #ECEAE6; padding: 0; margin: 0; max-width: none; }
.story-pin { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(40px, 6vw, 84px) var(--gut); max-width: none; }
html[dir="rtl"] .story-pin { direction: rtl; }
.story-stage { grid-column: 2; grid-row: 1; position: relative; }
.story-text { grid-column: 1; grid-row: 1; position: relative; }
.story-svg { display: block; width: 100%; height: auto; overflow: visible; direction: ltr; }
.story-note { font-size: .85rem; color: #7F8EA3; margin: 10px 0 0; }
.story-kicker { color: #F35224; font-weight: 800; font-size: .95rem; margin: 0 0 .5em; letter-spacing: .02em; }
.story-h { color: #fff; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem); line-height: 1.15; margin: 0 0 .45em; }
h1.story-h { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.4rem); }
html[lang="fa-IR"] .story-h { font-weight: 900; line-height: 1.35; }
.story-p { font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); line-height: 1.85; color: #C9D1DB; margin: 0; max-width: 30em; }
.story-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 0; }
.story-ghost { border: 2px solid #2FA3C8; color: #ECEAE6; background: transparent; }
.story-ghost:hover { background: #2FA3C8; color: #081627; text-decoration: none; }
.story-step + .story-step { margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(143,208,230,.14); }
.story-hint, .story-skip, .story-bar { display: none; }
/* chart scene */
.story-svg .g-grid { stroke: rgba(143,208,230,.08); stroke-width: 1; }
.story-svg .cd line { stroke-width: 2; }
.story-svg .cd.up line, .story-svg .cd.up rect { stroke: #2FA3C8; fill: #2FA3C8; }
.story-svg .cd.dn line { stroke: #6E7F94; } .story-svg .cd.dn rect { fill: #6E7F94; stroke: #6E7F94; }
.story-svg .cd.key line, .story-svg .cd.key rect { stroke: #F35224; fill: #F35224; }
.story-svg .zone { fill: rgba(47,163,200,.16); stroke: #2FA3C8; stroke-width: 2; stroke-dasharray: 8 7; }
.story-svg .liq { stroke: #F35224; stroke-width: 3; stroke-dasharray: 10 8; }
.story-svg .xm { fill: #F35224; font: 900 26px var(--body); }
.story-svg .tline { stroke: #F35224; stroke-width: 2; stroke-dasharray: 6 6; }
.story-svg .tpill { fill: #F35224; }
.story-svg .sweepdot { fill: none; stroke: #F35224; stroke-width: 3; }
.story-svg .entry { stroke: #ECEAE6; stroke-width: 2; stroke-dasharray: 8 6; }
.story-svg .stop { stroke: #F35224; stroke-width: 2; stroke-dasharray: 8 6; }
.story-svg .rung line { stroke: rgba(47,163,200,.5); stroke-width: 2; stroke-dasharray: 4 6; }
.story-svg .rung rect { fill: #0D2238; stroke: #2FA3C8; stroke-width: 2; }
.story-svg .rung text { fill: #8FD0E6; font: 800 15px var(--body); }
.story-svg .lab { font: 700 var(--ls, 24px) var(--body); fill: #C9D1DB; }
.story-tall { display: none; }
.story-svg .lab-zone { fill: #8FD0E6; } .story-svg .lab-liq, .story-svg .lab-sweep, .story-svg .lab-stop { fill: #F35224; }
.story-svg .lab-time { fill: #081627; font-weight: 900; font-size: 20px; }
.story-svg .bar-t { fill: #7C5414; font: 800 22px "Literata", Georgia, serif; letter-spacing: 2px; }
.story:not(.is-live) .s-bar { display: none; }

/* live mode: pinned scene, steps change with the scroll */
.story.is-live { height: calc(var(--steps) * 78vh + 100vh); height: calc(var(--steps) * 78svh + 100svh); }
.story.is-live .story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding-block: 0; overflow: hidden; }
.story.is-live .story-step { position: absolute; inset-inline: 0; top: 50%; transform: translateY(-40%); opacity: 0; visibility: hidden; transition: opacity .12s ease, transform .12s ease, visibility 0s .12s; margin: 0; padding: 0; border: 0; }
.story.is-live .story-step.on { opacity: 1; visibility: visible; transform: translateY(-50%); transition: opacity .4s ease .12s, transform .4s ease .12s; }
.story.is-live .story-text { height: 100%; }
.story.is-live [data-at], .story.is-live [data-until] { opacity: 0; transition: opacity .35s ease, transform .35s ease; }
.story.is-live .cd[data-at] { transform: translateY(6px); }
.story.is-live [data-at].on, .story.is-live [data-until].on { opacity: 1; transform: none; }
.story.is-live .rung.on rect { fill: #2FA3C8; } .story.is-live .rung.on text { fill: #081627; }
.story.is-live .story-bar { display: block; position: absolute; top: 0; inset-inline: 0; height: 4px; background: rgba(143,208,230,.12); z-index: 2; }
.story.is-live .story-bar i { display: block; height: 100%; background: #F35224; transform: scaleX(0); transform-origin: right; }
html[dir="ltr"] .story.is-live .story-bar i { transform-origin: left; }
.story.is-live .story-hint { display: flex; align-items: center; gap: 12px; margin: 1.6em 0 0; color: #8FD0E6; font-weight: 700; }
.story.is-live .story-hint b { width: 22px; height: 34px; border: 2px solid #8FD0E6; border-radius: 12px; position: relative; }
.story.is-live .story-hint b::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #F35224; animation: story-wheel 1.6s infinite; }
@keyframes story-wheel { 0% { opacity: 1; transform: translateY(0); } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }
.story.is-live .story-skip { display: block; position: absolute; top: 14px; inset-inline-start: var(--gut); font-size: .85rem; color: #8FD0E6; opacity: .8; z-index: 2; }
.story.is-live .s-bar .shine { animation: story-shine 2.6s ease-in-out infinite; }
@keyframes story-shine { 0% { transform: translateX(0) skewX(-20deg); } 60%, 100% { transform: translateX(340px) skewX(-20deg); } }

@media (max-width: 860px) {
	.story-wide { display: none; } .story-tall { display: block; }
	.story-pin { grid-template-columns: 1fr; gap: 20px; }
	.story-stage, .story-text { grid-column: 1; }
	.story-stage { grid-row: 1; } .story-text { grid-row: 2; }
	.story.is-live .story-pin { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; padding-top: 40px; gap: 4px; }
	.story.is-live .story-stage { flex: none; height: 46svh; height: 46vh; display: flex; flex-direction: column; align-items: center; }
	.story.is-live .story-tall { height: calc(100% - 22px); width: auto; max-width: 100%; }
	.story.is-live .story-text { flex: 1; height: auto; }
	.story.is-live .story-step { top: 8px; transform: translateY(14px); }
	.story.is-live .story-step.on { transform: none; }
	.story-svg .rung text { font-size: 20px; }
	.story-note { font-size: .75rem; margin-top: 4px; text-align: center; }
	.story-h { font-size: 1.9rem; } h1.story-h { font-size: 2.3rem; }
	.story-p { font-size: 1.02rem; line-height: 1.75; }
	.story-cta { gap: 8px; margin-top: .9em; }
	.story-cta .btn { flex: 1 1 40%; text-align: center; padding: .65em .6em; font-size: .92rem; }
	.story-cta .btn:first-child { flex-basis: 100%; }
	.story.is-live .story-hint { margin-top: 1em; }
}
@media (prefers-reduced-motion: reduce) {
	.story [data-at], .story [data-until], .story-step { transition: none !important; }
}

@media (max-width: 600px) {
	.prose .wp-block-table th, .prose .wp-block-table td { padding: 8px 9px; font-size: .82rem; }
	.prose .wp-block-table th { white-space: normal; }
}
.story:not(.is-live) .story-stage { align-self: start; position: sticky; top: 24px; }
.story:not(.is-live) .story-text { align-self: start; }
@media (max-width: 860px) { .story:not(.is-live) .story-stage { position: static; } }
@media (max-width: 860px) and (max-height: 760px) {
	.story.is-live .story-pin { padding-top: 34px; }
	.story.is-live .story-stage { height: 36vh; height: 36svh; }
	.story-note { display: none; }
	.story-h { font-size: 1.6rem; } h1.story-h { font-size: 1.95rem; }
	.story-p { font-size: .95rem; line-height: 1.65; }
	.story-kicker { margin-bottom: .3em; }
	.story-cta .btn { padding-block: .55em; }
}
