/* ==========================================================================
   AntaNews — main stylesheet
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--c-primary: #1a3a9f;
	--c-accent: #f7921e;
	--c-primary-soft: color-mix(in srgb, var(--c-primary) 10%, transparent);
	--c-primary-hover: color-mix(in srgb, var(--c-primary) 82%, #000);

	--c-bg: #ffffff;
	--c-surface: #f5f7fc;
	--c-surface-2: #e8eeff;
	--c-text: #1a2340;
	--c-heading: #0c1b6e;
	--c-muted: #6b7c9e;
	--c-border: #e2e8f4;
	--c-dark: #0a1650;
	--c-dark-text: #c9d4f0;
	--c-on-primary: #ffffff;
	--c-on-accent: #ffffff;

	--f-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--container: 1240px;
	--gutter: 20px;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgb(26 58 159 / 6%), 0 8px 24px -12px rgb(26 58 159 / 18%);
	--header-h: 72px;
	--ease: cubic-bezier(.2, .7, .2, 1);

	color-scheme: light;
}

:root[data-theme="dark"] {
	--c-bg: #0b1230;
	--c-surface: #111a40;
	--c-surface-2: #18234f;
	--c-text: #dbe3f5;
	--c-heading: #f3f6ff;
	--c-muted: #94a3c4;
	--c-border: #23305e;
	--c-dark: #070d2a;
	--c-primary-soft: color-mix(in srgb, var(--c-primary) 22%, transparent);
	--shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px -12px rgb(0 0 0 / 60%);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--f-body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background-color .25s, color .25s;
}

img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
svg.icon { flex: none; display: inline-block; vertical-align: middle; }

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-head);
	color: var(--c-heading);
	line-height: 1.25;
	margin: 0 0 .5em;
	font-weight: 700;
	letter-spacing: -.01em;
}

p { margin: 0 0 1em; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000;
	top: 8px; left: 8px; padding: 10px 16px; background: var(--c-bg); color: var(--c-text);
	box-shadow: var(--shadow); border-radius: var(--radius-sm);
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ---------- Buttons & pills ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 20px;
	border: 0; border-radius: 999px;
	background: var(--c-primary); color: var(--c-on-primary);
	font-family: var(--f-head); font-weight: 700; font-size: 14px;
	cursor: pointer; transition: background .2s, transform .2s;
}
.btn:hover { background: var(--c-primary-hover); color: var(--c-on-primary); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-outline { background: transparent; color: var(--c-primary); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-outline:hover { background: var(--c-primary); color: var(--c-on-primary); }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 40px; height: 40px;
	border: 0; border-radius: 999px;
	background: transparent; color: var(--c-heading);
	cursor: pointer; transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--c-surface); color: var(--c-primary); }

.tag-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pills a {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	font-size: 13px; font-weight: 500; white-space: nowrap;
	transition: background .2s, color .2s, border-color .2s;
}
.tag-pills a:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.tag-pills.is-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 90%, transparent); }
.tag-pills.is-scroll::-webkit-scrollbar { display: none; }

.cat-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 6px;
	background: var(--c-primary);
	color: var(--c-on-primary);
	font-family: var(--f-head);
	font-size: 11px; font-weight: 700; line-height: 1.4;
	letter-spacing: .04em; text-transform: uppercase;
}
.cat-badge:hover { background: var(--c-accent); color: var(--c-on-accent); }
.cat-badge.is-text { padding: 0; background: none; color: var(--c-primary); }
.cat-badge.is-text:hover { background: none; color: var(--c-primary-hover); }
.cat-badge.on-image { position: absolute; left: 12px; top: 12px; z-index: 2; }

/* ---------- Top bar & ticker ---------- */
.topbar {
	background: var(--c-dark);
	color: var(--c-dark-text);
	font-size: 13px;
}
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 42px; }
.topbar a:hover { color: var(--c-accent); }

.ticker { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; }
.ticker-label {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 4px 12px; border-radius: 999px;
	background: var(--c-accent); color: var(--c-on-accent);
	font-family: var(--f-head); font-weight: 700; font-size: 11px;
	letter-spacing: .06em; text-transform: uppercase; flex: none;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #d4231b; box-shadow: 0 0 0 0 rgb(212 35 27 / 60%); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgb(212 35 27 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(212 35 27 / 0%); } }

.ticker-track { position: relative; flex: 1; min-width: 0; height: 22px; overflow: hidden; }
.ticker-item {
	position: absolute; inset: 0;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	opacity: 0; transform: translateY(100%);
	transition: opacity .4s var(--ease), transform .4s var(--ease);
	font-weight: 500;
}
.ticker-item.is-active { opacity: 1; transform: none; }
.ticker-item.is-leaving { opacity: 0; transform: translateY(-100%); }
.ticker-nav { display: flex; gap: 4px; flex: none; }
.ticker-nav button {
	width: 24px; height: 24px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 6px;
	background: transparent; color: inherit; cursor: pointer; line-height: 1; font-size: 16px;
}
.ticker-nav button:hover { background: rgb(255 255 255 / 10%); }

.topbar-right { display: flex; align-items: center; gap: 20px; flex: none; }
.today { display: inline-flex; align-items: center; gap: 6px; opacity: .8; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--c-bg) 92%, transparent);
	backdrop-filter: saturate(160%) blur(10px);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--c-border);
	transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }

