/* ==========================================================================
   Analisis24 — main stylesheet
   1. Tokens (light/dark)   2. Base   3. Layout   4. Header & nav
   5. Ticker & hero         6. Cards  7. Sections 8. Article & prose
   9. Archive/search/404   10. Footer 11. Drawer/dialog/bottom-nav 12. Utils
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
	--c-brand: #0b2447;
	--c-brand-deep: #061a33;
	--c-accent: #cd122d;
	--c-accent-hover: #a50e24;
	--c-accent-text: #cd122d; /* accent used as TEXT on surfaces */
	--focus: var(--c-accent);
	--c-on-brand: #ffffff;

	--c-bg: #f3f5f9;
	--c-surface: #ffffff;
	--c-surface-2: #f6f8fb;
	--c-border: #e3e8ef;
	--c-text: #0f172a;
	--c-text-2: #334155;
	--c-muted: #5b6b80;
	--c-header: #ffffff;
	--c-nav: #0b2447;
	--c-footer: #04223c;
	--c-overlay: rgba(2, 10, 24, .6);

	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--radius: 12px;
	--radius-sm: 8px;
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
	--shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 18px rgba(15, 23, 42, .06);
	--shadow-lg: 0 12px 40px rgba(2, 10, 24, .25);

	--container: 1200px;
	--gutter: 16px;
	--gap: 20px;
	--header-h: 56px;
	--nav-h: 46px;
	--bottom-nav-h: 64px;
	--adminbar: 0px;

	color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 24px; --gap: 24px; } }
@media (min-width: 1024px) { :root { --header-h: 92px; --nav-h: 48px; } }

[data-theme="dark"] {
	--c-brand: #0e2a52;
	--c-brand-deep: #08162b;
	--c-accent: #dc2a40; /* white text on it: 4.72:1 */
	--c-accent-hover: #c21f34;
	--c-accent-text: #ff6b7c; /* on dark surfaces: >= 5.4:1 */
	--focus: #ff8a96;
	--c-bg: #0b1220;
	--c-surface: #162035;
	--c-surface-2: #1b2740;
	--c-border: #2a3a58;
	--c-text: #e7ecf3;
	--c-text-2: #c4cedb;
	--c-muted: #94a3b8;
	--c-header: #0f1729;
	--c-nav: #0e2142;
	--c-footer: #070f1d;
	--shadow-sm: none;
	--shadow: 0 1px 0 rgba(255, 255, 255, .02), 0 6px 18px rgba(0, 0, 0, .25);
	color-scheme: dark;
}

