/* ══════════════════════════════════════════════════════════
   نورولینگو — بخش‌های تازه (پاییز ۱۴۰۵)

   ایده: سایت مثلِ یک «مقاله» خوانده می‌شود، چون مخاطب پژوهشگرِ جوان
   است و زبانِ مقاله زبانِ خودش است. صفحهٔ اول عنوان و چکیده و
   کلیدواژه دارد؛ ویژگی‌ها «یافته‌ها»یند؛ اشتراک‌ها کارتِ امانتِ
   کتابخانه‌اند (مدتِ امانت، ظرفیت، جای مهر)؛ بسته‌ها کتاب‌هایی روی
   قفسه؛ دانلود «پیوست»؛ و پرسش‌ها «پانویس».

   پالت همان styles.css است؛ اینجا فقط مؤلفه‌های تازه.
   ══════════════════════════════════════════════════════════ */

/* ── نوار بالا: چسبان و با حساب ─────────────────────────── */

.topbar-sticky {
	position: sticky;
	top: 0;
	z-index: 100;
	max-width: none;
	padding: 12px max(22px, calc((100% - 1120px) / 2 + 22px));
	background: rgba(14, 21, 19, .82);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-block-end: 1px solid var(--line-ink);
}

.topnav a[aria-current="page"] { color: var(--color-text); background: rgba(233, 230, 219, .07); }

.acct {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--color-text-dim);
	border: 1px solid var(--line-ink);
	border-radius: 12px;
	padding: 6px 6px 6px 12px;
}
.acct[hidden] { display: none; }
.acct-phone { color: var(--color-text); }
.acct-out {
	font: inherit;
	color: var(--color-text-dim);
	background: rgba(233, 230, 219, .06);
	border: 0;
	border-radius: 8px;
	padding: 6px 10px;
	min-height: 32px;
	cursor: pointer;
}
.acct-out:hover { color: var(--color-text); }

@media (max-width: 720px) {
	.topnav a:not(.topnav-cta) { display: none; }
	/* روی گوشی حساب در پنجرهٔ خرید پیداست؛ نوارِ بالا فقط نام و دانلود */
	.acct { display: none !important; }
}

/* ── هیرو: صفحهٔ عنوانِ مقاله ──────────────────────────── */

/* متن سمتِ راست، یادداشتِ کاغذی در حاشیهٔ چپ */
.hero .hero-inner { width: 100%; }

.hero-eyebrow {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	font-size: 13.5px;
	letter-spacing: .02em;
	color: var(--color-text-dim);
	margin: 0 0 18px;
	padding: 5px 12px;
	border: 1px dashed rgba(147, 168, 164, .35);
	border-radius: 6px;
}
.hero-eyebrow b { color: var(--color-brand-teal-soft); font-weight: 600; }

.keywords {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 8px;
	align-items: baseline;
	margin: -12px 0 32px;
	font-size: 14px;
	color: var(--color-text-dim);
}
.keywords dt { font-weight: 700; color: var(--color-text); margin-inline-end: 4px; }
.keywords dd { margin: 0; }
.keywords dd + dd::before { content: "· "; color: var(--color-brand-teal); }

/* یادداشتِ حاشیه — دست‌نوشتهٔ کجِ کنارِ چکیده */
.margin-note {
	position: absolute;
	inset-inline-end: max(22px, calc((100% - 1120px) / 2 + 22px));
	top: 50%;
	width: min(330px, 34vw);
	transform: translateY(-50%) rotate(1.6deg);
	background: var(--color-paper);
	color: var(--color-text-on-paper);
	border-radius: 4px 4px 18px 4px;
	padding: 22px 24px 20px;
	box-shadow: 0 30px 60px -26px rgba(0, 0, 0, .85);
	font-size: 15px;
	line-height: 2.05;
	z-index: 2;
}
.margin-note::before {   /* چسبِ کاغذی */
	content: "";
	position: absolute;
	top: -12px;
	inset-inline-start: 38%;
	width: 86px;
	height: 24px;
	background: rgba(91, 192, 192, .5);
	transform: rotate(-4deg);
}
.margin-note h2 {
	font-size: 13px;
	letter-spacing: .14em;
	color: var(--color-book-red);
	margin: 0 0 8px;
	font-family: var(--font-body);
	font-weight: 700;
}
.margin-note p { margin: 0; }
.margin-note .en-line {
	display: block;
	direction: ltr;
	text-align: left;
	color: var(--color-text-on-paper-dim);
	font-size: 14px;
	margin-bottom: 6px;
	border-inline-start: 0;
}
.margin-note .en-line mark {
	background: linear-gradient(to top, rgba(63, 163, 166, .35) 0 45%, transparent 45%);
	color: inherit;
}