.site-branding { flex: none; }
.site-branding .custom-logo { max-height: 46px; width: auto; }
.site-title { margin: 0; font-family: var(--f-head); font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.site-title a { display: inline-flex; align-items: center; gap: 9px; color: var(--c-heading); }
.site-title em { font-style: normal; color: var(--c-primary); }
.logo-mark {
	display: inline-grid; place-items: center;
	width: 36px; height: 36px; border-radius: 10px;
	background: linear-gradient(135deg, var(--c-primary), color-mix(in srgb, var(--c-primary) 55%, var(--c-accent)));
	color: #fff; font-size: 20px; font-weight: 700;
	box-shadow: inset 0 -3px 0 rgb(0 0 0 / 15%);
}

/* Primary nav */
.main-nav { flex: 1; min-width: 0; }
.main-nav > ul, .main-nav > div > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav a {
	display: flex; align-items: center; gap: 4px;
	padding: 10px 12px;
	font-family: var(--f-head); font-weight: 600; font-size: 14.5px;
	color: var(--c-heading); border-radius: 8px; white-space: nowrap;
}
.main-nav > ul > li > a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: -14px; height: 3px;
	border-radius: 3px 3px 0 0; background: var(--c-primary);
	transform: scaleX(0); transition: transform .25s var(--ease);
}
.main-nav > ul > li:hover > a::after,
.main-nav > ul > li.current-menu-item > a::after,
.main-nav > ul > li.current-menu-ancestor > a::after,
.main-nav > ul > li.current-category-ancestor > a::after { transform: scaleX(1); }
.main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { color: var(--c-primary); }
.main-nav .menu-item-has-children > a::before {
	content: ""; order: 2; width: 6px; height: 6px; margin-left: 4px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px); opacity: .55;
}
.main-nav .sub-menu {
	position: absolute; top: calc(100% + 12px); left: 0; z-index: 10;
	min-width: 220px; padding: 8px; margin: 0; list-style: none;
	background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius);
	box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.main-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.main-nav .sub-menu .sub-menu { top: -9px; left: 100%; margin-left: 8px; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { padding: 9px 12px; font-size: 14px; font-weight: 600; }
.main-nav .sub-menu a:hover { background: var(--c-surface); }

.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: none; }

.theme-toggle .when-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .when-dark { display: inline; }
:root[data-theme="dark"] .theme-toggle .when-light { display: none; }

.menu-toggle { display: none; margin-left: -8px; }

.header-ad { margin-top: 20px; display: flex; justify-content: center; }
.ad-slot { text-align: center; }
.ad-slot img { margin-inline: auto; border-radius: var(--radius-sm); }

/* ---------- Search modal ---------- */
.search-modal {
	position: fixed; inset: 0; z-index: 100;
	background: color-mix(in srgb, var(--c-bg) 96%, transparent);
	backdrop-filter: blur(6px);
	display: grid; align-content: start; padding-top: 14vh;
	animation: fadeIn .2s ease;
}
.search-modal[hidden] { display: none; }
.search-modal-inner { position: relative; max-width: 760px; }
.search-close { position: absolute; right: var(--gutter); top: -64px; }
.search-modal-title { font-family: var(--f-head); font-size: clamp(22px, 3vw, 30px); font-weight: 700; color: var(--c-heading); margin-bottom: 18px; }
.search-modal .search-form { margin-bottom: 20px; }
.search-modal .search-field { height: 62px; font-size: 20px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.search-form { position: relative; display: flex; }
.search-field {
	width: 100%; height: 48px; padding: 0 56px 0 20px;
	background: var(--c-surface); border: 1.5px solid var(--c-border); border-radius: 999px;
	outline: none; transition: border-color .2s, background .2s;
	-webkit-appearance: none; appearance: none;
}
.search-field:focus { border-color: var(--c-primary); background: var(--c-bg); }
.search-submit {
	position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
	width: 40px; height: 40px; border: 0; border-radius: 999px;
	background: var(--c-primary); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.search-modal .search-submit { width: 52px; height: 52px; }

/* ---------- Offcanvas (mobile) ---------- */
.offcanvas { position: fixed; inset: 0; z-index: 110; background: rgb(0 0 0 / 45%); animation: fadeIn .2s ease; }
.offcanvas[hidden] { display: none; }
.offcanvas-panel {
	width: min(340px, 88vw); height: 100%; overflow-y: auto;
	background: var(--c-bg); padding: 18px 20px 30px;
	display: flex; flex-direction: column; gap: 18px;
	animation: slideIn .3s var(--ease);
}
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: none; } }
.offcanvas-head { display: flex; align-items: center; justify-content: space-between; }
.offcanvas-head .site-title { font-size: 22px; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { border-bottom: 1px solid var(--c-border); }
.mobile-nav a { display: block; padding: 12px 2px; font-family: var(--f-head); font-weight: 700; }
.mobile-nav .sub-menu { padding-left: 14px; border-top: 1px solid var(--c-border); }
.mobile-nav .sub-menu li:last-child { border-bottom: 0; }
.mobile-nav .sub-menu a { font-weight: 600; font-size: 15px; color: var(--c-muted); }
/* Accordion (enabled by JS; without JS submenus stay visible) */
.mobile-nav.is-accordion .menu-item-has-children { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.mobile-nav.is-accordion .menu-item-has-children > .sub-menu { grid-column: 1 / -1; display: none; }
.mobile-nav.is-accordion .menu-item-has-children.is-open > .sub-menu { display: block; animation: fadeIn .2s ease; }
.mobile-nav.is-accordion .menu-item-has-children.is-open > a { color: var(--c-primary); }
.submenu-toggle {
	display: grid; place-items: center; width: 36px; height: 36px; margin-right: -6px;
	border: 0; border-radius: 10px; background: transparent; color: var(--c-muted); cursor: pointer;
	transition: background .2s, color .2s;
}
.submenu-toggle:hover { background: var(--c-surface); color: var(--c-primary); }
.submenu-toggle svg { transition: transform .25s var(--ease); }
.submenu-toggle[aria-expanded="true"] { color: var(--c-primary); background: var(--c-primary-soft); }
.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-nav .sub-menu { background: var(--c-surface); border-radius: 10px; margin-bottom: 10px; border-top: 0; }
.mobile-nav .sub-menu li { border-bottom-color: var(--c-border); }
.mobile-nav .sub-menu a { padding-left: 12px; }

/* ---------- Layout ---------- */
.site-main { padding-bottom: 56px; min-height: 50vh; }

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 40px;
	margin-top: 32px;
	align-items: start;
}
.no-sidebar .layout { grid-template-columns: minmax(0, 1fr); }
.sidebar { display: grid; gap: 32px; align-self: stretch; align-content: start; min-width: 0; }

/* ---------- Ads ---------- */
.ad { position: relative; display: grid; justify-items: center; gap: 6px; }
.ad-label {
	font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--c-muted); opacity: .75;
}
.ad-inner { width: 100%; display: grid; justify-items: center; }
.ad-inner img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.ad-inner iframe, .ad-inner ins { max-width: 100%; }
.ad-wide .ad-inner > * { max-width: 970px; width: 100%; }
.ad-inline .ad-inner > * { max-width: 728px; width: 100%; }
.ad-box .ad-inner > *, .ad-tall .ad-inner > * { max-width: 300px; width: 100%; }
.ad.is-sticky { position: sticky; top: calc(var(--header-h) + 20px); }
.admin-bar .ad.is-sticky { top: calc(var(--header-h) + 52px); }
.ad-section { margin-top: 36px; }
.band + .container .ad-section, .container + .band { margin-top: 48px; }
.ad-in-content { margin-block: 8px 1.6em; padding-block: 14px; border-block: 1px solid var(--c-border); }

