/*
Theme Name: Sthint Pulse
Theme URI: https://sthint.com/
Author: Sthint
Author URI: https://sthint.com/
Description: A fast, editorial magazine theme built for Sthint. Bold hero grid, color-coded category sections, trending ticker, guest-post call-to-action, reading progress bar, auto table of contents, dark mode and clean article pages. No page builder, no jQuery.
Version: 1.2.0
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sthint-pulse
Tags: blog, news, magazine, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
	--accent: #e8492b;
	--accent-ink: #ffffff;
	--ink: #14171c;
	--text: #2c313a;
	--muted: #6b717c;
	--bg: #f7f5f0;
	--surface: #ffffff;
	--soft: #efebe2;
	--line: #e3ded2;
	--dark: #101317;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(20, 23, 28, .04), 0 10px 30px rgba(20, 23, 28, .07);
	--font-head: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--wrap: 1240px;
	--gutter: 16px;
	color-scheme: light;
}

[data-theme="dark"] {
	--ink: #f2efe8;
	--text: #d5d8de;
	--muted: #9aa0aa;
	--bg: #0f1216;
	--surface: #171b21;
	--soft: #1e232b;
	--line: #2a303a;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--ink: #f2efe8;
		--text: #d5d8de;
		--muted: #9aa0aa;
		--bg: #0f1216;
		--surface: #171b21;
		--soft: #1e232b;
		--line: #2a303a;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
		color-scheme: dark;
	}
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 17px/1.7 var(--font-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	color: var(--ink);
	line-height: 1.18;
	letter-spacing: -.01em;
	margin: 0 0 .5em;
	font-weight: 700;
}
p { margin: 0 0 1.2em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.icon { width: 20px; height: 20px; flex: none; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 1000;
	background: var(--surface); padding: 10px 16px; border-radius: 8px;
}

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }

.kicker {
	display: inline-block;
	font: 700 12px/1 var(--font-body);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--cat, var(--accent));
	margin-bottom: 10px;
}

.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 20px;
	border-radius: 999px;
	font: 600 15px/1 var(--font-body);
	border: 0;
	transition: transform .15s ease, background .15s ease, color .15s ease;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 85%, #000); }
.btn--light { background: #fff; color: #14171c; }
.btn--light:hover { color: var(--accent); }

.chip {
	display: inline-flex; align-items: center; gap: 6px;
	font: 700 11.5px/1 var(--font-body);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--cat, var(--accent));
	padding: 6px 10px 6px 8px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--cat, var(--accent)) 12%, transparent);
}
.chip::before {
	content: ""; width: 7px; height: 7px; border-radius: 50%;
	background: currentColor;
}
.chip:hover { color: var(--cat, var(--accent)); background: color-mix(in srgb, var(--cat, var(--accent)) 20%, transparent); }

/* ---------- Top bar ---------- */
.topbar { background: var(--dark); color: #c9ccd2; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 12px; }
.social { display: flex; gap: 6px; flex-wrap: wrap; }
.social a {
	width: 34px; height: 34px; display: grid; place-items: center;
	border-radius: 50%; background: var(--soft); color: var(--ink);
}
.social a:hover { background: var(--accent); color: #fff; }
.social--small a { width: 28px; height: 28px; background: transparent; color: #c9ccd2; }
.social--small .icon { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .2s ease;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
.header__inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }

.brand { display: flex; flex-direction: column; line-height: 1; margin-right: auto; }
.brand__name {
	font: 800 30px/1 var(--font-head);
	color: var(--ink);
	letter-spacing: -.02em;
	text-transform: uppercase;
}
.brand__dot { color: var(--accent); }
.brand__tag { font-size: 12px; color: var(--muted); margin-top: 5px; letter-spacing: .04em; }
.custom-logo { max-height: 52px; width: auto; }

.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a {
	display: block; padding: 10px 12px;
	font: 600 15px/1.2 var(--font-body);
	color: var(--ink);
	border-radius: 8px;
	text-transform: capitalize;
}
.primary-nav .menu > li > a { position: relative; }
.primary-nav .menu > li > a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
	background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.primary-nav .menu > li:hover > a::after,
.primary-nav .menu > .current-menu-item > a::after,
.primary-nav .menu > .current-cat > a::after { transform: scaleX(1); }
.primary-nav .sub-menu, .primary-nav .children {
	list-style: none; margin: 0; padding: 8px;
	position: absolute; top: 100%; left: 0; min-width: 210px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav__head { display: none; }

.header__actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
	width: 42px; height: 42px; display: grid; place-items: center;
	background: transparent; border: 1px solid var(--line); border-radius: 50%; color: var(--ink);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.menu-toggle { display: none; }
.theme-toggle .icon--sun { display: none; }
[data-theme="dark"] .theme-toggle .icon--sun { display: block; }
[data-theme="dark"] .theme-toggle .icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .icon--sun { display: block; }
	:root:not([data-theme="light"]) .theme-toggle .icon--moon { display: none; }
}

.search-panel { border-top: 1px solid var(--line); padding: 16px 0; background: var(--surface); }
.search-form { display: flex; align-items: center; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 18px; max-width: 640px; }
.search-form:focus-within { border-color: var(--accent); }
.search-form__input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); padding: 8px 0; outline: none; }
.search-form__btn { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--accent); color: #fff; }
.search-panel .search-form { margin: 0 auto; }

/* ---------- Ticker ---------- */
.ticker { border-bottom: 1px solid var(--line); background: var(--surface); }
.ticker__inner { display: flex; align-items: center; gap: 16px; min-height: 48px; }
.ticker__label {
	display: inline-flex; align-items: center; gap: 8px; flex: none;
	font: 800 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.ticker__pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.ticker__track { overflow: hidden; flex: 1; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__move { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .ticker__move, .ticker:focus-within .ticker__move { animation-play-state: paused; }
.ticker__list { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker__list li { white-space: nowrap; padding-right: 36px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.ticker__list li::before { content: "/"; color: var(--accent); margin-right: 14px; font-weight: 700; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.ticker__move { animation: none; }
	.ticker__track { overflow-x: auto; }
	html { scroll-behavior: auto; }
}

.site-main { padding-bottom: 64px; }

/* ---------- Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card__media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--soft); aspect-ratio: 16 / 10; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding-top: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.card__title { font-size: 20px; margin: 0; }
.card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s ease; }
.card:hover .card__title a { background-size: 100% 1.5px; color: var(--ink); }
.card__excerpt { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.card__meta > * + *::before, .entry__dates > * + *::before { content: "•"; margin-right: 12px; opacity: .6; }
.meta__author { font-weight: 600; color: var(--text); }

.thumb-ph {
	width: 100%; height: 100%; display: grid; place-items: center;
	background:
		radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--cat) 55%, #fff) 0, transparent 45%),
		linear-gradient(135deg, var(--cat), color-mix(in srgb, var(--cat) 55%, #000));
}
.thumb-ph span { font: 800 clamp(40px, 8vw, 96px)/1 var(--font-head); color: rgba(255, 255, 255, .9); }
.card--overlay .thumb-ph { place-items: start end; padding: 18px 22px; }
.card--overlay .thumb-ph span { opacity: .35; }

/* Lead (big) card */
.card--lead .card__title { font-size: clamp(24px, 2.6vw, 32px); }
.card--lead .card__media { aspect-ratio: 16 / 9; }

/* List card */
.card--list { flex-direction: row; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.card--list:first-child { padding-top: 0; }
.card--list .card__media { flex: 0 0 38%; aspect-ratio: 4 / 3; }
.card--list .card__body { padding-top: 0; justify-content: center; }
.card--list .card__title { font-size: 22px; }

/* Mini card */
.card--mini { flex-direction: row; gap: 14px; align-items: center; }
.card--mini .card__media { flex: 0 0 110px; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
.card--mini .card__body { padding-top: 0; gap: 6px; }
.card--mini .card__title { font-size: 16.5px; line-height: 1.3; }
.card--mini .thumb-ph span { font-size: 34px; }

/* Overlay card */
.card--overlay { border-radius: var(--radius); overflow: hidden; height: 100%; min-height: 220px; isolation: isolate; }
.card--overlay .card__media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.card--overlay::after {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: linear-gradient(180deg, rgba(10, 12, 15, 0) 25%, rgba(10, 12, 15, .55) 55%, rgba(10, 12, 15, .92) 100%);
}
.card--overlay .card__body { position: relative; z-index: 2; margin-top: auto; padding: 20px; color: #fff; }
.card--overlay .card__title { font-size: 19px; color: #fff; }
.card--overlay .card__title a, .card--overlay:hover .card__title a { color: #fff; }
.card--overlay .card__excerpt { color: rgba(255, 255, 255, .82); }
.card--overlay .card__meta, .card--overlay .meta__author { color: rgba(255, 255, 255, .8); }
.card--overlay .chip { background: var(--cat, var(--accent)); color: #fff; }
.card--overlay .card__media a, .card--overlay .card__media { pointer-events: none; }
.card--overlay .card__title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card--overlay .chip { position: relative; z-index: 2; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 32px 26px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--4 .card__title { font-size: 18px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; align-items: start; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-top: 28px; }
.hero__lead .card--overlay { min-height: 520px; }
.hero__lead .card__body { padding: 32px; gap: 12px; }
.hero__lead .card__title { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12; }
.hero__lead .card__excerpt { font-size: 16.5px; max-width: 60ch; }
.hero__side { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 18px; }
.hero__side .card--overlay { min-height: 251px; }
.hero__side .card__title { font-size: 17px; line-height: 1.3; }
.hero__side .card__meta .meta__author { display: none; }
.hero__side .card__meta > :nth-child(2)::before { display: none; }

/* ---------- Section heads ---------- */
.section-head {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	margin: 0 0 24px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); position: relative;
}
.section-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 72px; height: 4px; background: var(--cat, var(--accent)); }
.section-head__title { margin: 0; font-size: clamp(24px, 2.4vw, 30px); display: flex; align-items: center; gap: 12px; }
.section-head__title::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--cat, var(--accent)); transform: rotate(45deg); }
.section-head__more { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--font-body); color: var(--muted); }
.section-head__more:hover { color: var(--cat, var(--accent)); }
.section-head__more .icon { width: 16px; height: 16px; transition: transform .2s; }
.section-head__more:hover .icon { transform: translateX(3px); }

.cat-section { margin-top: 64px; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; }
.split__list { display: flex; flex-direction: column; gap: 18px; }
.split__list .card--mini { padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.split__list .card--mini:last-child { border-bottom: 0; padding-bottom: 0; }
.split__list .card--mini .card__media { flex-basis: 140px; }
.split__list .card--mini .card__title { font-size: 18px; }

/* ---------- CTA band ---------- */
.cta-band { margin-top: 72px; }
.cta-band__inner {
	position: relative; overflow: hidden;
	display: flex; align-items: center; justify-content: space-between; gap: 32px;
	padding: 44px 48px; border-radius: 24px;
	background: var(--dark); color: #d5d8de;
}
.cta-band__inner::before {
	content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--accent) 70%, transparent), transparent 70%);
	opacity: .55;
}
.cta-band__inner::after {
	content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none;
	background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
	background-size: 28px 28px;
}
.cta-band__text { position: relative; z-index: 1; max-width: 640px; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); }
.cta-band p { margin: 0; color: #b8bcc4; }
.cta-band .btn { position: relative; z-index: 1; padding: 15px 26px; font-size: 16px; }

/* ---------- Latest ---------- */
.latest { margin-top: 72px; }
.stack { display: flex; flex-direction: column; }

/* ---------- Sidebar ---------- */
.sidebar__inner { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 28px; }
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.widget__title { font-size: 20px; margin-bottom: 16px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.widget li:last-child { border-bottom: 0; }
.widget--write { background: var(--dark); border-color: var(--dark); color: #fff; position: relative; overflow: hidden; }
.widget--write .widget__title { color: #fff; font-size: 22px; }
.widget--write::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 160px; height: 160px; border-radius: 50%; border: 22px solid var(--accent); opacity: .35; }
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.ranked li { counter-increment: rank; display: grid; grid-template-columns: 38px 1fr; column-gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ranked li::before { content: counter(rank, decimal-leading-zero); grid-row: span 2; font: 800 22px/1 var(--font-head); color: var(--accent); opacity: .85; }
.ranked a { font: 600 15.5px/1.35 var(--font-body); color: var(--ink); }
.ranked time { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.topic-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.chip--soft span { opacity: .7; font-weight: 600; }
.widget .search-form { padding-left: 14px; }

/* ---------- Archive head ---------- */
.archive-head { position: relative; padding: 40px 0 32px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.archive-head__title { font-size: clamp(32px, 4.5vw, 52px); margin: 0; }
.archive-head__title::after { content: "."; color: var(--cat, var(--accent)); }
.archive-head__desc { color: var(--muted); max-width: 70ch; margin-top: 12px; }
.archive-head__search { margin-top: 20px; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--text); display: inline-block; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center;
	border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 15px;
}
.page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.page-numbers:hover:not(.current):not(.dots) { border-color: var(--accent); }

/* ---------- Single ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 100; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.layout--single { margin-top: 32px; }
.entry__header { margin-bottom: 28px; }
.entry__title { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.12; margin: 14px 0 14px; }
.entry__lede { font-size: 20px; line-height: 1.55; color: var(--muted); margin-bottom: 20px; }
.entry__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.entry__avatar { border-radius: 50%; }
.entry__meta-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; margin-right: auto; }
.entry__by { font-weight: 600; color: var(--ink); }
.entry__by a { color: var(--ink); }
.entry__dates { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--muted); }
.meta__read { display: inline-flex; align-items: center; gap: 5px; }
.meta__read .icon { width: 15px; height: 15px; }
.entry__media { margin: 0 0 32px; }
.entry__media img { width: 100%; border-radius: var(--radius); }
.entry__media figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; }

.share { display: flex; align-items: center; gap: 6px; }
.share__label { font: 700 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.share__btn {
	width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
	background: var(--soft); color: var(--ink); border: 0; position: relative;
}
.share__btn .icon { width: 17px; height: 17px; }
.share__btn:hover { background: var(--accent); color: #fff; }
.share__copy.is-done::after {
	content: attr(data-done); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
	background: var(--ink); color: var(--bg); font-size: 12px; padding: 5px 9px; border-radius: 6px; white-space: nowrap;
}

/* Article body */
.entry__content { font-size: 18.5px; line-height: 1.8; color: var(--text); }
.entry__content > * { margin-top: 0; }
.entry__content h2 { font-size: clamp(25px, 2.6vw, 31px); margin: 1.8em 0 .6em; scroll-margin-top: 110px; }
.entry__content h3 { font-size: clamp(21px, 2.1vw, 24px); margin: 1.6em 0 .5em; scroll-margin-top: 110px; }
.entry__content h4 { font-size: 20px; margin: 1.4em 0 .5em; }
.entry__content a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.entry__content a:hover { text-decoration-thickness: 3px; }
.entry__content ul, .entry__content ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.entry__content li { margin-bottom: .45em; }
.entry__content li::marker { color: var(--accent); font-weight: 700; }
.entry__content img { border-radius: var(--radius-sm); }
.entry__content figure { margin: 2em 0; }
.entry__content figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.entry__content blockquote, .entry__content .wp-block-quote {
	margin: 2em 0; padding: 8px 0 8px 26px; border-left: 4px solid var(--accent);
	font: 600 italic 23px/1.5 var(--font-head); color: var(--ink);
}
.entry__content blockquote cite { display: block; margin-top: 10px; font: 500 normal 14px var(--font-body); color: var(--muted); }
.entry__content table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 16px; display: block; overflow-x: auto; }
.entry__content th, .entry__content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.entry__content th { background: var(--soft); color: var(--ink); }
.entry__content code { background: var(--soft); padding: 2px 6px; border-radius: 5px; font-size: .88em; }
.entry__content pre { background: var(--dark); color: #e9e9e9; padding: 20px; border-radius: var(--radius-sm); overflow-x: auto; font-size: 15px; }
.entry__content pre code { background: none; padding: 0; }
.entry__content hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.alignwide { margin-left: -60px; margin-right: -60px; max-width: calc(100% + 120px); }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 14px; color: var(--muted); }


/* Table of contents (built by JS) */
.toc { margin: 0 0 2em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.toc summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
	padding: 16px 20px; font: 700 15px/1 var(--font-body); color: var(--ink); letter-spacing: .02em;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-size: 22px; color: var(--accent); }
.toc[open] summary::after { content: "–"; }
.toc ol { margin: 0; padding: 0 20px 18px 20px; font-size: 15.5px; line-height: 1.5; list-style: none; counter-reset: toc; }
.toc li:not(.toc__sub) { counter-increment: toc; }
.toc li:not(.toc__sub)::before { content: counter(toc) ". "; color: var(--accent); font-weight: 700; }
.toc li { margin: 0 0 8px; }
.toc li.toc__sub { margin-left: 22px; }
.toc li.toc__sub::before { content: "– "; color: var(--muted); }
.entry__content .toc a { color: var(--text); text-decoration: none; }
.entry__content .toc a:hover { color: var(--accent); }

.entry__footer { margin-top: 40px; display: flex; flex-direction: column; gap: 28px; }
.entry__tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.entry__tags span { font: 700 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.entry__tags a { padding: 7px 14px; border-radius: 999px; background: var(--soft); font-size: 14px; }
.entry__tags a:hover { background: var(--accent); color: #fff; }

.author-box { display: flex; gap: 20px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.author-box img { border-radius: 50%; flex: none; }
.author-box__name { font-size: 22px; margin: 0 0 6px; }
.author-box p { margin: 0; color: var(--muted); font-size: 15.5px; }
.author-box .kicker { margin-bottom: 6px; }

.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: flex; flex-direction: column; height: 100%; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.post-navigation a:hover { border-color: var(--accent); color: var(--ink); }
.post-navigation .nav-next a { text-align: right; align-items: flex-end; }
.post-nav__title { font: 700 17px/1.35 var(--font-head); color: var(--ink); }
.post-navigation .kicker { margin-bottom: 8px; }

.related { margin-top: 72px; }

/* Comments */
.comments { margin-top: 48px; }
.comments__title, .comment-reply-title { font-size: 26px; }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 32px; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 13px; color: var(--muted); margin: 4px 0 10px 56px; }
.comment-content { margin-left: 56px; }
.reply { margin-left: 56px; font-size: 14px; font-weight: 600; color: var(--accent); }
.comment-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
	background: var(--surface); color: var(--ink); font: inherit; font-size: 16px;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); outline: none; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; }

/* Pages */
.page-wrap { padding-top: 32px; }

/* 404 + empty */
.not-found { text-align: center; padding: 72px 0 56px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.not-found__code {
	font: 800 clamp(96px, 18vw, 180px)/1 var(--font-head);
	background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #6b3cff));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.not-found p { max-width: 560px; color: var(--muted); }
.not-found .search-form { width: 100%; margin-bottom: 8px; }
.empty { padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty .search-form { margin: 16px auto 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #aeb3bc; padding-top: 64px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.site-footer .brand__name { color: #fff; font-size: 28px; }
.footer__about p { margin: 16px 0 20px; max-width: 34ch; }
.site-footer .social a { background: rgba(255, 255, 255, .08); color: #fff; }
.site-footer .social a:hover { background: var(--accent); }
.site-footer .widget__title { color: #fff; font-family: var(--font-body); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer .widget { background: none; border: 0; padding: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 6px 0; border: 0; }
.site-footer a:hover { color: #fff; }
.footer-list--posts li { display: flex; flex-direction: column; padding: 8px 0; }
.footer-list--posts a { color: #e3e5e9; font-weight: 500; line-height: 1.4; }
.footer-list--posts time { font-size: 12.5px; color: #80868f; margin-top: 3px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-height: 64px; font-size: 14px; }
.footer__bottom p { margin: 0; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }

.to-top[hidden], .nav-overlay[hidden] { display: none; }
.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 40;
	width: 48px; height: 48px; display: grid; place-items: center;
	border: 0; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: var(--shadow);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.primary-nav .menu a { padding: 10px 8px; font-size: 14.5px; }
	.layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 36px; }
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.header__cta { display: none; }
}

@media (max-width: 960px) {
	.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
	.menu-toggle { display: grid; }
	.primary-nav {
		position: fixed; top: 0; bottom: 0; left: 0; z-index: 120;
		width: min(86vw, 340px); padding: 20px; overflow-y: auto;
		background: var(--surface); box-shadow: var(--shadow);
		transform: translateX(-105%); transition: transform .28s ease;
	}
	.nav-open .primary-nav { transform: none; }
	.nav-open .site-header { z-index: 130; }
	.primary-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
	.primary-nav__head .brand__name { font-size: 24px; }
	.primary-nav .menu { flex-direction: column; gap: 0; }
	.primary-nav .menu a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
	.primary-nav .menu > li > a::after { display: none; }
	.primary-nav .sub-menu, .primary-nav .children { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; background: none; }
	.nav-overlay { position: fixed; inset: 0; z-index: 110; background: rgba(0, 0, 0, .45); }
	.brand { margin-right: auto; }
	.layout { grid-template-columns: minmax(0, 1fr); }
	.sidebar__inner { position: static; }
	.hero { grid-template-columns: 1fr; }
	.hero__lead .card--overlay { min-height: 440px; }
	.split { grid-template-columns: 1fr; }
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.alignwide { margin-left: 0; margin-right: 0; max-width: 100%; }
}

@media (max-width: 640px) {
	body { font-size: 16.5px; }
	.topbar__date { font-size: 12px; }
	.header__inner { min-height: 64px; gap: 10px; }
	.brand__name { font-size: 24px; }
	.brand__tag { display: none; }
	.icon-btn { width: 38px; height: 38px; }
	.ticker__label { font-size: 0; gap: 0; }
	.ticker__label .ticker__pulse { margin-right: 0; }
	.hero { margin-top: 16px; gap: 12px; }
	.hero__lead .card--overlay { min-height: 380px; }
	.hero__lead .card__body { padding: 20px; }
	.hero__lead .card__excerpt { display: none; }
	.hero__side { grid-template-columns: 1fr; gap: 12px; }
	.hero__side .card--overlay { min-height: 200px; }
	.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
	.card--list { flex-direction: column; gap: 0; }
	.card--list .card__media { flex-basis: auto; width: 100%; aspect-ratio: 16 / 10; }
	.card--list .card__body { padding-top: 14px; }
	.split__list .card--mini .card__media { flex-basis: 104px; }
	.cat-section, .cta-band, .latest, .related { margin-top: 48px; }
	.cta-band__inner { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
	.entry__content { font-size: 17.5px; }
	.entry__meta .share { width: 100%; }
	.author-box { flex-direction: column; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next a { text-align: left; align-items: flex-start; }
	.footer__grid { grid-template-columns: 1fr; gap: 32px; }
	.footer__bottom-inner { flex-direction: column; justify-content: center; text-align: center; padding: 16px 0; }
	.crumbs [aria-current] { max-width: 22ch; }
	.comment-list .children { padding-left: 14px; }
	.alignleft, .alignright { float: none; margin: 1em 0; }
}

/* ==========================================================
   Homepage sections (v1.1)
   ========================================================== */
.home-heading { max-width: 720px; margin-bottom: 28px; }
.home-heading__title { font-size: clamp(28px, 3.4vw, 42px); margin: 0; }
.home-heading__intro { color: var(--muted); font-size: 17px; margin: 12px 0 0; }

/* 1. Category tiles */
.home-cats { margin-top: 40px; }
.cat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cat-tile {
	display: flex; align-items: center; gap: 14px; padding: 16px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	position: relative; overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.cat-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cat); transform: scaleY(0); transition: transform .2s; }
.cat-tile:hover { border-color: var(--cat); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.cat-tile:hover::before { transform: scaleY(1); }
.cat-tile__icon {
	flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
	color: var(--cat); background: color-mix(in srgb, var(--cat) 13%, transparent);
}
.cat-tile__icon .icon { width: 24px; height: 24px; }
.cat-tile:hover .cat-tile__icon { background: var(--cat); color: #fff; }
.cat-tile__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cat-tile__name { font: 700 17px/1.25 var(--font-body); color: var(--ink); text-transform: capitalize; }
.cat-tile__count { font-size: 13px; color: var(--muted); }
.cat-tile__arrow { color: var(--muted); opacity: 0; transform: translateX(-6px); transition: .2s; }
.cat-tile__arrow .icon { width: 18px; height: 18px; }
.cat-tile:hover .cat-tile__arrow { opacity: 1; transform: none; color: var(--cat); }

/* 2. About boxes */
.home-about { margin-top: 72px; }
.info-boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.info-box {
	--box: var(--accent);
	padding: 28px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
	display: flex; flex-direction: column; align-items: flex-start; gap: 10px; position: relative; overflow: hidden;
}
.info-box--1 { --box: hsl(152 55% 36%); }
.info-box--2 { --box: hsl(212 70% 46%); }
.info-box--3 { --box: hsl(292 55% 46%); }
.info-box--4 { --box: var(--accent); background: var(--dark); border-color: var(--dark); color: #c4c8cf; }
.info-box--4 .info-box__title { color: #fff; }
.info-box::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--box); opacity: .08; }
.info-box__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--box); color: #fff; margin-bottom: 6px; }
.info-box__icon .icon { width: 26px; height: 26px; }
.info-box__title { font-size: 21px; margin: 0; }
.info-box p { margin: 0; font-size: 15.5px; line-height: 1.6; color: inherit; opacity: .9; }
.info-box__link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font: 600 14.5px/1 var(--font-body); color: var(--box); }
.info-box__link .icon { width: 16px; height: 16px; transition: transform .2s; }
.info-box__link:hover { color: var(--box); }
.info-box__link:hover .icon { transform: translateX(3px); }

/* 3. How it works */
.home-how { margin-top: 72px; padding: 64px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-how__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.home-how__top .home-heading { margin-bottom: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: none; }
.step { position: relative; padding: 26px 22px 24px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); }
.step:not(:last-child)::after {
	content: ""; position: absolute; top: 52px; right: -22px; width: 22px; height: 2px;
	background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 9px);
}
.step__num { position: absolute; top: 18px; right: 20px; font: 800 34px/1 var(--font-head); color: var(--line); }
.step__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); margin-bottom: 18px; }
.step__icon .icon { width: 24px; height: 24px; }
.step__title { font-size: 20px; margin: 0 0 8px; }
.step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* 4. Admin */
.home-admin { margin-top: 72px; }
.admin-card {
	display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 44px; align-items: center;
	padding: 40px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden;
}
.admin-card::before {
	content: ""; position: absolute; left: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
}
.admin-card__photo { position: relative; justify-self: center; }
.admin-card__photo img {
	width: 220px; height: 220px; object-fit: cover; border-radius: 50%;
	border: 6px solid var(--surface); box-shadow: 0 0 0 3px var(--accent), var(--shadow);
}
.admin-card__initials {
	width: 220px; height: 220px; border-radius: 50%; display: grid; place-items: center;
	font: 800 76px/1 var(--font-head); color: #fff; letter-spacing: -.02em;
	background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #2b1a6b));
	border: 6px solid var(--surface); box-shadow: 0 0 0 3px var(--accent), var(--shadow);
}
.admin-card__badge {
	position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
	background: var(--accent); color: #fff; font: 700 13px/1 var(--font-body); white-space: nowrap;
}
.admin-card__badge .icon { width: 15px; height: 15px; }
.admin-card__body { position: relative; }
.admin-card__name { font-size: clamp(30px, 3.6vw, 44px); margin: 0; }
.admin-card__role { font-weight: 600; color: var(--accent); margin: 6px 0 14px; }
.admin-card__bio { color: var(--text); max-width: 62ch; }
.admin-stats { list-style: none; margin: 4px 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.admin-stats li { padding: 12px 20px; border-radius: 14px; background: var(--soft); display: flex; flex-direction: column; min-width: 110px; }
.admin-stats strong { font: 800 26px/1.1 var(--font-head); color: var(--ink); }
.admin-stats span { font-size: 13px; color: var(--muted); }
.admin-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* 5. Logos */
.home-logos { margin-top: 64px; text-align: center; }
.home-logos__title { font: 700 13px/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.logo-item {
	display: grid; place-items: center; min-width: 150px; height: 78px; padding: 14px 24px;
	border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
}
.logo-item img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .7; transition: .2s; }
.logo-item:hover img { filter: none; opacity: 1; }
.logo-item--empty { border-style: dashed; color: var(--muted); grid-auto-flow: column; gap: 8px; font-size: 14px; }
.home-logos__note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* 6-8. Latest + popular */
.home-popular { margin-top: 64px; }
.popular-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 26px; counter-reset: pop; }
.popular-grid li { counter-increment: pop; display: flex; gap: 14px; align-items: center; }
.popular-grid li::before { content: counter(pop, decimal-leading-zero); font: 800 30px/1 var(--font-head); color: var(--accent); opacity: .85; flex: none; width: 44px; }
.popular-grid .card { flex: 1; }

@media (max-width: 1100px) {
	.cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.info-boxes, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.step:not(:last-child)::after { display: none; }
	.popular-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.cat-tile { padding: 12px; gap: 10px; }
	.cat-tile__icon { width: 42px; height: 42px; border-radius: 12px; }
	.cat-tile__name { font-size: 15px; }
	.cat-tile__arrow { display: none; }
	.home-how__top { flex-direction: column; align-items: flex-start; }
	.admin-card { grid-template-columns: 1fr; padding: 28px 22px; gap: 28px; text-align: center; }
	.admin-card__photo img, .admin-card__initials { width: 170px; height: 170px; font-size: 58px; }
	.admin-card__bio { margin-left: auto; margin-right: auto; }
	.admin-stats, .admin-card__actions { justify-content: center; }
}
@media (max-width: 640px) {
	.info-boxes, .steps, .popular-grid { grid-template-columns: 1fr; }
	.home-about, .home-admin { margin-top: 52px; }
	.home-how { margin-top: 52px; padding: 44px 0; }
	.home-logos { margin-top: 48px; }
	.logo-item { min-width: calc(50% - 7px); height: 64px; }
}
.grid--4 .meta__author { display: none; }
.grid--4 .card__meta > time::before { display: none; }

/* Header fit for long menus */
.primary-nav .menu a { white-space: nowrap; }
.brand__name { white-space: nowrap; }
@media (max-width: 1320px) {
	.header__inner { gap: 14px; }
	.primary-nav .menu a { padding: 10px 8px; font-size: 14.5px; }
	.brand__name { font-size: 26px; }
	.header__cta { display: none; }
}
@media (max-width: 1180px) and (min-width: 961px) {
	.primary-nav .menu a { padding: 10px 6px; font-size: 13.5px; }
	.brand__tag { display: none; }
}

/* YouTube section */
.yt-section { margin-top: 64px; }
.yt-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 26px; align-items: stretch; }
.yt-layout--empty { grid-template-columns: 1fr; }
.yt-channel {
	display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
	padding: 28px 24px; border-radius: 20px; color: #f1d6d4; position: relative; overflow: hidden;
	background: linear-gradient(160deg, #e62117, #8f0f0a);
}
.yt-channel::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 170px; height: 170px; border-radius: 50%; border: 24px solid rgba(255, 255, 255, .12); }
.yt-channel__logo { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #fff; color: #e62117; margin-bottom: 6px; }
.yt-channel__logo .icon { width: 30px; height: 30px; }
.yt-channel__name { color: #fff; font-size: 24px; margin: 0; }
.yt-channel p { margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: #ffe3e1; }
.yt-btn { background: #fff; color: #c4140d; margin-top: auto; position: relative; z-index: 1; }
.yt-btn:hover { color: #8f0f0a; }
.yt-btn .icon { width: 18px; height: 18px; }
.yt-layout--empty .yt-channel { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.yt-layout--empty .yt-channel p { flex: 1 1 320px; margin: 0; }
.yt-layout--empty .yt-btn { margin-top: 0; }
.yt-videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.yt-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.yt-card__media {
	position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
	border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer;
}
.yt-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .2s; opacity: .92; }
.yt-card__media:hover img { transform: scale(1.04); opacity: 1; }
.yt-card__play { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .2s; }
.yt-card__media:hover .yt-card__play { transform: scale(1.1); }
.yt-card__frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #000; }
.yt-card__title { font-size: 17.5px; line-height: 1.35; margin: 0; }
.yt-card__title a:hover { color: #e62117; }
.yt-card__date { font-size: 13px; color: var(--muted); }
@media (max-width: 1100px) {
	.yt-layout { grid-template-columns: 1fr; }
	.yt-channel { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
	.yt-channel p { flex: 1 1 300px; margin: 0; }
	.yt-btn { margin-top: 0; }
}
@media (max-width: 760px) {
	.yt-videos { grid-template-columns: 1fr; }
	.yt-section { margin-top: 48px; }
}
