/* Magazine «پوست و ذهن»: index, article, cards on product pages. Mobile-first, RTL. */
.sc-mag { background: var(--sc-bg); padding: 12px 0 48px; }
.sc-mag .sc-wrap { max-width: 1100px; }
.sc-mag-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--sc-muted); margin: 4px 0 14px; }
.sc-mag-crumbs a { color: var(--sc-petrol); text-decoration: none; }
.sc-mag-crumbs span[aria-hidden] { opacity: .5; }

/* Index */
.sc-mag-hero { margin: 0 0 20px; }
.sc-mag-title { font-size: clamp(22px, 5vw, 32px); line-height: 1.5; margin: 0 0 8px; color: var(--sc-ink); font-weight: 800; display: flex; align-items: center; gap: 10px; }
.sc-mag-title .sc-i { width: 28px; height: 28px; color: var(--sc-petrol); flex: 0 0 auto; }
.sc-mag-lead { color: var(--sc-muted); font-size: 15.5px; line-height: 1.9; margin: 0; max-width: 60ch; }
.sc-mag-lead p { margin: 0; }
.sc-mag-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .sc-mag-grid { grid-template-columns: repeat(2, 1fr); } .sc-mag-card--big { grid-column: 1 / -1; } }
@media (min-width: 960px) { .sc-mag-grid { grid-template-columns: repeat(3, 1fr); } .sc-mag-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.sc-mag-empty { color: var(--sc-muted); }

/* Card */
.sc-mag-card { background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: var(--sc-r-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.sc-mag-card:hover { box-shadow: 0 10px 28px rgba(15, 92, 90, .10); border-color: #d5dedc; }
.sc-mag-card__media { display: block; aspect-ratio: 16 / 9; background: var(--sc-petrol-soft); overflow: hidden; }
.sc-mag-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.sc-mag-card:hover .sc-mag-card__media img { transform: scale(1.03); }
.sc-mag-card__noimg { display: grid; place-items: center; height: 100%; color: var(--sc-petrol); }
.sc-mag-card__noimg .sc-i { width: 40px; height: 40px; opacity: .5; }
.sc-mag-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.sc-mag-card__tag { align-self: flex-start; font-size: 12px; color: var(--sc-petrol); background: var(--sc-petrol-soft); border-radius: 999px; padding: 2px 10px; }
.sc-mag-card__title { font-size: 16.5px; line-height: 1.7; margin: 0; font-weight: 700; }
.sc-mag-card--big .sc-mag-card__title { font-size: 20px; }
.sc-mag-card__title a { color: var(--sc-ink); text-decoration: none; }
.sc-mag-card__excerpt { margin: 0; color: var(--sc-muted); font-size: 14px; line-height: 1.8; }
.sc-mag-card__meta { font-size: 12.5px; color: var(--sc-muted); margin-top: auto; }
@media (min-width: 640px) {
	.sc-mag-card--big { flex-direction: row; }
	.sc-mag-card--big .sc-mag-card__media { flex: 0 0 52%; aspect-ratio: auto; min-height: 260px; }
	.sc-mag-card--big .sc-mag-card__body { padding: 22px 24px; justify-content: center; }
}
.sc-mag-pages { margin-top: 24px; }
.sc-mag-pages .nav-links { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.sc-mag-pages .page-numbers { display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0 12px; border-radius: 999px; background: var(--sc-surface); border: 1px solid var(--sc-line); color: var(--sc-ink); text-decoration: none; font-size: 14px; }
.sc-mag-pages .page-numbers.current { background: var(--sc-petrol-soft); color: var(--sc-petrol); border-color: transparent; }

/* Article */
.sc-mag-article { max-width: 760px; }
.sc-mag-head { margin-bottom: 16px; }
.sc-mag-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sc-mag-chip { font-size: 12.5px; color: var(--sc-petrol); background: var(--sc-petrol-soft); border-radius: 999px; padding: 3px 11px; text-decoration: none; }
.sc-mag--single .sc-mag-title { display: block; font-size: clamp(22px, 5.6vw, 30px); line-height: 1.6; }
.sc-mag--single .sc-mag-lead { font-size: 16px; margin-top: 6px; }
.sc-mag-byline { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--sc-muted); }
.sc-mag-byline li { display: inline-flex; align-items: center; gap: 5px; }
.sc-mag-byline .sc-i { width: 16px; height: 16px; color: var(--sc-petrol); }
.sc-mag-cover { margin: 0 0 18px; border-radius: var(--sc-r-lg); overflow: hidden; background: var(--sc-petrol-soft); }
.sc-mag-cover img { display: block; width: 100%; height: auto; }
.sc-mag-take { background: var(--sc-surface); border: 1px solid var(--sc-line); border-right: 4px solid var(--sc-petrol); border-radius: var(--sc-r); padding: 14px 16px; margin: 0 0 22px; }
.sc-mag-take__t { font-size: 15px; margin: 0 0 8px; color: var(--sc-petrol); font-weight: 800; }
.sc-mag-take ul { margin: 0; padding-right: 18px; }
.sc-mag-take li { font-size: 14.5px; line-height: 1.9; }

.sc-mag-body { font-size: 16px; line-height: 2; color: var(--sc-ink); }
.sc-mag-body > * + * { margin-top: 14px; }
.sc-mag-body h2 { font-size: 20px; line-height: 1.6; margin: 34px 0 10px; font-weight: 800; color: var(--sc-ink); }
.sc-mag-body h3 { font-size: 17px; line-height: 1.6; margin: 24px 0 6px; font-weight: 700; }
.sc-mag-body p { margin: 0 0 14px; }
.sc-mag-body ul, .sc-mag-body ol { margin: 0 0 14px; padding-right: 22px; }
.sc-mag-body li { margin-bottom: 4px; }
.sc-mag-body strong { font-weight: 700; }
.sc-mag-body a { color: var(--sc-petrol); }
.sc-mag-note { background: var(--sc-petrol-soft); border-radius: var(--sc-r); padding: 12px 16px; font-size: 15px; line-height: 1.9; }
.sc-mag-note--warm { background: var(--sc-coral-soft); color: var(--sc-coral-ink); }
.sc-mag-note p:last-child { margin-bottom: 0; }
.sc-mag-steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.sc-mag-steps li { position: relative; padding: 10px 46px 10px 14px; background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: var(--sc-r); font-size: 15px; line-height: 1.8; }
.sc-mag-steps li::before { counter-increment: s; content: counter(s, persian); position: absolute; right: 12px; top: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--sc-petrol); color: #fff; font-size: 13px; display: grid; place-items: center; font-weight: 700; }

/* Animated figures (inline SVG; animation defined inside each SVG) */
.sc-anim { margin: 22px 0; background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: var(--sc-r-lg); padding: 12px 12px 10px; }
.sc-anim svg { display: block; width: 100%; height: auto; max-height: 360px; }
.sc-anim figcaption { font-size: 13px; color: var(--sc-muted); line-height: 1.8; margin-top: 8px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .sc-anim svg * { animation: none !important; } }

/* FAQ, consult, sources */
.sc-mag-faq { margin-top: 30px; }
.sc-mag-faq__item { background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: var(--sc-r); padding: 0 16px; margin-bottom: 8px; }
.sc-mag-faq__item summary { cursor: pointer; padding: 12px 0; font-weight: 700; font-size: 15px; list-style: none; position: relative; padding-left: 26px; }
.sc-mag-faq__item summary::-webkit-details-marker { display: none; }
.sc-mag-faq__item summary::after { content: "+"; position: absolute; left: 2px; top: 10px; color: var(--sc-petrol); font-size: 20px; }
.sc-mag-faq__item[open] summary::after { content: "–"; }
.sc-mag-faq__item p { margin: 0 0 14px; font-size: 15px; line-height: 1.9; color: var(--sc-muted); }
.sc-mag-consult { margin: 28px 0 8px; display: flex; flex-direction: column; gap: 12px; background: var(--sc-coral-soft); border-radius: var(--sc-r-lg); padding: 16px 18px; }
.sc-mag-consult strong { display: block; color: var(--sc-coral-ink); font-size: 15.5px; margin-bottom: 4px; }
.sc-mag-consult p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--sc-coral-ink); }
.sc-mag-consult .sc-btn { align-self: flex-start; }
@media (min-width: 640px) { .sc-mag-consult { flex-direction: row; align-items: center; justify-content: space-between; } }
.sc-mag-products .sc-grid, .sc-mag-more { margin-top: 0; }
.sc-mag-sources { margin: 26px 0 0; background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: var(--sc-r); padding: 0 16px; font-size: 14px; }
.sc-mag-sources summary { cursor: pointer; padding: 12px 0; color: var(--sc-petrol); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sc-mag-sources summary .sc-i { width: 18px; height: 18px; }
.sc-mag-sources ol { margin: 0 0 10px; padding-right: 20px; direction: rtl; }
.sc-mag-sources li { margin-bottom: 6px; line-height: 1.7; word-break: break-word; }
.sc-mag-sources a { color: var(--sc-ink); }
.sc-mag-sources__note { color: var(--sc-muted); font-size: 13px; margin: 0 0 12px; }

/* Strip on product pages */
.sc-mag-strip { margin-top: 8px; }

/* ===== Reviewer line on article cards (1405-08-22) ===== */
.sc-mag-card__rev {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: var(--sc-muted);
}
.sc-mag-card__rev .sc-i {
	width: 14px;
	height: 14px;
	color: var(--sc-petrol);
}

/* Related products carousel under articles (Stitch design, 2026-11-13) */
.sc-rel{margin:32px 0 8px}
.sc-rel__head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px}
.sc-rel__title{margin:0;font-size:1.05rem;font-weight:700;color:var(--sc-ink,#1f2a2e);line-height:1.6}
.sc-rel__sub{margin:2px 0 0;font-size:.8rem;color:var(--sc-muted,#5c676b)}
.sc-rel__all{display:inline-flex;align-items:center;gap:2px;font-size:.85rem;color:var(--sc-petrol,#0f5c5a);text-decoration:none;white-space:nowrap;padding:6px 4px}
.sc-rel__track{list-style:none;margin:0 -16px;padding:4px 16px 12px;display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:16px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.sc-rel__track::-webkit-scrollbar{display:none}
.sc-rel__item{flex:0 0 42%;max-width:190px;min-width:148px;scroll-snap-align:start;margin:0}
.sc-rel__card{height:100%;display:flex;flex-direction:column;background:#fff;border:1px solid #ece7e0;border-radius:16px;overflow:hidden;box-shadow:0 2px 10px rgba(16,50,58,.05)}
.sc-rel__media{position:relative;display:block;aspect-ratio:1/1;background:#f3f0eb;padding:12px}
.sc-rel__media img{width:100%!important;height:100%!important;object-fit:contain;mix-blend-mode:multiply;border-radius:8px;margin:0}
.sc-rel__genuine{position:absolute;top:8px;right:8px;display:inline-flex;align-items:center;gap:3px;padding:2px 7px 2px 6px;border-radius:999px;background:#fff;border:1px solid var(--sc-gold-line,#e6d5b8);color:var(--sc-gold-ink,#7a5f33);font-size:.68rem;font-weight:700;line-height:1.6}
.sc-rel__genuine svg{width:12px;height:12px;color:#b08d57}
.sc-rel__body{display:flex;flex-direction:column;gap:4px;padding:10px 10px 12px;flex:1}
.sc-rel__brand{font-size:.7rem;color:var(--sc-muted,#5c676b);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sc-rel__name{font-size:.8rem;line-height:1.7;color:var(--sc-ink,#1f2a2e);text-decoration:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.72rem}
.sc-rel__price{font-size:.85rem;font-weight:700;color:#10323a;margin-top:auto}
.sc-rel__price del{font-weight:400;color:var(--sc-muted,#5c676b);font-size:.72rem;display:block}
.sc-rel__price ins{text-decoration:none}
.sc-rel .sc-rel__add,.sc-rel .sc-rel__add.button{display:flex;align-items:center;justify-content:center;gap:4px;margin-top:6px;min-height:36px;padding:0 10px;border:1px solid var(--sc-petrol,#0f5c5a);border-radius:10px;background:#fff;color:var(--sc-petrol,#0f5c5a);font-size:.8rem;font-weight:600;text-decoration:none;line-height:1;box-shadow:none}
.sc-rel .sc-rel__add:hover{background:var(--sc-petrol-soft,#e3eeec)}
.sc-rel .sc-rel__add.loading{opacity:.6}
.sc-rel .sc-rel__add.added{border-color:#cfd8d6;color:var(--sc-muted,#5c676b)}
.sc-rel .added_to_cart{display:block;text-align:center;font-size:.75rem;color:var(--sc-petrol,#0f5c5a);margin-top:4px}
@media (min-width:768px){.sc-rel__track{margin:0;padding-inline:0;scroll-padding-inline:0}.sc-rel__item{flex-basis:calc(25% - 9px);max-width:none}}

/* Article product cards: «افزودن» → stepper, same as the «کالا اضافه شد!» panel (2026-11-14). */
.sc-rel .sc-rel__add:focus,.sc-rel .sc-rel__add:active{background:#fff;color:var(--sc-petrol,#0f5c5a);border-color:var(--sc-petrol,#0f5c5a);box-shadow:none;outline:none}
.sc-rel .sc-rel__add:focus-visible{outline:2px solid var(--sc-petrol,#0f5c5a);outline-offset:2px}
.sc-rel__buy.is-busy{opacity:.55;pointer-events:none}
.sc-rel .sc-sgq{display:flex;align-items:center;justify-content:space-between;margin-top:6px;height:36px;padding:0 4px;border:1px solid var(--sc-line,#e6e1da);border-radius:10px;background:#fff;box-shadow:0 1px 6px rgba(31,42,46,.08)}
.sc-rel .sc-sgq__btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;margin:0;padding:0;border:0;border-radius:8px;background:transparent;color:var(--sc-petrol,#0f5c5a);box-shadow:none;outline:none;cursor:pointer}
.sc-rel .sc-sgq__btn:hover,.sc-rel .sc-sgq__btn:focus{background:var(--sc-petrol-soft,#e3eeec);color:var(--sc-petrol,#0f5c5a);box-shadow:none;outline:none}
.sc-rel .sc-sgq__btn:disabled{color:#b9b3ab;background:transparent;cursor:default}
.sc-rel .sc-sgq__btn.is-trash{color:var(--sc-sale,#c2410c)}
.sc-rel .sc-sgq__btn svg{width:18px;height:18px}
.sc-rel .sc-sgq__n{min-width:20px;color:var(--sc-petrol,#0f5c5a);font-size:1rem;font-weight:800;text-align:center;outline:0}
.sc-rel__msg{margin:4px 0 0;font-size:.72rem;color:var(--sc-sale,#c2410c)}

/* === Archive, TED-style (inc/magazine-archive.php) === */
.sc-mt .sc-wrap { max-width: 1200px; }
.sc-mt-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 14px; }
.sc-mt-title { font-size: clamp(24px, 6vw, 36px); line-height: 1.4; margin: 0; font-weight: 800; color: var(--sc-ink); letter-spacing: -.3px; }
.sc-mt-count { font-size: 14px; color: var(--sc-muted); }
.sc-mt-head .sc-mag-lead { flex-basis: 100%; font-size: 14.5px; }
.sc-mt-tabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--sc-line); margin: 0 -16px; padding: 0 16px; }
.sc-mt-tabs::-webkit-scrollbar { display: none; }
.sc-mt-tab { flex: 0 0 auto; position: relative; padding: 12px 0 11px; font-size: 15px; font-weight: 600; color: var(--sc-muted); text-decoration: none; white-space: nowrap; }
.sc-mt-tab:hover { color: var(--sc-ink); }
.sc-mt-tab.is-on { color: var(--sc-ink); font-weight: 800; }
.sc-mt-tab.is-on::after { content: ""; position: absolute; inset: auto 0 -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--sc-petrol); }
.sc-mt-topics { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 14px 16px 18px; margin: 0 -16px; }
.sc-mt-topics::-webkit-scrollbar { display: none; }
.sc-mt-topic { flex: 0 0 auto; font-size: 13.5px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--sc-line); background: var(--sc-surface); color: var(--sc-ink); text-decoration: none; white-space: nowrap; }
.sc-mt-topic.is-on { background: #10323A; border-color: #10323A; color: #fff; }
.sc-mt-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.sc-mt-card { display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--sc-line); }
.sc-mt-card:last-child { border-bottom: 0; }
.sc-mt-card__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--sc-petrol-soft); align-self: start; }
.sc-mt-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.sc-mt-card:hover .sc-mt-card__media img { transform: scale(1.03); }
.sc-mt-card__dur { position: absolute; left: 6px; bottom: 6px; background: rgba(16, 50, 58, .86); color: #fff; font-size: 11.5px; font-weight: 600; line-height: 1; padding: 5px 7px; border-radius: 6px; }
.sc-mt-card__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sc-mt-card__kicker { font-size: 12px; font-weight: 700; color: var(--sc-petrol); }
.sc-mt-card__title { font-size: 15px; line-height: 1.65; margin: 0; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sc-mt-card__title a { color: var(--sc-ink); text-decoration: none; }
.sc-mt-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sc-mt-card__rev { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--sc-muted); }
.sc-mt-card__rev .sc-i { width: 14px; height: 14px; color: #B08D57; flex: 0 0 auto; }
.sc-mt-card__meta { font-size: 12px; color: var(--sc-muted); }
@media (min-width: 640px) {
	.sc-mt-tabs, .sc-mt-topics { margin: 0; padding-right: 0; padding-left: 0; }
	.sc-mt-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
	.sc-mt-card { display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0; }
	.sc-mt-card__media { border-radius: 12px; }
	.sc-mt-card__dur { font-size: 12.5px; padding: 6px 8px; left: 8px; bottom: 8px; }
	.sc-mt-card__title { font-size: 16.5px; -webkit-line-clamp: 2; }
}
@media (min-width: 960px) { .sc-mt-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1140px) { .sc-mt-grid { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { .sc-mt-card__media img { transition: none; } }

/* === Magazine v2, TED.com-inspired (inc/magazine-ted.php, home.php, single.php) === */
.sc-tx, .sc-tk { --tx-ink: #10323A; --tx-grey: #efeeeb; }
.sc-tx .sc-mt-title { color: var(--tx-ink); font-weight: 900; letter-spacing: -.5px; }
.sc-tx-h { font-size: 19px; line-height: 1.5; font-weight: 900; color: var(--tx-ink); margin: 0; letter-spacing: -.2px; }

/* Head + search */
.sc-tx-head { display: grid; gap: 12px; margin: 0 0 18px; }
.sc-tx-head__t { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sc-tx-head__lead { font-size: 14.5px; }
.sc-tx-search { position: relative; display: flex; align-items: center; }
.sc-tx-search .sc-i { position: absolute; right: 12px; width: 18px; height: 18px; color: var(--sc-muted); pointer-events: none; }
.sc-tx-search input { width: 100%; height: 44px; border: 1px solid var(--sc-line); border-radius: 8px; background: var(--tx-grey); padding: 0 40px 0 12px; font: inherit; font-size: 15px; color: var(--sc-ink); }
.sc-tx-search input:focus { outline: 2px solid var(--tx-ink); outline-offset: 0; background: #fff; }
@media (min-width: 760px) {
	.sc-tx-head { grid-template-columns: 1fr 320px; align-items: end; }
	.sc-tx-head__lead { grid-column: 1 / -1; }
}

/* Hero (TED home top talk) */
.sc-tx-hero { position: relative; margin: 0 -16px 30px; background: var(--tx-ink); color: #fff; overflow: hidden; }
.sc-tx-hero__media { display: block; aspect-ratio: 16 / 9; }
.sc-tx-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-tx-hero__body { padding: 16px 16px 20px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sc-tx-hero__kicker { font-size: 12.5px; font-weight: 700; color: #f3c9b6; }
.sc-tx-hero__title { font-size: clamp(21px, 5.6vw, 38px); line-height: 1.45; font-weight: 900; margin: 0; letter-spacing: -.4px; }
.sc-tx-hero__title a { color: #fff; text-decoration: none; }
.sc-tx-hero__lead { margin: 0; font-size: 14.5px; line-height: 1.9; color: rgba(255,255,255,.82); max-width: 62ch; }
.sc-tx-hero__meta { font-size: 13px; color: rgba(255,255,255,.75); }
.sc-tx-hero__cta { margin-top: 6px; display: inline-flex; align-items: center; height: 40px; padding: 0 22px; border-radius: 6px; background: #fff; color: var(--tx-ink); font-weight: 800; font-size: 14.5px; text-decoration: none; }
.sc-tx-hero__cta:hover { background: #f3efe9; }
@media (min-width: 760px) {
	.sc-tx-hero { margin: 0 0 40px; border-radius: 12px; }
	.sc-tx-hero__media { aspect-ratio: 21 / 9; max-height: 500px; width: 100%; }
	.sc-tx-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,50,58,.92) 0%, rgba(16,50,58,.55) 38%, rgba(16,50,58,0) 70%); pointer-events: none; }
	.sc-tx-hero__body { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 28px 32px 30px; }
	.sc-tx-hero__title { max-width: 22ch; }
}

/* Rows (TED home) */
.sc-tx-row { margin: 0 0 30px; }
.sc-tx-row__head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--sc-line); }
.sc-tx-row__head .sc-tx-h { flex: 1; }
.sc-tx-row__more { font-size: 14px; font-weight: 700; color: var(--tx-ink); text-decoration: none; white-space: nowrap; }
.sc-tx-row__more:hover { text-decoration: underline; text-underline-offset: 3px; }
.sc-tx-row__nav { display: none; gap: 6px; }
.sc-tx-row__btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--sc-line); background: #fff; color: var(--tx-ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.sc-tx-row__btn:hover { border-color: var(--tx-ink); }
.sc-tx-row__btn svg { width: 18px; height: 18px; }
.sc-tx-row__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; scroll-padding: 0 16px; }
.sc-tx-row__track::-webkit-scrollbar { display: none; }
.sc-tx-row__track > .sc-mt-card { flex: 0 0 72%; scroll-snap-align: start; }
@media (min-width: 640px) { .sc-tx-row__track > .sc-mt-card { flex-basis: 260px; } }
@media (min-width: 960px) {
	.sc-tx-row__nav { display: inline-flex; }
	.sc-tx-row__track { margin: 0; padding: 0 0 4px; scroll-padding: 0; gap: 20px; }
	.sc-tx-row__track > .sc-mt-card { flex-basis: calc((100% - 60px) / 4); }
}

/* Vertical card (rows) — same look as the grid on desktop */
.sc-mt-card--v { display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0; }
.sc-mt-card--v .sc-mt-card__title { font-size: 15.5px; -webkit-line-clamp: 2; }

/* Card tweaks: TED keeps it plain — grey kicker, heavy ink title */
.sc-tx .sc-mt-card__kicker, .sc-tk .sc-mt-card__kicker { color: var(--sc-muted); font-weight: 700; }
.sc-tx .sc-mt-card__title a, .sc-tk .sc-mt-card__title a { color: var(--tx-ink); }
.sc-mt-card__media { border-radius: 8px; }
.sc-mt-card__dur { background: rgba(16, 50, 58, .9); border-radius: 4px; }

/* All articles + filter bar (TED /talks) */
.sc-tx-all { padding-top: 4px; }
.sc-tx-all__h { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--sc-line); }
.sc-tx-bar { margin: 0 0 18px; }
.sc-tx-bar__dds { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-tx-dd { position: relative; }
.sc-tx-dd > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid #cfd3d1; border-radius: 6px; background: #fff; color: var(--tx-ink); font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; user-select: none; }
.sc-tx-dd > summary::-webkit-details-marker { display: none; }
.sc-tx-dd > summary:hover { border-color: var(--tx-ink); }
.sc-tx-dd.is-on > summary { border-color: var(--tx-ink); background: var(--tx-ink); color: #fff; }
.sc-tx-dd__car { width: 16px; height: 16px; transition: transform .15s; }
.sc-tx-dd[open] .sc-tx-dd__car { transform: rotate(180deg); }
.sc-tx-dd__menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; min-width: 200px; background: #fff; border: 1px solid var(--sc-line); border-radius: 8px; box-shadow: 0 12px 32px rgba(16, 50, 58, .14); padding: 6px; display: grid; }
.sc-tx-dd__menu a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--sc-ink); text-decoration: none; font-size: 14.5px; }
.sc-tx-dd__menu a:hover { background: var(--tx-grey); }
.sc-tx-dd__menu a.is-on { font-weight: 800; color: var(--tx-ink); background: var(--tx-grey); }
.sc-tx-bar__res { margin: 12px 0 0; font-size: 13.5px; color: var(--sc-muted); }
.sc-tx-bar__res a { color: var(--tx-ink); font-weight: 700; margin-right: 8px; }
.sc-tx-empty a { color: var(--tx-ink); font-weight: 700; }
@media (max-width: 420px) { .sc-tx-dd:last-child .sc-tx-dd__menu { right: auto; left: 0; } }

/* Article page (TED talk page) */
.sc-tk .sc-wrap { max-width: 1200px; }
.sc-tk__grid { display: grid; gap: 34px; }
@media (min-width: 1000px) { .sc-tk__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; } }
.sc-tk__cover { margin: 0 -16px 16px; aspect-ratio: 16 / 9; background: var(--sc-petrol-soft); overflow: hidden; }
.sc-tk__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 640px) { .sc-tk__cover { margin: 0 0 22px; border-radius: 12px; } }
.sc-tk__head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--sc-line); margin-bottom: 18px; }
.sc-tk__kicker { font-size: 13.5px; font-weight: 800; color: var(--sc-muted); text-decoration: none; }
.sc-tk__kicker:hover { color: var(--tx-ink); }
.sc-tk__title { font-size: clamp(24px, 6.2vw, 40px); line-height: 1.45; font-weight: 900; color: var(--tx-ink); margin: 0; letter-spacing: -.5px; }
.sc-tk__meta { margin: 0; font-size: 13.5px; color: var(--sc-muted); }
.sc-tk__people { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--sc-muted); }
.sc-tk__people li { display: inline-flex; align-items: center; gap: 6px; }
.sc-tk__people .sc-i { width: 16px; height: 16px; flex: 0 0 auto; }
.sc-tk__rev .sc-i { color: #B08D57; }
.sc-tk__rev strong { color: var(--tx-ink); }
.sc-tk__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.sc-tk__act { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--tx-grey); border: 0; color: var(--tx-ink); font: inherit; font-size: 13.5px; font-weight: 700; text-decoration: none; cursor: pointer; }
.sc-tk__act:hover { background: #e4e2df; }
.sc-tk__act svg { width: 17px; height: 17px; }
.sc-tk__lead { font-size: 17px; line-height: 2; color: var(--sc-ink); margin: 0 0 18px; }
.sc-tk__body { font-size: 16.5px; line-height: 2.05; }
.sc-tk .sc-mag-faq, .sc-tk__topics { margin-top: 30px; }
.sc-tk .sc-mag-faq .sc-tx-h, .sc-tk__topics .sc-tx-h { margin-bottom: 12px; }
.sc-tk__topics .sc-mag-chip { background: #fff; border: 1px solid #cfd3d1; color: var(--tx-ink); font-weight: 700; }

/* «بخوانید بعدی» (TED «Watch next») */
.sc-tk__next .sc-tx-h { padding-bottom: 8px; border-bottom: 1px solid var(--sc-line); margin-bottom: 4px; }
@media (min-width: 1000px) { .sc-tk__next { position: sticky; top: 90px; } }
.sc-mt-card--mini { display: grid; grid-template-columns: 132px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--sc-line); }
.sc-mt-card--mini .sc-mt-card__title { font-size: 14.5px; -webkit-line-clamp: 3; }
.sc-mt-card--mini .sc-mt-card__rev { display: none; }
.sc-mt-card--mini .sc-mt-card__dur { font-size: 11px; padding: 4px 6px; left: 5px; bottom: 5px; }
.sc-tk__all { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 800; color: var(--tx-ink); text-decoration: none; }
.sc-tk__all:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 640px) {
	.sc-mt-card--mini { display: grid; flex-direction: initial; padding: 12px 0; border-bottom: 1px solid var(--sc-line); }
	.sc-mt-card--mini .sc-mt-card__media { border-radius: 6px; }
	.sc-mt-card--mini .sc-mt-card__title { font-size: 14.5px; -webkit-line-clamp: 3; }
	.sc-mt-card--mini .sc-mt-card__dur { font-size: 11px; padding: 4px 6px; left: 5px; bottom: 5px; }
}

/* === Article reading view v3 (single.php, inc/magazine-read.php) — 1405-09-06 === */
/* Astra's narrow single-post container (750px) and its 4em padding squeezed the article. */
body.single-post.ast-narrow-container #content > .ast-container,
body.single-post #content > .ast-container { max-width: 100%; padding-left: 0; padding-right: 0; }
body.single-post #primary.sc-tk { margin: 0; padding: 6px 0 56px; width: 100%; }
.sc-tk .sc-wrap { max-width: 1200px; margin-left: auto; margin-right: auto; padding: 0 16px; }
.sc-tk .sc-mag-crumbs { margin: 6px 0 10px; font-size: 12.5px; }
.sc-tk .sc-mag-article { max-width: none; }

/* Progress */
.sc-tk__progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1001; pointer-events: none; }
.sc-tk__progress span { display: block; height: 100%; background: var(--sc-petrol); transform: scaleX(0); transform-origin: right center; will-change: transform; }

/* Grid */
.sc-tk__grid { display: block; }
.sc-tk__main { min-width: 0; }
@media (min-width: 1024px) {
	.sc-tk__grid { display: grid; grid-template-columns: minmax(0, 760px) 300px; justify-content: space-between; gap: 48px; align-items: start; }
}

/* Cover: edge to edge on phones */
.sc-tk__cover { margin: 0 -16px 18px; aspect-ratio: 16 / 9; border-radius: 0; }
@media (min-width: 640px) {
	/* Title first on larger screens so it sits above the fold; cover follows. */
	.sc-tk__main { display: flex; flex-direction: column; }
	.sc-tk__head { order: -1; }
	.sc-tk__cover { margin: 0 0 24px; border-radius: 14px; aspect-ratio: 2 / 1; }
}

/* Head */
.sc-tk__head { gap: 10px; padding-bottom: 18px; margin-bottom: 20px; }
.sc-tk__kicker { font-size: 13px; color: var(--sc-petrol); }
.sc-tk__title { font-size: clamp(24px, 6.4vw, 38px); line-height: 1.5; max-width: 26ch; }
.sc-tk__meta { font-size: 13px; }
.sc-tk__people { gap: 6px 16px; font-size: 13px; }
.sc-tk__actions { gap: 8px; margin-top: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.sc-tk__actions::-webkit-scrollbar { display: none; }
.sc-tk__act { flex: 0 0 auto; height: 40px; padding: 0 14px; font-size: 13.5px; white-space: nowrap; }
.sc-tk__act:focus-visible { outline: 2px solid var(--sc-petrol); outline-offset: 2px; }
.sc-tk__act--share span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sc-tk__act--share { width: 40px; padding: 0; justify-content: center; margin-inline-start: auto; }
@media (min-width: 1024px) { .sc-tk__act--toc { display: none; } }

/* TOC */
.sc-tk__toc-list { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.sc-tk__toc-list li { counter-increment: t; }
.sc-tk__toc-list a { display: flex; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--sc-ink); text-decoration: none; font-size: 14px; line-height: 1.7; }
.sc-tk__toc-list a::before { content: counter(t, persian); flex: 0 0 18px; color: var(--sc-muted); font-weight: 700; }
.sc-tk__toc-list a:hover { background: var(--tx-grey); }
.sc-tk__toc-list a.is-on { background: var(--sc-petrol-soft); color: var(--sc-petrol); font-weight: 700; }
.sc-tk__toc-list a.is-on::before { color: var(--sc-petrol); }
.sc-tk__toc--m { margin: 0 0 22px; border: 1px solid var(--sc-line); border-radius: 12px; background: #fff; }
.sc-tk__toc--m > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 0 16px; font-weight: 800; color: var(--tx-ink); cursor: pointer; }
.sc-tk__toc--m > summary::-webkit-details-marker { display: none; }
.sc-tk__toc--m > summary span { font-weight: 400; font-size: 13px; color: var(--sc-muted); margin-inline-start: auto; }
.sc-tk__toc--m > summary::after { content: ""; width: 8px; height: 8px; border: solid var(--tx-ink); border-width: 0 0 2px 2px; transform: rotate(-45deg); transition: transform .15s; margin-top: -4px; }
.sc-tk__toc--m[open] > summary::after { transform: rotate(135deg); margin-top: 4px; }
.sc-tk__toc--m .sc-tk__toc-list { padding: 0 6px 8px; border-top: 1px solid var(--sc-line); padding-top: 6px; }
@media (min-width: 1024px) { .sc-tk__toc--m { display: none; } }

/* Body typography: 60–75 characters per line, generous rhythm */
.sc-tk__lead { font-size: 17px; line-height: 2; color: var(--sc-ink); margin: 0 0 20px; }
.sc-tk__take { margin-bottom: 26px; }
.sc-tk__body { font-size: 17px; line-height: 2.05; color: #22302f; }
.sc-tk__body p { margin: 0 0 18px; }
.sc-tk__body h2 { font-size: 21px; line-height: 1.6; margin: 40px 0 12px; font-weight: 900; color: var(--tx-ink); scroll-margin-top: 140px; }
.sc-tk__body h3 { font-size: 18px; margin: 28px 0 8px; color: var(--tx-ink); scroll-margin-top: 140px; }
.sc-tk__body img { max-width: 100%; height: auto; border-radius: 10px; }
.sc-tk__body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.sc-tk__body th, .sc-tk__body td { border: 1px solid var(--sc-line); padding: 8px 10px; }
.sc-tk__body .sc-mag-note, .sc-tk__body .sc-mag-steps, .sc-tk__body .sc-anim { margin: 24px 0; }
.sc-tk__body .sc-anim { padding: 14px; }
.sc-tk .sc-mag-faq, .sc-tk #sources, .sc-tk__topics { scroll-margin-top: 140px; }
#sc-faq-t, #sc-tk-toc-m { scroll-margin-top: 140px; }
@media (min-width: 1024px) {
	.sc-tk__lead { font-size: 18px; }
	.sc-tk__body { font-size: 18px; line-height: 2.05; }
	.sc-tk__body h2 { font-size: 24px; margin-top: 48px; }
}
.sc-tk .sc-rel__track { margin-left: -16px; margin-right: -16px; }
@media (min-width: 768px) { .sc-tk .sc-rel__track { margin: 0; } .sc-tk .sc-rel__item { flex-basis: calc(33.333% - 8px); } }

/* Sidebar */
.sc-tk__side { margin-top: 40px; }
.sc-tk__side-h { font-size: 15px; font-weight: 900; color: var(--tx-ink); margin: 0 0 6px; padding-bottom: 8px; border-bottom: 1px solid var(--sc-line); }
.sc-tk__toc--d { display: none; }
@media (min-width: 1024px) {
	.sc-tk__side { margin-top: 0; position: sticky; top: 138px; max-height: calc(100vh - 154px); overflow-y: auto; scrollbar-width: thin; padding-inline-end: 2px; }
	.sc-tk__toc--d { display: block; margin-bottom: 26px; }
	.sc-tk__toc--d .sc-tk__toc-list a { padding: 7px 10px; font-size: 13.5px; }
	.sc-tk__next { position: static; }
	.sc-tk__next .sc-mt-card--mini { grid-template-columns: 104px 1fr; gap: 10px; padding: 10px 0; }
	.sc-tk__next .sc-mt-card__title { font-size: 13.5px; -webkit-line-clamp: 2; }
	.sc-tk__next .sc-mt-card__kicker { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) { .sc-tk__toc--m > summary::after { transition: none; } }
