/* Rotitr — main stylesheet. RTL-first. */

:root {
	--accent: #1D5FB0;
	--hot: #C2410C;
	--ink: #0F1E33;
	--text: #1E2A3B;
	--text-2: #4A5668;
	--muted: #5B6778;
	--line: #E3E8EF;
	--line-2: #EDF1F6;
	--bg: #F3F6FA;
	--surface: #FFFFFF;
	--surface-2: #F7F9FC;
	--ph: #D9E1EB;
	--num: #B8C3D1;
	--band: #0F1E33;
	--band-2: #24344D;
	--footer: #0B1626;
	--radius: 14px;
	--radius-sm: 10px;
	--container: 1240px;
	--article-fs: 17px;
	--font: 'Vazirmatn FD', Vazirmatn, Tahoma, sans-serif;
	color-scheme: light;
}

[data-theme="dark"] {
	--ink: #EEF2F8;
	--text: #DCE3EC;
	--text-2: #B3BECC;
	--muted: #98A5B6;
	--line: #263449;
	--line-2: #1F2B3D;
	--bg: #0B1220;
	--surface: #121C2D;
	--surface-2: #172338;
	--ph: #22304A;
	--num: #3D4C65;
	--band: #070D18;
	--band-2: #1A2740;
	--footer: #060B14;
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.8;
	color: var(--text);
	background: var(--bg);
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.55; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.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: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { top: 8px; color: #fff; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* ---------- Buttons & chips ---------- */
.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: var(--radius-sm);
	border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 44px; padding: 0 22px; border-radius: var(--radius-sm); border: 0;
	background: var(--accent); color: #fff; font-weight: 700; cursor: pointer;
}
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn--outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--center { display: flex; width: max-content; margin: 24px auto 0; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 2px 12px; border-radius: 8px; background: var(--surface-2); font-size: 13px; }
.chip--outline { background: transparent; border: 1px solid var(--line); font-weight: 500; }
.chip--dark { background: transparent; border: 1px solid #3A4A63; color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { position: absolute; top: 14px; inset-inline-start: 14px; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 6px; color: #fff; }
.badge--accent { background: var(--accent); }
.tool-btn { min-width: 44px; height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.tool-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Top bar ---------- */
.topbar { background: var(--band); color: #C9D3E0; font-size: 13px; }
.topbar__inner { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; align-items: center; min-height: 38px; padding-block: 4px; }
.topbar__start, .topbar__end { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.topbar__date { color: #fff; font-weight: 500; }
.topbar a { color: #C9D3E0; }
.topbar a:hover { color: #fff; }
.topbar__menu { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); }
.site-header__inner { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center; padding-block: 18px; }
.brand { display: flex; flex-direction: column; gap: 2px; }
.brand__text { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 52px; height: 52px; border-radius: 14px; background: var(--accent); color: #fff; font-size: 26px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.brand__name { font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.brand__tagline { font-size: 13px; color: var(--muted); }
.custom-logo { max-height: 72px; width: auto; }
.site-header__ad { flex: 0 1 728px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--surface); border-block: 1px solid var(--line); }
.admin-bar .nav { top: 32px; }
.nav__inner { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.nav__toggle { display: none; }
.nav__menu-wrap { flex: 1 1 auto; min-width: 0; }
.nav__menu { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav__menu > li { position: relative; }
.nav__menu > li > a { display: block; padding: 14px 13px 13px; font-weight: 500; border-bottom: 3px solid transparent; }
.nav__menu > .current-menu-item > a,
.nav__menu > .current-cat > a,
.nav__menu > .current-menu-ancestor > a { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.nav__menu .sub-menu { position: absolute; top: 100%; inset-inline-start: 0; min-width: 210px; list-style: none; margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 12px 28px rgba(15, 30, 51, .12); display: none; }
.nav__menu li:hover > .sub-menu, .nav__menu li:focus-within > .sub-menu { display: block; }
.nav__menu .sub-menu a { display: block; padding: 8px 12px; border-radius: 8px; }
.nav__menu .sub-menu a:hover { background: var(--surface-2); }
.nav__tools { display: flex; align-items: center; gap: 8px; }
.nav__search { display: flex; align-items: center; gap: 4px; }
.nav__search input { width: 210px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.nav__search .icon-btn { border: 0; background: transparent; width: 40px; }

/* ---------- Ticker ---------- */
.ticker { background: var(--surface); border-bottom: 1px solid var(--line); }
.ticker__inner { display: flex; align-items: center; gap: 14px; min-height: 48px; }
.ticker__label { flex: none; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 6px; }
.ticker--hot .ticker__label { background: var(--hot); }
.ticker__list { position: relative; flex: 1 1 auto; min-width: 0; height: 28px; list-style: none; margin: 0; padding: 0; overflow: hidden; }
.ticker__item { position: absolute; inset: 0; display: flex; gap: 12px; align-items: center; white-space: nowrap; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; }
.ticker__item:first-child, .ticker__item.is-active { opacity: 1; transform: none; }
.ticker__list.is-running .ticker__item:first-child:not(.is-active) { opacity: 0; transform: translateY(10px); }
.ticker__item a { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.ticker__item time { color: var(--muted); font-size: 13px; }

/* ---------- Layout ---------- */
.site-main { padding-block: 28px 56px; }
.home-wrap { display: flex; flex-direction: column; gap: 36px; }
.layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.layout__main { flex: 999 1 560px; min-width: 0; }
.layout__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.section { display: flex; flex-direction: column; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.grid { display: grid; gap: 24px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 2px solid var(--ink); }
.section-head__title { font-size: 20px; font-weight: 800; }
.box .section-head__title { font-size: 18px; }
.section-head__more { font-size: 13px; font-weight: 500; color: var(--accent); }

/* ---------- Thumbs ---------- */
.thumb { position: relative; display: block; overflow: hidden; background: var(--ph); border-radius: var(--radius-sm); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.thumb:hover img { transform: scale(1.03); }
.thumb__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); opacity: .6; }
.thumb--hero { aspect-ratio: 16 / 9; border-radius: 0; }
.thumb--card { aspect-ratio: 16 / 10; border-radius: 0; }
.thumb--row { flex: 0 0 240px; aspect-ratio: 16 / 10; }
.thumb--mini { flex: 0 0 104px; height: 76px; }
.thumb--media { aspect-ratio: 16 / 10; background: var(--band-2); }
.thumb__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; }
.thumb__play .icon { width: 44px; height: 44px; }

/* ---------- Items ---------- */
.kicker { color: var(--accent); font-weight: 500; font-size: 15px; }
.kicker--muted { color: var(--muted); font-size: 13px; font-weight: 400; }
.kicker--lg { font-size: 16px; }
.item__cat { font-size: 12px; font-weight: 500; color: var(--accent); }
.item__title { font-size: 16px; font-weight: 700; line-height: 1.75; }
.item__title--lg { font-size: 19px; font-weight: 800; }
.item__title--sm { font-size: 15px; }
.item__excerpt { color: var(--text-2); font-size: 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.meta__cat { color: var(--muted); }

.item--card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.item--card .item__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 18px; }

.item--row { display: flex; flex-wrap: wrap; gap: 20px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.item--row .item__body { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.item--row .item__title a { color: var(--ink); }
.item--row .item__title a:hover { color: var(--accent); }

.item--mini { display: flex; gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--line-2); }
.item--mini:last-child { border-bottom: 0; padding-bottom: 0; }
.item--mini .item__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.item--avatar { display: flex; gap: 12px; align-items: center; padding-block: 12px; border-bottom: 1px solid var(--line-2); }
.item--avatar:last-child { border-bottom: 0; }
.item--avatar .item__body { display: flex; flex-direction: column; min-width: 0; }
.avatar { flex: none; }
.avatar img { width: 52px; height: 52px; border-radius: 50%; }
.avatar--initial { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent); font-weight: 800; font-size: 20px; }

.list-numbered { list-style: none; margin: 0; padding: 0; }
.item--numbered { display: flex; gap: 12px; align-items: baseline; padding-block: 11px; border-bottom: 1px solid var(--line-2); font-size: 14px; font-weight: 500; line-height: 1.75; }
.item--numbered:last-child { border-bottom: 0; }
.item__num { flex: none; min-width: 20px; font-size: 20px; font-weight: 800; color: var(--num); }

.item--media { display: flex; flex-direction: column; gap: 8px; }
.item--media .item__title a { color: #D5DDE8; }
.item--media .item__title a:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero-row { display: flex; flex-wrap: wrap; gap: 24px; }
.hero { position: relative; flex: 2 1 560px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.hero__slide[hidden] { display: none; }
.hero__slide.is-active { animation: rotitr-fade .45s ease; }
@keyframes rotitr-fade { from { opacity: .3; } to { opacity: 1; } }
.hero__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 28px 64px; }
.hero__title { font-size: 30px; font-weight: 800; line-height: 1.5; }
.hero__title a { color: var(--ink); }
.hero__title a:hover { color: var(--accent); }
.hero__lead { color: var(--text-2); font-size: 16px; }
.hero__controls { position: absolute; bottom: 14px; inset-inline: 28px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hero__controls .icon-btn { width: 36px; height: 36px; }
.hero__dots { display: flex; gap: 6px; }
.hero__dot { width: 24px; height: 24px; border: 0; background: transparent; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.hero__dot::after { content: ""; width: 8px; height: 6px; border-radius: 3px; background: var(--num); transition: width .2s; }
.hero__dot.is-active::after { width: 22px; background: var(--accent); }
.hero-side { flex: 1 1 320px; min-width: 0; }

/* ---------- Ads ---------- */
.rotitr-ad { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.rotitr-ad__item { display: block; max-width: 100%; }
.rotitr-ad__item img { border-radius: 8px; height: auto; }
.rotitr-ad--sidebar .rotitr-ad__item, .rotitr-ad--sidebar_top .rotitr-ad__item { width: 100%; }
.rotitr-ad--sidebar img, .rotitr-ad--sidebar_top img { width: 100%; }
/* Banners may be uploaded at 2× for sharp screens: cap them at their slot size. */
.rotitr-ad--header .rotitr-ad__item, .rotitr-ad--feed .rotitr-ad__item, .rotitr-ad--content .rotitr-ad__item, .rotitr-ad--single_after .rotitr-ad__item { width: 100%; max-width: 728px; }
.rotitr-ad--mobile_top .rotitr-ad__item { width: 100%; max-width: 320px; }
.rotitr-ad--sidebar_top .rotitr-ad__item, .rotitr-ad--sidebar .rotitr-ad__item { max-width: 300px; }
.rotitr-ad__item img { width: 100%; }
.ad-feed { margin-block: 20px; }
.entry-content .rotitr-ad { margin-block: 24px; }
.rotitr-ad--placeholder { justify-content: center; min-height: 90px; padding: 12px; border: 1px dashed #9AA6B6; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 12px; text-align: center; }
.rotitr-ad--sidebar_top.rotitr-ad--placeholder { min-height: 250px; }
.site-header__ad.rotitr-ad--placeholder { width: 728px; max-width: 100%; }
.only-mobile { display: none; }

/* ---------- Media band ---------- */
.band { background: var(--band); color: #fff; padding-block: 40px 48px; margin-top: 12px; }
.band .section-head { border-bottom-color: #3A4A63; }
.band .section-head__title { color: #fff; }
.band__grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 14px; }
.band__main { flex: 2 1 520px; min-width: 0; }
.band__main .item__title { font-size: 19px; }
.band__side { flex: 1 1 300px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.band__side .item__title { font-size: 13px; font-weight: 500; }

/* ---------- Tabs ---------- */
.tabs { padding: 0; overflow: hidden; }
.tabs__list { display: flex; border-bottom: 1px solid var(--line); }
.tabs__tab { flex: 1; min-height: 50px; border: 0; border-bottom: 3px solid transparent; background: var(--surface-2); color: var(--muted); font-weight: 500; cursor: pointer; }
.tabs__tab.is-active { background: var(--surface); color: var(--ink); font-weight: 800; border-bottom-color: var(--accent); }
.tabs .section-head { margin: 18px 20px 0; }
.tabs__panel { padding: 6px 20px 12px; }

/* ---------- Article ---------- */
.progress { position: sticky; top: 0; z-index: 60; height: 3px; background: transparent; }
.admin-bar .progress { top: 32px; }
.progress__bar { display: block; height: 3px; width: 0; background: var(--accent); }
.article { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 30px 40px 40px; display: flex; flex-direction: column; gap: 18px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.article__bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.article__info { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.article__tools { display: flex; gap: 6px; }
.article__head { display: flex; flex-direction: column; gap: 10px; }
.article__title { font-size: 34px; font-weight: 800; line-height: 1.55; }
.article__lead { background: var(--surface-2); border-radius: 12px; padding: 18px 22px; font-size: 17px; line-height: 2; font-weight: 500; color: var(--text-2); }
.article__figure { margin: 0; }
.article__figure img { width: 100%; border-radius: var(--radius); }
.article__figure figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

.entry-content { font-size: var(--article-fs); line-height: 2.15; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { font-size: 1.25em; font-weight: 800; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.1em; font-weight: 800; margin-top: 1.4em; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { margin-inline: 0; border-inline-start: 4px solid var(--accent); padding: 4px 20px; font-weight: 700; color: var(--ink); }
.entry-content img { border-radius: var(--radius-sm); height: auto; }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption { font-size: 13px; color: var(--muted); text-align: center; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .9em; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 10px; }
.alignwide { margin-inline: -20px; }
.alignfull { margin-inline: -40px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tags__label { font-weight: 700; color: var(--ink); font-size: 14px; }
.share { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding-block: 16px; border-block: 1px solid var(--line-2); }
.share__links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share__label { font-weight: 700; font-size: 14px; }
.share__short { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.share__short input { width: 210px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-size: 13px; }
.related .grid { margin-top: 10px; }

/* ---------- Archive ---------- */
.archive-head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.archive-head__title { font-size: 26px; font-weight: 800; }
.archive-head__desc { color: var(--text-2); }
.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.page-numbers { min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); font-weight: 500; }
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-numbers.dots { border: 0; background: transparent; }
.empty { padding: 32px 0; display: flex; flex-direction: column; gap: 16px; }
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.notfound { display: flex; flex-direction: column; gap: 14px; padding: 32px; }
.notfound__code { font-size: 72px; font-weight: 800; color: var(--accent); line-height: 1; }

/* ---------- Comments ---------- */
.comments { display: flex; flex-direction: column; gap: 16px; }
.comments__list, .comments__list .children { list-style: none; margin: 0; padding: 0; }
.comments__list .children { padding-inline-start: 24px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 12px; color: var(--muted); }
.comment-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.comment-form > p { margin: 0; }
.comment-form .comment-notes, .comment-form .comment-form-comment, .comment-form .form-submit, .comment-form .comment-form-cookies-consent, .comment-form .logged-in-as { grid-column: 1 / -1; }
.comment-form .comment-form-url { display: none; }
.comment-form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.comment-form .comment-form-cookies-consent label { display: inline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #AEBBCD; font-size: 14px; }
.site-footer a { color: #AEBBCD; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px; padding-block: 44px 28px; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__brand { font-size: 22px; font-weight: 800; color: #fff; }
.site-footer__title { font-size: 16px; font-weight: 700; color: #fff; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer__bottom { border-top: 1px solid #1E2C42; font-size: 13px; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-block: 16px; }
.rotitr-trust { margin-top: 6px; }
.to-top { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 40; box-shadow: 0 6px 18px rgba(0,0,0,.15); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.nav__search input { width: 150px; }
}

@media (max-width: 900px) {
	.container { padding-inline: 16px; }
	.topbar__license { display: none; }
	.site-header__inner { padding-block: 12px; }
	.site-header__ad { display: none; }
	.brand__name { font-size: 22px; }
	.brand__mark { width: 40px; height: 40px; font-size: 20px; border-radius: 10px; }
	.nav__toggle { display: inline-flex; }
	.nav__menu-wrap { display: none; position: absolute; top: 100%; inset-inline: 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 16px 28px rgba(15,30,51,.12); max-height: 70vh; overflow-y: auto; }
	.nav__menu-wrap.is-open { display: block; }
	.nav__menu { flex-direction: column; padding: 8px 16px 16px; }
	.nav__menu > li > a, .nav__menu > .current-menu-item > a, .nav__menu > .current-cat > a { padding: 12px 4px; border-bottom: 1px solid var(--line-2); }
	.nav__menu .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 12px 0 0; }
	.nav__inner { justify-content: space-between; }
	.nav__search input { width: 140px; }
	.only-mobile { display: flex; margin-top: 12px; }
	.site-main { padding-block: 16px 40px; }
	.home-wrap { gap: 24px; }
	.hero__body { padding: 16px 18px 58px; }
	.hero__title { font-size: 22px; }
	.hero__lead { font-size: 15px; }
	.hero__controls { inset-inline: 18px; }
	.article { padding: 20px 18px 28px; border-radius: var(--radius); }
	.article__title { font-size: 25px; }
	.article__lead { font-size: 16px; padding: 14px 16px; }
	.alignwide, .alignfull { margin-inline: 0; }
	.thumb--row { flex: 0 0 110px; aspect-ratio: auto; height: 80px; }
	.item--row { flex-wrap: nowrap; gap: 12px; padding-block: 14px; }
	.item--row .item__excerpt { display: none; }
	.item__title--lg { font-size: 15px; }
	.grid--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.grid--cards .item__body { padding: 10px 12px 14px; }
	.grid--cards .item__title { font-size: 14px; }
	.comment-form { grid-template-columns: 1fr; }
	.share__short input { width: 160px; }
}

@media (max-width: 480px) {
	.topbar__end { display: none; }
	.nav__search input { display: none; }
	.nav__search.is-open input { display: block; position: absolute; top: 100%; inset-inline: 16px; width: auto; height: 48px; margin-top: 6px; box-shadow: 0 10px 24px rgba(15,30,51,.15); background: var(--surface); }
	.nav__search .icon-btn { border: 1px solid var(--line); width: 44px; }
	.grid--cards { grid-template-columns: 1fr; }
	.band__side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
	.admin-bar .nav, .admin-bar .progress { top: 0; }
}

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

/* ---------- Print ---------- */
@media print {
	.topbar, .nav, .ticker, .site-header__ad, .sidebar, .site-footer, .article__tools, .share, .related, .comments, .rotitr-ad, .progress, .to-top, .breadcrumb { display: none !important; }
	body { background: #fff; color: #000; }
	.article { border: 0; padding: 0; }
	.layout__main { flex-basis: 100%; }
}

/* Respect the hidden attribute on flex/inline-flex components. */
[hidden] { display: none !important; }