@media (max-width: 900px) {
	.hero { flex-direction: column; justify-content: center; }
	.hero-eyebrow { flex-wrap: wrap; justify-content: center; }
	.margin-note {
		position: relative;
		inset: auto;
		transform: rotate(1deg);
		width: auto;
		max-width: 420px;
		margin: 44px auto 0;
		text-align: start;
	}
	.keywords { justify-content: center; }
}

/* ── یافته‌ها ───────────────────────────────────────────── */

.findings {
	list-style: none;
	margin: 44px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: 0;
	border-block-start: 1px solid var(--line-ink);
	counter-reset: finding;
}

.finding {
	counter-increment: finding;
	padding: 26px 4px 28px 24px;
	border-block-end: 1px solid var(--line-ink);
	position: relative;
}
.finding::before {
	content: "یافتهٔ " counter(finding, persian);
	display: block;
	font-size: 12.5px;
	letter-spacing: .08em;
	color: var(--color-brand-teal);
	margin-bottom: 8px;
}
.finding h3 { font-size: 20px; margin-bottom: 8px; }
.finding p { margin: 0; color: var(--color-text-dim); font-size: 15.5px; line-height: 2.05; }

/* ── کارتِ امانت (اشتراک) ───────────────────────────────── */

.band-loans { background: var(--color-ink); }

.loans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
	gap: 22px;
	margin-top: 44px;
	align-items: stretch;
}

.loan {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #f3ead2;
	color: var(--color-text-on-paper);
	border-radius: 4px;
	padding: 18px 20px 22px;
	/* خط‌های کارتِ امانت */
	background-image:
		linear-gradient(to left, transparent 0 calc(100% - 2px), rgba(200, 69, 47, .35) calc(100% - 2px)),
		repeating-linear-gradient(to bottom, transparent 0 33px, rgba(47, 139, 147, .18) 33px 34px);
	background-size: 100% 100%, 100% 100%;
	box-shadow: 0 26px 50px -28px rgba(0, 0, 0, .9);
	transform: rotate(var(--tilt, 0deg));
	transition: transform .45s var(--ease-out-back), box-shadow .45s var(--ease-soft);
}
.loan:hover { transform: rotate(0deg) translateY(-6px); box-shadow: 0 34px 60px -26px rgba(0, 0, 0, .95); }
.loan::after {   /* سوراخِ بالای کارت، برای جیبِ کتاب */
	content: "";
	position: absolute;
	top: 10px;
	inset-inline-end: 14px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--color-ink);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6);
}

.loan-head { display: flex; align-items: center; gap: 10px; min-height: 30px; margin-bottom: 6px; }
.loan-no { font-size: 12px; letter-spacing: .1em; color: var(--color-text-on-paper-dim); }
.loan-stamp {
	font-family: var(--font-display);
	font-size: 13px;
	color: var(--color-book-red);
	border: 2px solid currentColor;
	border-radius: 6px;
	padding: 1px 9px;
	transform: rotate(-7deg);
	opacity: .85;
	margin-inline-end: 22px;
}
.loan-title { font-size: 26px; font-weight: 800; color: var(--color-text-on-paper); }
.loan-who { font-size: 14.5px; line-height: 1.95; color: #4b5a56; margin: 4px 0 14px; min-height: 3.9em; }

.loan-rows { margin: 0 0 16px; }
.loan-rows div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14.5px;
	line-height: 34px;
}
.loan-rows dt { color: var(--color-text-on-paper-dim); }
.loan-rows dd { margin: 0; font-weight: 600; text-align: end; }