body.admin-bar { --adminbar: 32px; }
@media (max-width: 782px) { body.admin-bar { --adminbar: 46px; } }
@media (max-width: 600px) { body.admin-bar { --adminbar: 0px; } }

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + var(--adminbar) + 16px); }
@media (max-width: 1023px) { html { scroll-padding-top: calc(var(--header-h) + var(--nav-h) + var(--adminbar) + 16px); } }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.55;
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: "cv11", "ss01";
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-accent-text); }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
/* Navy / photo surfaces: white focus ring (15:1 on navy). */
.topbar, .mainnav, .ticker, .hero, .follow, .site-footer, .drawer__head { --focus: #ffffff; }
@media (max-width: 1023px) { .site-header { --focus: #ffffff; } }
.bottom-nav { --focus: var(--c-accent-text); }
::selection { background: rgba(205, 18, 45, .18); }

.icon { width: 1em; height: 1em; flex: none; vertical-align: middle; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -100px; z-index: 1000;
	background: var(--c-accent); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: calc(12px + var(--adminbar)); color: #fff; }

/* 3. Layout --------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
.site-main { padding-block: 20px 40px; min-height: 50vh; }
.home { padding-top: 0; }
@media (min-width: 1024px) { .site-main { padding-block: 28px 56px; } .home { padding-top: 0; } }

.layout { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
	.layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
}
.layout__main { min-width: 0; }
.layout__side { min-width: 0; }
@media (min-width: 1024px) {
	.sticky-side { position: sticky; top: calc(var(--nav-h) + var(--adminbar) + 16px); display: grid; gap: var(--gap); }
}
@media (max-width: 1023px) { .sticky-side { display: grid; gap: var(--gap); } }
@media (min-width: 640px) and (max-width: 1023px) { .sticky-side { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; } .sticky-side .ad-area { grid-column: 1 / -1; } }

.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
@media (min-width: 768px) {
	.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.stack { display: grid; gap: 14px; align-content: start; }
.block { margin-top: 28px; }
.panel {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	padding: 18px;
	box-shadow: var(--shadow-sm);
	min-width: 0;
}
@media (min-width: 1024px) { .panel { padding: 20px; } }

/* Section head */
.section-head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	margin-bottom: 14px;
}
.section-head__title {
	position: relative; padding-left: 13px;
	font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: var(--c-text);
}
.section-head__title::before {
	content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
	width: 4px; height: 1.15em; border-radius: 2px; background: var(--c-accent);
}
.section-head--sm .section-head__title { font-size: 15px; }
.section-head__more {
	display: inline-flex; align-items: center; gap: 4px; flex: none;
	font-size: 13px; font-weight: 600; color: var(--c-muted); white-space: nowrap;
}
.section-head__more .icon { width: 14px; height: 14px; transition: transform .15s; }
.section-head__more:hover { color: var(--c-accent-text); }
.section-head__more:hover .icon { transform: translateX(2px); }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 0;
	background: var(--c-accent); color: #fff; font-weight: 700; font-size: 15px;
}
.btn:hover { background: var(--c-accent-hover); color: #fff; }
.btn .icon { width: 18px; height: 18px; }
.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0;
	border: 0; border-radius: 999px; background: transparent; color: inherit;
}
.icon-btn .icon { width: 22px; height: 22px; }
.icon-btn:hover { background: rgba(127, 140, 160, .14); color: inherit; }

/* Ads */
.ad-area { display: grid; justify-items: center; gap: 6px; margin-block: 16px; text-align: center; overflow: hidden; }
.ad-area__label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.ad-area--header { margin-top: 16px; margin-bottom: 0; }
.ad-widget__title { display: none; }

/* 4. Header & nav --------------------------------------------------------- */
.site-header { background: var(--c-header); position: relative; z-index: 40; }
.topbar { display: none; background: var(--c-brand-deep); color: #c9d4e3; font-size: 12.5px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 34px; }
.topbar__date { display: inline-flex; align-items: center; gap: 8px; }
.topbar__date .icon { width: 14px; height: 14px; opacity: .8; }

.social { display: flex; align-items: center; gap: 4px; }
.social a { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; color: inherit; transition: background .15s, color .15s; }
.social a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.social .icon { width: 15px; height: 15px; }

.masthead__inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.masthead__search { display: none; }
.masthead__actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }

/* Brand (logo images; light/dark variant switched here) */
.brand { margin: 0; font-size: inherit; line-height: 0; }
.brand__link { display: inline-flex; align-items: center; }
.brand__img { display: block; width: auto; height: 38px; max-width: 100%; }
.brand__img--dark { display: none; }
[data-theme="dark"] .brand--header .brand__img--dark { display: block; }
[data-theme="dark"] .brand--header .brand__img--light:not(.brand__img--solo) { display: none; }
.brand--footer .brand__img--dark, .brand--drawer .brand__img--dark { display: block; }
/* Client uploaded only a light logo: keep it legible on dark surfaces. */
.brand--footer .brand__img--solo, .brand--drawer .brand__img--solo, [data-theme="dark"] .brand--header .brand__img--solo {
	background: #fff; padding: 4px 10px; border-radius: 8px; box-sizing: content-box;
}

@media (min-width: 1024px) {
	.topbar { display: block; }
	.masthead__menu, .masthead__search-btn { display: none; }
	.masthead__inner { gap: 28px; }
	.masthead__search { display: block; flex: 1; max-width: 460px; margin-left: auto; }
	.masthead__actions { margin-left: 0; }
	.brand--header .brand__img { height: 68px; }
}

/* Mobile/tablet: navy app header */
@media (max-width: 1023px) {
	.site-header {
		position: sticky; top: var(--adminbar);
		background: var(--c-brand); color: #fff;
		box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
	}
	[data-theme="dark"] .site-header { background: var(--c-header); }
	.masthead__inner { justify-content: space-between; }
	.masthead__menu { margin-left: -8px; }
	.masthead__actions { margin-left: 0; margin-right: -8px; }
	.brand--header { position: absolute; left: 50%; transform: translateX(-50%); }
	.brand--header .brand__img { height: 34px; }
	.brand--header .brand__img--light:not(.brand__img--solo) { display: none; }
	.brand--header .brand__img--dark { display: block; }
	.brand--header .brand__img--solo { background: #fff; padding: 3px 8px; border-radius: 6px; box-sizing: content-box; height: 28px; }
	.masthead .icon-btn:hover { background: rgba(255, 255, 255, .12); }
}

/* Theme toggle icons */
.theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: block; }
[data-theme="dark"] .theme-toggle__moon { display: none; }
@media (min-width: 1024px) {
	.masthead .theme-toggle { border: 1px solid var(--c-border); width: 42px; height: 42px; }
	.masthead .theme-toggle .icon { width: 19px; height: 19px; }
}

/* Search form */
.search-form { position: relative; display: flex; align-items: center; }
.search-form__icon { position: absolute; left: 14px; display: grid; color: var(--c-muted); pointer-events: none; }
.search-form__icon .icon { width: 18px; height: 18px; }
.search-form__input {
	width: 100%; height: 44px; padding: 0 52px 0 42px;
	border: 1px solid var(--c-border); border-radius: 999px;
	background: var(--c-surface-2); color: var(--c-text); font-size: 14.5px;
	transition: border-color .15s, box-shadow .15s, background .15s;
	-webkit-appearance: none; appearance: none;
}
.search-form__input::placeholder { color: var(--c-muted); }
.search-form__input:focus { outline: none; border-color: var(--c-accent); background: var(--c-surface); box-shadow: 0 0 0 3px rgba(205, 18, 45, .15); }
.search-form__input::-webkit-search-cancel-button { display: none; }
.search-form__submit {
	position: absolute; right: 4px; display: grid; place-items: center;
	width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--c-brand); color: #fff;
}
.search-form__submit:hover { background: var(--c-accent); }
.search-form__submit .icon { width: 18px; height: 18px; }

/* Main nav */
.mainnav {
	position: sticky; top: var(--adminbar); z-index: 35;
	background: var(--c-nav); color: #fff;
	box-shadow: 0 2px 10px rgba(2, 10, 24, .12);
}
@media (max-width: 1023px) { .mainnav { top: calc(var(--adminbar) + var(--header-h)); box-shadow: none; border-top: 1px solid rgba(255, 255, 255, .08); } }
.mainnav__inner { display: flex; align-items: stretch; gap: 8px; min-height: var(--nav-h); }
.mainnav__list {
	display: flex; align-items: stretch; flex: 1; min-width: 0;
	overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
}
.mainnav__list::-webkit-scrollbar { display: none; }
.mainnav__list > li { display: flex; flex: none; scroll-snap-align: start; }
.mainnav__list a {
	display: flex; align-items: center; gap: 6px; padding: 0 16px;
	font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .92); white-space: nowrap;
	position: relative; transition: background .15s, color .15s;
}
.mainnav__list a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.mainnav__list .current-menu-item > a,
.mainnav__list .current-category-ancestor > a,
.mainnav__list .current-post-ancestor > a,
.mainnav__list .current-menu-parent > a,
.mainnav__list .is-current > a { background: var(--c-accent); color: #fff; }
.mainnav__item--home a { padding-inline: 16px; }
.mainnav__item--home .icon { width: 18px; height: 18px; }
.mainnav__home-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mainnav__more {
	display: none; place-items: center; width: 44px; border: 0; background: transparent; color: #fff; flex: none;
}
.mainnav__more .icon { width: 22px; height: 22px; }
.mainnav__more:hover { background: rgba(255, 255, 255, .08); }
@media (min-width: 1024px) {
	.mainnav__more { display: grid; }
	.mainnav__list a { padding: 0 20px; }
}
@media (max-width: 1023px) {
	.mainnav__inner { padding-inline: 0; }
	.mainnav__list { padding-inline: calc(var(--gutter) - 6px); }
	.mainnav__list a { padding: 0 12px; font-size: 13.5px; }
	.mainnav__item--home .icon { display: none; }
	.mainnav__home-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
	.mainnav__list .current-menu-item > a,
	.mainnav__list .current-category-ancestor > a,
	.mainnav__list .current-post-ancestor > a,
	.mainnav__list .current-menu-parent > a,
	.mainnav__list .is-current > a { background: transparent; }
	.mainnav__list .current-menu-item > a::after,
	.mainnav__list .current-category-ancestor > a::after,
	.mainnav__list .current-post-ancestor > a::after,
	.mainnav__list .current-menu-parent > a::after,
	.mainnav__list .is-current > a::after {
		content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--c-accent);
	}
}