/* Placeholder creative */
.ad-placeholder {
	position: relative; overflow: hidden; isolation: isolate;
	display: flex; align-items: center; gap: 18px;
	padding: 14px 22px; border-radius: var(--radius-sm);
	color: #fff !important; text-decoration: none !important;
	background:
		radial-gradient(circle at 92% 20%, color-mix(in srgb, var(--c-accent) 55%, transparent), transparent 38%),
		repeating-linear-gradient(135deg, rgb(255 255 255 / 5%) 0 12px, transparent 12px 24px),
		linear-gradient(120deg, var(--c-primary), color-mix(in srgb, var(--c-primary) 55%, #031a12));
	transition: filter .2s, transform .2s;
}
.ad-placeholder:hover { filter: brightness(1.08); }
.adp-mark {
	flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
	background: var(--c-accent); color: var(--c-on-accent);
	font-family: var(--f-head); font-weight: 700; font-size: 15px; letter-spacing: .04em;
}
.adp-text { display: grid; gap: 2px; min-width: 0; }
.ad-placeholder strong { font-family: var(--f-head); font-size: 19px; font-weight: 700; line-height: 1.2; }
.ad-placeholder small { font-size: 13px; opacity: .85; }
.adp-cta {
	margin-left: auto; flex: none; padding: 9px 18px; border-radius: 999px;
	background: #fff; color: var(--c-primary); font-family: var(--f-head); font-weight: 700; font-size: 13px;
}
.adp-size {
	position: absolute; right: 8px; bottom: 4px; font-size: 10px; letter-spacing: .06em; opacity: .55;
}
.ad-wide .ad-placeholder { min-height: 90px; }
.ad-inline .ad-placeholder { min-height: 90px; }
.ad-inline .ad-placeholder strong { font-size: 17px; }

.ad-box .ad-placeholder, .ad-tall .ad-placeholder {
	flex-direction: column; justify-content: center; text-align: center; gap: 10px;
	aspect-ratio: 300 / 250; padding: 24px;
}
.ad-tall .ad-placeholder {
	aspect-ratio: 300 / 600;
	background:
		radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--c-accent) 50%, transparent), transparent 40%),
		repeating-linear-gradient(135deg, rgb(255 255 255 / 5%) 0 12px, transparent 12px 24px),
		linear-gradient(180deg, color-mix(in srgb, var(--c-primary) 55%, #031a12), var(--c-primary));
}
.ad-box .adp-mark, .ad-tall .adp-mark { width: 56px; height: 56px; font-size: 18px; }
.ad-box .ad-placeholder strong, .ad-tall .ad-placeholder strong { font-size: 22px; }
.ad-tall .ad-placeholder strong { font-size: 28px; }
.ad-box .adp-cta, .ad-tall .adp-cta { margin: 6px 0 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.block { margin-top: 48px; }
.block:first-child { margin-top: 0; }

/* ---------- Section heading ---------- */
.section-head {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	margin-bottom: 22px; border-bottom: 2px solid var(--c-border);
}
.section-title {
	position: relative; margin: 0;
	font-size: 20px; font-weight: 700; letter-spacing: -.02em;
}
.section-head .section-title { margin-bottom: -2px; }
.section-note {
	display: flex; align-items: center; gap: 6px;
	margin: -10px 0 20px; font-size: 13px; color: var(--c-muted);
}
.section-note svg { color: var(--c-primary); flex: none; }
.section-title span { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--c-primary); }
.section-title span::before {
	content: ""; width: 10px; height: 10px; border-radius: 3px;
	background: var(--c-accent); transform: rotate(45deg); flex: none;
}
.widget > .section-title, .comments-area .section-title { margin-bottom: 18px; border-bottom: 2px solid var(--c-border); }
.widget > .section-title span, .comment-respond > .section-title span { margin-bottom: -2px; }
.section-more { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--c-muted); }
.section-more:hover { color: var(--c-primary); }

/* ---------- Cards (shared) ---------- */
.card { position: relative; min-width: 0; }
.card-title { font-size: 17px; font-weight: 700; line-height: 1.35; margin: 0 0 8px; }
.card-title a {
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%;
	transition: background-size .35s var(--ease), color .2s;
}
.card-title a:hover { background-size: 100% 1.5px; }
.card-excerpt { color: var(--c-muted); font-size: 14.5px; line-height: 1.6; margin-bottom: 10px; }

.post-thumb {
	position: relative; display: block; overflow: hidden;
	border-radius: var(--radius); background: var(--c-surface-2);
	aspect-ratio: 16 / 10;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .post-thumb img { transform: scale(1.05); }
.thumb-placeholder {
	position: absolute; inset: 0; display: grid; place-items: center;
	color: color-mix(in srgb, var(--c-primary) 45%, transparent);
	background:
		radial-gradient(circle at 30% 20%, var(--c-primary-soft), transparent 60%),
		linear-gradient(135deg, var(--c-surface), var(--c-surface-2));
}

.post-meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px;
	font-size: 12.5px; color: var(--c-muted);
}
.post-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta > span + span::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; margin-right: 9px; }
.post-meta .meta-author a { font-weight: 600; color: var(--c-text); }
.post-meta .meta-author a:hover { color: var(--c-primary); }

/* Grid card */
.card-grid .card-media { position: relative; margin-bottom: 14px; }

