/* ==========================================================================
   Iran Javan Next — main stylesheet
   Immersive editorial × next-gen media. RTL-first. Dark/light themes.
   ========================================================================== */

/* ---------- Fonts: Vazirmatn RD (round dots) variable, official v33.003, SIL OFL 1.1 ---------- */
@font-face {
	font-family: "Vazirmatn"; font-style: normal; font-weight: 100 900; font-display: swap;
	src: url("../../fonts/Vazirmatn-RD%5Bwght%5D.woff2") format("woff2-variations"), url("../../fonts/Vazirmatn-RD%5Bwght%5D.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
	--font: "Vazirmatn", "IRANSans-web", Tahoma, system-ui, sans-serif;

	--red: #e0243c;
	--red-strong: #c8102e;
	--radius-s: 10px;
	--radius: 18px;
	--radius-l: 28px;
	--ease: cubic-bezier(.22, .8, .2, 1);
	--ease-out: cubic-bezier(.16, 1, .3, 1);
	--dur: .45s;
	--container: 1320px;
	--gutter: clamp(16px, 3.2vw, 40px);
	--header-h: 72px;

	--fs-xs: .78rem;
	--fs-s: .9rem;
	--fs-m: 1.05rem;
	--fs-l: clamp(1.15rem, 1rem + .5vw, 1.35rem);
	--fs-xl: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
	--fs-2xl: clamp(1.8rem, 1.2rem + 2.4vw, 3rem);
	--fs-hero: clamp(1.9rem, 1.1rem + 3.4vw, 3.9rem);
}

/* Dark (default) */
:root,
:root[data-theme="dark"] {
	color-scheme: dark;
	/* Black dark mode: neutral blacks and greys (no navy tint). */
	--bg: #000;
	--bg-2: #0b0b0c;
	--surface: #141415;
	--surface-2: #1c1c1e;
	--text: #f2f2f3;
	--text-2: #bcbcc2;
	--text-3: #8e8e95;
	--line: rgba(255, 255, 255, .1);
	--line-strong: rgba(255, 255, 255, .17);
	--glass-bg: rgba(20, 20, 21, .6);
	--glass-bg-strong: rgba(10, 10, 11, .7);
	--glass-line: rgba(255, 255, 255, .12);
	--glass-hi: rgba(255, 255, 255, .06);
	--shadow: 0 20px 50px -20px rgba(0, 0, 0, .65);
	--shadow-s: 0 8px 24px -12px rgba(0, 0, 0, .6);
	--accent: var(--red);
	--accent-text: #ff6b7d;
	--cat: #7fb0ff;
	--cat-solid: #2f5bd3;
	/* Ambient glows kept very faint so the background reads as black. */
	--orb-1: rgba(60, 60, 70, .22);
	--orb-2: rgba(200, 16, 46, .07);
	--orb-3: rgba(60, 60, 70, .12);
	--fallback: linear-gradient(135deg, #1e1e20, #0b0b0c);
}

:root[data-theme="light"] {
	color-scheme: light;
	--bg: #f6f5f2;
	--bg-2: #eeece7;
	--surface: #ffffff;
	--surface-2: #f3f2ee;
	--text: #121725;
	--text-2: #424a5e;
	--text-3: #5d6477;
	--line: rgba(18, 23, 37, .09);
	--line-strong: rgba(18, 23, 37, .16);
	--glass-bg: rgba(255, 255, 255, .62);
	--glass-bg-strong: rgba(255, 255, 255, .78);
	--glass-line: rgba(255, 255, 255, .7);
	--glass-hi: rgba(255, 255, 255, .5);
	--shadow: 0 24px 50px -24px rgba(20, 30, 60, .28);
	--shadow-s: 0 8px 24px -14px rgba(20, 30, 60, .3);
	--accent: var(--red-strong);
	--accent-text: #b00d27;
	--cat: #1f3fa6;
	--cat-solid: #1f3fa6;
	--orb-1: rgba(80, 120, 220, .16);
	--orb-2: rgba(200, 16, 46, .08);
	--orb-3: rgba(180, 160, 120, .14);
	--fallback: linear-gradient(135deg, #dfe3ee, #c9cfdd);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-m);
	line-height: 1.85;
	color: var(--text);
	background: var(--bg);
	direction: rtl;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
	transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
@media (hover: hover) { a:hover { color: var(--accent-text); } }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.5; font-weight: 700; }
/* Balanced wrapping is costly for layout: only for the few large headlines */
.hero__title, .section-head__title, .article__title, .magazine__title, .mag-hero__title, .about-hero__title, .contact-hero__title, .archive-hero__title, .footer-cta__title { text-wrap: balance; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: fixed; inset-inline-start: 16px; top: 16px; transform: translateY(-200%); z-index: 1000;
	background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-s);
	transition: transform .2s;
}
.skip-link:focus { transform: none; color: #fff; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(24px, 3.6vw, 52px); }

/* Ambient background */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient {
	background:
		radial-gradient(60vw 60vw at 100% -10%, var(--orb-1), transparent 70%),
		radial-gradient(40vw 40vw at -5% 55%, var(--orb-2), transparent 70%),
		radial-gradient(45vw 45vw at 70% 110%, var(--orb-3), transparent 70%);
}
.ambient span { display: none; }

/* ---------- Glass ---------- */
.glass {
	border: 1px solid var(--glass-line);
	box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow-s);
}
/* Real-time blur is expensive; keep it for the few overlays that sit on imagery */
.site-header__bar, .hero__panel, .search-panel__inner, .search-results, .mobile-menu {
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	backdrop-filter: blur(18px) saturate(160%);
}
/* Without live blur, glass needs a denser tint (zero-specificity so component rules win) */
:where(.glass) { background: color-mix(in srgb, var(--surface) 82%, transparent); }
:where(.site-header__bar, .search-panel__inner, .search-results, .mobile-menu).glass { background: var(--glass-bg); }
/* Elements that sit on hero/tile photos keep a dark tint in both themes */
.hero .hero__thumbs, .hero__thumbs.glass { background: rgba(0, 0, 0, .55); border-color: rgba(255, 255, 255, .14); }
.hero .hero__arrows .icon-btn { background: rgba(0, 0, 0, .45); border-color: rgba(255, 255, 255, .18); color: #fff; }
.tile .tile__label { background: rgba(0, 0, 0, .62); }
.to-top.glass, .icon-btn.glass { background: color-mix(in srgb, var(--surface) 75%, transparent); }
.glass--strong { background: var(--glass-bg-strong); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.glass { background: var(--surface); }
}

/* ---------- Buttons, badges, chips ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .5rem;
	min-height: 44px; padding: .55rem 1.2rem; border-radius: 999px;
	font-weight: 600; font-size: var(--fs-s); border: 1px solid transparent; cursor: pointer;
	transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s;
}
.btn .icon { width: 18px; height: 18px; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px var(--accent); }
@media (hover: hover) { .btn--accent:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -10px var(--accent); } }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
@media (hover: hover) { .btn--ghost:hover { border-color: var(--accent); color: var(--accent-text); } }

.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px;
	border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer;
	transition: background-color .25s, border-color .25s, transform .25s var(--ease);
}
@media (hover: hover) { .icon-btn:hover { border-color: var(--line-strong); background: var(--glass-hi); transform: translateY(-1px); } }

.badge {
	display: inline-flex; align-items: center; gap: .4rem;
	font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0;
	padding: .15rem .7rem; border-radius: 999px;
	color: var(--cat); background: color-mix(in srgb, var(--cat-solid) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--cat-solid) 30%, transparent);
	position: relative; z-index: 2;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--accent, .card--overlay .badge, .tile .badge { color: #fff; background: var(--cat-solid); border-color: transparent; box-shadow: 0 6px 16px -8px rgba(0,0,0,.5); }
@media (hover: hover) { .badge:hover { color: var(--cat); border-color: var(--cat); } }
@media (hover: hover) { .badge--accent:hover { color: #fff; } }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chip, .chips a {
	padding: .3rem .9rem; border-radius: 999px; font-size: var(--fs-s);
	border: 1px solid var(--line); background: var(--glass-bg);
	transition: border-color .25s, color .25s;
}
@media (hover: hover) { .chip:hover, .chips a:hover { border-color: var(--accent); } }

.eyebrow { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--accent-text); margin-bottom: .2rem; }

.meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: var(--fs-xs); color: var(--text-3); }
.meta__dot { opacity: .6; }
.meta time[title] { cursor: help; text-decoration: underline dotted transparent; text-underline-offset: 3px; transition: text-decoration-color .2s; }
@media (hover: hover) { .meta time[title]:hover { text-decoration-color: currentColor; } }
.meta__views { display: inline-flex; align-items: center; gap: .3rem; font-variant-numeric: tabular-nums; }
.meta__views::before { content: ""; width: 15px; height: 15px; flex: none; opacity: .85; background: currentColor; -webkit-mask: var(--eye) center / contain no-repeat; mask: var(--eye) center / contain no-repeat; }
:root { --eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; padding-top: 12px; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .35s ease; will-change: transform; }
.site-header.is-hidden { opacity: 0; pointer-events: none; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-hidden { transform: translateY(-110%); }
.site-header__bar {
	display: flex; align-items: center; gap: 1rem;
	min-height: var(--header-h); padding-inline: 1.1rem; border-radius: var(--radius-l);
	transition: background-color .35s, box-shadow .35s;
}
.site-header.is-scrolled .site-header__bar { background: var(--glass-bg-strong); box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow); }
.brand { flex-shrink: 0; }
.brand__link { display: block; line-height: 0; }
.brand__logo { height: 48px; width: auto; max-width: 100%; }
.brand__logo--light { display: none; }
:root[data-theme="light"] .brand__logo--light { display: block; }
:root[data-theme="light"] .brand__logo--dark { display: none; }
.mobile-menu__head .brand__logo { height: 40px; }
.brand__text { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }

.primary-nav { flex: 1; min-width: 0; }
.primary-nav .menu { display: flex; gap: .2rem; list-style: none; justify-content: center; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu > li > a {
	display: block; padding: .5rem .85rem; border-radius: 999px; font-size: var(--fs-s); font-weight: 500;
	color: var(--text-2); white-space: nowrap; position: relative; transition: color .25s, background-color .25s;
}
.primary-nav .menu > li > a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current-category-ancestor > a { color: var(--text); background: var(--glass-hi); }
.primary-nav .current-menu-item > a::after,
.primary-nav .current-menu-ancestor > a::after {
	content: ""; position: absolute; inset-inline: 30%; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent);
}
.primary-nav .sub-menu {
	position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 220px; list-style: none;
	padding: .5rem; border-radius: var(--radius);
	/* Solid: the header already has a backdrop blur, so a nested blur can't work and any see-through menu let the text behind it show. */
	background: var(--surface); border: 1px solid var(--line-strong);
	box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px) scale(.98); transform-origin: top;
	transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: block; padding: .5rem .8rem; border-radius: var(--radius-s); font-size: var(--fs-s); color: var(--text); }
@media (hover: hover) { .primary-nav .sub-menu a:hover { background: var(--surface-2); color: var(--text); } }

.header-actions { display: flex; align-items: center; gap: .4rem; margin-inline-start: auto; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.theme-toggle svg { transition: transform .5s var(--ease); }
@media (hover: hover) { .theme-toggle:hover svg { transform: rotate(25deg); } }
.menu-toggle { display: none; }
.install-btn { min-height: 40px; padding: .4rem .95rem; font-size: var(--fs-xs); }
.install-btn .icon { width: 16px; height: 16px; }
.install-btn[hidden] { display: none; }
.install-tip { position: fixed; z-index: 300; inset-inline: 16px; bottom: 16px; max-width: 440px; margin-inline: auto; padding: .9rem 1.1rem; border-radius: var(--radius); font-size: var(--fs-s); line-height: 1.9; color: var(--text); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.install-tip.is-on { opacity: 1; transform: none; pointer-events: auto; }
.install-tip svg { display: inline; vertical-align: -3px; }
@media (max-width: 420px) { .install-btn span { display: none; } .install-btn { padding: 0; width: 40px; justify-content: center; } }

/* Search panel */
.search-panel {
	position: fixed; inset: 0; z-index: 200; display: grid; place-items: start center;
	padding: 14vh var(--gutter) 0; background: rgba(4, 7, 15, .5);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	animation: fade .3s var(--ease);
}
.search-panel[hidden] { display: none; }
.search-panel__inner { width: min(760px, 100%); display: flex; align-items: center; gap: .6rem; padding: .7rem; border-radius: var(--radius-l); animation: rise .45s var(--ease-out); }
.search-form { display: flex; align-items: center; gap: .6rem; flex: 1; position: relative; }
.search-form > .icon { position: absolute; inset-inline-start: 1rem; color: var(--text-3); pointer-events: none; }
.search-form__input {
	flex: 1; min-width: 0; min-height: 50px; padding-inline: 2.8rem 1rem; border-radius: 999px;
	border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit;
}
.search-form__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }

/* Mobile menu */
.mobile-menu {
	width: min(400px, 88vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto;
	inset-inline-start: 0; padding: 1.1rem 1.1rem calc(1.2rem + env(safe-area-inset-bottom)); border-radius: 24px 0 0 24px;
	color: var(--text); overflow-y: auto; overscroll-behavior: contain;
	border: 0; border-inline-end: 1px solid var(--glass-line);
	box-shadow: -24px 0 60px -20px rgba(0, 0, 0, .55);
	transform: translateX(105%); transition: transform .42s cubic-bezier(.22, 1, .36, 1);
	will-change: transform; touch-action: pan-y;
}
.mobile-menu.is-in { transform: none; }
.mobile-menu.is-dragging { transition: none; }
.mobile-menu::backdrop { background: rgba(4, 7, 15, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background-color .35s ease, backdrop-filter .35s ease, -webkit-backdrop-filter .35s ease; }
.mobile-menu.is-in::backdrop { background: rgba(4, 7, 15, .58); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* Contents arrive just after the panel, one row at a time */
.mobile-menu .mobile-menu__head, .mobile-menu .search-form, .mobile-menu__list > li, .mobile-menu .social { opacity: 0; transform: translateX(18px); transition: opacity .35s ease, transform .45s cubic-bezier(.22, 1, .36, 1); transition-delay: 0s; }
.mobile-menu.is-in .mobile-menu__head, .mobile-menu.is-in .search-form, .mobile-menu.is-in .mobile-menu__list > li, .mobile-menu.is-in .social { opacity: 1; transform: none; transition-delay: calc(.08s + var(--i, 0) * .035s); }
.mobile-menu__list > li > a { transition: background-color .2s, color .2s; border-radius: 12px; }
.mobile-menu__list > li > a:active { background: var(--glass-hi); }
html.menu-open { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
	.mobile-menu, .mobile-menu::backdrop, .mobile-menu .mobile-menu__head, .mobile-menu .search-form, .mobile-menu__list > li, .mobile-menu .social { transition: none !important; }
}
.mobile-menu__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.mobile-menu .search-form { margin-bottom: 1rem; }
.mobile-menu .search-form .btn { display: none; }
.mobile-menu__list { list-style: none; }
.mobile-menu__list a { display: flex; min-height: 48px; align-items: center; padding: .4rem .6rem; border-bottom: 1px solid var(--line); font-weight: 600; }
.mobile-menu__list .sub-menu { list-style: none; padding-inline-start: 1rem; }
.mobile-menu__list .js-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.mobile-menu__list .js-sub > .sub-menu { display: block; min-height: 0; overflow: hidden; }
.mobile-menu__list li.is-open > .js-sub { grid-template-rows: 1fr; }
.mobile-menu__list .menu-item-has-children { position: relative; }
.mobile-menu__list .menu-item-has-children > a { padding-inline-end: 3.2rem; }
.sub-toggle { position: absolute; inset-inline-end: 0; top: 2px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; color: var(--text-2); border-radius: 50%; }
.sub-toggle::before { content: ""; width: 9px; height: 9px; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.is-open > .sub-toggle::before { transform: translateY(2px) rotate(-135deg); }
.is-open > .sub-toggle { color: var(--accent-text); background: var(--glass-hi); }
@media (hover: hover) { .sub-toggle:hover { color: var(--accent-text); background: var(--glass-hi); } }
.mobile-menu__list .sub-menu a { font-weight: 400; color: var(--text-2); }
.mobile-menu__list .current-menu-item > a { color: var(--accent-text); }

/* ---------- Social ---------- */
.social { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); transition: border-color .25s, color .25s, transform .25s var(--ease); }
@media (hover: hover) { .social a:hover { border-color: var(--accent); transform: translateY(-2px); } }
.social--menu { margin-top: 1.5rem; }

/* ---------- Hero ---------- */
/* --ticker-room: extra space main.js adds when the floating ticker needs room above the headline card. */
.hero { position: relative; margin-top: calc(-84px + var(--ticker-room, 0px)); isolation: isolate; color: #fff; }
.hero__slides { position: relative; height: clamp(560px, 92vh, 900px); }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 1s; }
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
/* No slow zoom: animating the photo under the blurred panel forced a blur repaint every frame */
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
	position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(180deg, rgba(5, 9, 20, .55) 0%, rgba(5, 9, 20, 0) 28%),
		linear-gradient(0deg, rgba(5, 9, 20, .92) 0%, rgba(5, 9, 20, .35) 45%, rgba(5, 9, 20, 0) 70%),
		linear-gradient(270deg, rgba(5, 9, 20, .55) 0%, rgba(5, 9, 20, 0) 55%);
}
.hero__content { position: absolute; inset-inline: 0; bottom: clamp(120px, 16vh, 170px); }
.hero__panel {
	max-width: 760px; padding: clamp(1.2rem, 2.5vw, 2.2rem); border-radius: var(--radius-l);
	background: rgba(0, 0, 0, .42); border-color: rgba(255, 255, 255, .14);
	opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out) .25s, transform .9s var(--ease-out) .25s;
}
.hero__slide.is-active .hero__panel { opacity: 1; transform: none; }
.hero__title { font-size: var(--fs-hero); font-weight: 800; line-height: 1.38; margin: .8rem 0 .6rem; letter-spacing: -.01em; }
@media (hover: hover) {
	.hero__title a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 10px; text-decoration-color: var(--red); }
}
.hero__excerpt { color: rgba(255, 255, 255, .82); font-size: var(--fs-l); line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.hero .meta { color: rgba(255, 255, 255, .72); }

.hero__nav { position: absolute; inset-inline: 0; bottom: 28px; z-index: 3; display: flex; gap: 1rem; align-items: stretch; }
.hero__thumbs { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .25rem; padding: .35rem; border-radius: var(--radius); background: rgba(0, 0, 0, .4); border-color: rgba(255, 255, 255, .12); }
.hero__thumb { text-align: start; background: none; border: 0; cursor: pointer; padding: .55rem .75rem; border-radius: 12px; color: rgba(255, 255, 255, .62); font-size: var(--fs-xs); line-height: 1.7; transition: background-color .3s, color .3s; }
.hero__thumb.is-active { color: #fff; background: rgba(255, 255, 255, .08); }
@media (hover: hover) { .hero__thumb:hover { color: #fff; background: rgba(255, 255, 255, .08); } }
.hero__thumb-bar { display: block; height: 2px; background: rgba(255, 255, 255, .18); border-radius: 2px; margin-bottom: .45rem; overflow: hidden; }
.hero__thumb-bar span { display: block; height: 100%; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: right; }
.hero__thumb.is-active .hero__thumb-bar span { animation: fill var(--hero-dur, 7s) linear forwards; }
.hero.is-paused .hero__thumb.is-active .hero__thumb-bar span { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.hero__thumb-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero__arrows { display: flex; gap: .4rem; align-items: center; }
.hero__arrows .icon-btn { color: #fff; background: rgba(0, 0, 0, .4); border-color: rgba(255, 255, 255, .14); }
.pause-glyph { width: 12px; height: 14px; border-inline: 4px solid currentColor; }
.hero.is-paused .pause-glyph { border: 0; width: 0; height: 0; border-block: 7px solid transparent; border-inline-end: 12px solid currentColor; }

/* ---------- Ads ---------- */
.ad-zone { margin-block: clamp(20px, 3vw, 36px); text-align: center; }
.ad-zone__label {
	display: inline-flex; align-items: center; gap: .5rem; font-size: .7rem; color: var(--text-3);
	margin-bottom: .4rem; letter-spacing: .02em;
}
.ad-zone__label::before, .ad-zone__label::after { content: ""; width: 24px; height: 1px; background: var(--line-strong); }
.ad-zone__body {
	display: grid; gap: .8rem; justify-items: center; padding: .6rem;
	border-radius: var(--radius); border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.ad-zone__body img { max-width: 100%; height: auto; border-radius: 10px; }
.ad-zone__body a { display: block; transition: transform .35s var(--ease), box-shadow .35s; border-radius: 10px; }
@media (hover: hover) { .ad-zone__body a:hover { transform: translateY(-2px); box-shadow: var(--shadow); } }
.ad-unit { width: 100%; display: grid; gap: .8rem; justify-items: center; }
.ad-unit > * { max-width: 100%; }
.ad-zone--leaderboard { margin-block: 10px 0; }
.ad-zone--leaderboard .ad-zone__body { padding: .35rem; }
.ad-zone--billboard { margin-top: clamp(24px, 4vw, 48px); }
.ad-zone--sidebar.is-sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.ad-zone--sponsored .ad-zone__body { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); justify-items: stretch; text-align: start; }
.ad-zone--sponsored .ad-zone__label { color: var(--accent-text); }
.ad-zone--mobile-only { display: none; }
/* Uniform ads: every creative in a zone gets the same box (the zone's slot
   ratio), laid out in equal columns — never a row of mismatched heights. */
.ad-zone[data-slot] .ad-zone__body,
.ad-zone[data-slot] .ad-unit,
.ad-zone[data-slot] .dfads-wrapper {
	display: grid; gap: .8rem; justify-items: stretch; align-items: start;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ad-col, 260px)), 1fr));
}
.ad-zone[data-slot] .ad-unit, .ad-zone[data-slot] .dfads-wrapper { grid-column: 1 / -1; }
.ad-zone[data-slot] .ad-zone__body > *, .ad-zone[data-slot] .ad-unit > *, .ad-zone[data-slot] .dfads-wrapper > * { min-width: 0; }
.ad-zone[data-slot] .ad-zone__body img {
	width: 100%; height: auto; aspect-ratio: var(--ad-w) / var(--ad-h);
	object-fit: contain; background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.ad-zone[data-slot="square"], .ad-zone[data-slot="hero"], .ad-zone[data-slot="super_hero_rect"] { --ad-col: 280px; }
.ad-zone[data-slot="traditional"], .ad-zone[data-slot="standard"], .ad-zone[data-slot="wide"] { --ad-col: 360px; }
.ad-zone--sidebar, .ad-zone--magazine { --ad-col: 100%; }
/* Multi-up zones (3 equal ads: under the hero and after each homepage section) */
.ad-zone--multi .ad-zone__body,
.ad-zone--multi .ad-unit,
.ad-zone--multi .dfads-wrapper { grid-template-columns: repeat(var(--ad-n, 3), minmax(0, 1fr)); }
.ad-zone.is-placeholder.ad-zone--multi .ad-zone__body { grid-template-columns: repeat(var(--ad-n, 3), minmax(0, 1fr)); justify-items: stretch; }
@media (max-width: 900px) {
	.ad-zone--multi .ad-zone__body, .ad-zone--multi .ad-unit, .ad-zone--multi .dfads-wrapper,
	.ad-zone.is-placeholder.ad-zone--multi .ad-zone__body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phones: multi-up becomes a swipeable strip — one ad at a time, next one peeking */
@media (max-width: 560px) {
	.ad-zone--multi .ad-zone__body, .ad-zone.is-placeholder.ad-zone--multi .ad-zone__body {
		display: flex; gap: .7rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
		margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none;
	}
	.ad-zone--multi .ad-zone__body::-webkit-scrollbar { display: none; }
	.ad-zone--multi .ad-zone__body > * { flex: 0 0 84%; scroll-snap-align: start; }
}

/* One ad between homepage sections: centred, capped width, compact spacing */
.ad-zone--row { max-width: 970px; margin-inline: auto; margin-block: clamp(4px, 1vw, 12px); }
.ad-zone--row .ad-placeholder { padding: .5rem; }

.ad-code { min-width: 0; width: 100%; display: grid; justify-items: center; overflow: hidden; border-radius: 10px; }
.ad-code > * { max-width: 100%; }
.ad-code iframe { width: 100%; aspect-ratio: var(--ad-w) / var(--ad-h); height: auto; border: 0; }
.ad-zone:has(.ad-code) .ad-zone__body { padding: 0; border: 0; background: none; }
/* IJ Ads SDK (iranjavan.org): containers must span the slot so the SDK measures the real width
   and picks a sharp image; empty slots collapse instead of leaving an empty frame */
.ad-code { justify-items: stretch; }
.ad-code > [id^="ijads-"] { width: 100%; }
.ad-code > [id^="ijads-"] > a { width: 100%; }
.ad-code > [id^="ijads-"] img { width: 100% !important; height: auto !important; display: block; }
.ad-code:has(> [id^="ijads-"][data-ijads-rendered]:not([data-ijads-painted])) { display: none; }
.ad-zone:has(.ad-code > [id^="ijads-"]):not(:has([data-ijads-painted])):has([data-ijads-rendered]) { display: none; }
@media (min-width: 561px) {
	.ad-zone--multi:has(.ad-code) .ad-zone__body { display: flex; gap: .8rem; }
	.ad-zone--multi:has(.ad-code) .ad-zone__body > * { flex: 1 1 0; min-width: 0; }
}
/* IJ Ads loader boxes: full width of their slot; empty boxes and fully empty zones collapse */
.ad-code > [data-ijads] { width: 100%; min-height: 1px; }
.ad-code > [data-ijads] > a { display: block; border-radius: 12px; overflow: hidden; }
.ad-code > [data-ijads] img { width: 100%; height: auto; display: block; }
.ad-code:has(> [data-ijads][data-ij-state="empty"]) { display: none; }
.ad-zone:has(.ad-code > [data-ijads]):not(:has([data-ij-state="filled"])):has([data-ij-state="empty"]) { display: none; }
/* Real ads keep their own shape: no slot-shaped frame, letterboxing or background around them */
.ad-zone:has(.ad-code) .ad-zone__body { padding: 0; border: 0; background: none; }
.ad-zone .ad-code img, .ad-zone[data-slot] .ad-zone__body .ad-code img { aspect-ratio: auto !important; height: auto !important; object-fit: initial; background: none; border-radius: 12px; }
.ad-zone--row:has(.ad-code) { max-width: 760px; }
.ad-zone--sidebar .ad-code, .ad-zone--magazine .ad-code { max-width: 340px; margin-inline: auto; }

/* Rows of several ads: identical 2:1 boxes. The whole creative is shown (never cropped);
   if its shape differs, the side strips are filled with a soft blurred copy of the same ad. */
.ad-zone--multi .ad-code > [data-ijads] > a { position: relative; isolation: isolate; aspect-ratio: 2 / 1; overflow: hidden; background: #0b0b0c; }
.ad-zone--multi .ad-code > [data-ijads] > a::before { content: ""; position: absolute; inset: -24px; z-index: -1; background: var(--ij-bg) center / cover no-repeat; filter: blur(18px) saturate(1.2) brightness(.75); }
.ad-zone.ad-zone--multi[data-slot] .ad-zone__body .ad-code > [data-ijads] img { width: 100% !important; height: 100% !important; aspect-ratio: auto !important; object-fit: contain; border-radius: 0; }
/* Soft frame on every ad (drawn over the image, so a black ad on the dark theme still shows its box
   and every ad in a row reads as the same size). */
.ad-code > [data-ijads] > a { position: relative; }
.ad-code > [data-ijads] > a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line-strong); pointer-events: none; }
/* Phones: the multi-ad row is a single column inside the page gutter (no side scroll, ads never touch the screen edge) */
@media (max-width: 560px) {
	.ad-zone.ad-zone--multi[data-slot] .ad-zone__body {
		display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; overflow: visible;
		margin-inline: 0; padding-inline: 0; scroll-snap-type: none;
	}
	.ad-zone.ad-zone--multi[data-slot] .ad-zone__body > * { min-width: 0; }
}

.ad-zone--page { max-width: 760px; margin-inline: auto; margin-block: clamp(20px, 3vw, 40px); }

/* Empty-slot placeholders: exact slot aspect ratio, capped at slot width */
.ad-zone.is-placeholder .ad-zone__body { padding: 0; border: 0; background: none; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.ad-placeholder {
	width: min(100%, calc(var(--ad-w) * 1px)); aspect-ratio: var(--ad-w) / var(--ad-h); min-height: 0; min-width: 0; overflow: hidden;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
	padding: .8rem; border-radius: var(--radius); text-align: center;
	border: 1px dashed var(--line-strong);
	background: color-mix(in srgb, var(--surface) 40%, transparent);
	color: var(--text-3);
}
@media (hover: hover) { a.ad-placeholder:hover { border-color: var(--accent); color: var(--accent-text); } }
.ad-placeholder__title { font-weight: 600; font-size: clamp(.8rem, .7rem + .3vw, .95rem); color: var(--text-3); }
.ad-placeholder__size { font-size: var(--fs-xs); font-family: system-ui, sans-serif; }
.ad-zone--sidebar .ad-placeholder, .ad-zone--magazine .ad-placeholder { max-width: 340px; }
/* dfads (DFP Ads) markup */
.dfads-wrapper, .dfad { max-width: 100%; }
.dfad img { margin-inline: auto; }

/* ---------- Section head ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1rem, 2vw, 1.6rem); }
.section-head__title { display: flex; align-items: center; gap: .75rem; font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.15rem); font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.section-head__title::before { content: ""; flex: none; width: 6px; height: 1.05em; border-radius: 3px; background: linear-gradient(180deg, var(--accent), var(--cat-solid)); }
.section-head::after { content: ""; flex: 1; order: 1; height: 1px; background: var(--line); min-width: 1rem; }
.section-head .more-link { order: 2; }
.more-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .35rem .95rem; border-radius: 999px; border: 1px solid var(--line-strong); font-size: var(--fs-s); font-weight: 600; color: var(--text-2); white-space: nowrap; transition: border-color .25s, color .25s, background-color .25s; }
.more-link .icon { width: 16px; transition: transform .3s var(--ease); }
@media (hover: hover) { .more-link:hover { border-color: var(--accent); color: var(--accent-text); background: color-mix(in srgb, var(--accent) 6%, transparent); } }
@media (hover: hover) { .more-link:hover .icon { transform: translateX(-4px); } }

/* ---------- Layout ---------- */
.layout-main-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 3vw, 48px); align-items: start; }
.side-stack { display: grid; gap: 1.5rem; position: sticky; top: calc(var(--header-h) + 32px); }
.panel { padding: 1.2rem; border-radius: var(--radius); }
.panel__title { font-size: var(--fs-l); font-weight: 800; margin-bottom: .6rem; }
.widget { padding: 1.2rem; border-radius: var(--radius); }
.widget__title { font-size: var(--fs-l); margin-bottom: .6rem; }
.widget ul { list-style: none; }
.widget li { padding-block: .35rem; border-bottom: 1px solid var(--line); }

/* ---------- Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: .8rem; }
.card__media { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; background: var(--fallback); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), filter .5s; }
@media (hover: hover) { .card:hover .card__media img { transform: scale(1.05); } }
.card__body { display: flex; flex-direction: column; gap: .45rem; align-items: flex-start; }
.card__title { font-size: clamp(1rem, .95rem + .2vw, 1.12rem); font-weight: 800; line-height: 1.65; }
.card__title a { background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1px no-repeat; transition: background-size .45s var(--ease), color .25s; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
@media (hover: hover) { .card:hover .card__title a { background-size: 100% 1px; color: var(--accent-text); } }
.card__excerpt { color: var(--text-2); font-size: var(--fs-s); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: var(--fallback); color: var(--text-3); font-weight: 800; font-size: 1.2rem; }

.card--overlay { color: #fff; border-radius: var(--radius-l); overflow: hidden; min-height: 420px; justify-content: flex-end; }
.card--overlay .card__media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.card--overlay::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(5, 9, 20, .92), rgba(5, 9, 20, .2) 60%, transparent); }
.card--overlay .card__body { position: relative; z-index: 2; padding: clamp(1rem, 2.5vw, 1.8rem); }
.card--overlay .card__title { font-size: var(--fs-xl); line-height: 1.5; }
.card--overlay .card__title a::after { z-index: 3; }
@media (hover: hover) { .card--overlay:hover .card__title a { color: #fff; } }
.card--overlay .meta { color: rgba(255, 255, 255, .75); }

.card--horizontal { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.4rem; align-items: center; }
.card--horizontal .card__title { font-size: var(--fs-xl); line-height: 1.55; }
.card--horizontal .card__media { aspect-ratio: 4 / 3; border-radius: var(--radius-l); }

.card--compact, .card--ranked { display: grid; grid-template-columns: 96px 1fr; gap: .9rem; align-items: center; }
.card--compact .card__media, .card--ranked .card__media { aspect-ratio: 1; border-radius: 14px; }
.card--compact .card__title, .card--ranked .card__title { font-size: var(--fs-s); line-height: 1.75; }
.card--ranked { grid-template-columns: 34px 72px 1fr; }
.card__rank { font-size: 1.7rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1px var(--text-3); line-height: 1; text-align: center; }
@media (hover: hover) { .card--ranked:hover .card__rank { -webkit-text-stroke-color: var(--accent); color: color-mix(in srgb, var(--accent) 20%, transparent); } }
.ranked-list { list-style: none; display: grid; }
.ranked-list li { padding-block: .7rem; border-bottom: 1px solid var(--line); }
.ranked-list li:last-child { border-bottom: 0; }

/* Grids */
.grid-feature { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.grid-feature > :first-child { grid-column: 1 / -1; min-height: clamp(380px, 46vw, 520px); }
.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.grid-cards > .card--overlay:first-child { grid-column: 1 / -1; min-height: clamp(360px, 40vw, 480px); }
.grid-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cards__full { grid-column: 1 / -1; }

/* Category bands */
.band { position: relative; }
.band:nth-of-type(even)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface) 60%, transparent) 20%, color-mix(in srgb, var(--surface) 60%, transparent) 80%, transparent); }
.band__grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(4, auto); gap: 1rem 2.2rem; }
.band__grid > .card--horizontal { grid-row: 1 / span 4; grid-template-columns: 1fr; align-items: start; }
.band__grid > .card--horizontal .card__media { aspect-ratio: 16 / 10; }
.band__grid > .card--compact { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.band__grid > .card--compact:last-child { border-bottom: 0; }
.band--reverse .band__grid { grid-template-columns: 1fr 1.4fr; }
.band--reverse .band__grid > .card--horizontal { grid-column: 2; }

/* Band: row — 4 equal cards */
.band__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
/* Band: mosaic — 1 large overlay + 2 stacked */
.band__mosaic { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(220px, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.band__mosaic > .card--overlay { min-height: 0; }
.band__mosaic > :first-child { grid-row: 1 / span 2; min-height: clamp(420px, 40vw, 560px); }
.band__mosaic > :first-child .card__title { font-size: var(--fs-2xl); }
.band__mosaic > :not(:first-child) .card__title { font-size: var(--fs-l); }
.band__mosaic > :not(:first-child) .meta > :not(time):not(.meta__views), .band__mosaic > :not(:first-child) .meta__dot:first-of-type { display: none; }

/* Magazine */
.magazine { position: relative; overflow: hidden; }
.magazine::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(60% 80% at 80% 50%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
		linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent);
}
.magazine__inner { display: grid; grid-template-columns: minmax(220px, 360px) minmax(0, 1fr) minmax(0, 300px); gap: clamp(24px, 4vw, 64px); align-items: center; }
.magazine__inner > *, .magazine__info { min-width: 0; }
.magazine__title, .magazine__issue { overflow-wrap: anywhere; }
.magazine__cover { perspective: 1200px; }
.magazine__cover-link { display: block; position: relative; aspect-ratio: 3 / 4; border-radius: 8px 18px 18px 8px; overflow: hidden; background: var(--fallback); transform: rotateY(-14deg) rotateX(4deg); box-shadow: -30px 40px 60px -30px rgba(0, 0, 0, .7), inset -6px 0 12px rgba(0, 0, 0, .25); transition: transform .8s var(--ease-out); }
@media (hover: hover) { .magazine__cover-link:hover { transform: rotateY(0) rotateX(0) translateY(-6px); } }
.magazine__cover-link img { width: 100%; height: 100%; object-fit: cover; }
.magazine__title { font-size: var(--fs-2xl); font-weight: 800; line-height: 1.35; }
.magazine__issue { font-size: var(--fs-l); font-weight: 600; color: var(--text-2); margin-block: .6rem .2rem; }
.magazine__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.magazine__shelf { list-style: none; display: flex; gap: .8rem; margin-top: 2rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
.magazine__shelf li { flex: 0 0 84px; scroll-snap-align: start; }
.magazine__shelf a { display: block; position: relative; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; background: var(--fallback); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .3s; }
@media (hover: hover) { .magazine__shelf a:hover { transform: translateY(-4px); border-color: var(--accent); } }
.magazine__shelf img { width: 100%; height: 100%; object-fit: cover; }
.ad-zone--magazine { margin: 0; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.tile { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-l); overflow: hidden; background: var(--fallback); display: flex; align-items: flex-end; padding: .8rem; isolation: isolate; }
.tile:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease-out); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 9, 20, .7), transparent 60%); }
@media (hover: hover) { .tile:hover img { transform: scale(1.07); } }
.tile__label { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; padding: .7rem 1rem; border-radius: 14px; color: #fff; font-weight: 700; background: rgba(0, 0, 0, .4); border-color: rgba(255, 255, 255, .16); }
.tile__label .icon { transition: transform .35s var(--ease); }
@media (hover: hover) { .tile:hover { color: #fff; } }
@media (hover: hover) { .tile:hover .tile__label .icon { transform: translateX(-5px); } }

/* ---------- Archive ---------- */
.archive-hero { padding-block: clamp(36px, 6vw, 80px) clamp(16px, 2vw, 24px); }
.archive-hero__title { font-size: var(--fs-2xl); font-weight: 800; }
.archive-hero__desc { color: var(--text-2); max-width: 70ch; margin-top: .6rem; }
.archive-hero .search-form { max-width: 640px; margin-top: 1.2rem; }
.breadcrumbs { font-size: var(--fs-xs); color: var(--text-3); margin-bottom: .8rem; }
@media (hover: hover) { .breadcrumbs a:hover { color: var(--accent-text); } }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .45rem; }
.breadcrumbs__sep { opacity: .6; }
.breadcrumbs [aria-current] { opacity: .85; }
.meta--updated { margin-inline-start: .45rem; }

.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding-inline: .6rem; border-radius: 999px; border: 1px solid var(--line); font-size: var(--fs-s); }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (hover: hover) { .pagination a.page-numbers:hover { border-color: var(--accent); } }

.empty { padding: 2rem; border-radius: var(--radius-l); text-align: center; display: grid; gap: 1rem; justify-items: center; }
.empty .search-form { width: 100%; max-width: 560px; }
.notfound__code { font-size: clamp(5rem, 18vw, 10rem); font-weight: 800; line-height: 1; margin: 0; background: linear-gradient(135deg, var(--text), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Article ---------- */
.article-hero { position: relative; padding-block: clamp(40px, 6vw, 80px) 24px; }
.article-hero.has-media { margin-top: -84px; min-height: clamp(520px, 78vh, 780px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.article-hero__media { position: absolute; inset: -6% 0 0; z-index: -2; }
.article-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.article-hero.has-media .hero__shade { z-index: -1; }
.article-hero__content { position: relative; max-width: 980px; }
.article-hero.has-media .breadcrumbs, .article-hero.has-media .breadcrumbs a { color: rgba(255, 255, 255, .75); }
.article__title { font-size: var(--fs-hero); font-weight: 800; line-height: 1.4; margin-block: .8rem; }
.article__lede { font-size: var(--fs-l); line-height: 1.9; color: var(--text-2); max-width: 62ch; }
.article-hero.has-media .article__lede { color: rgba(255, 255, 255, .85); }
.article__byline { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .7rem; padding: .45rem 1rem; border-radius: 999px; margin-top: .6rem; }
.article-hero.has-media .article__byline { background: rgba(0, 0, 0, .4); border-color: rgba(255, 255, 255, .14); }
.article-hero.has-media .meta { color: rgba(255, 255, 255, .75); }
.article__byline .avatar { border-radius: 50%; }
.article__author { font-weight: 600; font-size: var(--fs-s); }
.article__caption { font-size: var(--fs-xs); color: var(--text-3); margin-top: .6rem; }
.article__main { min-width: 0; }

.prose { font-size: clamp(1.05rem, 1rem + .2vw, 1.18rem); line-height: 2.05; max-width: 72ch; color: var(--text); }
.prose > * + * { margin-top: 1.2em; }
.prose p { margin: 0; }
.prose h2 { font-size: var(--fs-xl); margin-top: 2em; }
.prose h3 { font-size: var(--fs-l); margin-top: 1.8em; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose img, .prose figure { border-radius: var(--radius); margin-inline: auto; }
.prose figcaption, .prose .wp-caption-text { font-size: var(--fs-xs); color: var(--text-3); text-align: center; margin-top: .5rem; }
.prose blockquote { margin: 1.8em 0; padding: 1rem 1.4rem; border-inline-start: 3px solid var(--accent); background: var(--glass-bg); border-radius: 0 var(--radius) var(--radius) 0; font-size: var(--fs-l); color: var(--text-2); }
.prose ul, .prose ol { padding-inline-start: 1.4rem; }
.prose li + li { margin-top: .4rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-s); display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .8rem; }
.prose iframe, .prose embed, .prose video { width: 100%; border-radius: var(--radius); }
.prose :is(code, kbd, samp, [lang="en"]) { direction: ltr; unicode-bidi: isolate; }
.prose .alignwide { max-width: none; }
.prose--page { padding: clamp(1.2rem, 3vw, 2.6rem); border-radius: var(--radius-l); max-width: 880px; margin-inline: auto; }

.article__source { margin: 2rem 0 0; }
.article__source a {
	display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .35rem 1rem;
	border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
	color: var(--accent-text); font-weight: 800; font-size: var(--fs-sm, .95rem); text-decoration: none;
}
.article__source .icon { width: 16px; height: 16px; flex: none; }
@media (hover: hover) { .article__source a:hover { background: var(--surface-2); border-color: currentColor; } }
.article__source a:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.article__footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.article__footer .chips { margin: 0; }
.share { display: flex; align-items: center; gap: .4rem; font-size: var(--fs-s); color: var(--text-3); }
.related { margin-top: 3rem; }

.comments { margin-top: 3rem; padding: clamp(1rem, 3vw, 2rem); border-radius: var(--radius-l); }
.comment-list { list-style: none; }
.comment-list .comment { padding-block: 1rem; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-inline-start: 1.5rem; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: .7rem 1rem; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; }
.comment-form label { display: block; font-size: var(--fs-s); margin-bottom: .3rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(48px, 7vw, 112px); padding-top: clamp(28px, 4vw, 56px); background: linear-gradient(180deg, transparent, var(--bg-2) 30%); }
.site-footer::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), color-mix(in srgb, var(--accent) 60%, transparent), var(--line-strong), transparent); }
.site-footer__glow { position: absolute; z-index: -1; width: 70vw; height: 50vw; max-height: 600px; inset-inline-start: 50%; translate: 50% 0; bottom: -20vw; border-radius: 50%; background: radial-gradient(closest-side, var(--orb-1), transparent); filter: blur(40px); pointer-events: none; }

.footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; padding: clamp(1.2rem, 3vw, 2.2rem); border-radius: var(--radius-l); margin-bottom: clamp(36px, 5vw, 64px); position: relative; overflow: hidden; }
.footer-cta::after { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 40%; background: radial-gradient(80% 120% at 0% 50%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); pointer-events: none; z-index: -1; }
.footer-cta__text { flex: 1 1 320px; min-width: 0; }
.footer-cta__title { font-size: var(--fs-xl); font-weight: 800; line-height: 1.4; }
.footer-cta__desc { color: var(--text-2); margin: .4rem 0 0; font-size: var(--fs-s); }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); padding-bottom: clamp(28px, 4vw, 48px); }
.site-footer__brand .brand__logo { height: 56px; }
.site-footer__grid:not(:has(.site-footer__contact)) { grid-template-columns: 1.3fr 1.4fr 1fr; }
.site-footer__grid:has(.site-footer__contact) { grid-template-columns: 1.2fr 1.5fr 1fr 1.3fr; }
@media (min-width: 1025px) { .site-footer__grid .site-footer__col:first-of-type .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; } }
.site-footer__tagline { color: var(--text-2); margin-top: 1rem; font-size: var(--fs-s); max-width: 36ch; }
.site-footer__title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .02em; color: var(--text-3); margin-bottom: 1rem; }
.footer-links, .legal-menu { list-style: none; }
.footer-links { display: grid; gap: .15rem; }
.footer-links a { display: inline-flex; align-items: center; gap: .5rem; padding-block: .3rem; color: var(--text-2); font-size: var(--fs-s); font-weight: 500; transition: color .25s, transform .3s var(--ease); }
.footer-links a::before { content: ""; width: 0; height: 2px; border-radius: 2px; background: var(--accent); transition: width .3s var(--ease); }
@media (hover: hover) { .footer-links a:hover { color: var(--text); } }
@media (hover: hover) { .footer-links a:hover::before { width: 12px; } }
.social--footer a { background: var(--glass-bg); }
@media (hover: hover) { .social--footer a:hover { background: var(--accent); border-color: var(--accent); color: #fff; } }
.site-footer__contact { font-style: normal; }
.site-footer__contact p { display: flex; gap: .7rem; align-items: flex-start; color: var(--text-2); font-size: var(--fs-s); margin-bottom: .7rem; }
.site-footer__contact .icon { flex-shrink: 0; width: 18px; margin-top: .3rem; color: var(--accent-text); }

.app-badges { display: grid; grid-template-columns: repeat(auto-fill, 170px); gap: .6rem; margin-top: 1.2rem; }
.app-badges .app-badge { width: 170px; height: 54px; min-height: 0; justify-content: flex-start; box-sizing: border-box; }
.site-footer__contact .ltr { text-align: left; unicode-bidi: isolate; }
/* Contact lines + store badges read left-to-right with icons on the left; the heading stays RTL */
.site-footer__contact > p, .site-footer__contact .app-badges { direction: ltr; text-align: left; justify-content: start; }
.site-footer__contact > p > a, .site-footer__contact > p > span { direction: ltr; unicode-bidi: isolate; }
.app-badge { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: .4rem 1rem .4rem .9rem; border-radius: 12px; background: #0b0b0f; color: #fff; border: 1px solid rgba(255,255,255,.22); font-weight: 600; font-size: 1.02rem; line-height: 1.1; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; transition: transform .3s var(--ease), box-shadow .3s; }
.app-badge svg { width: 24px; height: 24px; flex-shrink: 0; }
.app-badge span { display: grid; text-align: left; }
.app-badge small { font-size: .62rem; font-weight: 500; letter-spacing: .02em; opacity: .85; }
@media (hover: hover) { .app-badge:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-s); } }
.site-footer__wordmark { font-family: system-ui, "Arial Black", sans-serif; font-weight: 900; font-size: clamp(3rem, 14vw, 13rem); line-height: .8; letter-spacing: -.04em; text-align: center; white-space: nowrap; user-select: none; pointer-events: none; color: transparent; -webkit-text-stroke: 1px var(--line-strong); background: linear-gradient(180deg, color-mix(in srgb, var(--text) 9%, transparent), transparent 85%); -webkit-background-clip: text; background-clip: text; margin-bottom: -.12em; overflow: hidden; }

.site-footer__bottom { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 85%, transparent); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; padding-block: 1.1rem; font-size: var(--fs-xs); color: var(--text-3); }
.site-footer__bottom p { margin: 0; }
.legal-menu { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.site-footer__credit { direction: ltr; unicode-bidi: isolate; }
.site-footer__bottom-inner { padding-inline-end: 64px; }
@media (max-width: 760px) { .site-footer__bottom-inner { padding-inline-end: 0; padding-bottom: 76px; } }
.site-footer__credit a { font-weight: 700; color: var(--text-2); }
@media (hover: hover) { .site-footer__credit a:hover { color: var(--accent-text); } }
@media (hover: hover) { .legal-menu a:hover, .site-footer__top:hover { color: var(--accent-text); } }
.site-footer__top { display: inline-flex; gap: .35rem; align-items: center; font-weight: 600; color: var(--text-2); }

.to-top { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transform: rotate(90deg); }
.to-top[hidden] { display: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Theme switch transition (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .6s; animation-timing-function: var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.layout-main-side { grid-template-columns: minmax(0, 1fr) 300px; }
	.magazine__inner { grid-template-columns: minmax(200px, 300px) 1fr; }
	.ad-zone--magazine { grid-column: 1 / -1; }
	.primary-nav .menu > li > a { padding-inline: .6rem; }
}

@media (max-width: 1024px) {
	.band__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	:root { --header-h: 64px; }
	.primary-nav, .header-cta { display: none; }
	.menu-toggle { display: inline-grid; }
	.layout-main-side { grid-template-columns: 1fr; }
	.side-stack { position: static; }
	.ad-zone--sidebar.is-sticky { position: static; }
	.tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.site-footer__brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .5rem 2rem; }
	.site-footer__brand .site-footer__tagline { margin: 0; }
	.site-footer__brand .social { grid-column: 1 / -1; margin-top: .4rem; }
}

@media (max-width: 760px) {
	body { font-size: 1rem; }
	.site-header { padding-top: 8px; }
	.site-header__bar { padding-inline: .6rem; border-radius: 20px; }
	.brand__logo { height: 38px; }

	.hero { margin-top: calc(-72px + var(--ticker-room, 0px)); }
	.hero__slides { height: clamp(380px, 58svh, 500px); }
	.hero__content { bottom: 58px; }
	.hero__shade { background: linear-gradient(180deg, rgba(5, 9, 20, .45) 0%, rgba(5, 9, 20, 0) 22%), linear-gradient(0deg, rgba(5, 9, 20, .8) 0%, rgba(5, 9, 20, .15) 50%, rgba(5, 9, 20, 0) 75%); }
	.hero__title { font-size: clamp(1.35rem, 5.6vw, 1.9rem); margin-block: .5rem .4rem; }
	.hero__nav { bottom: 10px; }
	.hero__panel { padding: .85rem 1rem; background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: none; backdrop-filter: none; border-color: rgba(255, 255, 255, .18); }
	.hero__title { text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
	.hero__excerpt { text-shadow: 0 1px 8px rgba(0, 0, 0, .6); -webkit-line-clamp: 2; }
	.hero__excerpt { -webkit-line-clamp: 2; font-size: var(--fs-m); }
	.hero__foot .btn { display: none; }
	.hero__thumbs { display: flex; justify-content: center; gap: .4rem; background: none; border: 0; box-shadow: none; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.hero__thumb { padding: 0; width: 36px; }
	.hero__thumb:hover, .hero__thumb.is-active { background: none; }	.hero__thumb-title { display: none; }
	.hero__thumb-bar { margin: 0; height: 3px; }
	.hero__arrows .icon-btn[data-pause] { display: none; }

	.grid-feature, .grid-cards, .grid-cards--2 { grid-template-columns: 1fr; }
	.grid-feature > .card:not(:first-child), .grid-cards > .card:not(.card--overlay) { display: grid; grid-template-columns: 1fr 120px; gap: .9rem; align-items: start; }
	.grid-feature > .card:not(:first-child) .card__media, .grid-cards > .card:not(.card--overlay) .card__media { order: 2; aspect-ratio: 1; border-radius: 14px; }
	.grid-feature > .card:not(:first-child) .card__title, .grid-cards > .card:not(.card--overlay) .card__title { font-size: var(--fs-s); }
	.card--overlay { min-height: 380px; }
	.card--overlay .card__title { font-size: var(--fs-l); }

	.band__grid, .band--reverse .band__grid { grid-template-columns: 1fr; }
	.band__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .9rem; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: .4rem; scrollbar-width: none; }
	.band__row::-webkit-scrollbar { display: none; }
	.band__row > .card { flex: 0 0 72%; scroll-snap-align: start; }
	.band__mosaic { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; }
	.band__mosaic > :first-child { grid-column: 1 / -1; grid-row: auto; min-height: 340px; }
	.band__mosaic > :first-child .card__title { font-size: var(--fs-xl); }
	.band__mosaic > :not(:first-child) { min-height: 220px; }
	.band__mosaic > :not(:first-child) .card__title { font-size: var(--fs-s); }
	.band__mosaic > :not(:first-child) .badge { display: none; }
	.section-head__title::before { width: 5px; }
	.band__grid > .card--horizontal, .band--reverse .band__grid > .card--horizontal { grid-row: auto; grid-column: auto; }
	.card--horizontal .card__title { font-size: var(--fs-l); }

	.magazine__inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
	.magazine__cover { width: min(240px, 70%); margin-inline: auto; }
	.magazine__title { font-size: clamp(1.4rem, 6vw, 1.9rem); }
	.magazine__issue { font-size: var(--fs-m); }
	.magazine .meta { justify-content: center; }
	.magazine__actions { justify-content: center; }
	.magazine__actions .btn { flex: 1 1 140px; justify-content: center; }
	.magazine__shelf { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }

	.tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .8rem; padding-bottom: .5rem; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
	.tile, .tile:first-child { flex: 0 0 72%; aspect-ratio: 4 / 3; scroll-snap-align: start; }

	.ad-zone--mobile-only { display: block; }
	.ad-zone--billboard .ad-zone__body, .ad-zone--leaderboard .ad-zone__body { padding: .3rem; }

	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
	.site-footer__brand { display: block; text-align: center; }
	.site-footer__brand .brand__link { display: inline-block; }
	.site-footer__brand .site-footer__tagline { margin: .8rem auto 0; }
	.site-footer__brand .social { justify-content: center; }
	.site-footer__contact { grid-column: 1 / -1; }
	.footer-cta { text-align: center; justify-content: center; }
	.footer-cta__actions { width: 100%; justify-content: center; }
	.footer-cta__actions .btn { flex: 1 1 150px; justify-content: center; }
	.site-footer__bottom-inner { justify-content: center; text-align: center; flex-direction: column; }
	.article__byline { border-radius: var(--radius); padding: .3rem .8rem; margin-top: .3rem; }
	.article-hero.has-media { margin-top: -72px; min-height: clamp(320px, 50svh, 440px); padding-block: 92px 16px; }
	.article__title { font-size: clamp(1.3rem, 5.6vw, 1.8rem); margin-block: .4rem; }
	.article__lede { font-size: var(--fs-s); line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

@media (max-width: 380px) {
	.header-actions { gap: .2rem; }
	.header-actions .icon-btn { width: 40px; height: 40px; }
	.brand__logo { height: 32px; }
	.hero__nav { gap: .5rem; }
	.hero__thumb { width: 24px; }
	.ad-placeholder { padding: .4rem; }
	.ad-placeholder__size { display: none; }
}
.hero__thumbs { min-width: 0; }

/* Overflow guards: grid/flex children may shrink below content size */
.band__grid > *, .grid-feature > *, .grid-cards > *, .layout-main-side > *, .site-footer__grid > *, .hero__panel, .card__body { min-width: 0; }
.card__title, .hero__title, .section-head__title { overflow-wrap: anywhere; }


/* ---------- Magazine archive ---------- */
.mag-hero { position: relative; isolation: isolate; overflow: hidden; margin-top: -84px; padding-block: calc(84px + clamp(32px, 6vw, 80px)) clamp(40px, 6vw, 88px); }
.mag-hero__bg { position: absolute; inset: 0; z-index: -2; }
.mag-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(48px) saturate(140%); transform: scale(1.3); opacity: .55; }
.mag-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent), color-mix(in srgb, var(--bg) 80%, transparent) 60%, var(--bg)), radial-gradient(60% 80% at 80% 40%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.mag-hero__inner { display: grid; grid-template-columns: minmax(220px, 380px) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.mag-hero__cover .magazine__cover-link { position: relative; }
.mag-hero__new { position: absolute; top: 14px; inset-inline-start: 14px; padding: .2rem .8rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: var(--fs-xs); font-weight: 700; box-shadow: 0 8px 20px -8px var(--accent); }
.mag-hero__title { font-size: var(--fs-hero); font-weight: 800; line-height: 1.3; margin-block: .3rem .9rem; overflow-wrap: anywhere; }
.mag-hero__issue { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; }
.mag-hero__num { display: inline-flex; align-items: baseline; gap: .4rem; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 800; line-height: 1; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.mag-hero__num small { font-size: var(--fs-s); font-weight: 600; color: var(--text-3); }
.mag-hero__date { font-size: var(--fs-l); color: var(--text-2); font-weight: 600; }
.mag-hero__stats { list-style: none; display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.mag-hero__stats li { display: grid; padding: .7rem 1.1rem; border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--glass-line); min-width: 120px; }
.mag-hero__stats strong { font-size: var(--fs-l); font-weight: 800; }
.mag-hero__stats span { font-size: var(--fs-xs); color: var(--text-3); }

.issues { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: clamp(18px, 2.4vw, 32px) clamp(14px, 2vw, 26px); }
.issues > * { min-width: 0; }
.issues__full { grid-column: 1 / -1; }
.issue__link { display: grid; gap: .8rem; }
.issue__cover { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 6px 14px 14px 6px; overflow: hidden; background: var(--fallback); border: 1px solid var(--line); box-shadow: var(--shadow-s), inset -4px 0 10px rgba(0,0,0,.18); transition: transform .45s var(--ease-out), box-shadow .45s, border-color .3s; }
.issue__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.18), transparent 8%, transparent 92%, rgba(255,255,255,.08)); pointer-events: none; }
.issue__cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease-out); }
@media (hover: hover) { .issue__link:hover .issue__cover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow); border-color: var(--accent); } }
@media (hover: hover) { .issue__link:hover .issue__cover img { transform: scale(1.04); } }
.issue__meta { display: grid; gap: .1rem; }
.issue__num { font-weight: 800; font-size: var(--fs-m); }
@media (hover: hover) { .issue__link:hover .issue__num { color: var(--accent-text); } }
.issue__date { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.7; }

