/* ==========================================================================
   CV Magazine theme — main stylesheet
   ========================================================================== */

:root {
	--brand: #d71920;
	--brand-dark: color-mix(in srgb, var(--brand) 78%, #000);
	--brand-soft: color-mix(in srgb, var(--brand) 9%, #fff);
	--ink: #121418;
	--ink-2: #343a43;
	--muted: #6b7280;
	--line: #e7e8eb;
	--bg: #ffffff;
	--bg-soft: #f5f5f6;
	--dark: #0e1013;
	--dark-2: #191c21;
	--radius: 8px;
	--radius-sm: 4px;
	--gutter: clamp(16px, 3vw, 56px);
	--wrap-max: none;
	--side: 340px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--serif: "Merriweather", Georgia, "Times New Roman", serif;
	--shadow: 0 1px 2px rgba(16, 18, 24, .06), 0 8px 24px rgba(16, 18, 24, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.22; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.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:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 9999;
	top: 8px; left: 8px; padding: 10px 16px; background: #fff; color: var(--ink); box-shadow: var(--shadow);
}

.wrap { width: 100%; max-width: var(--wrap-max); margin-inline: auto; padding-inline: var(--gutter); }
.icon { flex: none; }

/* Buttons ---------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; gap: 8px; justify-content: center;
	padding: 12px 22px; border-radius: 999px; border: 0;
	background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .01em;
	transition: background .2s, transform .2s;
}
.btn:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); margin-top: 22px; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-light { background: #fff; color: var(--brand); }
.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
	border: 0; background: transparent; color: inherit;
}
.icon-btn:hover { background: rgba(255, 255, 255, .1); }

/* Reading progress ------------------------------------------------------- */
.read-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1000; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .1s linear; }

/* Top bar ------------------------------------------------------------------ */
.topbar { background: var(--dark); color: #c9ccd2; font-size: 12.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; }
.today { color: #fff; font-weight: 600; }
.top-nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.top-nav a:hover { color: #fff; }
.social { display: flex; gap: 6px; }
.social a { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; transition: background .2s, color .2s; }
.social .icon { width: 16px; height: 16px; }
.social-top a:hover { background: var(--brand); color: #fff; }
.topbar-cta {
	display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff;
	font-weight: 700; padding: 0 14px; height: 38px;
}
.topbar-cta .icon { width: 16px; height: 16px; }
.topbar-cta:hover { background: var(--brand-dark); color: #fff; }

/* Header ------------------------------------------------------------------- */
.site-header { background: #fff; position: relative; z-index: 50; }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand .custom-logo { height: 84px; width: auto; }
.tagline {
	margin: 0; max-width: 170px; font-size: 12px; line-height: 1.4; color: var(--muted);
	border-left: 2px solid var(--brand); padding-left: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
}
.header-banner { flex: 0 1 970px; display: flex; justify-content: flex-end; min-width: 0; }
.header-banner img { width: 100%; max-width: 970px; height: auto; max-height: 110px; object-fit: contain; object-position: right center; }
.header-banner a { display: block; width: 100%; }
.header-banner-widget { width: 100%; text-align: right; }

/* Nav bar */
.navbar { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 60; box-shadow: 0 2px 0 var(--brand); }
.admin-bar .navbar { top: 32px; }
.navbar-inner { display: flex; align-items: center; gap: 8px; min-height: 54px; }
.nav-toggle { display: none; }
.nav-mini-logo { display: none; margin-right: 8px; }
.navbar.is-stuck .nav-mini-logo { display: block; }
.nav-mini-logo img { width: 34px; height: 34px; background: #fff; border-radius: 6px; padding: 2px; object-fit: contain; }
.main-nav { flex: 1; min-width: 0; }
.main-nav > ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
	display: flex; align-items: center; gap: 6px; height: 54px; padding: 0 clamp(8px, .75vw, 15px);
	font-size: clamp(12px, .85vw, 13.5px); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: #fff; white-space: nowrap;
	transition: background .2s;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a,
.main-nav > ul > li.current-menu-ancestor > a,
.main-nav > ul > li.current-category-ancestor > a { background: var(--brand); color: #fff; }
.main-nav .menu-item-has-children > a::after {
	content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px); opacity: .7;
}
.main-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: 0; padding: 8px 0;
	background: #fff; color: var(--ink); box-shadow: var(--shadow); border-top: 3px solid var(--brand);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 10;
}
.main-nav .sub-menu .sub-menu { top: -11px; left: 100%; }
.main-nav .menu-more > .sub-menu { left: auto; right: 0; }
.main-nav .menu-more .sub-menu .sub-menu { left: auto; right: 100%; }
.main-nav .sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); margin-left: auto; }
.main-nav .sub-menu .menu-item-has-children > a { display: flex; align-items: center; gap: 8px; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { display: block; padding: 9px 18px; font-size: 14px; font-weight: 600; }
.main-nav .sub-menu a:hover { background: var(--brand-soft); color: var(--brand); }
.search-toggle { margin-left: auto; }

.search-panel { background: var(--dark-2); padding-block: 18px; }
.search-form { display: flex; max-width: 720px; margin: 0 auto; background: #fff; border-radius: 999px; overflow: hidden; border: 1.5px solid var(--line); }
.search-field { flex: 1; min-width: 0; border: 0; padding: 13px 22px; font: inherit; font-size: 15px; color: var(--ink); background: transparent; }
.search-field:focus { outline: none; }
.search-form:focus-within { border-color: var(--brand); }
.search-submit { border: 0; background: var(--brand); color: #fff; padding: 0 22px; display: grid; place-items: center; }
.search-submit:hover { background: var(--brand-dark); }

/* Drawer (mobile menu) */
.drawer {
	position: fixed; inset: 0 auto 0 0; width: min(360px, 88vw); background: #fff; z-index: 1001;
	overflow-y: auto; padding: 16px 20px 32px; transform: translateX(-100%); transition: transform .3s ease;
	display: block;
}
.drawer[hidden] { display: none; }
.drawer.is-open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer-head .custom-logo { height: 56px; width: auto; }
.drawer-close { color: var(--ink); background: var(--bg-soft); }
.drawer .search-form { margin-bottom: 16px; }
.drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.drawer-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 700; }
.drawer-nav .sub-menu a { padding-left: 18px; font-weight: 500; font-size: 15px; }
.drawer .social { margin-top: 20px; }
.drawer .social a { background: var(--bg-soft); }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(10, 12, 16, .55); z-index: 1000; }
body.drawer-open { overflow: hidden; }

/* Ticker ------------------------------------------------------------------- */
.ticker { border-bottom: 1px solid var(--line); background: #fff; }
.ticker-inner { display: flex; align-items: center; gap: 16px; min-height: 52px; }
.ticker-label {
	flex: none; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800;
	text-transform: uppercase; letter-spacing: .06em; padding: 6px 12px; border-radius: var(--radius-sm);
	position: relative;
}
.ticker-label::after {
	content: ""; position: absolute; right: -6px; top: 50%; translate: 0 -50%;
	border: 6px solid transparent; border-left-color: var(--brand); border-right: 0;
}
.ticker-track { position: relative; flex: 1; min-width: 0; height: 26px; overflow: hidden; }
.ticker-item {
	position: absolute; inset: 0; display: flex; align-items: center; gap: 12px; white-space: nowrap;
	overflow: hidden; text-overflow: ellipsis; font-weight: 700; font-size: 14.5px;
	opacity: 0; transform: translateY(100%); transition: opacity .35s, transform .35s;
}
.ticker-item time { font-weight: 500; font-size: 12px; color: var(--muted); text-transform: uppercase; }
.ticker-item.is-active { opacity: 1; transform: none; }
.ticker-item.is-leaving { opacity: 0; transform: translateY(-100%); }
.ticker-nav { display: flex; gap: 6px; }
.ticker-nav button {
	width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
	display: grid; place-items: center; color: var(--ink-2);
}
.ticker-nav button:hover { border-color: var(--brand); color: var(--brand); }
.ticker-nav .icon { width: 16px; height: 16px; }

/* Shared post bits ------------------------------------------------------- */
.badge {
	display: inline-block; background: var(--brand); color: #fff !important; font-size: 11px; font-weight: 800;
	text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: var(--radius-sm); line-height: 1.4;
}
.badge:hover { background: var(--brand-dark); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .03em; }
.meta-author { color: var(--ink); font-weight: 700; }
.meta-author::before { content: "By "; color: var(--muted); font-weight: 500; }

.media { position: relative; }
.thumb { display: block; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); aspect-ratio: 16 / 10; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
article:hover .thumb img { transform: scale(1.05); }
.thumb .ph { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--brand-soft), #fff); }
.thumb .ph img { width: 32%; height: auto; object-fit: contain; opacity: .55; transform: none !important; }
.badge.on-img { position: absolute; left: 12px; top: 12px; z-index: 2; }

.title { font-weight: 800; letter-spacing: -.015em; }
.title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s, color .2s; }
.title a:hover { background-size: 100% 2px; }

/* card */
.post-card .body { padding-top: 14px; }
.post-card .title { font-size: 19px; margin-bottom: 8px; }
.post-card .excerpt { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; margin-bottom: 10px; }

/* list */
.post-list { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; padding-block: 12px; border-bottom: 1px solid var(--line); }
.post-list:last-child { border-bottom: 0; }
.post-list .thumb { aspect-ratio: 4 / 3; border-radius: 6px; }
.post-list .title { font-size: 15px; line-height: 1.35; margin-bottom: 6px; }
.post-list .meta { font-size: 11px; }

/* overlay */
.post-overlay { position: relative; height: 100%; border-radius: var(--radius); overflow: hidden; isolation: isolate; background: var(--dark); }
.post-overlay .media, .post-overlay .thumb { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; }
.post-overlay .media::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .55) 62%, rgba(0, 0, 0, .9) 100%);
}
.post-overlay .body { position: absolute; inset: auto 0 0 0; padding: clamp(16px, 2vw, 28px); color: #fff; z-index: 2; }
.post-overlay .title { font-size: clamp(17px, 1.35vw, 22px); color: #fff; margin: 10px 0 8px; text-shadow: 0 1px 12px rgba(0, 0, 0, .3); }
.post-overlay .title a:hover { color: #fff; }
.post-overlay .excerpt { color: rgba(255, 255, 255, .85); font-size: 15px; max-width: 70ch; }
.post-overlay .meta { color: rgba(255, 255, 255, .78); }
.post-overlay .meta-author { color: #fff; }
.post-overlay .meta-author::before { color: rgba(255, 255, 255, .75); }

/* Section heads ---------------------------------------------------------- */
.section-head {
	display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px 20px;
	border-bottom: 2px solid var(--ink); margin-bottom: 24px;
}
.section-title { margin: 0; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.section-title span {
	display: inline-block; background: var(--brand); color: #fff; padding: 9px 22px 8px 16px;
	clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%);
}
.view-all { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--ink-2); padding-bottom: 8px; }
.view-all:hover { color: var(--brand); }
.section-head-center { flex-direction: column; align-items: center; border: 0; text-align: center; }
.section-sub { color: var(--muted); margin: 6px 0 0; max-width: 60ch; }

/* Grids & layout --------------------------------------------------------- */
.grid { display: grid; gap: clamp(18px, 2vw, 30px); }
.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-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.block { margin-block: clamp(32px, 4vw, 56px); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: clamp(28px, 3vw, 56px); align-items: start; padding-block: 8px clamp(32px, 4vw, 56px); }
.layout-main { min-width: 0; }
.layout-main > .block:first-child { margin-top: clamp(24px, 3vw, 40px); }
.layout-side { min-width: 0; padding-top: clamp(24px, 3vw, 40px); }

/* Hero ------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; padding-block: 24px 8px; }
.hero-grid {
	display: grid; gap: 10px;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: repeat(2, clamp(220px, 17vw, 330px));
}
.hero-main { grid-row: 1 / 3; }
.hero-wide { grid-column: 2 / 4; }
.hero-main .title { font-size: clamp(24px, 2.4vw, 40px); line-height: 1.15; }
.hero-wide .title { font-size: clamp(18px, 1.5vw, 24px); }
.hero-small .title { font-size: 16px; }
.hero-small .excerpt, .hero-small .meta-author { display: none; }

.hero-latest { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; max-height: calc(2 * clamp(220px, 17vw, 330px) + 10px); overflow: hidden; }
.mini-head { display: flex; align-items: center; gap: 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 var(--brand); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 60%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-latest ol { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.hero-latest li { padding: 11px 0; border-bottom: 1px dashed var(--line); }
.hero-latest li:last-child { border: 0; }
.hero-latest time { display: block; font-size: 11px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.hero-latest a { font-weight: 700; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.home-ad { text-align: center; padding-block: 16px; }

/* Tabs block */
.tab-list { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; padding-bottom: 6px; }
.tab-list button {
	border: 0; background: transparent; padding: 6px 12px; border-radius: 999px;
	font-size: 13px; font-weight: 700; color: var(--muted);
}
.tab-list button:hover { color: var(--ink); }
.tab-list button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tab-panel { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.split-lead .title { font-size: clamp(20px, 1.7vw, 26px); }
.split-list .post-list:first-child { padding-top: 0; }

/* Spotlight (dark band) */
.spotlight { background: var(--dark); color: #fff; padding-block: clamp(40px, 5vw, 72px); margin-top: 16px; }
.spotlight .section-head { border-color: rgba(255, 255, 255, .25); }
.spotlight .view-all { color: rgba(255, 255, 255, .75); }
.spotlight-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: clamp(18px, 2vw, 28px); }
.spot-main { grid-row: 1 / 3; min-height: 480px; }
.spot-main .title { font-size: clamp(22px, 2vw, 32px); }
.spotlight .post-card .title { font-size: 17px; }
.spotlight .post-card .meta { color: rgba(255, 255, 255, .6); }
.spotlight .thumb { background: var(--dark-2); }

/* Explore grid */
.explore .post-card .title { font-size: 17px; }

/* Publications ----------------------------------------------------------- */
.pubs-band { background: var(--bg-soft); padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.pubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.pub {
	display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
	border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pub:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.pub-img { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.pub-img img { width: 100%; height: 100%; object-fit: contain; }
.pub-flagship .pub-img { background: var(--brand-soft); }
.pub-flagship .pub-img img { width: 55%; height: auto; object-fit: contain; }
.pub-text { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.pub-text strong { font-size: 17px; }
.pub-text em { font-style: normal; color: var(--muted); font-size: 14px; }
.pub-cta { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; font-size: 13.5px; }
.pub-cta .icon { width: 16px; height: 16px; transition: transform .2s; }
.pub:hover .pub-cta .icon { transform: translateX(4px); }
.pubs-compact { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

/* Widgets (incl. those carried over from the old theme) ------------------ */
.widget { margin-bottom: 34px; }
.widget:last-child { margin-bottom: 0; }
.widget-title { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; border-bottom: 2px solid var(--ink); }
.widget-title span {
	display: inline-block; background: var(--ink); color: #fff; padding: 8px 18px 7px 14px;
	clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
}
.widget-title:empty, .widget-title span:empty { display: none; }
.widget img { border-radius: 6px; margin-inline: auto; float: none !important; width: auto; }
.widget a img { transition: transform .3s, box-shadow .3s; }
.widget a:hover img { transform: translateY(-2px); box-shadow: var(--shadow); }
.widget p { margin: 0 0 10px; }
.widget p:last-child { margin: 0; }
.widget iframe { width: 100% !important; border: 0; border-radius: 6px; }
.widget iframe[src*="youtube"], .widget iframe[src*="vimeo"] { aspect-ratio: 16 / 9; height: auto !important; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget_search .search-form { max-width: none; }
.textwidget { text-align: center; }
.textwidget > *:first-child { margin-top: 0; }

/* Archive ---------------------------------------------------------------- */
.archive-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding-block: clamp(24px, 3vw, 44px); }
.archive-title { font-size: clamp(28px, 3.2vw, 48px); margin: 6px 0 8px; letter-spacing: -.02em; }
.archive-title::after { content: ""; display: block; width: 64px; height: 4px; background: var(--brand); margin-top: 14px; border-radius: 2px; }
.archive-desc { color: var(--ink-2); max-width: 80ch; }
.archive-search { margin-top: 18px; }
.archive-search .search-form { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips a { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.chips a:hover { border-color: var(--brand); color: var(--brand); }
.archive-lead { height: clamp(320px, 34vw, 520px); margin-top: clamp(24px, 3vw, 40px); margin-bottom: clamp(24px, 3vw, 40px); }
.archive-lead .title { font-size: clamp(24px, 2.4vw, 38px); }
.layout-main > .archive-grid:first-child { margin-top: clamp(24px, 3vw, 40px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--ink-2); font-weight: 600; }
.crumbs a:hover { color: var(--brand); }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers {
	min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center;
	border-radius: 999px; border: 1px solid var(--line); font-weight: 700; font-size: 14px;
}
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.pagination .icon { width: 18px; height: 18px; }
.empty-state { text-align: center; padding: 60px 0; }

/* Article ---------------------------------------------------------------- */
.article-head { padding-block: clamp(24px, 3.5vw, 48px) clamp(20px, 2.5vw, 32px); background: linear-gradient(180deg, var(--bg-soft), #fff); }
.article-head-inner, .article-figure, .article-layout { max-width: calc(56px + 820px + 380px + 2 * 56px + 2 * var(--gutter)); }
.article-head-inner { padding-left: calc(var(--gutter) + 56px + 56px); }
.article-title { font-size: clamp(28px, 3.6vw, 52px); line-height: 1.12; letter-spacing: -.025em; margin: 14px 0 14px; max-width: 26ch; }
.article-standfirst { font-family: var(--serif); font-size: clamp(17px, 1.4vw, 21px); line-height: 1.6; color: var(--ink-2); max-width: 62ch; margin-bottom: 22px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; }
.byline { display: flex; align-items: center; gap: 12px; }
.byline-avatar { border-radius: 50%; }
.byline-name { display: block; font-weight: 700; font-size: 15px; }
.byline-name a { color: var(--brand); }
.byline-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.byline-sub .icon { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.dot { opacity: .6; }

.share { display: flex; gap: 8px; }
.share a, .share button {
	width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
	border: 1px solid var(--line); background: #fff; color: var(--ink-2); transition: .2s;
}
.share .icon { width: 17px; height: 17px; }
.share a:hover, .share button:hover { color: #fff; border-color: transparent; }
.share-facebook:hover { background: #1877f2; }
.share-twitter:hover { background: #000; }
.share-linkedin:hover { background: #0a66c2; }
.share-whatsapp:hover { background: #25d366; }
.share-mail:hover, .share-copy:hover { background: var(--brand); }
.share-copy.is-copied { background: #16a34a; color: #fff; border-color: transparent; }

.article-figure { margin: 0 auto; }
.article-figure img { width: 100%; max-height: 720px; object-fit: cover; border-radius: var(--radius); }
.article-figure figcaption { font-size: 13px; color: var(--muted); padding-top: 10px; }

.article-layout { display: grid; grid-template-columns: 56px minmax(0, 820px) minmax(280px, 380px); gap: 56px; justify-content: space-between; padding-block: clamp(28px, 3vw, 44px) clamp(40px, 5vw, 72px); }
.share-rail { flex-direction: column; position: sticky; top: 90px; align-self: start; align-items: center; }
.share-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.article-main { min-width: 0; }
.article-layout .layout-side { padding-top: 0; }

/* Content typography */
.entry-content { font-family: var(--serif); font-size: clamp(16.5px, 1.1vw, 18.5px); line-height: 1.85; color: #1f2329; overflow-wrap: break-word; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.35em; }
.article .entry-content > p:first-of-type::first-letter {
	float: left; font-family: var(--font); font-weight: 800; font-size: 4.1em; line-height: .82;
	padding: .08em .12em 0 0; color: var(--brand);
}
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--font); margin: 1.8em 0 .6em; }
.entry-content h2 { font-size: 1.6em; }
.entry-content h3 { font-size: 1.3em; }
.entry-content a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--brand-dark); }
.entry-content strong, .entry-content b { color: var(--ink); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--brand); }
.entry-content blockquote {
	margin: 2em 0; padding: 26px 28px 22px 64px; background: var(--bg-soft); border-radius: var(--radius);
	position: relative; font-size: 1.12em; font-style: italic; border-left: 4px solid var(--brand);
}
.entry-content blockquote::before {
	content: "\201C"; position: absolute; left: 18px; top: 4px; font-size: 70px; line-height: 1;
	color: var(--brand); font-family: Georgia, serif; font-style: normal;
}
.entry-content blockquote p:last-child { margin: 0; }
.entry-content img { border-radius: 6px; }
.entry-content figure, .entry-content .wp-caption { max-width: 100% !important; margin: 1.8em 0; }
.entry-content figcaption, .entry-content .wp-caption-text { font-family: var(--font); font-size: 13px; color: var(--muted); padding-top: 8px; text-align: center; }
.entry-content .alignleft { float: left; margin: .4em 1.6em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .4em 0 1em 1.6em; max-width: 50%; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content iframe { width: 100%; border: 0; border-radius: var(--radius); }
.entry-content iframe[src*="youtube"], .entry-content iframe[src*="vimeo"] { aspect-ratio: 16 / 9; height: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--font); font-size: 15px; display: block; overflow-x: auto; margin-bottom: 1.6em; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--bg-soft); }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content div[style*="width"] { max-width: 100% !important; }

.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 32px 0; padding-top: 24px; border-top: 1px solid var(--line); }
.article-tags span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 6px; }
.article-tags a { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--bg-soft); font-weight: 600; }
.article-tags a:hover { background: var(--brand); color: #fff; }
.article-after { margin: 28px 0; }

.article-cta {
	display: grid; grid-template-columns: 1fr minmax(280px, 1.1fr); gap: 24px; align-items: center;
	margin: 36px 0; padding: 28px; border-radius: var(--radius); color: #fff;
	background: radial-gradient(circle at 100% 0, rgba(255, 255, 255, .14), transparent 45%), linear-gradient(135deg, var(--brand), var(--brand-dark));
}
.article-cta h2 { font-size: 22px; margin: 4px 0 6px; color: #fff; }
.article-cta p { margin: 0; opacity: .9; font-size: 14.5px; }
.eyebrow { display: inline-block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; opacity: .85; }

.author-box { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); margin: 32px 0; }
.author-box img { border-radius: 50%; flex: none; }
.author-box .eyebrow { color: var(--muted); opacity: 1; }
.author-name { font-size: 19px; margin: 2px 0 6px; }
.author-box p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.post-nav a { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--radius); background: var(--bg-soft); transition: .2s; }
.post-nav a:hover { background: var(--brand-soft); color: var(--ink); }
.post-nav span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.post-nav strong { font-size: 15.5px; line-height: 1.35; }
.post-nav-next { text-align: right; grid-column: 2; }

.related { background: var(--bg-soft); padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.related .post-card .title { font-size: 17px; }

.page-figure { margin: clamp(24px, 3vw, 40px) 0 28px; }
.page-figure img { border-radius: var(--radius); width: 100%; }
.layout-main > .entry-content:first-child { margin-top: clamp(24px, 3vw, 40px); }

/* Comments */
.comments { margin-top: 40px; font-size: 15px; }
.comments-title { font-size: 20px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-author img { border-radius: 50%; float: left; margin-right: 12px; }
.comment-meta { font-size: 13px; color: var(--muted); }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 6px; font: inherit;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--brand); outline: none; }
.comment-form .submit { background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: 12px 24px; font-weight: 700; }

/* 404 */
.error-404 { text-align: center; padding-block: 64px 24px; max-width: 720px; }
.big-404 { font-size: clamp(90px, 14vw, 180px); font-weight: 800; line-height: 1; color: var(--brand); margin: 0; letter-spacing: -.05em; }
.error-404 .search-form { margin: 24px auto; }

/* Newsletter band -------------------------------------------------------- */
.newsletter-band {
	color: #fff; padding-block: clamp(40px, 5vw, 64px);
	background:
		radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .12), transparent 40%),
		repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 14px),
		linear-gradient(120deg, var(--brand-dark), var(--brand));
}
.newsletter-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.nl-copy h2 { font-size: clamp(24px, 2.4vw, 36px); color: #fff; margin: 8px 0 10px; max-width: 22ch; }
.nl-copy p { margin: 0; opacity: .9; max-width: 56ch; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--dark); color: #a7abb3; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: clamp(28px, 4vw, 64px); padding-block: clamp(44px, 5vw, 72px); }
.footer-logo img { width: 72px; height: 72px; background: #fff; border-radius: 12px; padding: 6px; object-fit: contain; margin-bottom: 18px; }
.footer-about p { line-height: 1.7; max-width: 46ch; }
.social-footer { margin-top: 16px; }
.social-footer a { background: var(--dark-2); color: #fff; width: 38px; height: 38px; }
.social-footer a:hover { background: var(--brand); color: #fff; }
.footer-title { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; position: relative; padding-bottom: 12px; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; background: var(--brand); border-radius: 2px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { transition: color .2s, padding .2s; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-pub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-pub-list a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: var(--radius); background: var(--dark-2); transition: background .2s; }
.footer-pub-list a:hover { background: #22262d; color: inherit; }
.footer-pub-list img { width: 56px; height: 42px; object-fit: cover; border-radius: 4px; flex: none; background: #fff; }
.footer-pub-list strong { display: block; color: #fff; font-size: 14px; }
.footer-pub-list em { font-style: normal; font-size: 12.5px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 18px; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a:hover { color: #fff; }

.to-top {
	position: fixed; right: 24px; bottom: 96px; z-index: 900; width: 44px; height: 44px; border-radius: 50%;
	border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
	transition: background .2s;
}
.to-top[hidden] { display: none; }
.to-top .icon { transform: rotate(-90deg); }
.to-top:hover { background: var(--brand); }

/* Responsive ------------------------------------------------------------- */
@media (min-width: 1700px) {
	:root { --side: 380px; }
	.grid-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.hero { grid-template-columns: minmax(0, 1fr) 380px; }
}
@media (max-width: 1279px) {
	.hero { grid-template-columns: 1fr; }
	.hero-latest { display: none; }
	.tagline { display: none; }
	.article-layout { grid-template-columns: 56px minmax(0, 1fr) 300px; gap: 36px; }
	.article-head-inner { padding-left: calc(var(--gutter) + 92px); }
	.spotlight-grid { grid-template-columns: 1.3fr 1fr; }
	.spot-main { grid-row: 1 / 3; }
	.spot-item:nth-child(n+4) { display: none; }
}
@media (max-width: 1180px) {
	.main-nav { display: none; }
	.nav-toggle { display: inline-grid; }
	.nav-mini-logo { display: block; }
}
@media (max-width: 1100px) {
	.layout { grid-template-columns: 1fr; }
	.layout-side { padding-top: 0; }
	.side-inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; align-items: start; }
	.side-inner .widget { margin: 0; }
	.article-layout { grid-template-columns: minmax(0, 1fr); }
	.share-rail { display: none; }
	.article-head-inner { padding-left: var(--gutter); }
	.article-layout > * { max-width: 820px; width: 100%; margin-inline: auto; }
	.article-layout .layout-side { max-width: none; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.header-main { flex-direction: column; align-items: flex-start; gap: 14px; padding-block: 12px; }
	.brand .custom-logo { height: 60px; }
	.header-banner { width: 100%; justify-content: center; }
	.header-banner img { object-position: center; }
	.top-nav { display: none; }
	.hero-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 360px 220px 220px; }
	.hero-main { grid-row: auto; grid-column: 1 / 3; }
	.hero-wide { grid-column: 1 / 3; }
	.hero-small:last-child { display: none; }
	.hero-small:nth-last-child(2) { grid-column: auto; }
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.split { grid-template-columns: 1fr; }
	.spotlight-grid { grid-template-columns: 1fr 1fr; }
	.spot-main { grid-column: 1 / 3; grid-row: auto; min-height: 380px; }
	.newsletter-inner { grid-template-columns: 1fr; }
	.article-cta { grid-template-columns: 1fr; }
	.tab-list { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 10px; }
	.tab-list button { white-space: nowrap; }
}
@media (max-width: 600px) {
	.topbar-cta span, .today { display: none; }
	.topbar-inner { justify-content: flex-end; }
	.topbar-cta { font-size: 0; gap: 0; padding: 0 12px; }
	.topbar-cta::after { content: "Subscribe"; font-size: 12.5px; margin-left: 6px; }
	.hero-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 260px; }
	.hero-main, .hero-wide { grid-column: auto; }
	.hero-main { height: 380px; }
	.hero-small { display: none; }
	.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
	.spotlight-grid { grid-template-columns: 1fr; }
	.spot-main { grid-column: auto; }
	.footer-grid { grid-template-columns: 1fr; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav-next { grid-column: auto; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 1em auto; max-width: 100%; }
	.article-meta { flex-direction: column; align-items: flex-start; }
	.to-top { right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.topbar, .navbar, .ticker, .share, .layout-side, .newsletter-band, .site-footer, .related, .article-cta, .to-top, .read-progress { display: none !important; }
}