/* List card */
.card-list { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.card-list .card-title { font-size: 19px; margin-top: 4px; }
.card-list .cat-badge { margin-bottom: 2px; }
.list-stack { display: grid; gap: 24px; }
.list-stack > .card-list { padding-bottom: 24px; border-bottom: 1px solid var(--c-border); }
.list-stack > .card-list:last-child { border-bottom: 0; padding-bottom: 0; }

/* Mini card */
.card-mini { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; }
.card-mini .post-thumb { aspect-ratio: 1; border-radius: 10px; }
.card-mini .card-title { font-size: 14.5px; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-mini .post-meta { font-size: 12px; }

/* Overlay card */
.card-overlay { border-radius: var(--radius); overflow: hidden; isolation: isolate; background: var(--c-dark); }
.card-overlay .post-thumb { border-radius: 0; height: 100%; aspect-ratio: auto; min-height: 220px; }
.card-overlay .post-thumb::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgb(0 0 0 / 0%) 30%, rgb(0 0 0 / 55%) 62%, rgb(0 0 0 / 88%) 100%);
}
.card-overlay .card-body {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
	padding: 20px; color: #fff; pointer-events: none;
}
.card-overlay .card-body a { pointer-events: auto; }
.card-overlay .card-title { color: #fff; margin-top: 10px; }
.card-overlay .card-title a:hover { color: #fff; }
.card-overlay .card-excerpt { color: rgb(255 255 255 / 82%); }
.card-overlay .post-meta, .card-overlay .post-meta .meta-author a { color: rgb(255 255 255 / 85%); }
.card-overlay.is-tall .post-thumb { aspect-ratio: 3 / 4; height: auto; }

/* Rank list */
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: rank; }
.rank-list.is-numbered li { counter-increment: rank; }
.rank-list.is-numbered .post-thumb::before {
	content: counter(rank);
	position: absolute; left: 6px; top: 6px; z-index: 2;
	width: 26px; height: 26px; border-radius: 8px;
	display: grid; place-items: center;
	background: var(--c-accent); color: var(--c-on-accent);
	font-family: var(--f-head); font-weight: 700; font-size: 13px;
	box-shadow: 0 2px 6px rgb(0 0 0 / 25%);
}
.rank-list li + li { padding-top: 16px; border-top: 1px dashed var(--c-border); }

/* ---------- Hero ---------- */
.hero { margin-top: 28px; }
.hero-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: repeat(2, minmax(220px, 1fr));
	gap: 16px;
	min-height: 520px;
}
.hero-main { grid-row: span 2; }
.hero-main .card-body { padding: 32px; }
.hero-main .card-title { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.18; letter-spacing: -.02em; }
.hero-main .card-excerpt { font-size: 15.5px; max-width: 620px; }
.hero-sub .card-title { font-size: 16px; }
.hero-grid > .card:only-child { grid-column: 1 / -1; }

/* ---------- Trending ---------- */
.trending {
	display: flex; align-items: center; gap: 14px;
	margin-top: 20px; padding-block: 14px;
	border-block: 1px solid var(--c-border);
}
.trending-label {
	display: inline-flex; align-items: center; gap: 6px; flex: none;
	font-family: var(--f-head); font-weight: 700; font-size: 14px; color: var(--c-primary);
	text-transform: uppercase; letter-spacing: .04em;
}
.trending .tag-pills { flex: 1; min-width: 0; }
.trending .tag-pills a { background: transparent; }
.trending .tag-pills a:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }

/* ---------- Latest ---------- */
.latest-top { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--c-border); }
.latest-top .card-title { font-size: 20px; }

/* ---------- Featured band ---------- */
.band { margin-top: 56px; padding-block: 48px; background: var(--c-dark); color: var(--c-dark-text); }
.band .section-head { border-color: rgb(255 255 255 / 12%); }
.band .section-title { color: #fff; }
.band .section-more { color: rgb(255 255 255 / 65%); }
.band .section-more:hover { color: var(--c-accent); }
.band-featured .card-title { font-size: 18px; }

/* ---------- Tabs ---------- */
.block-tabs { margin-top: 56px; }
.tabs-nav { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 10px; }
.tabs-nav button {
	padding: 6px 14px; border: 1px solid var(--c-border); border-radius: 999px;
	background: transparent; font-size: 13px; font-weight: 600; cursor: pointer;
	transition: all .2s;
}
.tabs-nav button:hover { border-color: var(--c-primary); color: var(--c-primary); }
.tabs-nav button[aria-selected="true"] { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.tab-panel { animation: fadeIn .3s ease; }
.tab-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; }
.tab-main .card-title { font-size: 24px; }
.tab-list { display: grid; gap: 18px; align-content: start; }
.tab-list .card-mini { grid-template-columns: 120px minmax(0, 1fr); }
.tab-list .card-mini .post-thumb { aspect-ratio: 4 / 3; }
.tab-list > .card + .card { padding-top: 18px; border-top: 1px solid var(--c-border); }
.tab-more { margin-top: 24px; }

/* ---------- Category columns ---------- */
.block-columns { margin-top: 56px; }
.cat-column { display: grid; gap: 18px; align-content: start; }
.cat-column .section-head { margin-bottom: 4px; }
.cat-column .card-grid { margin-bottom: 4px; }
.cat-column .card-mini + .card-mini { padding-top: 18px; border-top: 1px solid var(--c-border); }

/* ---------- Terupdate (paged list) ---------- */
.block-terupdate { margin-top: 56px; scroll-margin-top: calc(var(--header-h) + 20px); }
.update-list {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px;
	transition: opacity .2s;
}
.update-list li { border-bottom: 1px solid var(--c-border); }
.update-list li:nth-last-child(-n+2):nth-child(odd), .update-list li:last-child { border-bottom: 0; }
.card-update { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: center; padding-block: 16px; }
.card-update .post-thumb { aspect-ratio: 4 / 3; border-radius: 10px; }
.card-update .card-title { font-size: 16px; margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.update-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; }
.update-time { color: var(--c-muted); }
.update-pagination { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--c-border); }
.update-pagination .nav-links { justify-content: center; }
.block-terupdate.is-loading .update-list { opacity: .4; pointer-events: none; }

/* ---------- Widgets ---------- */
.widget { min-width: 0; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--c-border); }
.widget .rank-list li { border-bottom: 0; padding-bottom: 0; }
.widget .rank-list li:first-child { padding-top: 0; }
.widget_tag_cloud .tagcloud, .wp-block-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.widget_tag_cloud a, .wp-block-tag-cloud a {
	font-size: 13px !important; padding: 5px 12px; border-radius: 999px;
	background: var(--c-surface); border: 1px solid var(--c-border);
}