/* 5. Ticker & hero -------------------------------------------------------- */
.ticker { background: var(--c-brand-deep); color: #fff; }
[data-theme="dark"] .ticker { background: var(--c-header); border-bottom: 1px solid var(--c-border); }
.ticker__inner { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.ticker__label {
	display: inline-flex; align-items: center; gap: 6px; flex: none;
	padding: 5px 12px; border-radius: 6px; background: var(--c-accent); color: #fff;
	font-size: 12.5px; font-weight: 800; letter-spacing: .01em; white-space: nowrap;
}
.ticker__label .icon { width: 14px; height: 14px; }
.ticker__viewport {
	flex: 1; min-width: 0; overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.ticker__track { display: flex; width: max-content; animation: a24-ticker var(--ticker-duration, 50s) linear infinite; }
.ticker__viewport:hover .ticker__track, .ticker__viewport:focus-within .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; flex: none; }
.ticker__list li { display: flex; align-items: center; white-space: nowrap; }
.ticker__list li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--c-accent); margin-inline: 18px; opacity: .8; }
.ticker__list a { display: inline-block; padding-block: 5px; font-size: 14px; font-weight: 600; color: #fff; }
.ticker__list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@keyframes a24-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 1023px) {
	.ticker { background: var(--c-brand); }
	.ticker__inner { min-height: 46px; padding-block: 2px 6px; }
	.ticker__list a { font-size: 13px; }
	.ticker__label { font-size: 12px; padding: 5px 10px; }
}

.home-top { padding-top: 20px; }
@media (min-width: 1024px) { .home-top { padding-top: 24px; } }

