/*
 * ob.css: blog.onlineserver.ir skeleton, 2026-10.
 *
 * Same visual language as the main site's homepage (design-6 "pro"): cool
 * grey page, white surfaces, one blue accent, a navy panel for the hero and
 * one dark band. Geometry matches the embedded compact navbar and footer:
 * a 1240px box (1440px from 1600px) with 32px gutters, 16px under 1180px.
 *
 * Loaded after bootstrap, style.css and os-redesign.css. Article typography
 * stays in os-redesign.css; this file only sets the frame around it.
 */

@font-face { font-family: "Yekan Bakh"; src: url(../fonts/YekanBakh-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Yekan Bakh"; src: url(../fonts/YekanBakh-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Yekan Bakh"; src: url(../fonts/YekanBakh-Bold.woff2) format("woff2"); font-weight: 700 900; font-display: swap; }

:root {
	--ob-bg: #f6f8fb;
	--ob-surface: #fff;
	--ob-border: #e5eaf1;
	--ob-text: #0b1b2e;
	--ob-body: #2a3a4f;
	--ob-muted: #5b6b80;
	--ob-brand: #0b63ce;
	--ob-brand-hover: #0952ab;
	--ob-brand-tint: #e8f1fc;
	--ob-navy: #0b1f3d;
	--ob-navy-2: #081428;
	--ob-on-navy: #c9d6e8;
	--ob-radius: 16px;
	--ob-radius-sm: 10px;
	--ob-shadow: 0 12px 32px -20px rgba(12, 30, 60, .28);
	--ob-gutter: 32px;
	--ob-max: 1240px;
	--ob-font: "Yekan Bakh", Vazirmatn, Tahoma, sans-serif;

	/* os-redesign.css article tokens, retuned to the same palette. */
	--os-ink: var(--ob-text);
	--os-body: var(--ob-body);
	--os-muted: var(--ob-muted);
	--os-line: var(--ob-border);
	--os-surface: var(--ob-bg);
	--os-brand: var(--ob-brand);
	--os-brand-tint: var(--ob-brand-tint);
	--os-radius: 14px;
}

body.ob {
	margin: 0;
	background: var(--ob-bg);
	color: var(--ob-body);
	font-family: var(--ob-font);
	font-size: 16px;
	line-height: 1.8;
	letter-spacing: 0;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	text-align: start; /* bootstrap 4 reboot sets body { text-align: left } */
}
body.ob *, body.ob *::before, body.ob *::after { letter-spacing: 0; }
/* style.css sets `*, body { font-family: iransans }`; code keeps its mono face. */
body.ob *:not(code):not(pre):not(kbd):not(samp):not(.fa):not([class^="fa-"]):not(pre *):not(code *) { font-family: var(--ob-font); }
body.ob :where(h1, h2, h3, h4, p, ul, ol, figure) { margin: 0; }
body.ob a { color: var(--ob-brand); text-decoration: none; }
body.ob a:hover { color: var(--ob-brand-hover); }
body.ob :focus-visible { outline: 2px solid var(--ob-brand); outline-offset: 2px; border-radius: 6px; }
body.ob img { max-width: 100%; height: auto; }
html:has(body.ob), body.ob { overflow-x: clip; }

.ob-wrap { width: 100%; max-width: var(--ob-max); margin-inline: auto; padding-inline: var(--ob-gutter); }
.ob-main { display: block; min-height: 50vh; }
.ob-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ob-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 2000; padding: 10px 16px; border-radius: 10px; background: var(--ob-navy); color: #fff !important; }
.ob-skip:focus { top: 12px; }
.ob-ico { flex: none; vertical-align: -3px; }

/* ---------- buttons, chips ---------- */
.ob-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 22px; border-radius: 12px;
	font-size: 15px; font-weight: 700; white-space: nowrap;
	transition: background-color .18s, transform .18s, color .18s;
}
.ob-btn:active { transform: translateY(1px); }
.ob-btn--primary { background: var(--ob-brand); color: #fff !important; }
.ob-btn--primary:hover { background: var(--ob-brand-hover); }
.ob-btn--light { background: #fff; color: var(--ob-navy) !important; }
.ob-btn--light:hover { background: #eaf2ff; }
.ob-btn--ghost { border: 1px solid rgba(255, 255, 255, .45); color: #fff !important; }
.ob-btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.ob-chip {
	display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px;
	border-radius: 999px; background: var(--ob-brand-tint); color: var(--ob-brand) !important;
	font-size: 12.5px; font-weight: 600; line-height: 1;
}
.ob-chip:hover { background: #d8e8fb; }

/* ---------- sub-bar under the embedded navbar ---------- */
.ob-subbar { background: #fff; border-bottom: 1px solid var(--ob-border); position: relative; z-index: 50; }
.ob-subbar__row { display: flex; align-items: center; gap: 28px; min-height: 60px; }
.ob-subbar__brand {
	display: inline-flex; align-items: center; gap: 10px; flex: none;
	font-size: 17px; font-weight: 800; color: var(--ob-text) !important;
}
.ob-subbar__mark {
	display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
	background: var(--ob-navy); color: #7cc0ff;
}
.ob-subnav { flex: 1 1 auto; min-width: 0; }
.ob-subnav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.ob-subnav__list > li { position: relative; }
.ob-subnav__list a {
	display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
	border-radius: 10px; color: var(--ob-body) !important; font-size: 14.5px; font-weight: 600; white-space: nowrap;
}
.ob-subnav__list a:hover, .ob-subnav__list .current-menu-item > a { background: var(--ob-bg); color: var(--ob-text) !important; }
.ob-subnav__list .current-menu-item > a { color: var(--ob-brand) !important; }
.ob-subnav__list .menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; margin-top: -4px;
	border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); opacity: .6; /* points down in both directions */
}
.ob-subnav__list .sub-menu {
	position: absolute; inset-inline-start: 0; top: calc(100% + 6px);
	display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 2px;
	min-width: 340px; padding: 8px; margin: 0; list-style: none;
	background: #fff; border: 1px solid var(--ob-border); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(12, 30, 60, .35);
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .16s, transform .16s, visibility .16s;
}
.ob-subnav__list .sub-menu::before { content: ""; position: absolute; inset: -8px 0 auto 0; height: 8px; }
.ob-subnav__list li:hover > .sub-menu, .ob-subnav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ob-subnav__list .sub-menu a { width: 100%; font-weight: 500; }

.ob-search { position: relative; display: flex; align-items: center; }
.ob-search input {
	width: 100%; min-height: 44px; padding: 0 16px; padding-inline-end: 48px;
	border: 1px solid var(--ob-border); border-radius: 12px; background: var(--ob-bg);
	font: inherit; font-size: 15px; color: var(--ob-text);
	-webkit-appearance: none; appearance: none;
}
.ob-search input::placeholder { color: #6b7a8d; }
.ob-search input:focus { outline: none; border-color: var(--ob-brand); background: #fff; box-shadow: 0 0 0 3px rgba(11, 99, 206, .16); }
.ob-search button {
	position: absolute; inset-inline-end: 4px; display: grid; place-items: center;
	width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ob-muted); cursor: pointer;
}
.ob-search button:hover { color: var(--ob-brand); }
.ob-search--bar { flex: 0 1 280px; margin-inline-start: auto; }

/* ---------- section scaffolding ---------- */
.ob-section { padding-block: 56px; }
.ob-section--flush { padding-top: 32px; }
.ob-section--tint { background: #eef2f7; }
.ob-section--dark { background: linear-gradient(170deg, var(--ob-navy) 0%, var(--ob-navy-2) 100%); color: var(--ob-on-navy); }
.ob-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.ob-head__title { font-size: clamp(21px, 2vw, 26px); font-weight: 800; line-height: 1.4; color: var(--ob-text); }
.ob-section--dark .ob-head__title { color: #fff; }
.ob-head__link { display: inline-flex; align-items: center; gap: 4px; font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.ob-section--dark .ob-head__link { color: #8cc6ff; }
.ob-lede { max-width: 62ch; margin: -12px 0 24px !important; color: var(--ob-muted); }

/* ---------- hero ---------- */
.ob-hero { padding-top: 24px; }
.ob-hero__panel {
	display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center;
	padding: 48px; border-radius: 24px; color: var(--ob-on-navy); overflow: hidden;
	background:
		radial-gradient(700px 360px at 85% 0%, rgba(56, 132, 255, .32), transparent 60%),
		radial-gradient(500px 300px at 0% 100%, rgba(14, 165, 233, .2), transparent 60%),
		linear-gradient(160deg, #0b1f3d 0%, #0a1a33 60%, #081428 100%);
}
.ob-hero__text { display: grid; gap: 18px; align-content: center; }
.ob-hero__title { font-size: clamp(30px, 3.4vw, 44px); font-weight: 900; line-height: 1.4; color: #fff; }
.ob-hero__sub { max-width: 52ch; font-size: 17px; line-height: 1.9; color: #b9c8dc; }
.ob-search--hero { max-width: 520px; }
.ob-search--hero input { min-height: 54px; border-color: transparent; border-radius: 14px; background: #fff; font-size: 16px; }
.ob-search--hero button { width: 46px; height: 46px; background: var(--ob-brand); color: #fff; }
.ob-search--hero button:hover { background: var(--ob-brand-hover); color: #fff; }
.ob-hero__topics { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.ob-hero__topics a {
	display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .2); color: #dbe6f5 !important; font-size: 14px; font-weight: 600;
}
.ob-hero__topics a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); }

.ob-lead {
	display: grid; gap: 12px; padding: 16px; border-radius: 18px;
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.ob-lead__label { font-size: 13px; font-weight: 700; color: #7cc0ff; }
.ob-lead__media { display: block; aspect-ratio: 1200 / 630; overflow: hidden; border-radius: 12px; background: #13294a; }
.ob-lead__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.ob-lead:hover .ob-lead__media img { transform: scale(1.02); }
.ob-lead__title { font-size: 19px; font-weight: 800; line-height: 1.6; }
.ob-lead__title a { color: #fff !important; }
.ob-lead__title a:hover { color: #cfe5ff !important; }
.ob-lead .ob-meta { color: #9fb2cb; }
.ob-lead .ob-meta__term { color: #cfe5ff; }

/* ---------- meta line ---------- */
.ob-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13.5px; color: var(--ob-muted); line-height: 1.6; }
.ob-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.ob-meta__term { font-weight: 700; color: var(--ob-brand); }

/* ---------- cards ---------- */
.ob-card { position: relative; display: flex; flex-direction: column; background: var(--ob-surface); border: 1px solid var(--ob-border); border-radius: var(--ob-radius); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.ob-card:hover { border-color: #cfdbea; box-shadow: var(--ob-shadow); }
.ob-card__media { position: relative; display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--ob-brand-tint); }
.ob-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.ob-card:hover .ob-card__media img { transform: scale(1.025); }
.ob-card__fallback { display: grid; place-items: center; height: 100%; font-weight: 800; color: var(--ob-brand); }
.ob-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; padding: 18px 20px 20px; }
.ob-card__title { font-size: 17px; font-weight: 800; line-height: 1.7; color: var(--ob-text); }
.ob-card__title a { color: inherit !important; }
.ob-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.ob-card .ob-chip { position: relative; z-index: 1; }
.ob-card__title a:hover { color: var(--ob-brand) !important; }
.ob-card__excerpt { font-size: 14.5px; line-height: 1.9; color: var(--ob-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ob-card .ob-meta { margin-top: auto; padding-top: 4px; }

.ob-card--row { flex-direction: row; align-items: center; gap: 0; }
.ob-card--row { padding: 10px; gap: 14px; }
.ob-card--row .ob-card__media { flex: 0 0 150px; align-self: center; aspect-ratio: 1200 / 630; border-radius: 10px; }
.ob-card--row .ob-card__body { padding: 2px 0; gap: 6px; }
.ob-card--row .ob-card__title { font-size: 15.5px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ob-card--row .ob-meta { font-size: 13px; }

.ob-card__play {
	position: absolute; inset: 0; margin: auto; display: grid; place-items: center;
	width: 56px; height: 56px; border-radius: 50%; background: rgba(11, 31, 61, .82); color: #fff;
	box-shadow: 0 0 0 6px rgba(255, 255, 255, .22);
}
.ob-card__play svg { margin-inline-start: 3px; fill: currentColor; }

.ob-section--dark .ob-card { background: #10284b; border-color: rgba(255, 255, 255, .1); }
.ob-section--dark .ob-card:hover { border-color: rgba(255, 255, 255, .24); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .6); }
.ob-section--dark .ob-card__title { color: #fff; }
.ob-section--dark .ob-card__title a:hover { color: #9fd0ff !important; }
.ob-section--dark .ob-card__excerpt, .ob-section--dark .ob-meta { color: #a9bad1; }
.ob-section--dark .ob-chip { background: rgba(124, 192, 255, .14); color: #a8d4ff !important; }

/* ---------- grids ---------- */
.ob-grid { display: grid; gap: 24px; }
.ob-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ob-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.ob-split__main .ob-card__title { font-size: 21px; }
.ob-split__list { display: grid; gap: 14px; }
.ob-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }

/* ---------- topic tiles ---------- */
.ob-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; }
.ob-tile {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: 64px; padding: 12px 18px; border-radius: 14px;
	background: #fff; border: 1px solid var(--ob-border); color: var(--ob-text) !important;
	transition: border-color .18s, background-color .18s, transform .18s;
}
.ob-tile:hover { border-color: var(--ob-brand); transform: translateY(-1px); }
.ob-tile__name { font-size: 16px; font-weight: 700; }
.ob-tile__count { flex: none; font-size: 13px; font-weight: 600; color: var(--ob-muted); }
.ob-tiles li:nth-child(-n+4) .ob-tile { background: var(--ob-navy); border-color: var(--ob-navy); color: #fff !important; }
.ob-tiles li:nth-child(-n+4) .ob-tile__count { color: #9fb2cb; }
.ob-tiles li:nth-child(-n+4) .ob-tile:hover { background: #13305a; }

/* ---------- closing band ---------- */
.ob-band {
	display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
	padding: 36px 40px; border-radius: 22px; color: var(--ob-on-navy);
	background: radial-gradient(600px 260px at 10% 0%, rgba(56, 132, 255, .3), transparent 60%), var(--ob-navy);
}
.ob-band__title { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; color: #fff; line-height: 1.5; }
.ob-band__text { margin-top: 6px !important; max-width: 58ch; color: #b9c8dc; }
.ob-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- archive head ---------- */
.ob-archive-head { padding-block: 28px 8px; }
.ob-archive-head__title { margin-top: 6px !important; font-size: clamp(26px, 3vw, 36px); font-weight: 900; line-height: 1.45; color: var(--ob-text); }
.ob-archive-head__desc { max-width: 70ch; margin-top: 8px; color: var(--ob-muted); }
.ob-archive-head__desc p { margin: 0; }
.ob-archive-head__count { margin-top: 8px !important; font-size: 14px; font-weight: 600; color: var(--ob-muted); }
.ob-pills { display: flex; gap: 8px; margin: 20px 0 0 !important; padding: 0 0 4px; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.ob-pills a {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; white-space: nowrap;
	background: #fff; border: 1px solid var(--ob-border); color: var(--ob-body) !important; font-size: 14px; font-weight: 600;
}
.ob-pills a:hover { border-color: var(--ob-brand); color: var(--ob-brand) !important; }
.ob-pills a[aria-current="page"] { background: var(--ob-brand); border-color: var(--ob-brand); color: #fff !important; }
.ob-empty { display: grid; gap: 12px; justify-items: start; padding: 40px; border-radius: var(--ob-radius); background: #fff; border: 1px dashed #c9d5e4; }
.ob-empty h2 { font-size: 20px; font-weight: 800; color: var(--ob-text); }
.ob-empty .ob-search { width: min(100%, 460px); }
.ob-empty .ob-search input { border-color: #c9d5e4; }
.ob-pager { margin-top: 32px; }
.ob-pager .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ob-pager .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 12px; background: #fff; border: 1px solid var(--ob-border); font-weight: 700; }
.ob-pager .current { background: var(--ob-brand); border-color: var(--ob-brand); color: #fff; }

/* ---------- breadcrumbs ---------- */
.ob-crumbs { font-size: 13.5px; color: var(--ob-muted); }
.ob-crumbs .rank-math-breadcrumb p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ob-crumbs a { color: var(--ob-muted) !important; }
.ob-crumbs a:hover { color: var(--ob-brand) !important; }
.ob-crumbs .separator { opacity: .55; }
.ob-crumbs .last { color: var(--ob-body); }

/* ---------- post / page ---------- */
.ob-page { padding-block: 24px 64px; }
.ob-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; margin-top: 16px; }
.ob-layout--single { grid-template-columns: minmax(0, 860px); justify-content: center; }
.ob-article { min-width: 0; padding: 40px 48px 48px; border-radius: 20px; background: #fff; border: 1px solid var(--ob-border); }
/* post_class() adds .post, which the old style.css pins to height:205px. */
body.ob .ob-article.main-content { width: auto; max-width: none; height: auto; margin: 0; float: none; flex: initial; overflow: visible; }
/* The os-hardening content filter prints its own date row; the header above already has it. */
.ob-article .textbox > .os-meta:first-child { display: none; }
.ob-article .complate_text { padding: 0 !important; margin: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; }
.ob-article__head { display: grid; gap: 14px; max-width: var(--os-measure, 44rem); margin-inline: auto; }
.ob-article__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.ob-article__title { font-size: clamp(26px, 2.8vw, 36px); font-weight: 900; line-height: 1.5; color: var(--ob-text); }
.ob-article__cover { max-width: var(--os-measure, 44rem); margin: 28px auto 32px !important; overflow: hidden; border-radius: 14px; border: 1px solid var(--ob-border); aspect-ratio: 1200 / 630; background: var(--ob-brand-tint); }
.ob-article__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ob-article .textbox { font-family: var(--ob-font); }
.ob-article .textbox :where(pre, code, kbd, samp) { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.ob-services { max-width: var(--os-measure, 44rem); margin: 40px auto 0; padding: 22px 24px; border-radius: 14px; background: var(--ob-bg); border: 1px solid var(--ob-border); }
.ob-services h2 { font-size: 17px; font-weight: 800; color: var(--ob-text); margin-bottom: 12px; }
.ob-services ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.ob-services a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 10px; background: #fff; border: 1px solid var(--ob-border); font-weight: 600; font-size: 14.5px; }
.ob-services a:hover { border-color: var(--ob-brand); }
.ob-comments { max-width: var(--os-measure, 44rem); margin: 40px auto 0; }

/* ---------- side rail ---------- */
.ob-rail { display: grid; gap: 20px; }
.ob-box--help { position: sticky; top: 16px; }
.ob-box { padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--ob-border); }
.ob-box__title { font-size: 16px; font-weight: 800; color: var(--ob-text); margin-bottom: 12px !important; }
.ob-list { display: grid; gap: 2px; list-style: none; padding: 0; counter-reset: ob; }
.ob-list li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid #eef2f7; }
.ob-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.ob-list a { font-size: 14.5px; font-weight: 600; line-height: 1.75; color: var(--ob-text) !important; }
.ob-list a:hover { color: var(--ob-brand) !important; }
.ob-list span { font-size: 12.5px; color: var(--ob-muted); }
.ob-terms { display: grid; gap: 2px; list-style: none; padding: 0; max-height: 340px; overflow-y: auto; scrollbar-width: thin; }
.ob-terms a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 10px; border-radius: 10px; color: var(--ob-body) !important; font-size: 14.5px; }
.ob-terms a:hover { background: var(--ob-bg); color: var(--ob-brand) !important; }
.ob-count { min-width: 30px; padding: 1px 8px; border-radius: 999px; background: var(--ob-bg); font-size: 12.5px; font-weight: 600; text-align: center; color: var(--ob-muted); }
.ob-box--help { display: grid; gap: 10px; justify-items: start; background: var(--ob-navy); border-color: var(--ob-navy); color: var(--ob-on-navy); }
.ob-box--help .ob-ico { color: #7cc0ff; }
.ob-box--help .ob-box__title { margin: 0 !important; color: #fff; }
.ob-box--help p { font-size: 14px; line-height: 1.9; color: #b9c8dc; }
.ob-box--help .ob-btn { width: 100%; }

/* TOC numbers in Persian digits, like the rest of the visible copy. */
.ob-article .os-toc li::before { content: counter(os-toc, persian); }

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

/* ---------- breakpoints ---------- */
/* Same steps as CompactNavbar .wrap: 1440px box from 1600px up. The embedded
   header does not zoom on large screens, so neither does this page. */
@media (min-width: 1600px) {
	:root { --ob-max: 1440px; }
}
@media (max-width: 1179px) {
	:root { --ob-gutter: 16px; }
	.ob-subbar__row { gap: 16px; }
	.ob-hero__panel { padding: 36px; gap: 32px; }
	.ob-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
	.ob-article { padding: 32px; }
}
@media (max-width: 1023px) {
	.ob-subbar__row { flex-wrap: wrap; gap: 0 12px; padding-block: 8px; }
	.ob-search--bar { flex: 1 1 220px; }
	.ob-subnav { order: 3; flex: 0 0 calc(100% + var(--ob-gutter) * 2); max-width: none; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin-inline: calc(var(--ob-gutter) * -1); padding-inline: var(--ob-gutter); overscroll-behavior-x: contain; }
	.ob-subnav::-webkit-scrollbar { display: none; }
	.ob-subnav__list .sub-menu { display: contents; opacity: 1; visibility: visible; transform: none; }
	.ob-subnav__list .sub-menu > li { display: contents; }
	.ob-subnav__list .sub-menu a { font-weight: 600; }
	.ob-subnav__list .menu-item-has-children > a { display: none; }
	.ob-subnav__list > li { display: contents; }
	.ob-subnav__list { gap: 2px; width: max-content; }
	.ob-hero__panel { grid-template-columns: 1fr; }
	.ob-lead { grid-template-columns: 200px minmax(0, 1fr); align-items: center; column-gap: 16px; }
	.ob-lead__label { grid-column: 1 / -1; }
	.ob-lead__media { grid-row: span 2; }
	.ob-grid--3 { gap: 16px; }
	.ob-grid--3 .ob-card__body { padding: 14px 16px 16px; }
	.ob-split { grid-template-columns: 1fr; }
	.ob-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ob-layout { grid-template-columns: 1fr; }
	.ob-rail { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ob-box--help { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
	body.ob { font-size: 15.5px; }
	.ob-section { padding-block: 40px; }
	.ob-subbar__brand { font-size: 16px; }
	.ob-search--bar input { min-height: 40px; }
	.ob-hero { padding-top: 12px; }
	.ob-hero__panel { padding: 24px 20px; border-radius: 18px; gap: 24px; }
	.ob-hero__sub { font-size: 15.5px; }
	.ob-search--hero input { min-height: 50px; }
	.ob-lead { grid-template-columns: 1fr; }
	.ob-lead__media { grid-row: auto; }
	.ob-grid--3, .ob-rows { grid-template-columns: 1fr; }
	.ob-card--row { align-items: flex-start; gap: 12px; }
	.ob-card--row .ob-card__media { flex-basis: 108px; align-self: flex-start; }
	.ob-card--row .ob-meta { gap: 4px 12px; }
	.ob-card--row .ob-card__title { font-size: 15px; }
	.ob-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.ob-tile { min-height: 56px; padding: 10px 14px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; }
	.ob-tile__name { font-size: 15px; }
	.ob-head { flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
	.ob-band { padding: 26px 22px; }
	.ob-band__actions, .ob-band__actions .ob-btn { width: 100%; }
	.ob-page { padding-block: 12px 40px; }
	.ob-article { padding: 22px 16px 28px; border-radius: 0; border-inline: 0; margin-inline: calc(var(--ob-gutter) * -1); }
	.ob-article__cover { margin: 20px auto 24px !important; }
	.ob-rail { grid-template-columns: 1fr; }
	.ob-empty { padding: 24px; }
	.ob-article .textbox :is(ul, ol) { padding-inline-start: 1.25em; }
	.ob-article .textbox p { text-align: start; } /* justify opens wide gaps on a 358px measure */
}