/* ---------- Breadcrumb & archive header ---------- */
.breadcrumb { margin-top: 22px; font-size: 13px; color: var(--c-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumb li + li::before { content: "/"; margin: 0 9px; opacity: .45; }
.breadcrumb li:last-child span { display: inline-block; max-width: 46ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; vertical-align: bottom; }
.breadcrumb a:hover { color: var(--c-primary); }

.archive-header {
	display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
	margin-top: 18px; padding: 28px 32px;
	border-radius: var(--radius);
	background:
		radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--c-accent) 18%, transparent), transparent 45%),
		linear-gradient(135deg, var(--c-primary-soft), var(--c-surface));
	border: 1px solid var(--c-border);
}
.archive-header > div:first-of-type { flex: 1; min-width: 240px; }
.archive-header img { border-radius: 50%; }
.archive-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary); }
.archive-title { font-size: clamp(26px, 3.4vw, 38px); margin: 4px 0 0; letter-spacing: -.02em; }
.archive-desc { color: var(--c-muted); margin-top: 8px; }
.archive-desc p:last-child { margin: 0; }
.archive-search { flex-basis: 100%; max-width: 560px; }

.archive-lead { margin-bottom: 32px; }
.archive-lead .post-thumb { aspect-ratio: 16 / 8.5; }
.archive-lead .card-body { padding: 28px; }
.archive-lead .card-title { font-size: clamp(22px, 2.4vw, 30px); }

/* Pagination */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px;
	border-radius: 10px; border: 1px solid var(--c-border); font-weight: 600; font-size: 14px;
}
.pagination .page-numbers:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pagination .page-numbers.current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pagination .dots { border: 0; }

.empty-note, .no-results { color: var(--c-muted); }
.no-results { padding: 40px; text-align: center; border: 1px dashed var(--c-border); border-radius: var(--radius); }
.no-results .search-form { max-width: 440px; margin: 20px auto 0; }

/* ---------- Single ---------- */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.reading-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--c-primary), var(--c-accent)); transform-origin: 0 50%; transform: scaleX(0); }
.admin-bar .reading-progress { top: 32px; }

.single-article { min-width: 0; }
.entry-header { margin-bottom: 26px; }
.entry-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.entry-title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; line-height: 1.18; letter-spacing: -.025em; margin-bottom: 14px; }
.entry-lead { font-size: 17px; color: var(--c-muted); line-height: 1.7; }
@media (max-width: 640px) { .entry-lead { font-size: 16px; } }

.entry-meta {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	padding-block: 16px; margin-block: 18px 16px;
	border-block: 1px solid var(--c-border);
}
.entry-author { display: flex; align-items: center; gap: 12px; }
.entry-author img { border-radius: 50%; }
.author-name { display: block; font-weight: 700; font-family: var(--f-head); color: var(--c-heading); }
.entry-date { font-size: 13px; color: var(--c-muted); }
.entry-date .updated { margin-left: 4px; }
.entry-stats { display: flex; gap: 16px; font-size: 13px; color: var(--c-muted); }
.entry-stats > * { display: inline-flex; align-items: center; gap: 6px; }