@media (max-width: 760px) {
	.mag-hero { margin-top: -72px; padding-top: calc(72px + 28px); }
	.mag-hero__inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
	.mag-hero__cover { width: min(230px, 64%); margin-inline: auto; }
	.mag-hero__title { font-size: clamp(1.5rem, 7vw, 2.1rem); }
	.mag-hero__issue, .mag-hero__stats, .mag-hero .magazine__actions { justify-content: center; }
	.mag-hero .magazine__actions .btn { flex: 1 1 140px; justify-content: center; }
	.mag-hero__stats li { min-width: 0; flex: 1 1 0; padding: .6rem; }
	.issues { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Hero on short desktop/laptop screens: scale with height too, never slide under the header */
@media (min-width: 761px) {
	.hero__title { font-size: clamp(1.6rem, min(1.1rem + 3.4vw, .6rem + 4.6vh), 3.9rem); line-height: 1.32; }
	.hero__excerpt { font-size: clamp(.95rem, min(1rem + .5vw, .5rem + 1.6vh), 1.35rem); }
	.hero__content { bottom: clamp(104px, 15vh, 170px); }
	.hero__panel { max-height: calc(clamp(560px, 92vh, 900px) - 84px - clamp(104px, 15vh, 170px) - 24px); overflow: hidden; }
}
@media (min-width: 761px) and (max-height: 860px) {
	.hero__panel { padding: clamp(1rem, 2vh, 1.6rem) clamp(1.1rem, 2vw, 1.8rem); }
	.hero__title { margin: .5rem 0 .4rem; }
	.hero__excerpt { -webkit-line-clamp: 2; margin-bottom: .6rem; }
	.hero__foot .btn { min-height: 40px; padding-block: .4rem; }
	.hero__nav { bottom: 18px; }
	.hero__thumb { padding: .45rem .65rem; }
}

/* Horizontal strips on phones: no scroll-reveal (off-screen cards would stay hidden/shifted until swiped into view),
   stable heights, and swipes stay inside the strip */
@media (max-width: 760px) {
	.band__row .reveal, .tiles .reveal, .magazine__shelf .reveal, .band__row .card, .tiles .tile {
		opacity: 1 !important; transform: none !important; transition: none !important;
	}
	.band__row, .tiles, .magazine__shelf, .ad-zone--multi .ad-zone__body {
		overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; scroll-behavior: smooth;
	}
	.band__row { align-items: stretch; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
	.band__row > .card { scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; }
	.band__row > .card .card__media { flex: none; aspect-ratio: 16 / 10; width: 100%; }
	.band__row > .card .card__media img { width: 100%; height: 100%; object-fit: cover; }
}

/* Skip rendering work for offscreen homepage sections until they are near the viewport */
.band, .magazine, .site-footer, .section:has(> .tiles) { content-visibility: auto; contain-intrinsic-size: auto 720px; }


/* ---------- Live search results ---------- */
.search-panel { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.search-panel__box { width: 100%; max-width: 760px; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
.search-panel__inner, .search-panel .search-form { min-width: 0; }
.search-results__item a { min-width: 0; }
@media (max-width: 600px) {
	.search-panel { padding: 12px 12px 0; }
	.search-panel__inner { padding: .45rem; gap: .4rem; }
	.search-panel .search-form .btn { display: none; }
	.search-panel .search-form__input { min-height: 46px; }
	.search-results { max-height: calc(100dvh - 110px); }
	.search-results__item a { grid-template-columns: 56px minmax(0, 1fr); gap: .7rem; }
	.search-results__item img, .search-results__noimg { width: 56px; height: 56px; }
}
.search-panel__box .search-panel__inner { width: 100%; }
.search-results { border-radius: var(--radius-l); padding: .5rem; max-height: min(60vh, 520px); overflow-y: auto; animation: rise .3s var(--ease-out); }
.search-results[hidden] { display: none; }
.search-results__list { list-style: none; display: grid; gap: .2rem; }
.search-results__item a { display: grid; grid-template-columns: 64px 1fr; gap: .85rem; align-items: center; padding: .5rem; border-radius: var(--radius); transition: background-color .2s; }
.search-results__item[aria-selected="true"] a { background: var(--glass-hi); color: inherit; outline: 1px solid var(--line-strong); }
@media (hover: hover) { .search-results__item a:hover { background: var(--glass-hi); color: inherit; outline: 1px solid var(--line-strong); } }
.search-results__item img, .search-results__noimg { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: var(--fallback); display: block; }
.search-results__text { display: grid; gap: .15rem; min-width: 0; }
.search-results__title { font-weight: 700; font-size: var(--fs-s); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-results__meta { font-size: var(--fs-xs); color: var(--text-3); }
.search-results__status { margin: 0; padding: .4rem .6rem .2rem; font-size: var(--fs-s); color: var(--text-2); }
.search-results__status:empty { display: none; }
.search-results__status a { color: var(--accent-text); font-weight: 700; }

/* ---------- Contact page ---------- */
.contact-hero { padding-block: clamp(36px, 6vw, 72px) clamp(16px, 2vw, 28px); }
.contact-hero__title, .about-hero__title { font-size: var(--fs-hero); font-weight: 800; line-height: 1.3; }
.contact-hero__lede { color: var(--text-2); font-size: var(--fs-l); max-width: 56ch; margin-top: .6rem; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; padding-bottom: clamp(32px, 5vw, 72px); }
.contact__form { padding: clamp(1.2rem, 3vw, 2.2rem); border-radius: var(--radius-l); }
.contact__h2 { font-size: var(--fs-l); font-weight: 800; margin-bottom: 1rem; }
.contact__info { display: grid; gap: .8rem; }
.contact-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--radius); transition: transform .3s var(--ease), border-color .3s; }
@media (hover: hover) { .contact-card:hover { transform: translateY(-2px); border-color: var(--accent); color: inherit; } }
.contact-card__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-text); }
.contact-card__icon .icon { width: 22px; height: 22px; }
.contact-card__body { display: grid; gap: .1rem; min-width: 0; }
.contact-card__label { font-size: var(--fs-xs); color: var(--text-3); }
.contact-card__value { font-weight: 700; overflow-wrap: anywhere; text-align: start; }
.contact-card__value[dir="ltr"] { text-align: right; }
.contact-cta { padding: 1.2rem 1.3rem; border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), color-mix(in srgb, var(--cat-solid) 14%, var(--surface))); border: 1px solid var(--glass-line); }
.contact-cta p { color: var(--text-2); font-size: var(--fs-s); }
.contact__follow { padding-top: .4rem; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } .contact__info { order: -1; } }

