/*
Theme Name: Kaamyab
Theme URI: https://jobshah.com
Author: Jobshah
Author URI: https://jobshah.com
Description: A clean, fast and fully responsive jobs-notice theme. Editorial homepage with a "closing soon" board, notice snapshot box, thin-page protection (noindex for weak archives), policy-safe AdSense slots that never show empty boxes, ads.txt support and a built-in Site Check page under Tools. No external fonts or libraries.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kaamyab
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

/* ---------- Tokens ---------- */
:root {
	--bg: #F6F3EC;
	--surface: #FFFFFF;
	--surface-2: #EFEBE1;
	--ink: #14213D;
	--ink-2: #3B4660;
	--muted: #667085;
	--line: #E3DDCF;
	--brand: #14213D;
	--brand-2: #223A6B;
	--accent: #E4572E;
	--accent-d: #B8401C;
	--ok: #0F766E;
	--warn: #B45309;
	--bad: #B42318;
	--on-brand: #FFFFFF;
	--shadow: 0 1px 2px rgba(20,33,61,.06), 0 8px 24px rgba(20,33,61,.07);
	--font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--r-sm: 8px;
	--r-md: 14px;
	--r-lg: 22px;
	--wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0E1424;
		--surface: #161E33;
		--surface-2: #1C2640;
		--ink: #EEF1F8;
		--ink-2: #C3CADB;
		--muted: #97A1B8;
		--line: #28334F;
		--brand: #0A1020;
		--brand-2: #1B2C55;
		--accent: #FF7A4F;
		--accent-d: #FF9B7A;
		--ok: #34D1BF;
		--warn: #F5B14C;
		--bad: #FF8A80;
		--shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
	}
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brand-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-d); }
@media (prefers-color-scheme: dark) { a { color: #9DB6FF; } a:hover { color: var(--accent); } }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.22; letter-spacing: -.01em; color: var(--ink); margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
.icon { flex: none; vertical-align: middle; }
.sr-only { position: absolute; 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; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm); z-index: 1000; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 820px; margin-inline: auto; padding: 28px 20px 60px; }
.eyebrow { font: 700 .78rem/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-d); margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--accent); } }

/* ---------- Buttons & chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 .98rem/1 var(--font-body); padding: 14px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-2); color: var(--on-brand); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-d); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: .9rem; }
@media (prefers-color-scheme: dark) { .btn-primary { background: var(--accent); color: #1a0d07; } .btn-primary:hover { background: var(--accent-d); color: #1a0d07; } }
.chip { display: inline-block; font: 700 .74rem/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; text-decoration: none; background: var(--surface-2); color: var(--ink-2); }
.chip:hover { color: var(--ink); filter: brightness(.96); }
.tint-0 { --t: #E8EEFC; --tc: #243A8A; } .tint-1 { --t: #FDE9E1; --tc: #9A3412; } .tint-2 { --t: #DDF3EE; --tc: #0B5F58; }
.tint-3 { --t: #FBF0CF; --tc: #7A5200; } .tint-4 { --t: #F1E6FA; --tc: #6B2C91; } .tint-5 { --t: #E3F0E1; --tc: #2F6A2B; }
@media (prefers-color-scheme: dark) {
	.tint-0 { --t: #1E2C5A; --tc: #B9C8FF; } .tint-1 { --t: #4A2316; --tc: #FFB89C; } .tint-2 { --t: #0F3A36; --tc: #7EE4D6; }
	.tint-3 { --t: #43330A; --tc: #F7D27A; } .tint-4 { --t: #36204A; --tc: #DDB8F5; } .tint-5 { --t: #1D3A1B; --tc: #A9E2A3; }
}
.chip[class*="tint-"] { background: var(--t); color: var(--tc); }
.status { display: inline-flex; align-items: center; gap: 6px; font: 700 .74rem/1 var(--font-body); padding: 5px 9px; border-radius: 999px; border: 1px solid currentColor; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-open { color: var(--ok); } .status-soon { color: var(--warn); } .status-closed { color: var(--muted); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--brand); color: #D5DCF0; font-size: .82rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.topbar .icon { margin-right: 6px; opacity: .8; }
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-stuck { box-shadow: 0 6px 20px rgba(20,33,61,.08); }
.header-in { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); }
.brand-name { font: 700 1.45rem/1 var(--font-head); letter-spacing: -.02em; color: var(--ink); }
.logo-mark { color: var(--brand); flex: none; width: 36px; height: 36px; max-width: none; }
@media (prefers-color-scheme: dark) { .logo-mark { color: var(--accent); } }
.custom-logo { max-height: 46px; width: auto; }
.primary-nav { margin-left: auto; min-width: 0; }
.menu, .primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-nav a { display: block; white-space: nowrap; padding: 9px 10px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .96rem; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-cat > a { background: var(--surface-2); color: var(--ink); }
.primary-nav li { position: relative; }
.primary-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 210px; display: none; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px; box-shadow: var(--shadow); }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: flex; }
.header-actions { display: flex; gap: 6px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 50%; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.nav-toggle { display: none; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
.search-drawer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 14px; }
.search-drawer[hidden] { display: none; }
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; z-index: 90; opacity: 0; }
.progress.on { opacity: 1; }

/* ---------- Search form ---------- */
.search-form { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 16px; }
.search-form input[type="search"] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); padding: 8px 0; }
.search-form .icon { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 44px; background:
	radial-gradient(900px 380px at 88% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
	linear-gradient(color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px) 0 0 / 100% 44px,
	var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.08; letter-spacing: -.025em; margin-bottom: 18px; max-width: 18ch; }
.hero-text { font-size: 1.12rem; color: var(--ink-2); max-width: 54ch; margin-bottom: 26px; }
.hero-search { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px; box-shadow: var(--shadow); max-width: 680px; }
.hs-field { display: flex; align-items: center; gap: 10px; padding-left: 14px; min-width: 0; }
.hs-field .icon { color: var(--muted); }
.hs-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); padding: 10px 0; }
.hs-select select { height: 100%; border: 0; border-left: 1px solid var(--line); background: transparent; font: inherit; color: var(--ink-2); padding: 0 12px; max-width: 170px; cursor: pointer; }
.hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.chip-link { display: inline-block; padding: 6px 13px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .88rem; }
.chip-link:hover { border-color: var(--accent); color: var(--accent-d); }