.loan-price { margin: auto 0 14px; font-size: 15px; color: var(--color-text-on-paper-dim); }
.loan-price b { font-family: var(--font-display); font-size: 28px; color: var(--color-text-on-paper); margin-inline-end: 4px; }

.loan-featured { background-color: #f7efd9; outline: 2px solid var(--color-brand-teal-deep); outline-offset: 4px; }

.loans-note { margin-top: 30px; font-size: 14.5px; color: var(--color-text-dim); max-width: 70ch; }
.loans-note a { color: var(--color-brand-teal-soft); }

.free-tier {
	margin-top: 26px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
	padding: 16px 20px;
	border: 1px dashed rgba(63, 163, 166, .4);
	border-radius: 14px;
	color: var(--color-text-dim);
	font-size: 15px;
}
.free-tier b { color: var(--color-text); }

/* ── قفسهٔ بسته‌ها ──────────────────────────────────────── */

.shelf {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
	gap: 26px 30px;
	margin-top: 40px;
	position: relative;
}

.tome {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 20px;
	padding-block-end: 22px;
	border-block-end: 10px solid #d8cba9;   /* تختهٔ قفسه */
	box-shadow: 0 12px 14px -12px rgba(27, 42, 40, .4);
}
.tome-cover {
	aspect-ratio: 18 / 25;
	border-radius: 3px 8px 8px 3px;
	overflow: hidden;
	background: var(--spine);
	box-shadow: inset 7px 0 0 rgba(0, 0, 0, .18), 0 14px 22px -12px rgba(0, 0, 0, .5);
	display: grid;
	place-items: center;
	transform: rotate(-1.5deg);
	transition: transform .4s var(--ease-out-back);
}
.tome:hover .tome-cover { transform: rotate(0) translateY(-4px); }
.tome-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tome-cover-text {
	color: #fbf3df;
	font-size: 12.5px;
	line-height: 1.5;
	padding: 10px;
	text-align: center;
	font-weight: 600;
}
.tome-title { font-size: 20px; color: var(--color-text-on-paper); line-height: 1.6; }
.tome-en { margin: 2px 0 0; font-size: 13.5px; color: var(--color-text-on-paper-dim); text-align: right; }
.tome-author { margin: 4px 0 0; font-size: 14px; color: var(--color-text-on-paper-dim); }
.tome-desc { margin: 8px 0 0; font-size: 14.5px; line-height: 1.95; color: #3d4a47; }
.tome-meta { margin: 8px 0 0; font-size: 13px; color: var(--color-text-on-paper-dim); }
.tome-meta b { color: var(--color-brand-teal-deep); }
.tome-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.tome-price { font-size: 14px; color: var(--color-text-on-paper-dim); }
.tome-price b { font-family: var(--font-display); font-size: 22px; color: var(--color-text-on-paper); }
.tome-owned { font-size: 14px; color: var(--color-brand-teal-deep); font-weight: 600; }
.band-package .btn-quiet, .page-paper .btn-quiet { background: var(--color-ink); color: var(--color-paper); }
.band-package .btn-quiet:hover, .page-paper .btn-quiet:hover { background: #1e302c; }

.shop-empty { color: var(--color-text-on-paper-dim); font-size: 15px; grid-column: 1 / -1; }
.band-loans .shop-empty { color: var(--color-text-dim); }
.shop-empty a { color: inherit; }

.shelf-more { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.link-arrow {
	font-weight: 700;
	text-decoration: none;
	color: var(--color-brand-teal-deep);
	border-block-end: 2px solid currentColor;
	padding-block-end: 2px;
}
.band-loans .link-arrow, .band-download .link-arrow { color: var(--color-brand-teal-soft); }

/* ── پیوست: دانلود ─────────────────────────────────────── */

.plat-meta { margin: -8px 0 16px; font-size: 13.5px; color: var(--color-text-dim); line-height: 1.9; }
.plat-stores { display: grid; gap: 10px; }
.store-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 52px;
	padding: 12px 18px;
	border-radius: 14px;
	border: 1px solid var(--line-ink);
	background: rgba(8, 13, 12, .55);
	color: var(--color-text);
	text-decoration: none;
	font-weight: 600;
	transition: border-color .25s var(--ease-soft), background .25s var(--ease-soft), transform .3s var(--ease-out-back);
}
.store-btn:hover { border-color: rgba(63, 163, 166, .55); background: rgba(63, 163, 166, .1); transform: translateY(-2px); }
.store-btn small { font-weight: 400; color: var(--color-text-dim); font-size: 12.5px; }
.store-btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.release-notes { margin: 30px 0 0; padding: 0; list-style: none; }
.release-notes li { position: relative; padding-inline-start: 18px; color: var(--color-text-dim); font-size: 15px; line-height: 2.1; }
.release-notes li::before { content: ""; position: absolute; inset-inline-start: 0; top: .95em; width: 7px; height: 7px; border-radius: 50%; background: var(--color-brand-teal); }

/* ── پانویس‌ها (پرسش‌ها) ─────────────────────────────────── */

.band-notes { background: var(--color-ink); padding-block: 80px 90px; }
.footnotes { margin-top: 26px; border-block-start: 1px solid var(--line-ink); counter-reset: fn; }
.footnotes details { border-block-end: 1px solid var(--line-ink); counter-increment: fn; }
.footnotes summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	gap: 14px;
	align-items: baseline;
	padding: 18px 2px;
	font-size: 17px;
	font-weight: 600;
	min-height: 44px;
}
.footnotes summary::-webkit-details-marker { display: none; }
.footnotes summary::before {
	content: counter(fn, persian);
	font-size: 12px;
	color: var(--color-brand-teal);
	vertical-align: super;
	min-width: 1.2em;
}
.footnotes summary::after {
	content: "+";
	margin-inline-start: auto;
	color: var(--color-text-dim);
	transition: transform .3s var(--ease-soft);
}
.footnotes details[open] summary::after { transform: rotate(45deg); }
.footnotes details p { margin: 0 0 20px; padding-inline-start: 2em; color: var(--color-text-dim); font-size: 15.5px; line-height: 2.1; max-width: 70ch; }

/* ── صفحه‌های فرعی (اشتراک، بسته‌ها، دانلود) ─────────────── */

.page-head { padding-block: 64px 10px; }
.page-head .lead { margin-bottom: 0; }
.page-paper {
	background: linear-gradient(to bottom, #f6f1e4, #efe7d5);
	color: var(--color-text-on-paper);
	padding-block: 70px 96px;
}
.page-paper .h-sec { color: var(--color-text-on-paper); }
.page-paper .lead { color: var(--color-text-on-paper-dim); }
.steps {
	list-style: none;
	margin: 46px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 18px;
	counter-reset: st;
}
.steps li {
	counter-increment: st;
	padding: 18px 18px 20px;
	border-radius: 14px;
	background: var(--color-ink-raised);
	border: 1px solid var(--line-ink);
	font-size: 15px;
	line-height: 2;
	color: var(--color-text-dim);
}
.steps li::before {
	content: counter(st, persian);
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(63, 163, 166, .16);
	color: var(--color-brand-teal-soft);
	font-weight: 700;
	margin-bottom: 8px;
}
.steps b { color: var(--color-text); }

/* ── پنجرهٔ خرید («صندوق») ──────────────────────────────── */

.till {
	width: min(440px, calc(100vw - 32px));
	max-height: calc(100dvh - 32px);
	overflow: auto;
	border: 0;
	border-radius: 20px;
	padding: 10px 24px 26px;
	background: var(--color-paper);
	color: var(--color-text-on-paper);
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
	font-family: var(--font-body);
}
.till::backdrop { background: rgba(5, 9, 8, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.till[open] { animation: till-in .32s var(--ease-out-back); }
@keyframes till-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }

.till-close-row { display: flex; justify-content: flex-end; margin: 0 -12px 0 0; }
.till-x {
	width: 44px;
	height: 44px;
	border: 0;
	background: none;
	font-size: 26px;
	color: var(--color-text-on-paper-dim);
	cursor: pointer;
	border-radius: 12px;
}
.till-x:hover { background: rgba(27, 42, 40, .07); }
.till-what { margin: 0; font-size: 13px; color: var(--color-text-on-paper-dim); }
.till-title { font-size: 24px; color: var(--color-text-on-paper); margin: 2px 0 16px; }

.till-form { display: grid; gap: 10px; }
.till-form label { font-size: 14px; line-height: 1.9; color: #44524f; }
.till-form input {
	font: inherit;
	font-size: 18px;
	padding: 13px 14px;
	min-height: 50px;
	border-radius: 12px;
	border: 1.5px solid rgba(27, 42, 40, .2);
	background: #fffdf7;
	color: var(--color-text-on-paper);
	text-align: center;
	letter-spacing: .04em;
}
.till-form input:focus { outline: none; border-color: var(--color-brand-teal-deep); box-shadow: 0 0 0 3px rgba(47, 139, 147, .2); }
.till-code { font-size: 28px !important; letter-spacing: .5em !important; }
.till-form .btn { margin-top: 6px; }
.till-status { margin: 4px 0 0; font-size: 14px; line-height: 1.9; color: var(--color-brand-teal-deep); min-height: 1.9em; }
.till-status.is-error { color: #b23a26; }
.till-link { font: inherit; font-size: 13.5px; background: none; border: 0; color: var(--color-text-on-paper-dim); text-decoration: underline; cursor: pointer; padding: 8px; justify-self: center; }

.till-amount {
	display: grid;
	justify-items: center;
	gap: 2px;
	padding: 18px 14px;
	border-radius: 16px;
	background: #fffdf7;
	border: 1.5px dashed rgba(47, 139, 147, .5);
}
.till-amount-label { font-size: 13px; color: var(--color-text-on-paper-dim); }
.till-amount-num { font-family: var(--font-display); font-size: clamp(36px, 9vw, 46px); line-height: 1.35; color: var(--color-text-on-paper); }
.till-amount-unit { font-size: 14px; color: var(--color-text-on-paper-dim); margin-top: -4px; }
.till-why { font-size: 13.5px; line-height: 1.95; color: #4b5a56; margin: 10px 2px 14px; }

.till-card {
	display: grid;
	gap: 4px;
	padding: 18px 18px 14px;
	border-radius: 16px;
	background: linear-gradient(140deg, #14303a, #0e1f22);
	color: #e9e6db;
}
.till-card-bank { font-size: 13px; color: #93a8a4; }
.till-card-no { font-size: clamp(19px, 5.4vw, 23px); letter-spacing: .06em; text-align: center; padding: 6px 0; font-weight: 600; }
.till-card-holder { font-size: 14px; }
.till-copy {
	font: inherit;
	font-size: 13.5px;
	min-height: 40px;
	margin-top: 6px;
	padding: 8px 14px;
	border-radius: 10px;
	border: 1px solid rgba(47, 139, 147, .45);
	background: rgba(63, 163, 166, .12);
	color: inherit;
	cursor: pointer;
}
.till-card .till-copy { border-color: rgba(233, 230, 219, .22); background: rgba(233, 230, 219, .08); }

.till-wait { display: flex; gap: 10px; align-items: center; font-size: 14px; line-height: 1.9; color: #44524f; margin: 16px 0 6px; }
.till-wait .spinner { width: 20px; height: 20px; flex: 0 0 auto; border-color: rgba(47, 139, 147, .2); border-block-start-color: var(--color-brand-teal-deep); }
.till-claim { margin-top: 8px; border-block-start: 1px solid var(--line-paper); padding-top: 10px; }
.till-claim summary { cursor: pointer; font-size: 14px; color: var(--color-text-on-paper-dim); padding: 8px 0; }
.till-done p { font-size: 15.5px; line-height: 2.05; margin: 0 0 10px; }
.till-done .btn { margin-top: 10px; }

/* ── فوتر ───────────────────────────────────────────────── */

.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; }
.foot-links a { color: var(--color-text-dim); text-decoration: none; padding: 6px 0; }
.foot-links a:hover { color: var(--color-text); }

@media (prefers-reduced-motion: reduce) {
	.loan, .tome-cover, .store-btn, .till[open] { transition: none; animation: none; }
	.loan:hover { transform: rotate(var(--tilt, 0deg)); }
}

.plat-h { font-size: 19px; font-weight: 700; }
.plat-hint { margin: 14px 0 0; font-size: 13px; }
.page-head { padding-block: 56px 90px; }
.page-head .h-sec { max-width: 24ch; }
[hidden] { display: none !important; }

/* ══════════════════════════════════════════════════════════
   زیرِ شیشه
   کرم (بوم، z=1) زیرِ محتواست (z=2). پس‌زمینهٔ بخش‌ها نیمه‌شفاف است
   تا کرم از زیرشان پیدا باشد، و نوشته‌ها روی تکه‌های شیشهٔ مات
   می‌نشینند: کرم زیرِ آن‌ها فقط سایه‌ای نرم است و خواندن را نمی‌گیرد.
   ══════════════════════════════════════════════════════════ */

.worm-stage { z-index: 1; transition: opacity .5s var(--ease-soft); }
main, .foot { position: relative; z-index: 2; }

.band-problem, .band-assistant, .band-download { background: rgba(8, 13, 12, .55); }
.band-loans, .band-notes, .foot { background: rgba(14, 21, 19, .35); }
.band-package, .page-paper {
	background: linear-gradient(to bottom, rgba(246, 241, 228, .88), rgba(239, 231, 213, .92));
}

.hero-copy,
.band .lead:not(.lead-dark),
.findings,
.footnotes,
.free-tier,
.steps li {
	background: rgba(14, 21, 19, .5);
	-webkit-backdrop-filter: blur(16px) saturate(1.25);
	backdrop-filter: blur(16px) saturate(1.25);
	border: 1px solid rgba(233, 230, 219, .09);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 20px 40px -30px rgba(0, 0, 0, .7);
	border-radius: 20px;
}
.hero-copy { padding: 26px 22px 28px; }
.band .lead:not(.lead-dark) { padding: 18px 22px; }
.findings { padding: 4px 22px; border-block-start: 1px solid rgba(233, 230, 219, .09); }
.findings .finding:last-child { border-block-end: 0; }
.footnotes { padding: 0 20px; border-block-start: 1px solid rgba(233, 230, 219, .09); }
.footnotes details:last-child { border-block-end: 0; }

/* دکمهٔ خواباندنِ کرم */
.worm-toggle {
	position: fixed;
	z-index: 110;
	inset-inline-start: 14px;
	bottom: calc(14px + env(safe-area-inset-bottom));
	min-height: 40px;
	padding: 8px 14px;
	border-radius: 99px;
	border: 1px solid rgba(233, 230, 219, .14);
	background: rgba(14, 21, 19, .72);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: var(--color-text-dim);
	font: 500 13px var(--font-body);
	cursor: pointer;
}
.worm-toggle:hover { color: var(--color-text); }

/* ── صدای خواننده‌ها — یادداشت‌های حاشیه ───────────────────
   فقط اگر assets/voices.js چیزی داشته باشد نشان داده می‌شود. */

.voices {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	margin-top: 34px;
}
.voice {
	background: var(--color-paper);
	color: var(--color-text-on-paper);
	border-radius: 4px 4px 18px 4px;
	padding: 20px 20px 16px;
	transform: rotate(var(--tilt, -.6deg));
	box-shadow: 0 24px 44px -28px rgba(0, 0, 0, .9);
	position: relative;
}
.voice::before {
	content: "";
	position: absolute;
	top: -10px;
	inset-inline-start: 40%;
	width: 70px;
	height: 20px;
	background: rgba(91, 192, 192, .5);
	transform: rotate(-3deg);
}
.voice blockquote { margin: 0; font-size: 15.5px; line-height: 2.05; }
.voice figcaption { margin-top: 12px; font-size: 13.5px; color: var(--color-text-on-paper-dim); }
.voice figcaption b { color: var(--color-text-on-paper); }
.voice-field {
	display: inline-block;
	margin-inline-start: 6px;
	padding: 1px 9px;
	border-radius: 99px;
	background: rgba(47, 139, 147, .14);
	color: var(--color-brand-teal-deep);
	font-size: 12px;
}

/* ── سکوهای «به‌زودی» ───────────────────────────────────── */

.plat-soon { opacity: .78; }
.plat-soon .plat-meta { margin-bottom: 0; }

/* ── نوارِ پایینِ گوشی: همیشه یک قدم تا دانلود ───────────── */

.m-cta {
	position: fixed;
	z-index: 105;
	inset-inline: 10px;
	bottom: calc(10px + env(safe-area-inset-bottom));
	display: flex;
	gap: 8px;
	padding: 8px;
	border-radius: 20px;
	background: rgba(14, 21, 19, .8);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 1px solid rgba(233, 230, 219, .12);
	box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .9);
	transform: translateY(140%);
	transition: transform .45s var(--ease-out-back);
}
.m-cta.is-on { transform: none; }
.m-cta a {
	flex: 1;
	min-height: 48px;
	display: grid;
	place-items: center;
	border-radius: 14px;
	text-decoration: none;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 15.5px;
}
.m-cta .m-cta-main { background: var(--color-brand-teal); color: #05201f; flex: 1.4; }
.m-cta .m-cta-alt { color: var(--color-text); background: rgba(233, 230, 219, .07); }
/* وقتی نوارِ پایین هست، دکمهٔ کرم بالای آن بنشیند */
body.has-mcta .worm-toggle { bottom: calc(86px + env(safe-area-inset-bottom)); }

/* ══════════════════════════════════════════════════════════
   گوشی اول. پایه‌ی همه‌ی قاعده‌های بالا برای صفحه‌ی باریک است؛
   این‌ها صفحه‌ی باریک را کامل می‌کنند و بعد پهن‌ترها را می‌سازند.
   ══════════════════════════════════════════════════════════ */

@media (max-width: 719px) {
	.band { padding-block: 64px; }
	.wrap { padding-inline: 16px; }
	.hero { min-height: auto; padding-block: 34px 48px; }
	.hero-title { font-size: clamp(54px, 17vw, 76px); }
	.hero-actions .btn { width: 100%; }
	.h-sec { font-size: clamp(25px, 7.4vw, 32px); }

	/* کارت‌های امانت: کشویی، با لبه‌ی کارتِ بعدی پیدا */
	.loans {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 14px;
		margin-inline: -16px;
		padding: 14px 16px 26px;
		scrollbar-width: none;
	}
	.loans::-webkit-scrollbar { display: none; }
	.loan { flex: 0 0 82%; scroll-snap-align: center; }

	.tome { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; }
	.tome-foot { flex-wrap: wrap; }
	.platforms { gap: 12px; }
	.foot { padding-block-end: 100px; }   /* جای نوارِ پایین */
	.margin-note { margin-top: 30px; }
}

@media (min-width: 720px) {
	.m-cta { display: none; }
	body.has-mcta .worm-toggle { bottom: calc(14px + env(safe-area-inset-bottom)); }
	.voices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

@media (min-width: 1080px) {
	.voices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.platforms { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── لوگو ──────────────────────────────────────────────── */

img.mark { width: 44px; height: auto; display: block; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }

.hero-mascot {
	display: block;
	width: clamp(150px, 42vw, 220px);
	height: auto;
	margin: -6px auto 10px;
	filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45));
	animation: mascot-bob 4.5s ease-in-out infinite;
	transform-origin: 50% 90%;
}
@media (min-width: 901px) {
	.hero-mascot { margin-inline: 0; }
}
@keyframes mascot-bob {
	0%, 100% { transform: translateY(0) rotate(-1deg); }
	50% { transform: translateY(-6px) rotate(1.2deg); }
}
@media (prefers-reduced-motion: reduce) {
	.hero-mascot { animation: none; }
}

.hero-slogan {
	margin: -10px 0 18px;
	font-family: var(--font-display);
	font-size: clamp(17px, 2.6vw, 22px);
	font-weight: 600;
	color: var(--color-brand-teal-soft);
	letter-spacing: .01em;
}

/* ── بلاگ ───────────────────────────────────────────────── */

.post-list { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 34px; }
.post-card {
	display: block;
	text-decoration: none;
	padding: 20px 22px;
	border-radius: 20px;
	background: rgba(14, 21, 19, .5);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border: 1px solid rgba(233, 230, 219, .09);
	transition: transform .35s var(--ease-out-back), border-color .3s var(--ease-soft);
}
.post-card:hover { transform: translateY(-3px); border-color: rgba(63, 163, 166, .45); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 14px; display: block; }
.post-card-date { font-size: 12.5px; color: var(--color-brand-teal); }
.post-card h2 { font-size: 21px; margin: 4px 0 6px; }
.post-card p { margin: 0; color: var(--color-text-dim); font-size: 15px; line-height: 2; }
@media (min-width: 720px) { .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.post .marker a { color: inherit; text-decoration: none; }
.post-title { max-width: none; }
.post-lead { font-size: 18px; margin-bottom: 26px; }
.post-cover { width: 100%; border-radius: 14px; margin-bottom: 28px; display: block; }
.post-body { font-size: 17px; line-height: 2.2; color: #2f3c39; }
.post-body h2 { font-size: 24px; margin: 38px 0 10px; color: var(--color-text-on-paper); }
.post-body h3 { font-size: 19px; margin: 28px 0 8px; color: var(--color-text-on-paper); }
.post-body p { margin: 0 0 18px; }
.post-body a { color: var(--color-brand-teal-deep); }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-inline-start: 1.4em; }
.post-body blockquote {
	margin: 0 0 18px;
	padding: 10px 18px;
	border-inline-start: 3px solid var(--color-book-red);
	background: rgba(200, 69, 47, .06);
	border-radius: 0 10px 10px 0;
}
.post-body code { font-size: .92em; background: rgba(27, 42, 40, .07); padding: 1px 6px; border-radius: 6px; direction: ltr; unicode-bidi: isolate; }
.post-body figure { margin: 6px 0 22px; }
.post-body img { max-width: 100%; border-radius: 12px; display: block; }
.post-body figcaption { font-size: 13.5px; color: var(--color-text-on-paper-dim); margin-top: 6px; text-align: center; }
.post-back { margin-top: 40px; }

/* ── کانال‌ها در فوتر ───────────────────────────────────── */
.foot-social { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 14.5px; width: 100%; order: 3; }
.foot-social-label { color: var(--color-text-dim); }
.foot-social a { color: var(--color-brand-teal-soft); text-decoration: none; padding: 6px 0; min-height: 32px; }
.foot-social a:hover { color: var(--color-text); }
.lead a { color: var(--color-brand-teal-soft); }

/* ── تخفیف در پنجرهٔ خرید ───────────────────────────────── */
.till-deal { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: rgba(47, 139, 147, .12); color: var(--color-brand-teal-deep); font-size: 14px; }
.till-deal.is-error { background: rgba(178, 58, 38, .08); color: #b23a26; }
.till-coupon { margin-top: 10px; }
.till-coupon summary { cursor: pointer; font-size: 14px; color: var(--color-brand-teal-deep); padding: 8px 0; }
.till-coupon-row { display: flex; gap: 8px; }
.till-coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; }

/* ── شارژ ───────────────────────────────────────────────── */
.topups { display: grid; gap: 12px; margin-top: 22px; }
.topup {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
	padding: 16px 18px; border-radius: 16px;
	background: rgba(14, 21, 19, .5); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
	border: 1px solid rgba(233, 230, 219, .09);
}
.topup > div { display: grid; flex: 1; min-width: 12em; }
.topup > div span { font-size: 14px; color: var(--color-text-dim); }
.topup-price { font-size: 14px; color: var(--color-text-dim); }
.topup-price b { font-family: var(--font-display); font-size: 21px; color: var(--color-text); }

/* بسته‌های مطالعاتی: «به‌زودی» — تا نخستین بسته منتشر شود */
.soon-card {
	margin: 24px auto;
	max-width: 560px;
	padding: 22px 20px;
	border: 1.5px dashed currentColor;
	border-radius: 16px;
	text-align: center;
	opacity: .92;
}
.soon-card p { margin: 12px 0 0; line-height: 2; }
.soon-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	background: #2f6f5e;
	color: #fff;
	font-weight: 700;
	font-size: 14px;
}