.share-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.share-label { font-size: 13px; font-weight: 700; color: var(--c-muted); margin-right: 4px; }
.share-btn {
	display: inline-grid; place-items: center; width: 36px; height: 36px;
	border-radius: 10px; border: 0; cursor: pointer;
	background: var(--c-surface); color: var(--c-text);
	transition: transform .2s, background .2s, color .2s;
}
.share-btn:hover { transform: translateY(-2px); color: #fff; }
.share-facebook:hover { background: #1877f2; }
.share-x:hover { background: #111; }
.share-whatsapp:hover { background: #25d366; }
.share-telegram:hover { background: #229ed9; }
.share-linkedin:hover { background: #0a66c2; }
.share-mail:hover, .share-copy:hover { background: var(--c-primary); }
.share-copy.is-copied { background: var(--c-primary); color: #fff; }

.entry-media { margin: 0 0 30px; }
.entry-media img { width: 100%; border-radius: var(--radius); }
.entry-media figcaption, .wp-caption-text, .wp-element-caption { margin-top: 10px; font-size: 13px; color: var(--c-muted); text-align: center; }

/* Typography of article body */
.entry-content { font-size: 17px; line-height: 1.8; }
.entry-content > * { margin-block: 0 1.35em; }
.entry-content h2 { font-size: 24px; margin-top: 1.6em; }
.entry-content h3 { font-size: 20px; margin-top: 1.5em; }
.entry-content h4 { font-size: 17px; margin-top: 1.4em; }
.entry-content a { color: var(--c-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-thickness: 2px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote, .entry-content .wp-block-quote {
	position: relative; margin-inline: 0; padding: 22px 26px 22px 30px;
	border-left: 4px solid var(--c-primary); border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--c-surface);
	font-family: var(--f-head); font-size: 18px; font-weight: 600; line-height: 1.55; color: var(--c-heading);
}
.entry-content blockquote p:last-child { margin: 0; }
.entry-content blockquote cite { display: block; margin-top: 10px; font-size: 14px; font-weight: 500; font-style: normal; color: var(--c-muted); }
.entry-content pre { overflow-x: auto; padding: 18px; border-radius: var(--radius-sm); background: var(--c-surface); font-size: 14px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--c-border); text-align: left; }
.entry-content th { background: var(--c-surface); }
.entry-content hr { border: 0; border-top: 1px solid var(--c-border); margin-block: 2em; }
.entry-content .alignwide { margin-inline: -40px; }
.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
.page-links { display: flex; gap: 8px; align-items: center; font-weight: 600; }

.single-ad { margin-block: 28px; }

.entry-footer { display: grid; gap: 20px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--c-border); }
.entry-tags { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tags-label { font-weight: 700; font-size: 14px; }

.author-box {
	display: flex; gap: 22px; align-items: flex-start;
	margin-top: 34px; padding: 26px;
	border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-border);
}
.author-box img { border-radius: 50%; flex: none; }
.author-box-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary); }
.author-box-name { font-size: 20px; margin: 2px 0 8px; }
.author-box p { color: var(--c-muted); font-size: 15px; }
.author-box-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--c-primary); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.post-nav a { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--c-border); border-radius: var(--radius); transition: border-color .2s; }
.post-nav a:hover { border-color: var(--c-primary); }
.post-nav span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.post-nav strong { font-family: var(--f-head); font-size: 15px; line-height: 1.4; color: var(--c-heading); }
.post-nav-next { text-align: right; grid-column: 2; }

.related { margin-top: 48px; }
.grid-related { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid-related .card-title { font-size: 15px; }

/* Comments */
.comments-area { margin-top: 48px; }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 40px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--c-border); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 12.5px; color: var(--c-muted); margin: 2px 0 8px 54px; }
.comment-content { margin-left: 54px; font-size: 15.5px; }
.reply { margin-left: 54px; font-size: 13px; font-weight: 700; }
.reply a { color: var(--c-primary); }
.comment-respond { margin-top: 10px; }
.comment-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.comment-form > p { margin: 0; grid-column: 1 / -1; }
.comment-form .comment-form-author, .comment-form .comment-form-email, .comment-form .comment-form-url { grid-column: auto; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border-radius: 10px;
	border: 1.5px solid var(--c-border); background: var(--c-bg); outline: none;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--c-primary); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-notes, .logged-in-as { font-size: 13px; color: var(--c-muted); }
#cancel-comment-reply-link { font-size: 13px; margin-left: 10px; color: var(--c-muted); }

/* 404 */
.error-404 { max-width: 620px; margin: 60px auto 20px; text-align: center; }
.error-code {
	display: block; font-family: var(--f-head); font-weight: 700; font-size: clamp(90px, 16vw, 160px); line-height: 1;
	background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-404 .search-form { margin: 26px auto 18px; max-width: 460px; }

/* ---------- Newsletter ---------- */
.newsletter { padding-block: 48px; background: linear-gradient(120deg, var(--c-primary), color-mix(in srgb, var(--c-primary) 70%, #000)); color: #fff; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.newsletter-text { display: flex; gap: 18px; align-items: center; max-width: 620px; }
.newsletter-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--c-accent); color: var(--c-on-accent); flex: none; }
.newsletter h2 { color: #fff; font-size: 24px; margin-bottom: 4px; }
.newsletter p { margin: 0; opacity: .85; font-size: 15px; }
.newsletter-form { display: flex; gap: 8px; flex: 1; max-width: 460px; min-width: 280px; padding: 6px; background: rgb(255 255 255 / 12%); border-radius: 999px; }
.newsletter-form input { flex: 1; min-width: 0; padding: 0 18px; border: 0; background: transparent; color: #fff; outline: none; }
.newsletter-form input::placeholder { color: rgb(255 255 255 / 70%); }
.newsletter-form .btn { background: var(--c-accent); color: var(--c-on-accent); }
.newsletter-form .btn:hover { background: #fff; color: var(--c-heading); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-dark); color: var(--c-dark-text); font-size: 14.5px; }
.site-footer a:hover { color: var(--c-accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr; gap: 40px; padding-block: 56px 44px; }
.footer-about .site-title a, .offcanvas .site-title a { color: #fff; }
.footer-about .site-title em { color: var(--c-accent); }
.offcanvas .site-title a { color: var(--c-heading); }
.footer-about p { margin-top: 16px; opacity: .75; }
.footer-title { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: 5px 0; break-inside: avoid; }
.footer-links a { opacity: .8; }
.tag-pills.is-footer a { background: rgb(255 255 255 / 6%); border-color: rgb(255 255 255 / 10%); color: var(--c-dark-text); font-size: 12.5px; padding: 5px 12px; }
.tag-pills.is-footer a:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); }
.footer-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer-recent li { padding-bottom: 14px; border-bottom: 1px solid rgb(255 255 255 / 8%); }
.footer-recent li:last-child { border: 0; padding: 0; }
.footer-recent a { font-family: var(--f-head); font-weight: 600; line-height: 1.4; color: #fff; }
.footer-recent .post-meta { color: rgb(255 255 255 / 55%); margin-top: 4px; }

.social-links { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.social-links a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgb(255 255 255 / 8%); }
.offcanvas .social-links a { background: var(--c-surface); }
.social-links a:hover { background: var(--c-accent); color: var(--c-on-accent) !important; }

.footer-bottom { border-top: 1px solid rgb(255 255 255 / 8%); font-size: 13px; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; }
.footer-bottom p { margin: 0; opacity: .7; }
.copyright .credit a { font-weight: 600; color: var(--c-accent); }
.copyright .credit a:hover { text-decoration: underline; }
.footer-menu ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-menu a { opacity: .75; }

.back-to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 40;
	width: 46px; height: 46px; border: 0; border-radius: 14px;
	background: var(--c-primary); color: #fff; font-size: 20px; cursor: pointer;
	box-shadow: var(--shadow); transition: transform .2s, opacity .2s;
}
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- WordPress core ---------- */
.alignnone { margin: 5px 0 20px; }
.wp-caption { max-width: 100%; }
.sticky, .bypostauthor, .gallery-caption { /* required classes */ }
.wp-block-image figcaption { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1160px) {
	.main-nav a { padding-inline: 9px; font-size: 14px; }
	.layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
	.card-list { grid-template-columns: 220px minmax(0, 1fr); }
}

@media (max-width: 1024px) {
	:root { --header-h: 64px; }
	.main-nav { display: none; }
	.menu-toggle { display: inline-grid; }
	.header-inner { gap: 10px; }

	.hero-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; min-height: 0; }
	.hero-main { grid-column: 1 / -1; grid-row: auto; }
	.hero-main .post-thumb { aspect-ratio: 16 / 9; height: auto; }
	.hero-sub .post-thumb { aspect-ratio: 4 / 3; height: auto; }

	.layout { grid-template-columns: minmax(0, 1fr); }
	.ad.is-sticky { position: static; }
	.sidebar .ad-tall .ad-placeholder { aspect-ratio: 300 / 250; }
	/* Sidebar drops below content: avoid stacked ads on the homepage. */
	.sidebar [data-ad-slot="home_side_2"], .sidebar [data-ad-slot="home_side_3"] { display: none; }
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.entry-content .alignwide { margin-inline: 0; }
}

@media (max-width: 782px) {
	.admin-bar .reading-progress { top: 46px; }
}

@media (max-width: 760px) {
	:root { --gutter: 16px; }
	body { font-size: 15.5px; }
	.topbar-right .today { display: none; }
	.ticker-nav { display: none; }
	.site-title { font-size: 22px; }
	.logo-mark { width: 32px; height: 32px; font-size: 18px; }
	.site-header .site-branding { margin-right: auto; }

	.hero { margin-top: 16px; }
	.hero-grid { grid-template-columns: 1fr; gap: 12px; }
	.hero-main .card-body { padding: 18px; }
	.hero-main .post-thumb { aspect-ratio: 4 / 4.2; }
	.hero-main .card-excerpt { display: none; }
	.hero-grid .hero-sub { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: center; background: none; border-radius: 0; overflow: visible; }
	.hero-grid .hero-sub .post-thumb { aspect-ratio: 1; min-height: 0; border-radius: 10px; }
	.hero-grid .hero-sub .post-thumb::after { display: none; }
	.hero-grid .hero-sub .card-body { position: static; padding: 0; color: var(--c-text); }
	.hero-grid .hero-sub .card-title { color: var(--c-heading); margin-top: 6px; font-size: 15.5px; }
	.hero-grid .hero-sub .post-meta { color: var(--c-muted); }
	.hero-grid .hero-sub .cat-badge { padding: 0; background: none; color: var(--c-primary); }

	.grid-2, .grid-3, .tab-grid { grid-template-columns: 1fr; }
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.band-featured .card-title { font-size: 15px; }
	.band-featured .card-body { padding: 14px; }
	.band-featured .cat-badge { font-size: 10px; }

	.card-list { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
	.card-list .post-thumb { aspect-ratio: 1; }
	.card-list .card-title { font-size: 16px; }
	.card-list .card-excerpt { display: none; }
	.card-list .meta-read, .hero-main .meta-read { display: none; }

	/* Ads: compact mobile banner (approx. 320x100) */
	.ad-wide .ad-placeholder, .ad-inline .ad-placeholder { gap: 12px; padding: 14px 16px; min-height: 96px; }
	.ad-wide .adp-mark, .ad-inline .adp-mark { width: 40px; height: 40px; font-size: 13px; border-radius: 10px; }
	.ad-wide .adp-text, .ad-inline .adp-text { flex: 1; gap: 4px; }
	.ad-wide .ad-placeholder strong, .ad-inline .ad-placeholder strong { font-size: 16px; }
	.ad-wide .ad-placeholder small, .ad-inline .ad-placeholder small { font-size: 12px; line-height: 1.4; }
	.ad-wide .adp-cta, .ad-inline .adp-cta { display: none; }
	.ad-section { margin-top: 28px; }
	.ad-in-content { padding-block: 12px; }

	/* Terupdate: single column */
	.update-list { grid-template-columns: 1fr; }
	.update-list li:nth-last-child(-n+2):nth-child(odd) { border-bottom: 1px solid var(--c-border); }
	.update-list li:last-child { border-bottom: 0; }
	.card-update { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding-block: 14px; }
	.card-update .post-thumb { aspect-ratio: 1; }
	.card-update .card-title { font-size: 15px; }
	.update-pagination .page-numbers { min-width: 38px; height: 38px; padding: 0 10px; }
	.update-pagination .prev, .update-pagination .next { font-size: 0; }
	.update-pagination .prev::before { content: "\2190"; font-size: 16px; }
	.update-pagination .next::before { content: "\2192"; font-size: 16px; }

	/* Cards: keep meta on one line */
	.card-list .meta-author { display: none; }
	.card-list .post-meta > span + span::before { display: none; }

	/* Breadcrumb: drop current title (already shown as H1) */
	.breadcrumb li[aria-current] { display: none; }

	/* Share buttons fit one row */
	.share-label { display: none; }
	.share-buttons { gap: 6px; }
	.share-btn { width: 36px; height: 36px; }

	/* Newsletter */
	.newsletter { padding-block: 36px; }
	.newsletter-text { flex-direction: column; align-items: flex-start; gap: 14px; }
	.newsletter-icon { width: 48px; height: 48px; border-radius: 12px; }
	.newsletter h2 { font-size: 21px; }
	.list-stack { gap: 18px; }
	.list-stack > .card-list { padding-bottom: 18px; }

	.section-title { font-size: 18px; }
	.tabs-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
	.tabs-nav button { white-space: nowrap; }

	.archive-header { padding: 22px; }
	.entry-content { font-size: 16px; }
	.entry-stats { width: 100%; }
	.author-box { flex-direction: column; gap: 14px; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav-next { grid-column: auto; }
	.comment-form { grid-template-columns: 1fr; }
	.comment-list .children { padding-left: 16px; }

	.footer-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 44px 32px; }
	.newsletter-form { min-width: 0; width: 100%; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 0 0 1em; max-width: 100%; }
}

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

@media print {
	.topbar, .site-header, .sidebar, .share-buttons, .newsletter, .site-footer, .related, .comments-area, .post-nav, .back-to-top, .reading-progress { display: none !important; }
	.layout { display: block; }
}

/* Logo AntaHost: versi putih di footer (latar gelap) dan saat mode gelap */
.site-footer .custom-logo,
:root[data-theme="dark"] .custom-logo { filter: brightness(0) invert(1); }
.site-footer .custom-logo { max-height: 46px; width: auto; }

/* ==========================================================================
   Banner AntaHost (diisi lewat slot iklan Customizer: kode HTML)
   .bn-box  = kotak 300x250 (sidebar)  ·  .bn-wide = memanjang (beranda & artikel)
   ========================================================================== */
.bn { position: relative; display: flex; overflow: hidden; border-radius: 14px; color: #fff !important; text-decoration: none !important; font-family: var(--f-body); background: linear-gradient(135deg, #0c1b6e 0%, #1a3a9f 60%, #2b5be0 100%); box-shadow: 0 14px 30px -16px rgb(12 27 110 / 70%); isolation: isolate; transition: transform .25s var(--ease), box-shadow .25s; }
.bn:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -16px rgb(12 27 110 / 80%); }
.bn::before { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgb(95 217 247 / 35%), transparent 65%); }
.bn strong, .bn b { font-family: var(--f-head); }
.bn-cta { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 40px; background: #f7921e; color: #fff; font-family: var(--f-head); font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 8px 18px -8px rgb(247 146 30 / 90%); }
.bn:hover .bn-cta { background: #ff9f2e; }

/* Kotak */
.bn-box { flex-direction: column; justify-content: space-between; aspect-ratio: 300 / 250; padding: 20px 20px 18px; text-align: left; }
.bn-box.bn-tall { gap: 14px; aspect-ratio: 300 / 500; padding: 22px; }
.bn-box::before { right: -90px; top: -90px; }
.bn-hi { display: inline-block; align-self: flex-start; padding: 4px 11px; border-radius: 20px; background: rgb(255 255 255 / 14%); font-size: 12px; font-weight: 600; letter-spacing: .2px; }
.bn-box strong { display: block; margin-top: 10px; font-size: 22px; line-height: 1.2; font-weight: 700; }
.bn-tall strong { margin-top: 14px; font-size: 26px; }
.bn-box strong em { font-style: normal; color: #7dd3fc; }
.bn-disc { position: absolute; right: 16px; top: 16px; width: 74px; height: 74px; border-radius: 50%; background: #f7921e; display: grid; place-content: center; text-align: center; transform: rotate(10deg); box-shadow: 0 10px 22px -8px rgb(247 146 30 / 90%); }
.bn-disc small { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; line-height: 1; }
.bn-disc b { display: block; font-size: 24px; line-height: 1.05; }
.bn-box .bn-cta { align-self: stretch; justify-content: center; }
.bn-site { display: block; margin-top: 8px; font-size: 12px; color: rgb(255 255 255 / 70%); }

/* Memanjang */
.bn-wide { align-items: center; gap: 20px; min-height: 96px; padding: 16px 26px; text-align: left; }
.bn-wide::before { left: -80px; top: -110px; }
.bn-ico { flex: none; width: 56px; height: 56px; border-radius: 14px; background: rgb(255 255 255 / 12%); border: 1px solid rgb(255 255 255 / 22%); display: grid; place-items: center; }
.bn-ico svg { width: 30px; height: 30px; fill: none; stroke: #7dd3fc; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bn-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bn-tx strong { font-size: 22px; line-height: 1.2; font-weight: 700; }
.bn-tx small { font-size: 14px; color: rgb(255 255 255 / 85%); }
.bn-tx small b { color: #f7921e; font-weight: 700; }
.bn-wide .bn-cta { padding: 11px 20px; font-size: 14px; }
.ad-inline .bn-tx strong { font-size: 19px; }

@media (max-width: 640px) {
	.bn-wide { flex-wrap: wrap; gap: 12px 14px; padding: 16px; }
	.bn-ico { width: 46px; height: 46px; border-radius: 12px; }
	.bn-ico svg { width: 24px; height: 24px; }
	.bn-tx strong, .ad-inline .bn-tx strong { font-size: 17px; }
	.bn-tx small { font-size: 13px; }
	.bn-wide .bn-cta { width: 100%; justify-content: center; }
}
/* Logo burung AntaHost (putih) di banner */
.bn-fav { display: grid; place-items: center; flex: none; }
.bn-fav img { display: block; width: 30px; height: 30px; border-radius: 0; }
.bn-top { display: flex; align-items: center; gap: 8px; }
.bn-wide .bn-fav { width: 56px; height: 56px; border-radius: 14px; background: rgb(255 255 255 / 12%); border: 1px solid rgb(255 255 255 / 22%); }
.bn-wide .bn-fav img { width: 36px; height: 36px; }
@media (max-width: 640px) { .bn-wide .bn-fav { width: 46px; height: 46px; border-radius: 12px; } .bn-wide .bn-fav img { width: 30px; height: 30px; } }
/* Banner di tengah daftar artikel (arsip) */
.ad-in-list { margin-block: 6px; padding-block: 16px; border-block: 1px solid var(--c-border); }
/* Banner kotak tinggi (300x500): ilustrasi mockup website + poin */
.bn-mock { position: relative; display: block; border-radius: 10px; background: #fff; box-shadow: 0 14px 30px -12px rgb(0 0 0 / 45%); overflow: hidden; transform: rotate(-2deg); }
.bn-mock-bar { display: flex; gap: 4px; padding: 7px 9px; background: #e8eeff; }
.bn-mock-bar i { width: 7px; height: 7px; border-radius: 50%; background: #c3cdea; }
.bn-mock-bar i:first-child { background: #f87171; } .bn-mock-bar i:nth-child(2) { background: #fbbf24; } .bn-mock-bar i:nth-child(3) { background: #34d399; }
.bn-mock-hero { display: block; height: 56px; margin: 8px; border-radius: 6px; background: linear-gradient(120deg, #1a3a9f, #5fd9f7); position: relative; }
.bn-mock-hero::before { content: ""; position: absolute; left: 10px; top: 12px; width: 60%; height: 8px; border-radius: 4px; background: rgb(255 255 255 / 85%); box-shadow: 0 14px 0 -1px rgb(255 255 255 / 55%); }
.bn-mock-hero::after { content: ""; position: absolute; left: 10px; bottom: 9px; width: 42px; height: 12px; border-radius: 6px; background: #f7921e; }
.bn-mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 8px 9px; }
.bn-mock-row i { height: 30px; border-radius: 5px; background: #eef2fb; }
.bn-pts { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 600; }
.bn-pts li { display: flex; align-items: center; gap: 8px; }
.bn-pts li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgb(52 211 153 / 25%); color: #6ee7b7; font-size: 11px; font-weight: 800; }
/* Arsip HP: kartu artikel teratas mengikuti kartu headline beranda (judul tidak terpotong) */
@media (max-width: 760px) {
	.archive-lead { margin-bottom: 20px; }
	.archive-lead .post-thumb { aspect-ratio: 4 / 4.2; height: auto; }
	.archive-lead .card-body { padding: 18px; }
	.archive-lead .card-excerpt, .archive-lead .meta-read { display: none; }
	.archive-lead .card-title { font-size: 22px; line-height: 1.22; }
}