/* Contact Form 7, themed */
.wpcf7 form p { margin: 0 0 1rem; }
.wpcf7 label { display: grid; gap: .4rem; font-size: var(--fs-s); font-weight: 600; color: var(--text-2); }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .wpcf7 textarea, .wpcf7 select {
	width: 100%; min-height: 50px; padding: .7rem 1rem; border-radius: var(--radius-s); border: 1px solid var(--line-strong);
	background: var(--surface-2); color: var(--text); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.wpcf7 textarea { min-height: 160px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"] { direction: ltr; text-align: left; }
.wpcf7 input[type="submit"] { min-height: 50px; padding: .6rem 2rem; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 10px 24px -10px var(--accent); transition: transform .25s var(--ease); }
@media (hover: hover) { .wpcf7 input[type="submit"]:hover { transform: translateY(-2px); } }
.wpcf7 .wpcf7-spinner { margin-inline: .8rem; }
.wpcf7 .wpcf7-not-valid-tip { font-size: var(--fs-xs); color: var(--accent-text); margin-top: .3rem; }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: var(--radius-s); font-size: var(--fs-s); }

/* ---------- About page ---------- */
.about-hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 96px) clamp(24px, 4vw, 48px); }
.about-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 90% at 15% 50%, color-mix(in srgb, var(--cat-solid) 22%, transparent), transparent 70%), radial-gradient(40% 80% at 90% 20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.about-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.about-hero__lede { font-size: var(--fs-xl); color: var(--text-2); font-weight: 600; margin-top: .6rem; }
.about-hero__mark { display: grid; justify-items: center; line-height: 1; }
.about-hero__years { font-size: clamp(5rem, 3rem + 9vw, 11rem); font-weight: 900; background: linear-gradient(160deg, var(--accent), var(--cat-solid)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-hero__since { font-size: var(--fs-l); font-weight: 700; color: var(--text-2); margin-top: .4rem; }
.about__prose { max-width: 820px; }
.about__prose h2 { display: flex; align-items: center; gap: .6rem; }
.about__prose h2::before { content: ""; width: 6px; height: 1em; border-radius: 3px; background: linear-gradient(180deg, var(--accent), var(--cat-solid)); }
@media (max-width: 760px) { .about-hero__inner { grid-template-columns: minmax(0, 1fr); } .about-hero__mark { justify-items: start; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.ambient span { animation: none; }
	.js .reveal { opacity: 1; transform: none; }
	.hero__media img { transform: none !important; }
	.magazine__cover-link { transform: none; }
}

/* ---------- Classifieds ticker (iranjavan.org: hiring, rent, sale) ---------- */
/* A calm card in the page's surface colour; each row carries its category colour, the same as the ad
   cards on iranjavan.org (hiring blue, rent red, sale yellow) but in mellow shades. Every colour has a
   light-mode and a dark-mode value. */
.job-ticker {
	/* Above the home page hero, which is pulled up under the header (margin-top: -84px). */
	position: relative; z-index: 5;
	/* Compact: three 29px rows + 2px gaps + 5px padding + border ≈ 100px tall on desktop. */
	display: flex; align-items: stretch; gap: .6rem;
	margin-block: 22px 6px; padding: 5px 6px;
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-s);
	box-shadow: 0 14px 34px -20px rgba(0, 0, 0, .45);
	color: var(--text);
	font-size: .92rem; font-weight: 500;
}
/* Dark mode (default): softened hues, light tag text. */
.job-ticker .job-ticker__row--hiring { --row: #6f86e0; --row-text: #c3cdfb; }
.job-ticker .job-ticker__row--rent { --row: #d9707f; --row-text: #f6c0c7; }
.job-ticker .job-ticker__row--sale { --row: #d8b54a; --row-text: #f3dd96; }
/* Light mode: same hues, darker tag text for contrast on the pale tag. */
:root[data-theme="light"] .job-ticker__row--hiring { --row: #5b74d6; --row-text: #2b3f97; }
:root[data-theme="light"] .job-ticker__row--rent { --row: #d0566a; --row-text: #9b1f33; }
:root[data-theme="light"] .job-ticker__row--sale { --row: #d9b23a; --row-text: #6f5200; }
/* Three rows (hiring, rent, sale), each with its own category tag and its own scrolling track. */
.job-ticker__rows { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.job-ticker__row {
	--row: var(--accent); --row-text: var(--accent-text);
	display: flex; align-items: center; gap: .6rem; min-width: 0; height: 29px;
	padding-inline-start: 3px; border-radius: calc(var(--radius-s) - 4px);
	background: color-mix(in srgb, var(--row) 8%, transparent);
}
.job-ticker__viewport {
	position: relative; flex: 1; min-width: 0; overflow: hidden;
	mask-image: linear-gradient(to left, transparent, #000 2rem, #000 calc(100% - 2rem), transparent);
}
.job-ticker__track { display: flex; width: max-content; animation: job-ticker var(--ticker-duration, 120s) linear infinite; }
.job-ticker__list { display: flex; margin: 0; padding: 0; list-style: none; }
.job-ticker__item { display: flex; align-items: center; white-space: nowrap; }
.job-ticker__item::after { content: ""; width: 6px; height: 6px; margin-inline: 1.3rem; border-radius: 50%; background: var(--row); opacity: .8; }
/* Equal-width items in every row, so the dots line up in columns while the rows move together. */
.job-ticker { --ticker-item: 21rem; }
.job-ticker__item a {
	display: block; width: var(--ticker-item); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	color: var(--text); line-height: 29px;
}
.job-ticker__item a:focus-visible { color: var(--row-text); text-decoration: underline; text-underline-offset: 4px; }
/* Hover styles only on real pointers: on touch screens a hover change makes the first tap only show it, and a second tap is needed to open the ad. */
@media (hover: hover) {
	.job-ticker__item a:hover { color: var(--row-text); text-decoration: underline; text-underline-offset: 4px; }
}
/* Same box for every tag: fixed width and height, text centred, so all three line up exactly. */
.job-ticker__cat {
	flex: none; box-sizing: border-box; width: 6.4rem; height: 22px;
	display: grid; place-items: center; white-space: nowrap; line-height: 1;
	padding: 0 .4rem; border-radius: 999px;
	background: color-mix(in srgb, var(--row) 26%, var(--surface));
	border: 1px solid color-mix(in srgb, var(--row) 55%, transparent);
	color: var(--row-text);
	font-size: var(--fs-xs); font-weight: 800;
}
@media (hover: hover) { .job-ticker__cat:hover { color: var(--row-text); background: color-mix(in srgb, var(--row) 38%, var(--surface)); } }
/* Hover, keyboard focus or the pause button stop all rows together, so the columns stay aligned. */
.job-ticker:hover .job-ticker__track,
.job-ticker:focus-within .job-ticker__track,
.job-ticker.is-paused .job-ticker__track { animation-play-state: paused; }
/* RTL: items enter from the left and move right; the duplicate list makes the loop seamless. */
@keyframes job-ticker { from { transform: translateX(0); } to { transform: translateX(50%); } }
.job-ticker__toggle {
	flex: none; align-self: center; display: grid; place-items: center; width: 34px; height: 34px;
	border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--text-2); cursor: pointer;
}
@media (hover: hover) { .job-ticker__toggle:hover { color: var(--text); background: var(--surface-2); } }
.job-ticker__toggle .icon { width: 15px; height: 15px; }
.job-ticker__toggle .icon-play, .job-ticker.is-paused .job-ticker__toggle .icon-pause { display: none; }
.job-ticker.is-paused .job-ticker__toggle .icon-play { display: block; }
.job-ticker__tabs { display: none; }
/* Home page: main.js floats the ticker over the hero, centred between the header and the tallest
   headline card, so the hero keeps its original position (without JS it simply stays in the flow). */
.job-ticker.is-floating { position: absolute; inset-inline: 0; top: var(--ticker-top, 110px); margin-block: 0; }
@media (max-width: 560px) {
	/* Phones: category tabs (+ pause button) on top, then ONE ticker line for the chosen category.
	   Each ad fills the line; JS slides to the next ad every few seconds. */
	.job-ticker {
		display: grid; grid-template-columns: 1fr auto; grid-template-areas: "tabs toggle" "rows rows";
		gap: 5px; padding: 5px; font-size: .82rem;
	}
	.job-ticker__tabs { grid-area: tabs; display: flex; gap: 4px; min-width: 0; }
	.job-ticker__tab {
		flex: 1; min-width: 0; height: 28px; padding: 0 .3rem;
		border: 1px solid color-mix(in srgb, var(--row) 35%, transparent); border-radius: 999px;
		background: transparent; color: var(--text-2);
		font: inherit; font-size: .75rem; font-weight: 700; white-space: nowrap; cursor: pointer;
	}
	.job-ticker__tab[aria-selected="true"] {
		background: color-mix(in srgb, var(--row) 28%, var(--surface));
		border-color: color-mix(in srgb, var(--row) 60%, transparent); color: var(--row-text);
	}
	.job-ticker__rows { grid-area: rows; }
	.job-ticker__row { display: none; height: 30px; padding-inline: 0; }
	.job-ticker__row.is-active { display: flex; }
	.job-ticker__row .job-ticker__cat { display: none; }
	.job-ticker__viewport { container-type: inline-size; mask-image: none; }
	.job-ticker__item::after { margin-inline: .5rem; width: 5px; height: 5px; }
	.job-ticker__item a { width: calc(100cqi - 1rem - 5px); line-height: 30px; padding-inline: .5rem; box-sizing: border-box; }
	/* JS slides one ad at a time instead of the continuous scroll. */
	.job-ticker.is-stepping .job-ticker__track { animation: none; }
	.job-ticker__toggle { grid-area: toggle; width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	/* No movement: the list scrolls sideways by hand instead. */
	.job-ticker__track { animation: none; }
	.job-ticker__viewport { overflow-x: auto; mask-image: none; scrollbar-width: thin; }
	.job-ticker__list[aria-hidden="true"], .job-ticker__toggle { display: none; }
}

@media print {
	.job-ticker { display: none !important; }
	.site-header, .site-footer, .ad-zone, .side-stack, .ambient, .share, .related, .to-top { display: none !important; }
	body { background: #fff; color: #000; }
}