.hero { position: relative; border-radius: var(--radius); overflow: hidden; background: #0a1730; box-shadow: var(--shadow); isolation: isolate; }
.hero__track {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; aspect-ratio: 16 / 9.4; min-height: 300px; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; transition: transform 6s ease; }
.hero__slide:hover .hero__media img { transform: scale(1.03); }
.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(0deg, rgba(3, 10, 24, .94) 0%, rgba(3, 10, 24, .7) 32%, rgba(3, 10, 24, .15) 62%, rgba(3, 10, 24, 0) 80%);
}
.hero__content {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
	display: grid; gap: 10px; justify-items: start;
	padding: 20px 20px 46px; color: #fff; pointer-events: none;
}
.hero__content a { pointer-events: auto; }
.hero__title { font-size: 22px; font-weight: 800; line-height: 1.22; text-wrap: balance; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.hero__title a { color: #fff; }
.hero__title a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hero__excerpt { display: none; font-size: 15px; color: rgba(255, 255, 255, .88); max-width: 62ch; }
@media (min-width: 768px) {
	.hero__content { padding: 28px 32px 52px; gap: 12px; }
	.hero__title { font-size: 30px; max-width: 22ch; }
	.hero__excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (min-width: 1200px) { .hero__title { font-size: 34px; } }

.hero__arrow {
	position: absolute; top: 42%; z-index: 2; display: none; place-items: center;
	width: 42px; height: 42px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35);
	background: rgba(3, 10, 24, .45); color: #fff; backdrop-filter: blur(6px);
	transition: opacity .2s, background .2s; opacity: 0;
}
.hero__arrow .icon { width: 22px; height: 22px; }
.hero__arrow--prev { left: 14px; }
.hero__arrow--next { right: 14px; }
.hero:hover .hero__arrow, .hero__arrow:focus-visible { opacity: 1; }
.hero__arrow:hover { background: var(--c-accent); border-color: var(--c-accent); }
@media (min-width: 768px) { .hero__arrow { display: grid; } }
@media (hover: none) { .hero__arrow { display: none; } }

.hero__dots { position: absolute; z-index: 2; left: 14px; bottom: 10px; display: flex; }
@media (min-width: 768px) { .hero__dots { left: auto; right: 22px; bottom: 14px; } }
.hero__dots { gap: 0; }
.hero__dot { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; border: 0; background: transparent; }
.hero__dot::before { content: ""; display: block; width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .55); transition: width .25s, background .25s; }
.hero__dot[aria-current="true"]::before { width: 24px; background: var(--c-accent); }

@media (max-width: 767px) {
	.home .hero { margin-inline: calc(var(--gutter) * -1); border-radius: 0; box-shadow: none; }
	.home-top { padding-top: 0; }
	.hero__slide { aspect-ratio: 4 / 3.4; }
}

/* Badges & meta */
.badge {
	display: inline-flex; align-items: center; padding: 3px 8px; min-height: 24px; border-radius: 5px;
	background: var(--badge, var(--c-accent)); color: #fff !important;
	font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.3;
}
.badge:hover { filter: brightness(1.12); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 12.5px; color: var(--c-muted); }
.meta__item { display: inline-flex; align-items: center; gap: 5px; }
.meta .icon { width: 14px; height: 14px; }
.meta--light { color: rgba(255, 255, 255, .85); font-size: 13px; }

/* 6. Cards ---------------------------------------------------------------- */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card__media {
	position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm);
	background: var(--c-surface-2); aspect-ratio: 16 / 9;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: grid; gap: 7px; justify-items: start; padding-top: 10px; min-width: 0; }