/* Notice board */
.board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px 22px 8px; position: relative; }
.board::before { content: ""; position: absolute; top: -9px; left: 28px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 2px 0 rgba(0,0,0,.15), inset 0 -3px 0 rgba(0,0,0,.12); }
.board-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.board-head h2 { font-size: 1.15rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.board-date { font-size: .82rem; color: var(--muted); font-weight: 600; }
.board-list { list-style: none; margin: 0; padding: 0; counter-reset: b; }
.board-list li { counter-increment: b; display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 13px 0; border-top: 1px dashed var(--line); }
.board-list li::before { content: counter(b, decimal-leading-zero); font: 700 .85rem/1.6 var(--font-head); color: var(--accent); }
.board-list li > div { min-width: 0; }
.board-list a { font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.35; display: block; }
.board-list a:hover { color: var(--accent-d); }
.board-meta { display: block; font-size: .82rem; color: var(--muted); margin-top: 3px; }
.board-empty { color: var(--muted); padding: 12px 0 18px; }

/* Category rail */
.rail { border-block: 1px solid var(--line); background: var(--surface); }
.rail-in { display: flex; gap: 10px; overflow-x: auto; padding-block: 14px; scrollbar-width: thin; }
.rail-item { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--bg); }
.rail-item:hover { border-color: var(--accent); }
.rail-ico, .side-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--t); color: var(--tc); flex: none; }
.rail-name { font-weight: 700; font-size: .95rem; }
.rail-count { font-size: .8rem; color: var(--muted); background: var(--surface-2); padding: 2px 8px; border-radius: 999px; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-tint { background: var(--surface-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--brand-2); }
.link-arrow:hover { gap: 10px; }
@media (prefers-color-scheme: dark) { .link-arrow { color: var(--accent); } }
.h-sub { font-size: 1.5rem; margin: 0 0 18px; }

/* Rows */
.row-list { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 180px 1fr; gap: 22px; padding: 22px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: 0; }
.row-media { display: block; aspect-ratio: 3 / 2; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); }
.row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.row:hover .row-media img { transform: scale(1.05); }
.row-ph, .card-ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--t); color: var(--tc); }
.row-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.row-date { margin-left: auto; font-size: .82rem; color: var(--muted); }
.row-title { font-size: 1.32rem; margin: 0 0 6px; }
.row-title a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .25s; }
.row-title a:hover { background-size: 100% 2px; }
.row-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 8px; font-size: .88rem; color: var(--ink-2); font-weight: 600; }
.row-facts .icon { margin-right: 5px; color: var(--muted); }
.row-excerpt { margin: 0; color: var(--ink-2); font-size: .98rem; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { display: block; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; align-items: flex-start; }
.card-title { font-size: 1.15rem; margin: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent-d); }
.card-excerpt { margin: 0; font-size: .93rem; color: var(--ink-2); }
.card-date { margin-top: auto; font-size: .8rem; color: var(--muted); }

