/*
Theme Name: Visionary
Theme URI: https://visionaryafrica.online/
Author: Visionary
Description: A premium, mobile-first news and magazine theme for stories about African founders and innovators.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: visionary
*/

/* ---------- Tokens ---------- */
:root {
	--navy: #0a1b33;
	--navy-2: #102a4c;
	--navy-3: #1b3a66;
	--gold: #c9a24b;
	--gold-d: #8a6514;
	--ink: #0e1726;
	--muted: #5a6579;
	--line: #e2e6ed;
	--mist: #f4f6fa;
	--white: #fff;
	--serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--text: 'Source Serif 4', Georgia, serif;
	--sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--max: 1240px;
	--gut: 16px;
	--r: 4px;
	--topbar: 38px;
}
@media (min-width: 768px) { :root { --gut: 28px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.is-locked { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-d); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; margin: 0; font-weight: 800; letter-spacing: -.01em; color: var(--navy); }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 10px 14px; z-index: 999; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.wrap--narrow { max-width: 760px; }
.hide-sm { display: none; }
@media (min-width: 560px) { .hide-sm { display: inline-flex; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: 700 14px/1 var(--sans); letter-spacing: .02em; padding: 14px 22px; border-radius: var(--r); transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #d9b45c; color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-3); color: #fff; }
.btn--sm { padding: 11px 16px; font-size: 13px; }
.btn--lg { padding: 18px 30px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--navy); color: #fff; transition: box-shadow .2s; }
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(5, 14, 28, .35); }
.topbar { display: none; background: #07142a; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 12px; color: #b8c3d6; height: var(--topbar); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }
.topbar__tag { display: none; font-style: italic; letter-spacing: .01em; }
.topbar__link { color: var(--gold); font-weight: 600; }
.topbar__link:hover { color: #fff; }
@media (min-width: 768px) {
	.site-header { top: calc(var(--topbar) * -1); }
	.topbar { display: block; }
}
@media (min-width: 1100px) { .topbar__tag { display: block; } }

.mainbar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: block; color: #fff; flex: 0 1 auto; line-height: 0; }
.brand .va-logo { height: 40px; width: auto; max-width: 62vw; overflow: visible; }
.lg-serif { font-family: var(--serif); }
.lg-sans { font-family: var(--sans); }
.lg-cond { font-family: 'Oswald', var(--sans); }
.lg-lux { font-family: 'Cormorant Garamond', var(--serif); }
.lg-goldf { fill: var(--gold); }
.lg-goldS { stroke: var(--gold); fill: none; }
.mainbar__tools { display: flex; align-items: center; gap: 4px; }
.iconbtn { background: none; border: 0; color: #fff; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.iconbtn:hover { background: rgba(255, 255, 255, .1); }
.burger { flex-direction: column; gap: 5px; display: flex; align-items: center; justify-content: center; margin-left: -10px; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mainbar__in .brand { margin-right: auto; }
.nav { display: none; }

.searchbar { background: var(--navy-2); padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.searchform { display: flex; gap: 0; width: 100%; }
.searchform input { flex: 1; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-right: 0; border-radius: var(--r) 0 0 var(--r); background: #fff; color: var(--ink); font-size: 16px; }
.searchform button { padding: 0 20px; background: var(--gold); color: var(--navy); border: 0; font-weight: 700; border-radius: 0 var(--r) var(--r) 0; cursor: pointer; }

/* Drawer (mobile / tablet) */
.drawer { position: fixed; inset: 0; z-index: 55; background: var(--navy); color: #fff; padding-top: 64px; overflow-y: auto; animation: va-fade .2s ease; }
.drawer[hidden] { display: none; }
@keyframes va-fade { from { opacity: 0; transform: translateY(-8px); } }
.drawer__in { padding: 24px var(--gut) 48px; display: grid; gap: 22px; max-width: 560px; margin: 0 auto; }
.drawer .searchform input { border-color: transparent; }
.drawer__menu a, .drawer .menu a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font: 700 22px/1.2 var(--serif); color: #fff; }
.drawer__menu .sub-menu a { font: 500 16px var(--sans); color: #b8c3d6; padding: 10px 0 10px 14px; }
.drawer .menu li, .drawer__menu li { list-style: none; }
.drawer__tag { color: #8fa0bb; font-size: 14px; font-style: italic; margin: 0; }
.drawer .menu, .drawer__menu { margin: 0; padding: 0; }

@media (min-width: 1024px) and (max-width: 1279px) { .nav .menu > li > a { padding-left: 9px !important; padding-right: 9px !important; font-size: 13px !important; } .nav { margin-left: 14px !important; } }
@media (min-width: 1024px) {
	.burger, .drawer { display: none !important; }
	.mainbar__in { height: 72px; }
	.brand .va-logo { height: 46px; }
	.nav { display: block; margin: 0 auto 0 28px; }
	.nav .menu { display: flex; gap: 2px; }
	.nav .menu > li { position: relative; }
	.nav .menu > li > a { display: block; padding: 26px 13px; font: 600 14px/1 var(--sans); letter-spacing: .01em; color: #e7ecf5; white-space: nowrap; }
	.nav .menu > li > a:hover, .nav .current-menu-item > a, .nav .current-cat > a { color: var(--gold); box-shadow: inset 0 -3px 0 var(--gold); }
	.nav .menu-item-has-children > a::after, .nav .page_item_has_children > a::after { content: ''; display: inline-block; margin-left: 7px; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
	.nav .sub-menu { position: absolute; left: 0; top: 100%; min-width: 210px; background: #fff; border-top: 3px solid var(--gold); box-shadow: 0 18px 40px rgba(5, 14, 28, .28); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; padding: 8px 0; }
	.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.nav .sub-menu a { display: block; padding: 11px 20px; color: var(--navy); font: 600 14px var(--sans); }
	.nav .sub-menu a:hover { background: var(--mist); color: var(--gold-d); }
	.mainbar__tools { gap: 10px; }
}

/* ---------- Floating cards + tiles ---------- */
:root { --rad: 18px; --shadow: 0 1px 2px rgba(10, 27, 51, .05), 0 14px 34px -14px rgba(10, 27, 51, .28); --shadow-up: 0 2px 4px rgba(10, 27, 51, .06), 0 30px 54px -18px rgba(10, 27, 51, .42); --ease: cubic-bezier(.2, .7, .2, 1); }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--rad); border: 1px solid rgba(10, 27, 51, .06); box-shadow: var(--shadow); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-up); }
.card__media { display: block; position: relative; overflow: hidden; background: var(--mist); aspect-ratio: 3 / 2; }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .9s var(--ease); }
.card__media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .14), transparent 38%); }
.card:hover .card__media img, .card:hover .card__media .ph { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 700 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.kicker { color: var(--gold-d); }
.kicker:hover { color: var(--navy); }
.region { color: var(--muted); font-weight: 600; letter-spacing: .1em; padding-left: 10px; border-left: 1px solid var(--line); }
.flag { background: var(--navy); color: var(--gold); padding: 5px 8px; border-radius: 2px; letter-spacing: .14em; }
.card__title { font-size: 21px; line-height: 1.2; }
.card__title a:hover { color: var(--gold-d); }
.card__dek { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }
.card__foot { display: flex; gap: 8px; font-size: 12px; color: var(--muted); align-items: center; margin-top: auto; padding-top: 4px; }

/* Editorial "cover" for stories without a photo */
.ph { width: 100%; height: 100%; display: grid; place-items: center; background: #0b1f3a; position: relative; overflow: hidden; transition: transform .9s var(--ease); }
.ph::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 34px 34px; }
.ph::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 16px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); opacity: .8; }
.ph span { position: relative; z-index: 1; font: italic 900 clamp(70px, 17vw, 150px)/1 var(--serif); color: transparent; -webkit-text-stroke: 1.5px var(--gold); letter-spacing: -.03em; opacity: .95; }
.ph--impact { background: #0a2733; }
.ph--innovation { background: #141a36; }
.ph--funding { background: #1c180b; }
.ph--climate { background: #0b261d; }
.ph--inspiration { background: #2a1414; }
.ph--legacy { background: #1d1708; }
.ph--markets { background: #0d2230; }
.ph--startups { background: #0c1f3d; }
.ph--hustle { background: #231508; }
.ph--lessons { background: #1b1b1f; }

.tile { position: relative; display: block; border-radius: var(--rad); overflow: hidden; background: var(--navy); box-shadow: var(--shadow); isolation: isolate; transition: transform .4s var(--ease), box-shadow .4s var(--ease); min-height: 280px; }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-up); }
.tile__bg { position: absolute; inset: 0; z-index: -2; }
.tile__bg img, .tile__bg .ph { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 1s var(--ease); }
.tile:hover .tile__bg img, .tile:hover .tile__bg .ph { transform: scale(1.06); }
.tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(6, 16, 34, .95) 0%, rgba(6, 16, 34, .6) 36%, rgba(6, 16, 34, 0) 66%); }
.tile::before { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); pointer-events: none; }
.tile__num { position: absolute; top: 14px; right: 14px; z-index: 2; font: italic 800 17px/1 var(--serif); color: #fff; padding: 8px 11px; border-radius: 999px; background: rgba(6, 16, 34, .5); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tile__in { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; display: flex; flex-direction: column; gap: 10px; color: #fff; }
.tile__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.chipk { display: inline-flex; font: 700 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .26); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.chipk:first-child:not(.chipk--ghost) { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.tile__title { font: 800 19px/1.16 var(--serif); letter-spacing: -.005em; color: #fff; }
.tile__link { color: #fff; }
.tile__link::after { content: ''; position: absolute; inset: 0; z-index: 3; }
.tile__link:hover { color: #fff; }
.tile__dek { display: none; margin: 0; font: 400 17px/1.5 var(--text); color: rgba(255, 255, 255, .82); max-width: 560px; }
.tile__foot { display: flex; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.tile--lg .tile__in { padding: 24px; gap: 12px; }
.tile--lg .tile__title { font-size: clamp(28px, 7.6vw, 50px); line-height: 1.05; letter-spacing: -.02em; font-weight: 900; }
.tile--lg { aspect-ratio: 4 / 5; }
.tile--sm { aspect-ratio: 4 / 5; }
.tile--sm::after { background: linear-gradient(to top, rgba(6, 16, 34, .97) 0%, rgba(6, 16, 34, .82) 42%, rgba(6, 16, 34, .15) 78%, rgba(6, 16, 34, 0) 100%); }

/* ---------- Cover slider ---------- */
.slider { position: relative; min-width: 0; }
.slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--rad); outline-offset: 4px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; min-width: 0; }
.slider__slide .tile { height: 100%; }
.slider .tile:hover { transform: none; }
.slider__ui { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; z-index: 4; pointer-events: none; }
.slider__dots, .slider__arrows { display: flex; gap: 6px; pointer-events: auto; }
.slider__dot { border: 1px solid rgba(255, 255, 255, .28); background: rgba(6, 16, 34, .45); color: rgba(255, 255, 255, .8); font: 700 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 9px 12px; border-radius: 999px; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s, color .2s; }
.slider__dot[aria-selected='true'] { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.slider__arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); background: rgba(6, 16, 34, .45); color: #fff; display: grid; place-items: center; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s; }
.slider__arrow:hover { background: var(--gold); color: var(--navy); }
@media (max-width: 520px) { .slider__dot span { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; } .slider__dot { padding: 8px 10px; } }
@media (min-width: 960px) { .slider, .slider__track, .slider__slide { height: 100%; } }

/* Row card (legacy) */
.card--row { flex-direction: row; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); box-shadow: none; border-radius: 0; }

/* ---------- Hero (tile mosaic) ---------- */
.hero { display: grid; gap: 14px; padding-top: 20px; padding-bottom: 6px; }
.hero__more { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gut) * -1); padding: 6px var(--gut) 22px; scrollbar-width: none; }
.hero__more::-webkit-scrollbar { display: none; }
.hero__more .tile { flex: 0 0 72%; scroll-snap-align: start; }
@media (min-width: 700px) { .hero__more .tile { flex-basis: 40%; } .tile--lg { aspect-ratio: 16 / 11; } .tile__dek { display: block; } }
@media (min-width: 960px) {
	.hero { grid-template-columns: 1.45fr 1fr; gap: 20px; padding-top: 30px; }
	.tile--lg { aspect-ratio: auto; min-height: 560px; }
	.hero__more { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 20px; overflow: visible; margin: 0; padding: 0; }
	.hero__more .tile { flex: none; aspect-ratio: auto; min-height: 270px; }
	.tile__title { font-size: 20px; }
}

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 22px; padding-bottom: 6px; }
.chips__label { font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); width: 100%; margin-bottom: 4px; }
.chip { display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font: 600 13px/1 var(--sans); background: #fff; }
.chip b { font-weight: 700; color: var(--gold-d); }
.chip:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
@media (min-width: 640px) { .chips__label { width: auto; margin: 0 8px 0 0; } }

/* ---------- Sections + grids ---------- */
.section { padding-top: 56px; padding-bottom: 8px; }
.section--flush { padding-top: 8px; padding-bottom: 56px; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 28px; position: relative; }
.section__head::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 64px; height: 3px; background: var(--gold); }
.section__head h2 { font-size: clamp(26px, 5vw, 36px); letter-spacing: -.02em; }
.more { font: 700 12px/1 var(--sans); color: var(--navy); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; padding-bottom: 6px; }
.more:hover { color: var(--gold-d); }
.grid { display: grid; gap: 26px; padding: 4px 0 18px; }
@media (min-width: 600px) { .grid--3, .grid--4, .grid--mag { grid-template-columns: repeat(2, 1fr); } .grid--mag .card:first-child { grid-column: 1 / -1; } }
@media (min-width: 980px) {
	.grid { gap: 30px; }
	.grid--3 { grid-template-columns: repeat(3, 1fr); }
	.grid--4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
	.grid--4 .card__title { font-size: 18px; }
	.grid--4 .card__body { padding: 16px 18px 18px; }
	.grid--mag { grid-template-columns: repeat(3, 1fr); }
	.grid--mag .card:first-child { grid-column: span 2; flex-direction: row; }
	.grid--mag .card:first-child .card__media { flex: 1.3; aspect-ratio: auto; min-height: 360px; }
	.grid--mag .card:first-child .card__body { flex: 1; justify-content: center; padding: 36px; gap: 14px; }
	.grid--mag .card:first-child .card__title { font-size: 32px; line-height: 1.1; letter-spacing: -.015em; }
	.grid--mag .card:first-child .card__dek { font: 400 17px/1.55 var(--text); }
}

/* ---------- Bands ---------- */
.band { margin-top: 56px; background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.band::before { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 162, 75, .3), transparent 68%); }
.band__in { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 44px; padding-bottom: 44px; }
.band h2 { color: #fff; font-size: clamp(26px, 5.6vw, 40px); max-width: 640px; margin-bottom: 12px; }
.band p { color: #c0cbdd; max-width: 560px; margin: 0; font-size: 17px; }
.band .eyebrow { color: var(--gold); margin-bottom: 12px; }
.band--slim { margin-top: 24px; }
.band--slim .band__in { padding-top: 32px; padding-bottom: 32px; }
.band--slim h2 { font-size: clamp(22px, 4.4vw, 30px); margin: 0; }
@media (min-width: 800px) { .band__in { flex-direction: row; align-items: center; justify-content: space-between; } }
.eyebrow { font: 800 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-d); margin: 0 0 14px; }

/* ---------- Mission ---------- */
.mission { text-align: center; padding-top: 64px; padding-bottom: 8px; max-width: 880px; }
.mission__text { font: 800 clamp(26px, 5.4vw, 44px)/1.15 var(--serif); color: var(--navy); letter-spacing: -.01em; margin: 0 0 16px; }
.mission__sub { font: 400 18px/1.55 var(--text); color: var(--muted); margin: 0 auto; max-width: 620px; }
.prose .lede { font-size: 1.12em; }

.band::after, .site-footer::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
.site-footer { position: relative; }
.band .wrap { position: relative; z-index: 1; }

/* ---------- Page head ---------- */
.pagehead { padding-top: 40px; padding-bottom: 30px; }
.pagehead h1 { font-size: clamp(34px, 7vw, 58px); font-weight: 900; letter-spacing: -.02em; }
.pagehead__dek { font: 400 20px/1.5 var(--text); color: #3c475a; margin: 16px 0 0; max-width: 640px; }
.empty { text-align: center; padding: 40px 0 70px; }
.empty .searchform { max-width: 460px; margin: 22px auto; }

/* ---------- Story ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 80; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; }
.story__head { padding-top: 34px; }
.story__title { font-size: clamp(32px, 7.4vw, 56px); line-height: 1.07; letter-spacing: -.02em; font-weight: 900; margin: 16px 0; }
.story__dek { font: 400 clamp(19px, 3vw, 22px)/1.5 var(--text); color: #3c475a; margin: 0 0 26px; }
.byline { display: flex; flex-direction: column; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline__who { display: flex; align-items: center; gap: 12px; }
.byline__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font: 800 20px var(--serif); flex: none; }
.byline__who strong { display: block; font-size: 14px; }
.byline__who span:not(.byline__avatar) { font-size: 13px; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share a, .share button { font: 600 12px/1 var(--sans); padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; }
.share a:hover, .share button:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (min-width: 640px) { .byline { flex-direction: row; align-items: center; justify-content: space-between; } }
.story__hero { margin: 28px auto 0; }
.story__hero img { width: 100%; max-height: 640px; object-fit: cover; object-position: center top; border-radius: var(--r); }
.story__hero figcaption { font-size: 12.5px; color: var(--muted); padding: 10px 2px 0; }
.story__hero figcaption a { text-decoration: underline; }
.story__body { padding-top: 32px; padding-bottom: 12px; }

.prose { font: 400 18.5px/1.75 var(--text); color: #1b2433; }
@media (min-width: 768px) { .prose { font-size: 20px; } }
.prose > p:first-of-type::first-letter { font: 900 4.1em/.82 var(--serif); float: left; padding: 8px 12px 0 0; color: var(--navy); }
.prose h2 { font-size: clamp(25px, 4.4vw, 32px); margin: 1.9em 0 .5em; }
.prose h3 { font-size: 22px; margin: 1.6em 0 .4em; }
.prose a { color: var(--navy-3); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--gold); font: italic 600 1.18em/1.5 var(--serif); color: var(--navy); }
.prose img { border-radius: var(--r); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose ul { list-style: disc; }
.prose li { margin-bottom: .4em; }
.tags { font: 600 13px var(--sans); color: var(--muted); margin: 26px 0 0; }
.tags a { color: var(--navy); text-decoration: underline; }

/* Plugin: disclosure + sources */
.va-disclosure { font: 400 14px/1.5 var(--sans); background: var(--mist); border-left: 4px solid var(--gold); padding: 14px 16px; margin: 36px 0 20px; color: #3c475a; border-radius: 0 var(--r) var(--r) 0; }
.va-disclosure strong { color: var(--navy); }
.va-sources { font: 400 14px/1.5 var(--sans); margin: 20px 0; }
.va-sources h2, .va-sources h3 { font: 800 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--navy); margin: 0 0 12px; }
.va-sources ol { padding-left: 1.2em; margin: 0; }
.va-sources li { margin-bottom: 6px; }
.va-sources a { color: var(--navy-3); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }

/* Forms (submission, subscribe) */
.va-form { display: grid; gap: 18px; margin: 28px 0; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 10px 30px rgba(10, 27, 51, .06); font-family: var(--sans); }
.va-form label { display: grid; gap: 7px; font: 700 13px/1.2 var(--sans); color: var(--navy); letter-spacing: .02em; }
.va-form label small { font-weight: 400; color: var(--muted); }
.va-form input[type=text], .va-form input[type=email], .va-form input[type=url], .va-form select, .va-form textarea { width: 100%; padding: 13px 14px; border: 1px solid #cfd6e2; border-radius: var(--r); background: #fff; font: 400 16px/1.4 var(--sans); }
.va-form textarea { min-height: 170px; resize: vertical; }
.va-form input:focus, .va-form textarea:focus, .va-form select:focus { border-color: var(--navy); outline: 3px solid rgba(201, 162, 75, .45); outline-offset: 0; }
.va-form .row { display: grid; gap: 18px; }
@media (min-width: 640px) { .va-form .row { grid-template-columns: 1fr 1fr; } .va-form { padding: 32px; } }
.va-form button[type=submit] { justify-self: start; }
.va-hp { position: absolute !important; left: -9999px !important; }
.va-notice { padding: 14px 16px; border-radius: var(--r); font: 600 15px/1.45 var(--sans); margin: 20px 0; }
.va-notice--ok { background: #e8f5ec; color: #14532d; border-left: 4px solid #22a455; }
.va-notice--err { background: #fdecec; color: #7a1b1b; border-left: 4px solid #d33; }
.va-pay { background: var(--navy); color: #fff; padding: 22px; border-radius: 8px; margin: 28px 0; font-family: var(--sans); }
.va-pay h3 { color: var(--gold); font: 800 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.va-pay p, .va-pay pre { margin: 0 0 8px; color: #dbe3f0; white-space: pre-wrap; font: 400 15px/1.6 var(--sans); }
.va-steps { counter-reset: s; display: grid; gap: 14px; margin: 24px 0; padding: 0; list-style: none; font-family: var(--sans); }
.va-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; font-size: 16px; }
.va-steps li::before { content: counter(s); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--navy); font: 800 17px var(--serif); }
.va-steps b { display: block; color: var(--navy); }
.prose .va-steps { padding: 0; list-style: none; }
.prose .va-steps li { margin: 0; }
.prose .va-form, .prose .va-pay { font-size: 16px; line-height: 1.5; }
.footer__news .va-form { padding: 0; border: 0; background: none; box-shadow: none; margin: 14px 0 0; gap: 10px; }
.footer__news .va-form .va-inline { display: flex; }
.footer__news .va-form input[type=email] { border-radius: var(--r) 0 0 var(--r); border: 0; }
.footer__news .va-form button { border-radius: 0 var(--r) var(--r) 0; justify-self: auto; padding: 0 18px; }

/* Pagination */
.pagination { margin: 54px 0 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers { padding: 11px 16px; border: 1px solid var(--line); border-radius: var(--r); font: 700 14px var(--sans); }
.page-numbers.current, .page-numbers:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Comments */
.comments { padding: 40px 0 70px; font-family: var(--sans); }
.comments h2 { font-size: 24px; margin-bottom: 20px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-respond input[type=text], .comment-respond input[type=email], .comment-respond input[type=url], .comment-respond textarea { width: 100%; padding: 12px; border: 1px solid #cfd6e2; border-radius: var(--r); }
.comment-respond .submit { background: var(--navy); color: #fff; border: 0; padding: 14px 22px; font-weight: 700; border-radius: var(--r); cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 70px; background: var(--navy); color: #c0cbdd; }
.footer__grid { display: grid; gap: 36px; padding-top: 54px; padding-bottom: 46px; }
.brand--footer .va-logo { height: 40px; }
.footer__brand p { margin: 16px 0 0; max-width: 320px; font-size: 15px; color: #9fb0c9; }
.footer__col h2 { font: 800 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer__col li { margin-bottom: 10px; }
.footer__col a { color: #dbe3f0; font-size: 15px; }
.footer__col a:hover { color: var(--gold); }
.footer__news p { font-size: 15px; margin: 0; color: #9fb0c9; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; font-size: 12.5px; color: #8fa0bb; }
.footer__legal .wrap { display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } .footer__legal .wrap { flex-direction: row; justify-content: space-between; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.4fr .8fr .8fr 1.3fr; gap: 48px; } }

/* WordPress core */
.alignleft { float: left; margin: 0 1.2em 1em 0; } .alignright { float: right; margin: 0 0 1em 1.2em; } .aligncenter { margin: 0 auto 1em; }
.wp-caption-text, figcaption { font: 400 13px/1.4 var(--sans); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .band, .share, .progress { display: none !important; } }

/* ---------- Push alerts + advertise link ---------- */
.topbar__links { display: inline-flex; gap: 22px; align-items: center; }
.topbar__link--quiet { color: #b8c3d6; font-weight: 500; }
.push-toggle[aria-pressed='true'] { color: var(--gold); }
.push-toggle[aria-pressed='true'] svg { fill: currentColor; }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.push-cta { margin-top: 14px; gap: 8px; }
.push-cta[aria-pressed='true'] { color: var(--gold); border-color: var(--gold); }
.push-cta[aria-pressed='true'] svg { fill: currentColor; }
.push-prompt { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 12px; background: var(--navy); color: #fff; border: 1px solid rgba(201, 162, 75, .5); border-radius: 14px; padding: 16px 18px; box-shadow: 0 24px 60px -12px rgba(5, 14, 28, .6); animation: va-fade .3s ease; font-family: var(--sans); }
.push-prompt[hidden] { display: none; }
.push-prompt p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.45; color: #dbe3f0; }
.push-prompt p strong { color: #fff; display: block; font: 800 17px/1.2 var(--serif); margin-bottom: 4px; }
.push-prompt__btns { display: flex; gap: 8px; }
@media (min-width: 640px) { .push-prompt { left: auto; right: 24px; bottom: 24px; max-width: 380px; } }
.push-toast { position: fixed; z-index: 95; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 999px; font: 600 14px var(--sans); box-shadow: 0 16px 40px -10px rgba(5, 14, 28, .55); transition: .3s; max-width: calc(100vw - 32px); text-align: center; }
.push-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