.card__title { font-size: 15.5px; font-weight: 700; line-height: 1.35; letter-spacing: -.005em; }
.card__title a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a:hover { color: var(--c-accent-text); }
.card__excerpt { font-size: 14px; color: var(--c-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.card__play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px;
	background: rgba(255, 255, 255, .92); color: var(--c-brand); box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
	transition: transform .2s, background .2s, color .2s;
}
.card__play .icon { width: 20px; height: 20px; fill: currentColor; margin-left: 3px; }
.card:hover .card__play { background: var(--c-accent); color: #fff; transform: translate(-50%, -50%) scale(1.08); }
.card--list .card__play, .card--rank .card__play { width: 30px; height: 30px; }
.card--list .card__play .icon, .card--rank .card__play .icon { width: 13px; height: 13px; margin-left: 2px; }

/* grid card inside a white tile look */
.latest .card--grid, .more-news .card--grid, .related .card--grid, .not-found ~ .block .card--grid {
	background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.latest .card--grid .card__media, .more-news .card--grid .card__media, .related .card--grid .card__media, .not-found ~ .block .card--grid .card__media { border-radius: 0; }
.latest .card--grid .card__body, .more-news .card--grid .card__body, .related .card--grid .card__body, .not-found ~ .block .card--grid .card__body { padding: 12px 14px 14px; }

/* list card (thumb left) */
.card--list { flex-direction: row; gap: 14px; align-items: flex-start; }
.card--list .card__media { flex: 0 0 120px; aspect-ratio: 3 / 2; }
.card--list .card__body { padding-top: 0; gap: 6px; }
.card--list .card__title { font-size: 14.5px; }
.card--list .card__excerpt { display: none; }

/* feature card */
.card--feature .card__media { aspect-ratio: 16 / 9; border-radius: var(--radius-sm); }
.card--feature .card__title { font-size: 20px; line-height: 1.3; }
.card--feature .card__excerpt { -webkit-line-clamp: 3; font-size: 14.5px; }

/* rank card (Terpopuler) */
.card--rank { flex-direction: row; gap: 12px; align-items: flex-start; }
.card--rank .card__media { flex: 0 0 104px; aspect-ratio: 3 / 2; overflow: visible; }
.card--rank .card__media img { border-radius: var(--radius-sm); }
.card--rank .card__body { padding-top: 0; gap: 6px; }
.card--rank .card__title { font-size: 14px; }
.card--rank .meta { font-size: 12px; }
.card__rank {
	position: absolute; top: -6px; left: -6px; display: grid; place-items: center;
	min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px;
	background: var(--c-accent); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 2px 6px rgba(205, 18, 45, .35);
}

/* compact text-only */
.card--compact .card__body { padding-top: 0; gap: 4px; }
.card--compact .card__title { font-size: 14px; font-weight: 650; }
.card--compact .card__title a { -webkit-line-clamp: 2; }

/* Mobile: grids become app-like lists */
@media (max-width: 767px) {
	.grid--list-mobile { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.grid--list-mobile .card--grid { flex-direction: row; gap: 12px; padding: 10px; align-items: flex-start; }
	.grid--list-mobile .card--grid .card__media { flex: 0 0 38%; max-width: 150px; aspect-ratio: 4 / 3; border-radius: var(--radius-sm) !important; }
	.grid--list-mobile .card--grid .card__body { padding: 0 !important; gap: 6px; }
	.grid--list-mobile .card--grid .card__title { font-size: 15px; }
	.grid--list-mobile .card--grid .card__excerpt { display: none; }
	.grid--list-mobile .card__play { width: 32px; height: 32px; }
	.grid--list-mobile .card__play .icon { width: 14px; height: 14px; }
	.card--list .card__media { flex-basis: 112px; aspect-ratio: 4 / 3; }
}

/* 7. Sections ------------------------------------------------------------- */
.latest { margin-top: 24px; }

.popular { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.popular__list { display: grid; gap: 0; counter-reset: pop; }
.popular__list > li { padding-block: 13px; border-top: 1px solid var(--c-border); }
.popular__list > li:first-child { padding-top: 6px; border-top: 0; }
.popular__list > li:last-child { padding-bottom: 0; }

.channel-boxes { display: grid; gap: var(--gap); margin-top: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .channel-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .channel-boxes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.channel-box .section-head__title::before { background: var(--ch, var(--c-accent)); }
.channel-box .card--grid .card__title { font-size: 15px; }
.channel-box__more { display: grid; margin-top: 12px; }
.channel-box__more li { padding-block: 10px; border-top: 1px solid var(--c-border); }
.channel-box__more li:last-child { padding-bottom: 0; }

.duo { display: grid; gap: var(--gap); margin-top: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
	.duo { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
	.duo--bottom { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
.analisis-block__grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .analisis-block__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.analisis-block .stack .card + .card, .video-block .stack .card + .card { padding-top: 14px; border-top: 1px solid var(--c-border); }
.video-block .stack { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--c-border); }
.video-block .card--grid .card__title { font-size: 16.5px; }

.more-news { margin-top: 32px; }

/* Top 5 */
.top5__list { counter-reset: top5; display: grid; }
.top5__item {
	counter-increment: top5; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; row-gap: 4px;
	padding-block: 12px; border-top: 1px solid var(--c-border); align-items: start;
}
.top5__item:first-child { border-top: 0; padding-top: 4px; }
.top5__item::before {
	content: counter(top5); grid-row: 1 / span 2; display: grid; place-items: center;
	width: 28px; height: 28px; border-radius: 999px; background: var(--c-accent); color: #fff; font-size: 13px; font-weight: 800;
}
.top5__title { font-size: 14.5px; font-weight: 650; line-height: 1.4; }
.top5__title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.top5__meta { font-size: 12px; }
@media (min-width: 768px) {
	.top5__item { grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; }
	.top5__item::before { grid-row: auto; }
	.top5__title a { -webkit-line-clamp: 1; }
	.top5__meta { justify-content: flex-end; flex-wrap: nowrap; }
}

/* Follow box */
.follow {
	position: relative; overflow: hidden; border-radius: var(--radius); color: #fff;
	background:
		radial-gradient(circle at 85% 20%, rgba(56, 132, 255, .35), transparent 45%),
		radial-gradient(circle at 100% 100%, rgba(205, 18, 45, .25), transparent 40%),
		linear-gradient(135deg, #0b2447 0%, #071a35 100%);
	box-shadow: var(--shadow);
}
.follow::after {
	content: ""; position: absolute; right: -60px; top: -40px; width: 300px; height: 300px; border-radius: 50%;
	background:
		repeating-radial-gradient(circle, rgba(130, 180, 255, .18) 0 1px, transparent 1px 18px),
		repeating-linear-gradient(90deg, rgba(130, 180, 255, .1) 0 1px, transparent 1px 22px);
	-webkit-mask-image: radial-gradient(circle, #000 55%, transparent 70%);
	mask-image: radial-gradient(circle, #000 55%, transparent 70%);
	pointer-events: none;
}
.follow__inner { position: relative; z-index: 1; display: grid; gap: 12px; padding: 24px; }
.follow__brand img { display: block; height: 40px; width: auto; }
.follow__title { font-size: 21px; line-height: 1.3; max-width: 22ch; }
.follow__text { color: rgba(255, 255, 255, .78); font-size: 14px; max-width: 46ch; }
.follow__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.follow__btn {
	display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: 999px;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 14px; font-weight: 700;
	transition: background .15s, transform .15s;
}
.follow__btn:hover { color: #fff; background: rgba(255, 255, 255, .2); transform: translateY(-1px); }
.follow__btn .icon { width: 18px; height: 18px; }
.follow__btn--whatsapp { background: #1fa855; border-color: #1fa855; }
.follow__btn--whatsapp:hover { background: #17924a; }
.follow__btn--install { background: var(--c-accent); border-color: var(--c-accent); }
.follow--compact .follow__inner { padding: 20px; gap: 10px; }
.follow--compact .follow__title { font-size: 17px; }
.follow--compact .follow__text { font-size: 13.5px; }
.follow--compact .follow__btn { min-height: 38px; padding: 6px 13px; font-size: 13px; }
@media (min-width: 1024px) { .duo--bottom .follow__inner { padding: 32px; } .duo--bottom .follow__title { font-size: 24px; } }

/* 8. Article & prose ------------------------------------------------------ */
.reading-progress { position: fixed; left: 0; right: 0; top: var(--adminbar); height: 3px; z-index: 60; pointer-events: none; }
.reading-progress span { display: block; height: 100%; width: 100%; background: var(--c-accent); transform-origin: 0 50%; transform: scaleX(0); }

.breadcrumbs { font-size: 13px; color: var(--c-muted); margin-bottom: 14px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.breadcrumbs li + li::before { content: "›"; opacity: .6; margin-right: 2px; }
.breadcrumbs a:hover { color: var(--c-accent-text); }
.breadcrumbs [aria-current] { color: var(--c-text-2); font-weight: 600; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.article { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px var(--gutter); box-shadow: var(--shadow-sm); }
@media (max-width: 767px) {
	.article { margin-inline: calc(var(--gutter) * -1); border-radius: 0; border-inline: 0; margin-top: -20px; padding-top: 16px; }
}
@media (min-width: 1024px) { .article { padding: 32px 40px 40px; } }
.article__header { display: grid; gap: 14px; justify-items: start; }
.article__header .breadcrumbs { margin-bottom: 0; }
.article__title { font-size: 25px; line-height: 1.25; letter-spacing: -.018em; text-wrap: balance; }
@media (min-width: 768px) { .article__title { font-size: 34px; } }
.article__dek { font-size: 17px; color: var(--c-text-2); line-height: 1.55; }
.article__byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; width: 100%; padding-block: 12px; border-block: 1px solid var(--c-border); }
.article__avatar img { width: 40px; height: 40px; border-radius: 999px; }
.article__byline-text { display: grid; gap: 2px; font-size: 13.5px; flex: 1; min-width: 200px; }
.article__author strong { font-weight: 700; color: var(--c-text); }
.article__author a:hover { color: var(--c-accent-text); }
.article__date { color: var(--c-muted); font-size: 13px; }
.article__stats { display: flex; gap: 14px; font-size: 13px; color: var(--c-muted); }
.article__stats li { display: inline-flex; align-items: center; gap: 5px; }
.article__stats .icon { width: 15px; height: 15px; }

.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.share__label { font-size: 13px; font-weight: 700; color: var(--c-muted); }
.share__list { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn {
	display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 0;
	background: var(--c-surface-2); color: var(--c-text-2); box-shadow: inset 0 0 0 1px var(--c-border);
	transition: background .15s, color .15s, transform .15s;
}
.share__btn .icon { width: 17px; height: 17px; }
.share__btn:hover { transform: translateY(-1px); color: #fff; box-shadow: none; }
.share__btn--whatsapp:hover { background: #1fa855; }
.share__btn--facebook:hover { background: #1877f2; }
.share__btn--x-twitter:hover { background: #000; }
.share__btn--telegram:hover { background: #229ed9; }
.share__btn--copy:hover, .share__btn--native:hover { background: var(--c-brand); }
.share__btn.is-done { background: #16a34a; color: #fff; box-shadow: none; }

.article__figure { margin-top: 20px; }
.article__figure img { width: 100%; border-radius: var(--radius-sm); aspect-ratio: 16 / 9; object-fit: cover; }
.article__figure figcaption, .prose figcaption, .prose .wp-element-caption { margin-top: 8px; font-size: 13px; color: var(--c-muted); line-height: 1.5; }
@media (max-width: 767px) { .article__figure { margin-inline: calc(var(--gutter) * -1); } .article__figure img { border-radius: 0; } .article__figure figcaption { padding-inline: var(--gutter); } }

.prose { margin-top: 24px; font-size: 17px; line-height: 1.8; color: var(--c-text-2); overflow-wrap: break-word; }
@media (min-width: 768px) { .prose { font-size: 18px; } }
.prose > * + * { margin-top: 1.15em; }
.prose p:first-of-type::first-letter { }
.prose a { color: var(--c-accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose h2, .prose h3, .prose h4 { color: var(--c-text); margin-top: 1.6em; }
.prose h2 { font-size: 1.35em; }
.prose h3 { font-size: 1.18em; }
.prose h4 { font-size: 1.05em; }
.prose strong { color: var(--c-text); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose blockquote, .prose .wp-block-quote, .prose .wp-block-pullquote {
	margin-inline: 0; padding: 14px 20px; border-left: 4px solid var(--c-accent);
	background: var(--c-surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-size: 1.05em; color: var(--c-text); font-style: italic;
}
.prose blockquote cite, .prose .wp-block-quote cite { display: block; margin-top: 8px; font-size: .8em; font-style: normal; color: var(--c-muted); }
.prose img { border-radius: var(--radius-sm); }
.prose figure { margin-inline: 0; }
.prose .wp-block-image.alignwide, .prose .wp-block-image.alignfull { margin-inline: 0; }
.prose .alignleft { float: left; margin: .3em 1.2em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.2em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; }
.prose hr { border: 0; border-top: 1px solid var(--c-border); margin-block: 2em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9em; }
.prose th, .prose td { padding: 8px 10px; border: 1px solid var(--c-border); text-align: left; }
.prose th { background: var(--c-surface-2); color: var(--c-text); }
.prose .wp-block-table { overflow-x: auto; }
.prose iframe, .prose .wp-block-embed__wrapper iframe { width: 100%; border: 0; border-radius: var(--radius-sm); }
.prose .wp-block-embed.is-type-video .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.prose .wp-block-embed.is-type-video iframe { position: absolute; inset: 0; height: 100%; }
.prose code { font-size: .88em; background: var(--c-surface-2); padding: .1em .35em; border-radius: 4px; }
.prose pre { overflow-x: auto; background: var(--c-surface-2); padding: 14px; border-radius: var(--radius-sm); font-size: .85em; }
.prose::after { content: ""; display: table; clear: both; }

.read-also {
	display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--radius-sm);
	background: var(--c-surface-2); border-left: 4px solid var(--c-accent); font-style: normal;
}
.read-also__label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c-accent-text); }
.prose .read-also a { color: var(--c-text); text-decoration: none; font-weight: 700; font-size: .95em; line-height: 1.45; }
.prose .read-also a:hover { color: var(--c-accent-text); }

.page-links { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.article__footer { display: grid; gap: 16px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--c-border); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: var(--c-surface-2); box-shadow: inset 0 0 0 1px var(--c-border); font-size: 13px; font-weight: 600; color: var(--c-text-2); }
.tags a:hover { background: var(--c-accent); color: #fff; box-shadow: none; }
.related { margin-top: 32px; }

/* Comments */
.comments { margin-top: 32px; }
.comments__list { display: grid; gap: 16px; }
.comments__list .children { padding-left: 24px; margin-top: 16px; display: grid; gap: 16px; }
.comment-body { padding: 14px; border-radius: var(--radius-sm); background: var(--c-surface-2); font-size: 15px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 999px; }
.comment-metadata { font-size: 12px; color: var(--c-muted); margin: 4px 0 8px; }
.comment-respond { margin-top: 20px; }
.comment-reply-title { font-size: 18px; margin-bottom: 12px; }
.comment-form { display: grid; gap: 12px; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-surface);
}
.comment-form .form-submit { margin: 0; }

/* Page */
.page-article { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px var(--gutter) 32px; }
@media (min-width: 768px) { .page-article { padding: 36px 48px 48px; } }
.page-article__header { display: grid; gap: 10px; }

/* 9. Archive / search / 404 ---------------------------------------------- */
.archive-header {
	position: relative; display: grid; gap: 8px; margin-bottom: var(--gap);
	padding: 18px 20px 18px 24px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden;
}
.archive-header::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--ch, var(--c-accent)); }
.archive-header .breadcrumbs { margin-bottom: 0; }
.archive-header__title { font-size: 26px; }
@media (min-width: 768px) { .archive-header__title { font-size: 32px; } }
.archive-header__desc { color: var(--c-muted); font-size: 15px; max-width: 70ch; }
.archive-header__count { font-size: 13px; font-weight: 600; color: var(--c-muted); }
.archive-header--search .search-form { max-width: 560px; margin-top: 6px; }

.archive-list { display: grid; gap: 0; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 4px 18px; }
.archive-list > .card { padding-block: 16px; border-top: 1px solid var(--c-border); }
.archive-list > .card:first-child { border-top: 0; }
.archive-list .card--feature .card__title { font-size: 22px; }
@media (min-width: 768px) {
	.archive-list .card--feature .card__title { font-size: 26px; }
	.archive-list .card--list .card__media { flex-basis: 240px; aspect-ratio: 16 / 10; }
	.archive-list .card--list .card__title { font-size: 18px; }
	.archive-list .card--list .card__excerpt { display: -webkit-box; }
}

.pagination { margin-top: 24px; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination a, .pagination span {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px;
	background: var(--c-surface); border: 1px solid var(--c-border); font-weight: 700; font-size: 14px;
}
.pagination .current { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.pagination a:hover { border-color: var(--c-accent); color: var(--c-accent); }
.pagination .icon { width: 18px; height: 18px; }

.empty-state { display: grid; gap: 10px; padding: 32px 20px; text-align: center; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); justify-items: center; }
.empty-state__title { font-size: 18px; font-weight: 800; }
.empty-state .search-form { width: 100%; max-width: 480px; margin-top: 8px; }

.not-found { display: grid; justify-items: center; gap: 14px; padding: 40px 20px; text-align: center; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.not-found__code { font-size: clamp(72px, 16vw, 140px); font-weight: 900; line-height: 1; color: var(--c-accent-text); letter-spacing: .04em; }
.not-found__title { font-size: 26px; }
.not-found__text { color: var(--c-muted); max-width: 52ch; }
.not-found .search-form { width: 100%; max-width: 520px; }

/* 10. Footer -------------------------------------------------------------- */
.site-footer { margin-top: 24px; background: var(--c-footer); color: #b8c4d6; font-size: 14px; }
.site-footer a { color: #d8e0eb; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; gap: 28px 20px; padding-block: 36px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-footer__brand, .site-footer__col:last-child { grid-column: 1 / -1; }
@media (max-width: 639px) { .site-footer__links--2col { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 640px) and (max-width: 1023px) { .site-footer__col:last-child { grid-column: auto; } .site-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-block: 48px 32px; } .site-footer__brand, .site-footer__col:last-child { grid-column: auto; } }
.site-footer__brand { display: grid; gap: 14px; align-content: start; }
.site-footer .brand__img { height: 50px; }
.site-footer__about { max-width: 40ch; line-height: 1.6; }
.site-footer__title { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer__links { display: grid; gap: 9px; }
.site-footer__links--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.site-footer__contact { display: grid; gap: 12px; }
.site-footer__contact li { display: flex; align-items: flex-start; gap: 10px; }
.site-footer__contact .icon { width: 16px; height: 16px; margin-top: 3px; color: #ff6b7c; flex: none; }
.social--footer { gap: 8px; }
.social--footer a { width: 38px; height: 38px; background: rgba(255, 255, 255, .08); color: #fff; }
.social--footer a:hover { background: var(--c-accent); }
.social--footer .icon { width: 17px; height: 17px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-block: 16px; }
.site-footer__top { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.site-footer__top .icon { width: 15px; height: 15px; }
@media (max-width: 1023px) { .site-footer { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); } }

/* 11. Drawer / dialogs / bottom nav -------------------------------------- */
dialog { padding: 0; border: 0; color: var(--c-text); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: var(--c-overlay); backdrop-filter: blur(2px); }
html:has(dialog[open]) { overflow: hidden; }

.drawer { margin: 0; height: 100dvh; width: min(88vw, 380px); inset: 0 auto 0 0; }
.drawer__panel { display: flex; flex-direction: column; height: 100%; background: var(--c-surface); box-shadow: var(--shadow-lg); }
.drawer[open] .drawer__panel { animation: a24-slide-in .25s ease-out; }
@keyframes a24-slide-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 14px 18px; background: var(--c-brand); color: #fff; }
.drawer__head .brand__img { height: 34px; }
.drawer__close:hover { background: rgba(255, 255, 255, .12); }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 18px calc(24px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.drawer__title { margin: 20px 0 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.drawer__channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.drawer__channels a {
	display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius-sm);
	background: var(--c-surface-2); border: 1px solid var(--c-border); min-height: 56px;
}
.drawer__channels a:hover { border-color: var(--ch); color: inherit; }
.drawer__channels strong { display: block; font-size: 14px; line-height: 1.2; }
.drawer__channels small { display: block; font-size: 11px; color: var(--c-muted); line-height: 1.3; margin-top: 2px; }
.drawer__ch-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--ch); color: #fff; flex: none; }
.drawer__ch-icon .icon { width: 17px; height: 17px; }
.drawer__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.drawer__tags a { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: var(--c-surface-2); border: 1px solid var(--c-border); font-size: 13px; font-weight: 600; }
.drawer__tags a:hover { border-color: var(--c-accent); }
.drawer__theme {
	display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
	background: var(--c-surface-2); border: 1px solid var(--c-border); text-align: left; font-weight: 600; font-size: 14.5px;
}
.drawer__theme-icon { display: grid; }
.drawer__theme-icon .icon { width: 20px; height: 20px; }
.drawer__theme-label { flex: 1; }
.switch { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #cbd5e1; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
[data-theme="dark"] .switch { background: var(--c-accent); }
[data-theme="dark"] .switch::after { transform: translateX(18px); }
.drawer__links { display: grid; }
.drawer__links a { display: block; padding: 11px 2px; border-bottom: 1px solid var(--c-border); font-weight: 600; font-size: 14.5px; }
.social--drawer { margin-top: 18px; gap: 8px; flex-wrap: wrap; }
.social--drawer a { width: 40px; height: 40px; background: var(--c-surface-2); border: 1px solid var(--c-border); }
.social--drawer a:hover { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.social--drawer .icon { width: 17px; height: 17px; }

.search-dialog { margin: 0; width: 100%; inset: 0 0 auto 0; }
.search-dialog__panel {
	display: flex; align-items: center; gap: 8px; padding: calc(12px + env(safe-area-inset-top)) var(--gutter) 12px;
	background: var(--c-surface); box-shadow: var(--shadow-lg);
}
.search-dialog[open] .search-dialog__panel { animation: a24-drop .2s ease-out; }
@keyframes a24-drop { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.search-dialog .search-form { flex: 1; }
.search-dialog .search-form__input { height: 48px; font-size: 16px; }
@media (min-width: 1024px) { .search-dialog__panel { max-width: 760px; margin: 80px auto 0; border-radius: var(--radius); padding: 16px; } }

.bottom-nav {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
	background: color-mix(in srgb, var(--c-surface) 94%, transparent);
	backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-top: 1px solid var(--c-border);
	padding-bottom: env(safe-area-inset-bottom);
	box-shadow: 0 -4px 20px rgba(2, 10, 24, .06);
}
.bottom-nav__list { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 640px; margin-inline: auto; }
.bottom-nav__item {
	display: grid; justify-items: center; align-content: center; gap: 3px; width: 100%; height: var(--bottom-nav-h);
	padding: 0; border: 0; background: transparent; color: var(--c-muted); font-size: 11px; font-weight: 600;
	-webkit-tap-highlight-color: transparent; position: relative;
}
.bottom-nav__item .icon { width: 23px; height: 23px; transition: transform .15s; }
.bottom-nav__item:active .icon { transform: scale(.9); }
.bottom-nav__item[aria-current] { color: var(--c-accent-text); }
.bottom-nav__item[aria-current]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--c-accent); }
.bottom-nav__item:hover { color: var(--c-accent-text); }
@media (min-width: 1024px) { .bottom-nav { display: none; } }

/* 12. Utilities & motion -------------------------------------------------- */
.is-placeholder { object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.ticker__track { animation: none !important; }
	.ticker__viewport { overflow-x: auto; scrollbar-width: none; }
	.ticker__list[aria-hidden="true"] { display: none; }
}
@media print {
	.topbar, .mainnav, .ticker, .bottom-nav, .site-footer, .share, .layout__side, .related, .ad-area, .reading-progress, .masthead__actions, .masthead__menu { display: none !important; }
	body { background: #fff; color: #000; }
	.article { border: 0; box-shadow: none; padding: 0; }
	.layout { display: block; }
}