/* Digest */
.digest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.digest { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.digest h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.digest h3 .icon { background: var(--t); color: var(--tc); width: 34px; height: 34px; padding: 7px; border-radius: 50%; }
.digest h3 a { color: var(--ink); text-decoration: none; }
.digest ul { list-style: none; margin: 0 0 14px; padding: 0; }
.digest li { padding: 10px 0; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 2px; }
.digest li a { color: var(--ink); font-weight: 600; text-decoration: none; line-height: 1.35; font-size: .96rem; }
.digest li a:hover { color: var(--accent-d); }
.digest time { font-size: .78rem; color: var(--muted); }

/* Standards band */
.standards { background: var(--brand); color: #DCE3F5; padding: 60px 0; }
.standards h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 28px; }
.standards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.standards h3 { color: #fff; font-size: 1.15rem; margin: 14px 0 8px; }
.standards p { margin: 0; color: #C3CDE8; font-size: .97rem; }
.standards a { color: #FFB89C; }
.std-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #FFB89C; }

/* ---------- Layout (archive/single) ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding-block: 28px 64px; align-items: start; }
.sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 22px; }
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.widget-title { font-size: 1.05rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); display: inline-block; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-top: 1px dashed var(--line); }
.widget li:first-child { border-top: 0; }
.widget a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.widget a:hover { color: var(--accent-d); }
.side-cats a { display: flex; align-items: center; gap: 10px; }
.side-name { flex: 1; }
.side-count { font-size: .78rem; color: var(--muted); background: var(--surface-2); padding: 2px 8px; border-radius: 999px; }
.side-posts li { display: flex; flex-direction: column; gap: 2px; }
.side-posts time { font-size: .78rem; color: var(--muted); }
.archive-head { margin-bottom: 26px; }
.archive-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 8px; }
.archive-desc { color: var(--ink-2); max-width: 62ch; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-md); padding: 28px; text-align: center; color: var(--ink-2); }
.navigation.pagination { margin-top: 34px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers { min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; }
.page-numbers.current { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (prefers-color-scheme: dark) { .page-numbers.current { background: var(--accent); color: #1a0d07; border-color: var(--accent); } }
.breadcrumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .85rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; opacity: .5; }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-d); }

/* ---------- Single ---------- */
.single { min-width: 0; }
.entry-head { margin-bottom: 22px; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.entry-title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.14; margin-bottom: 14px; letter-spacing: -.02em; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--muted); }
.meta-item { display: inline-flex; align-items: center; gap: 6px; }
.entry-thumb { margin: 0 0 24px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.entry-thumb img { width: 100%; }

.snapshot { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--r-md); padding: 22px 24px; margin-bottom: 26px; box-shadow: var(--shadow); }
.snapshot-title { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 14px; }
.snapshot dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin: 0 0 16px; }
.snapshot dt { display: flex; align-items: center; gap: 7px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.snapshot dd { margin: 3px 0 0; font-weight: 700; color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.snapshot-btn { margin-top: 2px; }
.snapshot-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: .86rem; color: var(--ok); font-weight: 600; }

.entry-content { font-size: 1.08rem; overflow-wrap: break-word; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: 1.7rem; margin: 2em 0 .6em; padding-top: .2em; }
.entry-content h3 { font-size: 1.32rem; margin: 1.6em 0 .5em; }
.entry-content h4 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.entry-content a { font-weight: 600; }
.entry-content img { border-radius: var(--r-sm); margin-block: 1em; }
.entry-content blockquote { margin: 1.6em 0; padding: 14px 20px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-2); }
.entry-content li { margin-bottom: .35em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .96rem; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 11px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { background: var(--surface-2); font-weight: 700; }
.entry-content tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.entry-content iframe { width: 100%; }
.entry-content pre, .entry-content code { font-size: .92em; background: var(--surface-2); border-radius: 6px; }
.entry-content code { padding: 2px 6px; } .entry-content pre { padding: 14px; overflow-x: auto; }
.alignwide { max-width: 100%; } .alignleft { float: left; margin: 0 1.2em 1em 0; } .alignright { float: right; margin: 0 0 1em 1.2em; } .aligncenter { margin-inline: auto; }
.page-links { margin: 1.5em 0; }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin: 0 0 1.8em; }
.toc summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; font: 700 1rem var(--font-head); list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary span { flex: 1; }
.toc-chev { transition: transform .2s; }
.toc details[open] .toc-chev { transform: rotate(180deg); }
.toc ol { margin: 0; padding: 4px 18px 16px 42px; columns: 2; column-gap: 28px; font-size: .95rem; }
.toc li { margin-bottom: .4em; break-inside: avoid; }
.toc a { font-weight: 500; text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--accent-d); text-decoration: underline; }

.entry-foot-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; align-items: center; }
.tag-label { font-weight: 700; font-size: .85rem; margin-right: 4px; }
.entry-foot-tags a { padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); text-decoration: none; font-size: .85rem; font-weight: 600; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0; padding: 16px 0; border-block: 1px solid var(--line); }
.share-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-right: 6px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .88rem var(--font-body); text-decoration: none; cursor: pointer; }
.share-btn:hover { border-color: var(--accent); color: var(--accent-d); }
.author-box { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; margin-bottom: 28px; }
.avatar-img { border-radius: 50%; flex: none; }
.author-name { font: 700 1.1rem var(--font-head); margin: 0 0 4px; }
.author-bio { margin: 0; font-size: .92rem; color: var(--ink-2); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pn { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); text-decoration: none; color: var(--ink); }
.pn:hover { border-color: var(--accent); }
.pn-next { text-align: right; grid-column: 2; align-items: flex-end; }
.pn-label { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pn-title { font-weight: 700; line-height: 1.35; }
.related { margin-top: 44px; }
.related .card-grid { grid-template-columns: repeat(3, 1fr); }

/* Comments */
.comments { margin-top: 44px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 22px; }
.comment-body { padding: 16px 0; border-top: 1px solid var(--line); }
.comment-author img { float: left; margin-right: 12px; border-radius: 50%; }
.comment-metadata { font-size: .8rem; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .92rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: inherit; }
.comment-form .submit { background: var(--brand); color: #fff; border: 0; padding: 13px 24px; border-radius: 999px; font: 700 .98rem var(--font-body); cursor: pointer; }
@media (prefers-color-scheme: dark) { .comment-form .submit { background: var(--accent); color: #1a0d07; } }

/* 404 */
.notfound { text-align: center; padding: 40px 0; }
.nf-code { font: 700 clamp(5rem, 16vw, 9rem)/1 var(--font-head); color: var(--accent); margin: 0; }
.nf-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.notfound .search-form { max-width: 520px; margin: 22px auto 0; }

/* ---------- Ads ---------- */
.ad-slot { margin: 28px auto; text-align: center; min-height: 0; overflow: hidden; }
.ad-label { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad-inner { display: flex; justify-content: center; }
.ad-sticky { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand); color: #C3CDE8; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-block: 56px 36px; }
.site-footer .brand-name { color: #fff; }
.site-footer .logo-mark { color: var(--accent); }
.f-brand p { margin: 14px 0; font-size: .95rem; max-width: 40ch; }
.f-mail { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; text-decoration: none; }
.social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.social a { display: block; padding: 6px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #fff; text-decoration: none; font-size: .85rem; font-weight: 600; }
.social a:hover { background: rgba(255,255,255,.1); }
.f-title { color: #fff; font: 700 .8rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.f-list, .site-footer ul.f-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.f-list a { color: #C3CDE8; text-decoration: none; font-size: .95rem; }
.f-list a:hover { color: #fff; text-decoration: underline; }
.footer-note { display: flex; gap: 12px; align-items: flex-start; padding-block: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }
.footer-note p { margin: 0; }
.footer-note .icon { margin-top: 3px; color: #FFB89C; }
.footer-bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 16px 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.footer-bar p { margin: 0; }

.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 80; max-width: 440px; display: flex; gap: 14px; align-items: center; background: var(--ink); color: var(--bg); padding: 14px 16px; border-radius: var(--r-md); box-shadow: var(--shadow); font-size: .86rem; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; } .cookie a { color: #FFB89C; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 0; background: var(--accent); color: #fff; cursor: pointer; box-shadow: var(--shadow); z-index: 70; }
.to-top[hidden] { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.layout { grid-template-columns: 1fr; gap: 34px; }
	.sidebar { position: static; }
	.hero-grid { grid-template-columns: 1fr; gap: 34px; }
	.hero h1 { max-width: 22ch; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.card-grid, .digest-grid, .related .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
	.nav-toggle { display: grid; }
	.primary-nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); background: var(--surface); padding: 84px 18px 24px; clip-path: inset(0 0 0 100%); transition: clip-path .28s ease, visibility 0s .28s; z-index: 70; overflow-y: auto; box-shadow: -20px 0 40px rgba(0,0,0,.18); margin: 0; visibility: hidden; }
	.primary-nav.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .28s ease, visibility 0s; }
	.menu, .primary-nav ul { flex-direction: column; gap: 2px; }
	.primary-nav a { padding: 13px 14px; border-radius: var(--r-sm); font-size: 1.02rem; }
	.primary-nav .sub-menu { position: static; display: flex; border: 0; box-shadow: none; padding: 0 0 0 14px; }
	.header-actions { margin-left: auto; position: relative; z-index: 80; }
	.nav-open { overflow: hidden; }
	.topbar-note { display: none; }
}
@media (max-width: 760px) {
	body { font-size: 1.02rem; }
	.hero { padding: 38px 0 32px; }
	.hero-search { grid-template-columns: 1fr; border-radius: var(--r-lg); }
	.hs-select select { border-left: 0; border-top: 1px solid var(--line); width: 100%; max-width: none; padding: 12px 14px; }
	.hs-field { border-bottom: 0; }
	.section { padding: 40px 0; }
	.row { grid-template-columns: 112px 1fr; gap: 14px; }
	.row-title { font-size: 1.1rem; }
	.row-excerpt { display: none; }
	.row-date { margin-left: 0; }
	.card-grid, .digest-grid, .related .card-grid, .standards-grid { grid-template-columns: 1fr; }
	.snapshot dl { grid-template-columns: 1fr; }
	.toc ol { columns: 1; }
	.post-nav { grid-template-columns: 1fr; }
	.pn-next { grid-column: auto; text-align: left; align-items: flex-start; }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 40px 24px; }
	.cookie { left: 10px; right: 10px; bottom: 10px; max-width: none; }
	.to-top { bottom: 84px; }
	.author-box { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
	.wrap { padding-inline: 16px; }
	.row { grid-template-columns: 92px 1fr; }
	.row-facts { display: none; }
}
@media print {
	.topbar, .site-header, .sidebar, .site-footer, .share, .post-nav, .related, .comments, .cookie, .to-top, .ad-slot, .progress { display: none !important; }
	.layout { display: block; } body { background: #fff; color: #000; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Core widgets / blocks inside the sidebar ---------- */
.widget .wp-block-search__inside-wrapper, .widget .wp-block-search { display: flex; flex-wrap: wrap; gap: 8px; }
.widget .wp-block-search__label { width: 100%; font: 700 1.05rem var(--font-head); margin-bottom: 6px; }
.widget .wp-block-search__input, .widget input[type="search"], .widget select { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: inherit; }
.widget .wp-block-search__button, .widget input[type="submit"] { padding: 10px 18px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: 700 .9rem var(--font-body); cursor: pointer; }
@media (prefers-color-scheme: dark) { .widget .wp-block-search__button, .widget input[type="submit"] { background: var(--accent); color: #1a0d07; } }
.widget h2:not(.widget-title) { font-size: 1.05rem; padding-bottom: 10px; border-bottom: 2px solid var(--accent); display: inline-block; }
.widget .wp-block-latest-comments { padding: 0; }
.widget .wp-block-latest-comments__comment { margin: 0; padding: 8px 0; border-top: 1px dashed var(--line); font-size: .92rem; }
