/*
Theme Name: Vala
Theme URI: https://radiovala.net/
Author: AXE Media
Description: Temë e shpejtë, moderne dhe interaktive për Radio Vala 98.3 FM. Pa page-builder dhe pa jQuery: një skedar CSS, një skedar JS. Player live ngjitës që hap dritaren popup, dok navigimi për celular, modalitet i errët, kërkim i menjëhershëm, ruajtje artikujsh dhe ngarkim i pafund.
Version: 1.1.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: vala
Tags: news, blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	--brand: #003998;
	--live: #ff4d5e;
	--navy: #040a1c;
	--font-ui: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
	--font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
	--radius: 18px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 60px;
	--dock-h: 64px;
	--ease: cubic-bezier(.2, .8, .2, 1);

	color-scheme: light;
	--bg: #f3f6fc;
	--surface: #fff;
	--surface-2: #e9eff9;
	--ink: #06173f;
	--muted: #56658f;
	--line: #dde5f2;
	--accent: #003998;
	--accent-ink: #fff;
	--chip-bg: rgba(0, 57, 152, .08);
	--chip-ink: #003998;
	--glass: rgba(255, 255, 255, .84);
	--shadow: 0 1px 2px rgba(6, 23, 63, .04), 0 8px 24px rgba(6, 23, 63, .06);
	--shadow-lg: 0 24px 56px rgba(6, 23, 63, .16);
}

html[data-theme="dark"],
.section--dark {
	color-scheme: dark;
	--bg: #040a1c;
	--surface: #0b1530;
	--surface-2: #122045;
	--ink: #eef3ff;
	--muted: #8d9ac1;
	--line: rgba(255, 255, 255, .1);
	--accent: #5b93ff;
	--accent-ink: #04102e;
	--chip-bg: rgba(91, 147, 255, .14);
	--chip-ink: #a9c6ff;
	--glass: rgba(6, 13, 34, .82);
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
	--shadow-lg: 0 24px 56px rgba(0, 0, 0, .55);
}

.system-fonts {
	--font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
	--font-display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
	background: var(--bg);
	color: var(--ink);
	font: 400 1rem/1.6 var(--font-ui);
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	overflow-x: clip;
}

/* A sheet or the search is open: the page behind it does not scroll. */
html.has-dialog {
	overflow: hidden;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

svg {
	flex: none;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

h1,
h2,
h3,
h4 {
	text-wrap: balance;
}

[hidden] {
	display: none !important;
}

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
	border-radius: 6px;
}

.sr-only,
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-ink);
	font-weight: 700;
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

.wrap {
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.wrap--text {
	max-width: 860px;
}

/* Header extras that move into the dock on phones and tablets. */
@media (max-width: 1023px) {
	.only-desktop {
		display: none !important;
	}
}

.stack {
	display: grid;
	gap: 14px;
}

.stack--lg {
	gap: 18px;
}

/* ==========================================================================
   3. Small parts: buttons, chips, live dot, equaliser
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 46px;
	padding: 0 22px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-ink);
	font: 700 .95rem/1 var(--font-ui);
	white-space: nowrap;
	cursor: pointer;
	transition: transform .2s var(--ease), box-shadow .2s, opacity .2s;
}

.btn:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow);
}

.btn:active {
	transform: scale(.97);
}

.btn--ghost {
	border-color: var(--line);
	background: var(--surface);
	color: var(--ink);
}

.btn--light {
	background: #fff;
	color: #003998;
}

.btn--sm {
	height: 36px;
	padding: 0 14px;
	font-size: .85rem;
}

.btn.is-loading {
	opacity: .6;
	pointer-events: none;
}

.icon-btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--ink);
	transition: background .2s, transform .2s var(--ease);
}

.icon-btn:hover {
	background: var(--chip-bg);
}

.icon-btn:active {
	transform: scale(.9);
}

.icon-btn:disabled {
	opacity: .35;
	pointer-events: none;
}

.pill-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-weight: 700;
	font-size: .85rem;
}

.chip {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--chip-bg);
	color: var(--chip-ink);
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1.4;
	text-transform: uppercase;
	transition: background .2s, color .2s;
}

.chip:hover {
	background: var(--accent);
	color: var(--accent-ink);
}

.chip--ghost {
	padding: 7px 14px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink);
	font-size: .8rem;
	letter-spacing: 0;
	text-transform: none;
}

.badge {
	position: absolute;
	top: 4px;
	right: 2px;
	display: grid;
	place-items: center;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--live);
	color: #fff;
	font-size: .64rem;
	font-weight: 800;
	line-height: 1;
}

.live-dot {
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--live);
	box-shadow: 0 0 0 0 rgba(255, 77, 94, .6);
	animation: live-dot 1.8s infinite;
}

@keyframes live-dot {
	70% { box-shadow: 0 0 0 8px rgba(255, 77, 94, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0); }
}

.eq {
	display: inline-flex;
	align-items: flex-end;
	flex: none;
	gap: 2px;
	height: 16px;
}

.eq i {
	width: 3px;
	height: 100%;
	border-radius: 2px;
	background: currentColor;
	transform-origin: bottom;
	animation: eq 1.1s ease-in-out infinite;
}

.eq i:nth-child(2) { animation-delay: -.4s; }
.eq i:nth-child(3) { animation-delay: -.8s; }
.eq i:nth-child(4) { animation-delay: -.2s; }

@keyframes eq {
	0%, 100% { transform: scaleY(.3); }
	50% { transform: scaleY(1); }
}

@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(91, 147, 255, .55); }
	70% { box-shadow: 0 0 0 20px rgba(91, 147, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(91, 147, 255, 0); }
}

.wave-mark {
	display: block;
	width: 100%;
	height: auto;
}

/* ==========================================================================
   4. Top bar and header
   ========================================================================== */

.topbar {
	display: none;
	background: var(--navy);
	color: #c9d4f2;
	font-size: .8rem;
}

.topbar__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: 38px;
}

.topbar__info {
	display: flex;
	align-items: center;
	gap: 18px;
}

.topbar__info a,
.topbar__menu a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: color .2s;
}

.topbar a:hover {
	color: #fff;
}

.topbar__date::first-letter {
	text-transform: uppercase;
}

.topbar__nav {
	margin-left: auto;
}

.topbar__menu {
	display: flex;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.socials {
	display: flex;
	gap: 8px;
}

.socials a {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	transition: background .2s, transform .2s var(--ease);
}

.socials a:hover {
	background: #5b93ff;
	transform: translateY(-2px);
}

.socials--sm a {
	width: 26px;
	height: 26px;
	background: none;
	color: inherit;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--line);
	background: var(--glass);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
	transition: transform .35s var(--ease), box-shadow .3s;
	view-transition-name: vala-header;
}

.site-header.is-scrolled {
	box-shadow: 0 8px 28px rgba(6, 23, 63, .08);
}

.site-header.is-hidden {
	transform: translateY(-100%);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	height: var(--header-h);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	font: 600 .8rem/1 var(--font-display);
	letter-spacing: .14em;
	text-transform: uppercase;
	white-space: nowrap;
}

.brand__mark {
	display: flex;
	width: 40px;
	color: var(--accent);
}

.brand__img {
	width: 46px;
	height: 46px;
	object-fit: contain;
}

.theme-toggle .icon-sun,
html[data-theme="dark"] .theme-toggle .icon-moon {
	display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
	display: block;
}

.live-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	margin-left: 4px;
	padding: 0 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, #0a4bc4, #002a73);
	color: #fff;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .1em;
	box-shadow: 0 6px 18px rgba(0, 57, 152, .3);
	transition: transform .2s var(--ease), box-shadow .2s;
}

.live-btn:hover {
	transform: translateY(-1px) scale(1.03);
	box-shadow: 0 10px 24px rgba(0, 57, 152, .4);
}

.live-btn .eq {
	height: 13px;
}

/* Primary navigation (large screens) */

.nav {
	display: none;
	margin-inline: auto;
}

.nav__menu {
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav__menu > li {
	position: relative;
	display: flex;
	align-items: center;
}

.nav__menu a {
	display: block;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: .95rem;
	font-weight: 600;
	transition: background .2s, color .2s;
}

.nav__menu a:not([href]) {
	cursor: default;
}

.nav__menu > li:hover > a,
.nav__menu .current-menu-item > a,
.nav__menu .current-menu-ancestor > a,
.nav__menu .current-post-ancestor > a {
	background: var(--chip-bg);
	color: var(--chip-ink);
}

.sub-toggle {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	margin-left: -12px;
	border-radius: 50%;
	color: var(--muted);
}

.sub-toggle svg {
	transition: transform .25s var(--ease);
}

.is-open > .sub-toggle svg {
	transform: rotate(180deg);
}

.nav .sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 5;
	min-width: 220px;
	margin: 0;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--surface);
	box-shadow: var(--shadow-lg);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}

/* Invisible bridge so the pointer can travel from the link to the dropdown. */
.nav .sub-menu::before {
	content: "";
	position: absolute;
	inset: -10px 0 auto;
	height: 10px;
}

.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu,
.nav li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.nav .sub-menu a {
	border-radius: 10px;
	font-weight: 500;
}

.nav .sub-menu a:hover {
	background: var(--chip-bg);
	color: var(--chip-ink);
}

/* Reading progress (articles) */

.progress {
	position: fixed;
	inset: 0 0 auto;
	z-index: 80;
	height: 3px;
	pointer-events: none;
}

.progress span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #5b93ff, var(--live));
	transform: scaleX(0);
	transform-origin: left;
}

/* Instant navigation: loading line while the next page is on its way */

.nav-progress {
	position: fixed;
	inset: 0 0 auto;
	z-index: 95;
	height: 3px;
	background: linear-gradient(90deg, #5b93ff, var(--live));
	opacity: 0;
	pointer-events: none;
	transform: scaleX(0);
	transform-origin: left;
}

.nav-progress.is-on {
	opacity: 1;
	transform: scaleX(.85);
	transition: transform 6s cubic-bezier(.1, .7, .1, 1);
}

.nav-progress.is-done {
	transform: scaleX(1);
	transition: transform .2s, opacity .3s .15s;
}

/* Focus is moved to the content after navigating; it needs no outline of its own. */
.site-main:focus {
	outline: 0;
}

/* Latest-headline ticker */

.ticker {
	border-bottom: 1px solid var(--line);
	background: var(--surface);
	font-size: .9rem;
}

.ticker__inner {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 42px;
}

.ticker__label {
	display: inline-flex;
	align-items: center;
	flex: none;
	gap: 8px;
	color: var(--accent);
	font-size: .7rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ticker__viewport {
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.ticker__viewport::-webkit-scrollbar {
	display: none;
}

.ticker__track {
	display: flex;
	width: max-content;
	margin: 0;
	padding: 0 24px;
	list-style: none;
	white-space: nowrap;
}

.ticker__track li {
	padding-right: 44px;
}

.ticker__track li::before {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	margin-right: 12px;
	border-radius: 50%;
	background: var(--accent);
	vertical-align: middle;
}

.ticker__track a:hover {
	color: var(--accent);
}

.ticker.is-running .ticker__viewport {
	overflow: hidden;
}

.ticker.is-running .ticker__track {
	padding: 0;
	animation: ticker var(--ticker-dur, 50s) linear infinite;
}

.ticker.is-running .ticker__track:hover,
.ticker.is-running .ticker__track:focus-within {
	animation-play-state: paused;
}

@keyframes ticker {
	to { transform: translateX(-50%); }
}

/* ==========================================================================
   5. Cards
   ========================================================================== */

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
	transition: transform .35s var(--ease), box-shadow .35s;
}

.card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--surface-2);
}

.card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s var(--ease);
}

.card__ph {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #0a4bc4, #002a73);
	color: rgba(255, 255, 255, .3);
}

.card__ph svg {
	width: 36%;
}

.card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	padding: 14px 16px 16px;
}

.card__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.01em;
}

.card__title a {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

/* The whole card is the link; chips and the save button sit above it. */
.card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.card .chip {
	position: relative;
	z-index: 2;
}

.card__excerpt {
	display: none;
	margin: 0;
}

.card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 8px;
	margin: auto 0 0;
	color: var(--muted);
	font-size: .8rem;
}

.card__meta > * + *::before {
	content: "·";
	margin-right: 8px;
}

.card__cat {
	color: var(--accent);
	font-weight: 700;
}

.save-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(4, 10, 28, .5);
	color: #fff;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: transform .25s var(--ease), background .2s, opacity .2s;
}

.save-btn:active {
	transform: scale(.85);
}

.save-btn[aria-pressed="true"] {
	background: var(--live);
}

.save-btn[aria-pressed="true"] svg {
	fill: currentColor;
	animation: pop .35s var(--ease);
}

@keyframes pop {
	40% { transform: scale(1.35); }
}

@media (hover: hover) {
	.card:hover .card__media img {
		transform: scale(1.06);
	}

	.card--default:hover {
		transform: translateY(-4px);
		box-shadow: var(--shadow-lg);
	}

	.card__title a:hover {
		color: var(--accent);
	}

	.card--overlay .card__title a:hover {
		color: #fff;
	}

	.save-btn {
		opacity: 0;
	}

	.card:hover .save-btn,
	.save-btn:focus-visible,
	.save-btn[aria-pressed="true"] {
		opacity: 1;
	}
}

@media (hover: none) {
	.card:active {
		transform: scale(.985);
	}
}

/* Overlay: text over the image */

.card--overlay {
	justify-content: flex-end;
	min-height: 220px;
	background: var(--navy);
	color: #fff;
}

.card--overlay .card__media {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
}

.card--overlay .card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(4, 10, 28, 0) 25%, rgba(4, 10, 28, .6) 62%, rgba(4, 10, 28, .94));
}

.card--overlay .card__body {
	position: relative;
	flex: none;
	padding: 16px;
}

.card--overlay .chip {
	background: rgba(255, 255, 255, .18);
	color: #fff;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.card--overlay .chip:hover {
	background: #fff;
	color: #003998;
}

.card--overlay .card__meta {
	margin-top: 0;
	color: rgba(255, 255, 255, .78);
}

.card--overlay .card__excerpt {
	color: rgba(255, 255, 255, .84);
}

/* Row: small thumbnail, text beside it */

.card--row {
	flex-direction: row;
	align-items: center;
	gap: 12px;
	overflow: visible;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.card--row .card__media {
	flex: none;
	width: 104px;
	border-radius: 12px;
	aspect-ratio: 4 / 3;
}

.card--row .card__body {
	gap: 4px;
	padding: 0;
}

.card--row .card__title {
	font-size: .95rem;
}

.card--row .card__meta {
	margin-top: 0;
	font-size: .76rem;
}

.card--row .save-btn {
	display: none;
}

.card--row .remove-btn {
	position: relative;
	z-index: 2;
	flex: none;
}

/* Text only: numbered opinion list */

.oplist {
	display: grid;
	counter-reset: op;
}

.card--text {
	padding: 18px 44px 18px 58px;
	overflow: visible;
	border-top: 1px solid var(--line);
	border-radius: 0;
	background: none;
	box-shadow: none;
	counter-increment: op;
}

.card--text::before {
	content: counter(op, decimal-leading-zero);
	position: absolute;
	top: 18px;
	left: 0;
	color: var(--accent);
	font: 800 1.5rem/1 var(--font-display);
	opacity: .35;
}

.card--text .card__body {
	padding: 0;
}

.card--text .save-btn {
	top: 16px;
	right: 0;
	background: var(--chip-bg);
	color: var(--chip-ink);
	opacity: 1;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.card--text .save-btn[aria-pressed="true"] {
	background: var(--live);
	color: #fff;
}

/* ==========================================================================
   6. Homepage
   ========================================================================== */

.hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 16px;
}

.card--lead {
	grid-column: 1 / -1;
	min-height: clamp(340px, 62vw, 560px);
}

.card--lead .card__title {
	font-size: clamp(1.4rem, 3.4vw, 2.4rem);
	font-weight: 800;
	line-height: 1.14;
	letter-spacing: -.02em;
}

.card--lead .card__body {
	gap: 10px;
	max-width: 860px;
	padding: clamp(18px, 3vw, 34px);
}

.card--side {
	min-height: 190px;
}

.card--side .card__title {
	font-size: .98rem;
}

.card--side .card__body {
	padding: 12px;
}

.card--side .card__meta span,
.card--side .save-btn {
	display: none;
}

/* Live radio band */

.radio {
	margin-top: clamp(20px, 4vw, 36px);
}

.radio__panel {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	overflow: hidden;
	padding: clamp(22px, 4vw, 44px);
	border-radius: 28px;
	background: radial-gradient(120% 150% at 88% 0%, #1541a8 0%, #06143a 46%, #040a1c 100%);
	color: #eef3ff;
}

.radio__waves {
	position: absolute;
	inset: auto auto 0 0;
	z-index: -1;
	width: 200%;
	max-width: none;
	height: 80%;
	opacity: .55;
}

.radio__waves path {
	fill: none;
	stroke: #5b93ff;
	stroke-width: 1.5;
	vector-effect: non-scaling-stroke;
	animation: drift 16s linear infinite;
}

.radio__waves path:nth-child(2) {
	stroke: #2a5fd6;
	animation-duration: 24s;
	animation-direction: reverse;
}

.radio__waves path:nth-child(3) {
	stroke: #8fb8ff;
	stroke-width: 2.5;
	animation-duration: 34s;
}

@keyframes drift {
	to { transform: translateX(-50%); }
}

.radio__live {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	padding: 5px 12px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	font-size: .8rem;
}

.radio__num {
	margin: 0;
	background: linear-gradient(180deg, #fff 35%, #5b93ff);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font: 800 clamp(3.4rem, 12vw, 6.8rem)/.9 var(--font-display);
	letter-spacing: -.04em;
}

.radio__num sup {
	position: relative;
	top: .45em;
	margin-left: .25em;
	color: #5b93ff;
	font-size: .24em;
	letter-spacing: 0;
	vertical-align: top;
	-webkit-text-fill-color: #5b93ff;
}

.radio__btn {
	display: inline-flex;
	align-items: center;
	gap: 16px;
}

.radio__play {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	padding-left: 4px;
	border-radius: 50%;
	background: #fff;
	color: #003998;
	animation: pulse 2.4s infinite;
	transition: transform .3s var(--ease);
}

.radio__btn:hover .radio__play {
	transform: scale(1.08);
}

.radio__cta strong {
	display: block;
	font-size: 1.2rem;
	line-height: 1.2;
}

.radio__cta small {
	color: #a9b8de;
	font-size: .9rem;
}

/* Sections */

.section {
	margin-top: clamp(36px, 6vw, 68px);
}

.section--dark {
	padding-block: clamp(32px, 5vw, 60px);
	background: var(--bg);
	color: var(--ink);
}

.section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.section__title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font: 600 clamp(1.05rem, 2.6vw, 1.45rem)/1.2 var(--font-display);
	letter-spacing: -.01em;
}

.section__title::before {
	content: "";
	flex: none;
	width: 34px;
	height: 14px;
	background: var(--accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 210 84'%3E%3Cpath d='M0 67h30c28 0 32-50 75-50s47 50 75 50h30' fill='none' stroke='%23000' stroke-width='34'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 210 84'%3E%3Cpath d='M0 67h30c28 0 32-50 75-50s47 50 75 50h30' fill='none' stroke='%23000' stroke-width='34'/%3E%3C/svg%3E") center / contain no-repeat;
}

.section__more {
	display: inline-flex;
	align-items: center;
	flex: none;
	gap: 6px;
	color: var(--accent);
	font-size: .88rem;
	font-weight: 700;
}

.section__more svg {
	transition: transform .25s var(--ease);
}

.section__more:hover svg {
	transform: translateX(4px);
}

.tabs {
	display: flex;
	gap: 8px;
	margin: 0 calc(var(--gutter) * -1) 18px;
	padding: 2px var(--gutter);
	overflow-x: auto;
	scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
	display: none;
}

.tab {
	flex: none;
	padding: 8px 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	font-size: .9rem;
	font-weight: 600;
	transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}

.tab:active {
	transform: scale(.95);
}

.tab[aria-selected="true"],
.tab[aria-current="page"] {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--accent-ink);
}

.feature {
	display: grid;
	gap: 18px;
	transition: opacity .2s;
}

.feature.is-loading {
	opacity: .4;
	pointer-events: none;
}

.card--big {
	min-height: clamp(260px, 52vw, 440px);
}

.card--big .card__title {
	font-size: clamp(1.2rem, 2.4vw, 1.7rem);
	font-weight: 800;
	line-height: 1.2;
}

.feature__list {
	display: grid;
	align-content: space-between;
	gap: 14px;
}

.feed {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.more {
	display: flex;
	justify-content: center;
	margin-top: 24px;
}

.carousel__track {
	display: grid;
	grid-auto-columns: min(78%, 300px);
	grid-auto-flow: column;
	gap: 16px;
	margin-inline: calc(var(--gutter) * -1);
	padding: 6px var(--gutter) 18px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-padding-inline: var(--gutter);
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar {
	display: none;
}

.carousel__track > * {
	scroll-snap-align: start;
}

.carousel__nav {
	display: flex;
	align-items: center;
	gap: 6px;
}

.carousel__bar {
	flex: 1;
	height: 3px;
	margin-right: 10px;
	overflow: hidden;
	border-radius: 3px;
	background: var(--line);
}

.carousel__bar span {
	display: block;
	width: 30%;
	height: 100%;
	border-radius: 3px;
	background: var(--accent);
}

/* Ad and sponsor areas: widgets sit side by side, centred, without the card frame. */
.home-widgets,
.ad {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: clamp(24px, 4vw, 40px);
	text-align: center;
}

.home-widgets .widget,
.ad .widget {
	max-width: 100%;
	padding: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.home-widgets img,
.ad img {
	display: block;
	margin-inline: auto;
	border-radius: 12px;
}

.home-widgets iframe,
.ad iframe {
	max-width: 100%;
}

/* Phones: after the first card the feed turns into a compact list. */
@media (max-width: 559px) {
	.feed > .card--default:not(:first-child) {
		flex-direction: row;
	}

	.feed > .card--default:not(:first-child) .card__media {
		flex: none;
		width: 122px;
		aspect-ratio: auto;
	}

	.feed > .card--default:not(:first-child) .card__body {
		padding: 12px 42px 12px 12px;
	}

	.feed > .card--default:not(:first-child) .card__title {
		font-size: .95rem;
	}

	.feed > .card--default:not(:first-child) .card__meta span {
		display: none;
	}

	.feed > .card--default:not(:first-child) .save-btn {
		top: 8px;
		right: 8px;
		width: 30px;
		height: 30px;
		background: var(--chip-bg);
		color: var(--chip-ink);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.feed > .card--default:not(:first-child) .save-btn[aria-pressed="true"] {
		background: var(--live);
		color: #fff;
	}
}

/* ==========================================================================
   7. Archives, pages, article
   ========================================================================== */

.page-head {
	padding-block: clamp(22px, 4vw, 44px) clamp(16px, 2.5vw, 26px);
}

.page-head__title {
	margin: 8px 0 0;
	font: 800 clamp(1.5rem, 4.6vw, 2.6rem)/1.15 var(--font-display);
	letter-spacing: -.02em;
}

.page-head__eyebrow {
	margin: 0;
	color: var(--accent);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.page-head__desc {
	max-width: 62ch;
	margin: 10px 0 0;
	color: var(--muted);
}

.page-head__desc p {
	margin: 0;
}

.page-head .tabs {
	margin-top: 18px;
	margin-bottom: 0;
}

.page-head .searchform {
	margin-top: 18px;
}

.page-head--center {
	text-align: center;
}

.page-head--center .page-head__desc {
	margin-inline: auto;
}

.page-head__big {
	margin: 0;
	color: var(--accent);
	font: 800 clamp(4rem, 18vw, 9rem)/1 var(--font-display);
	letter-spacing: -.05em;
	opacity: .2;
}

.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	color: var(--muted);
	font-size: .82rem;
	list-style: none;
}

.crumbs li + li::before {
	content: "›";
	margin-right: 6px;
}

.crumbs a:hover {
	color: var(--accent);
}

.card--wide {
	grid-column: 1 / -1;
	min-height: clamp(300px, 56vw, 460px);
}

.card--wide .card__title {
	font-size: clamp(1.3rem, 3vw, 2.1rem);
	font-weight: 800;
	line-height: 1.16;
}

.card--wide .card__body {
	max-width: 820px;
	padding: clamp(18px, 3vw, 32px);
}

.pagination {
	margin-top: 28px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	font-weight: 600;
}

.page-numbers.current {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--accent-ink);
}

.empty {
	padding-block: 32px;
	color: var(--muted);
	text-align: center;
}

.searchform {
	display: flex;
	gap: 8px;
	max-width: 560px;
}

.page-head--center .searchform,
.empty .searchform {
	margin-inline: auto;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="password"],
textarea,
select {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface);
	color: var(--ink);
	font: inherit;
}

.searchform input {
	flex: 1;
	min-width: 0;
	border-radius: 999px;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--accent);
	outline: 0;
	box-shadow: 0 0 0 3px var(--chip-bg);
}

/* Article */

.entry > .wrap {
	max-width: 1140px;
}

.entry__head {
	padding-top: clamp(18px, 3.5vw, 40px);
}

.entry__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 14px;
}

.entry__title {
	max-width: 22em;
	margin: 12px 0 18px;
	font-size: clamp(1.7rem, 4.6vw, 2.9rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.02em;
}

.entry__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	color: var(--muted);
	font-size: .9rem;
}

.entry__avatar {
	border-radius: 50%;
}

.entry__author {
	color: var(--ink);
	font-weight: 700;
}

.entry__meta p {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 8px;
	margin: 0;
}

.entry__meta p > * + *::before {
	content: "·";
	margin-right: 8px;
}

.entry__meta .share {
	margin-left: auto;
}

.share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.share__label {
	margin-right: 4px;
	color: var(--muted);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.entry__meta .share__label {
	display: none;
}

.share__btn {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--surface);
	color: var(--ink);
	transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
}

.share__btn:hover {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--accent-ink);
	transform: translateY(-2px);
}

.share__btn--save[aria-pressed="true"] {
	border-color: var(--live);
	background: var(--live);
	color: #fff;
}

.share__btn--save[aria-pressed="true"] svg {
	fill: currentColor;
}

.entry__hero {
	margin-block: 24px 0;
}

.entry__hero img {
	display: block;
	width: 100%;
	max-height: 640px;
	border-radius: 24px;
	object-fit: cover;
}

.entry__hero figcaption,
.wp-caption-text,
.entry-content figcaption {
	margin-top: 8px;
	color: var(--muted);
	font-size: .85rem;
	text-align: center;
}

.layout {
	display: grid;
	gap: 40px;
	margin-top: 28px;
}

.layout__main {
	min-width: 0;
}

.layout__sticky {
	display: grid;
	gap: 22px;
}

.entry-content {
	max-width: 720px;
	font-size: clamp(1.05rem, .95rem + .5vw, 1.2rem);
	line-height: 1.75;
	overflow-wrap: break-word;
}

.entry-content > * {
	margin-block: 0 1.25em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 1.7em;
	line-height: 1.25;
	letter-spacing: -.01em;
}

.entry-content h2 { font-size: 1.5em; }
.entry-content h3 { font-size: 1.25em; }

.entry-content a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.entry-content img {
	border-radius: 16px;
}

.entry-content figure {
	margin-inline: 0;
}

.entry-content blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 20px;
	border-left: 4px solid var(--accent);
	font-size: 1.1em;
	font-weight: 500;
}

.entry-content iframe {
	border: 0;
	border-radius: 16px;
}

.entry-content table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: .92em;
}

.entry-content th,
.entry-content td {
	padding: 10px 12px;
	border: 1px solid var(--line);
	text-align: left;
}

.entry-content .alignleft {
	float: left;
	margin: 0 1.2em 1em 0;
}

.entry-content .alignright {
	float: right;
	margin: 0 0 1em 1.2em;
}

.entry-content .aligncenter {
	display: block;
	margin-inline: auto;
}

.entry-content .wp-caption {
	max-width: 100%;
}

.entry--page .entry-content {
	max-width: none;
	padding-bottom: 24px;
}

.page-links {
	display: flex;
	gap: 8px;
	font-weight: 700;
}

.entry__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px;
}

.entry__foot {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.postnav {
	display: grid;
	gap: 12px;
	margin-top: 28px;
}

.postnav__item {
	display: grid;
	gap: 6px;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	transition: border-color .2s, transform .25s var(--ease);
}

.postnav__item:hover {
	border-color: var(--accent);
	transform: translateY(-2px);
}

.postnav__item span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--accent);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.postnav__item strong {
	line-height: 1.35;
}

.postnav__item--next {
	text-align: right;
}

.postnav__item--next span {
	justify-content: flex-end;
}

.widget {
	padding: 18px;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.widget__title {
	margin: 0 0 16px;
	font: 600 .9rem/1.2 var(--font-display);
}

/* Widgets placed in Appearance → Widgets (classic and block widgets). */
.widget > :first-child,
.widget .wp-block-group > :first-child {
	margin-top: 0;
}

.widget > :last-child,
.widget .wp-block-group > :last-child {
	margin-bottom: 0;
}

.widget h2,
.widget h3,
.widget .wp-block-heading {
	margin: 0 0 16px;
	font: 600 .9rem/1.2 var(--font-display);
}

.widget ul,
.widget ol {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget li {
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line);
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.35;
}

.widget li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.widget a:hover {
	color: var(--accent);
}

.widget img {
	border-radius: 12px;
}

.wp-block-search__label {
	display: block;
	margin-bottom: 6px;
	font-size: .85rem;
	font-weight: 600;
}

.wp-block-search__inside-wrapper {
	display: flex;
	gap: 8px;
}

.wp-block-search .wp-block-search__input {
	flex: 1;
	min-width: 0;
	border-radius: 999px;
}

/* Buttons from the block editor follow the theme. */
.wp-block-search .wp-block-search__button,
.wp-block-button .wp-block-button__link,
.wp-element-button {
	min-height: 44px;
	margin: 0;
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-ink);
	font: 700 .9rem/1.2 var(--font-ui);
	text-decoration: none;
	cursor: pointer;
}

.radio-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px 14px 14px;
	border-radius: var(--radius);
	background: linear-gradient(135deg, #0a4bc4, #002a73 75%);
	color: #fff;
	box-shadow: 0 10px 28px rgba(0, 57, 152, .28);
	transition: transform .25s var(--ease);
}

.radio-card:hover {
	transform: translateY(-2px);
}

.radio-card strong {
	display: block;
	line-height: 1.25;
}

.radio-card small {
	color: #c3d3ff;
}

.radio-card .eq {
	margin-left: auto;
}

.radio-card__play {
	display: grid;
	place-items: center;
	flex: none;
	width: 46px;
	height: 46px;
	padding-left: 2px;
	border-radius: 50%;
	background: #fff;
	color: #003998;
}

/* Comments */

.comments {
	max-width: 720px;
	margin-top: 40px;
}

.comments__title,
.comment-reply-title {
	margin: 0 0 16px;
	font: 600 1.05rem/1.2 var(--font-display);
}

.comments__list,
.comments__list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comments__list .children {
	padding-left: 20px;
}

.comment-body {
	margin-bottom: 14px;
	padding: 16px;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-metadata,
.comment-form .comment-notes,
.logged-in-as {
	color: var(--muted);
	font-size: .82rem;
}

.comment-content p {
	margin: 10px 0;
}

.reply a {
	color: var(--accent);
	font-size: .85rem;
	font-weight: 700;
}

.comment-form {
	display: grid;
	gap: 12px;
}

.comment-form p {
	margin: 0;
}

.comment-form label {
	display: block;
	margin-bottom: 4px;
	font-size: .88rem;
	font-weight: 600;
}

.comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.comment-form .comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
}

.comment-form input[type="submit"] {
	height: 46px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-ink);
	font: 700 .95rem/1 var(--font-ui);
	cursor: pointer;
}

.saved-actions {
	margin-top: 24px;
}

/* ==========================================================================
   8. Newsletter and footer
   ========================================================================== */

.newsletter {
	margin-top: clamp(40px, 7vw, 80px);
}

.newsletter__panel {
	display: grid;
	align-items: center;
	gap: 20px;
	padding: clamp(22px, 4vw, 40px);
	border: 1px solid var(--line);
	border-radius: 28px;
	background: var(--surface);
}

.newsletter h2 {
	margin: 0 0 6px;
	font: 600 clamp(1.1rem, 2.6vw, 1.5rem)/1.2 var(--font-display);
}

.newsletter p {
	margin: 0;
	color: var(--muted);
}

.newsletter .widget {
	padding: 0;
	background: none;
	box-shadow: none;
}

.site-footer {
	margin-top: clamp(48px, 8vw, 96px);
	padding-top: clamp(36px, 6vw, 64px);
	background: var(--navy);
	color: #c9d4f2;
}

.site-footer__grid {
	display: grid;
	gap: 32px;
}

.site-footer .brand {
	color: #fff;
}

.site-footer .brand__mark {
	color: #5b93ff;
}

.site-footer__about p {
	max-width: 36ch;
	margin: 14px 0 18px;
}

.site-footer__title {
	margin: 0 0 14px;
	color: #fff;
	font: 600 .76rem/1.2 var(--font-display);
	letter-spacing: .12em;
	text-transform: uppercase;
}

.site-footer__menu {
	display: grid;
	gap: 9px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.site-footer__menu--2 {
	grid-template-columns: 1fr 1fr;
}

.site-footer__menu a:hover {
	color: #fff;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: 36px;
	padding-block: 20px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	color: #8d9ac1;
	font-size: .82rem;
}

.site-footer__bottom p {
	max-width: 80ch;
	margin: 0;
}

/* ==========================================================================
   9. Sticky live player (large screens)
   ========================================================================== */

.player {
	display: none;
}

/* ==========================================================================
   10. Mobile dock
   ========================================================================== */

.dock {
	position: fixed;
	inset: auto 0 0;
	z-index: 60;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	height: calc(var(--dock-h) + env(safe-area-inset-bottom));
	padding: 0 4px env(safe-area-inset-bottom);
	border-top: 1px solid var(--line);
	background: var(--glass);
	-webkit-backdrop-filter: saturate(1.6) blur(18px);
	backdrop-filter: saturate(1.6) blur(18px);
	view-transition-name: vala-dock;
}

.dock__item,
.dock__live {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	height: var(--dock-h);
	color: var(--muted);
	font-size: .68rem;
	font-weight: 600;
	line-height: 1;
	transition: color .2s, transform .2s var(--ease);
}

.dock__item:active {
	transform: scale(.9);
}

.dock__item.is-active {
	color: var(--accent);
}

.dock__item .badge {
	top: 8px;
	right: calc(50% - 22px);
}

.dock__live {
	justify-content: flex-end;
	padding-bottom: 9px;
	color: var(--accent);
	font-weight: 800;
	letter-spacing: .1em;
}

.dock__live-btn {
	position: absolute;
	top: -24px;
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	padding-left: 3px;
	border: 4px solid var(--bg);
	border-radius: 50%;
	background: linear-gradient(135deg, #1a5fe0, #002a73);
	color: #fff;
	animation: pulse 2.4s infinite;
	transition: transform .25s var(--ease);
}

.dock__live:active .dock__live-btn {
	transform: scale(.9);
}

.dock__live-btn .eq,
.player-open .dock__live-btn .icon {
	display: none;
}

.player-open .dock__live-btn {
	padding-left: 0;
}

.player-open .dock__live-btn .eq {
	display: inline-flex;
}

.dock__tip {
	position: absolute;
	bottom: calc(100% + 34px);
	left: 50%;
	padding: 9px 14px;
	border-radius: 12px;
	background: var(--navy);
	color: #fff;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: 0;
	white-space: nowrap;
	box-shadow: var(--shadow-lg);
	transform: translateX(-50%);
	animation: tip 3s var(--ease) infinite;
}

.dock__tip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -6px;
	border: 6px solid transparent;
	border-top-color: var(--navy);
}

html[data-theme="dark"] .dock__tip {
	background: #fff;
	color: #06173f;
}

html[data-theme="dark"] .dock__tip::after {
	border-top-color: #fff;
}

@keyframes tip {
	0%, 100% { transform: translate(-50%, 0); }
	50% { transform: translate(-50%, -5px); }
}

/* ==========================================================================
   11. Sheets, search, toast, floating bits
   ========================================================================== */

.sheet {
	--from: translateY(100%);
	position: fixed;
	inset: auto 0 0;
	width: 100%;
	max-width: 100%;
	max-height: 88dvh;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 26px 26px 0 0;
	background: var(--surface);
	color: var(--ink);
	box-shadow: var(--shadow-lg);
}

.sheet[open] {
	display: flex;
	flex-direction: column;
	animation: sheet-in .38s var(--ease);
}

.sheet.is-closing {
	animation: sheet-out .22s ease-in forwards;
}

.sheet::backdrop,
.search::backdrop {
	background: rgba(4, 10, 28, .55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	animation: fade-in .3s;
}

.sheet.is-closing::backdrop,
.search.is-closing::backdrop {
	animation: fade-out .22s forwards;
}

@keyframes sheet-in {
	from { transform: var(--from); }
}

@keyframes sheet-out {
	to { transform: var(--from); }
}

@keyframes fade-in {
	from { opacity: 0; }
}

@keyframes fade-out {
	to { opacity: 0; }
}

.sheet__head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: none;
	padding: 22px 12px 8px 20px;
	font: 600 .95rem/1 var(--font-display);
	touch-action: none;
}

.sheet__grip {
	position: absolute;
	top: 8px;
	left: 50%;
	width: 40px;
	height: 4px;
	margin-left: -20px;
	border-radius: 4px;
	background: var(--line);
}

.sheet__body {
	flex: 1;
	padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
	overflow-y: auto;
	overscroll-behavior: contain;
}

.sheet__menu {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.sheet__menu > li {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	border-bottom: 1px solid var(--line);
}

.sheet__menu a {
	display: block;
	padding: 14px 2px;
	font-size: 1.1rem;
	font-weight: 700;
}

.sheet__menu .current-menu-item > a {
	color: var(--accent);
}

.sheet__menu .sub-toggle {
	width: 44px;
	height: 44px;
	margin: 0;
}

.sheet__menu .sub-menu {
	display: none;
	grid-column: 1 / -1;
	margin: 0;
	padding: 0 0 10px 14px;
	list-style: none;
}

.sheet__menu li.is-open > .sub-menu {
	display: block;
}

.sheet__menu .sub-menu a {
	padding: 9px 2px;
	color: var(--muted);
	font-size: 1rem;
	font-weight: 500;
}

.sheet__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 20px 0;
	padding: 0;
	list-style: none;
}

.sheet__links a {
	display: block;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: .88rem;
	font-weight: 600;
}

.sheet .socials a {
	background: var(--chip-bg);
	color: var(--chip-ink);
}

.saved-empty {
	margin: 12px 0;
	color: var(--muted);
	text-align: center;
}

.search {
	position: fixed;
	inset: 0 0 auto;
	width: 100%;
	max-width: 100%;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	border: 0;
	background: var(--surface);
	color: var(--ink);
}

.search[open] {
	animation: drop-in .32s var(--ease);
}

.search.is-closing {
	animation: drop-out .2s ease-in forwards;
}

@keyframes drop-in {
	from { opacity: 0; transform: translateY(-24px); }
}

@keyframes drop-out {
	to { opacity: 0; transform: translateY(-24px); }
}

.search__inner {
	max-width: 860px;
	padding-block: 14px 28px;
}

.search__form {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--line);
	color: var(--muted);
}

.search__form:focus-within {
	border-color: var(--accent);
}

.search__form input {
	flex: 1;
	min-width: 0;
	padding: 8px 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-size: 1.25rem;
	font-weight: 600;
}

.search__form input::-webkit-search-cancel-button {
	display: none;
}

.search__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.search__results {
	margin-top: 18px;
}

.search__results.is-loading {
	opacity: .5;
}

.search__all {
	justify-self: start;
	margin-top: 6px;
}

.toast {
	position: fixed;
	bottom: calc(var(--dock-h) + 34px + env(safe-area-inset-bottom));
	left: 50%;
	z-index: 90;
	max-width: calc(100% - 32px);
	padding: 10px 18px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 999px;
	background: var(--navy);
	color: #fff;
	font-size: .9rem;
	font-weight: 600;
	box-shadow: var(--shadow-lg);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 16px);
	transition: opacity .3s, transform .3s var(--ease);
}

.toast.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
}

.to-top {
	position: fixed;
	right: 14px;
	bottom: calc(var(--dock-h) + 16px + env(safe-area-inset-bottom));
	z-index: 55;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--surface);
	color: var(--ink);
	box-shadow: var(--shadow);
	animation: fade-in .3s;
}

.cookie {
	position: fixed;
	right: 12px;
	bottom: calc(var(--dock-h) + 36px + env(safe-area-inset-bottom));
	left: 12px;
	z-index: 70;
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 520px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--surface);
	box-shadow: var(--shadow-lg);
	font-size: .88rem;
	line-height: 1.45;
	animation: sheet-in .5s var(--ease);
	--from: translateY(140%);
}

.cookie p {
	margin: 0;
}

.cookie a {
	color: var(--accent);
	font-weight: 700;
	text-decoration: underline;
}

/* Sections below the fold ease in once (class added by the script). */
.reveal {
	opacity: 0;
	transform: translateY(20px);
}

.reveal.is-in {
	opacity: 1;
	transform: none;
	transition: opacity .7s var(--ease), transform .7s var(--ease);
}

/* ==========================================================================
   12. Larger screens
   ========================================================================== */

@media (min-width: 560px) {
	.feed {
		grid-template-columns: repeat(2, 1fr);
		gap: 18px;
	}

	.card__excerpt {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}

	.postnav {
		grid-template-columns: 1fr 1fr;
	}

	.postnav__item--next:only-child {
		grid-column: 2;
	}
}

@media (min-width: 768px) {
	.hero {
		grid-template-columns: 2fr 1fr;
		grid-template-rows: 1fr 1fr;
		gap: 16px;
	}

	.card--lead {
		grid-column: auto;
		grid-row: 1 / span 2;
	}

	.card--side {
		min-height: 0;
	}

	.card--side .card__title {
		font-size: 1.1rem;
	}

	.card--side .card__body {
		padding: 16px;
	}

	.card--side .card__meta span {
		display: inline;
	}

	.card--side .save-btn {
		display: grid;
	}

	.carousel__track {
		grid-auto-columns: calc((100% - 32px) / 3);
	}

	.oplist {
		grid-template-columns: repeat(2, 1fr);
		column-gap: 36px;
	}

	.site-footer__grid {
		grid-template-columns: 1.5fr 1fr 1fr 1fr;
	}

	.newsletter__panel {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 900px) {
	.feature {
		grid-template-columns: 1.25fr 1fr;
		gap: 26px;
	}
}

@media (max-width: 1023px) {
	/* The sticky bar lives in the dock here, so keep the header compact. */
	.live-btn__text {
		letter-spacing: .08em;
	}
}

@media (min-width: 1024px) {
	:root {
		--header-h: 68px;
	}

	body {
		padding-bottom: 104px;
	}

	.player-min body {
		padding-bottom: 0;
	}

	.topbar,
	.nav {
		display: block;
	}

	.dock {
		display: none;
	}

	.site-header.is-hidden {
		transform: none;
	}

	.feed {
		grid-template-columns: repeat(3, 1fr);
		gap: 22px;
	}

	.feed--4,
	.feed--archive {
		grid-template-columns: repeat(4, 1fr);
	}

	/* No edge-to-edge bleed on large screens; a little room is kept for the card shadows. */
	.carousel__track {
		grid-auto-columns: calc((100% - 48px - 24px) / 4);
		margin-inline: -12px;
		padding-inline: 12px;
		scroll-padding-inline: 12px;
	}

	.oplist {
		grid-template-columns: repeat(3, 1fr);
	}

	.layout {
		grid-template-columns: minmax(0, 1fr) 340px;
		gap: 48px;
	}

	.layout__sticky {
		position: sticky;
		top: calc(var(--header-h) + 20px);
	}

	/* Sticky live player: a floating pill; the whole thing opens the popup. */
	.player {
		position: fixed;
		bottom: 18px;
		left: 50%;
		z-index: 60;
		display: flex;
		align-items: center;
		gap: 4px;
		width: min(720px, calc(100% - 40px));
		padding: 8px;
		border: 1px solid rgba(255, 255, 255, .12);
		border-radius: 999px;
		background: rgba(6, 14, 38, .9);
		color: #eef3ff;
		-webkit-backdrop-filter: saturate(1.6) blur(16px);
		backdrop-filter: saturate(1.6) blur(16px);
		box-shadow: 0 18px 48px rgba(4, 10, 28, .42);
		transform: translateX(-50%);
		animation: player-in .6s var(--ease) both;
		view-transition-name: vala-player;
	}

	@keyframes player-in {
		from { opacity: 0; transform: translate(-50%, 30px); }
	}

	.player__main {
		display: flex;
		align-items: center;
		flex: 1;
		gap: 14px;
		min-width: 0;
		padding-left: 18px;
	}

	.player__main > .eq {
		height: 20px;
		color: #5b93ff;
	}

	.player__text {
		display: grid;
		flex: 1;
		min-width: 0;
		line-height: 1.3;
	}

	.player__text strong {
		font-size: .95rem;
	}

	.player__text small {
		display: flex;
		align-items: center;
		gap: 8px;
		overflow: hidden;
		color: #a9b8de;
		font-size: .8rem;
		white-space: nowrap;
	}

	.player__text small span:last-child {
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.player__cta {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		height: 46px;
		padding: 0 20px 0 16px;
		border-radius: 999px;
		background: #fff;
		color: #003998;
		font-size: .92rem;
		font-weight: 800;
		transition: transform .25s var(--ease), box-shadow .25s;
	}

	.player__main:hover .player__cta {
		box-shadow: 0 0 0 6px rgba(91, 147, 255, .28);
		transform: scale(1.04);
	}

	.player__min {
		display: grid;
		place-items: center;
		flex: none;
		width: 36px;
		height: 36px;
		border-radius: 50%;
		color: #a9b8de;
		transition: background .2s;
	}

	.player__min:hover {
		background: rgba(255, 255, 255, .1);
	}

	.player__min svg {
		transition: transform .3s var(--ease);
	}

	/* Minimised: a small button in the corner. */
	.player-min .player {
		left: 24px;
		width: auto;
		transform: none;
		animation: none;
	}

	.player-min .player__main {
		padding-left: 0;
	}

	.player-min .player__main > .eq,
	.player-min .player__text,
	.player-min .player__cta span {
		display: none;
	}

	.player-min .player__cta {
		width: 46px;
		padding: 0 0 0 3px;
		justify-content: center;
	}

	.player-min .player__min svg {
		transform: rotate(180deg);
	}

	.sheet {
		--from: translateX(100%);
		inset: 0 0 0 auto;
		width: 420px;
		height: 100dvh;
		max-height: none;
		border-radius: 26px 0 0 26px;
	}

	.sheet__grip {
		display: none;
	}

	.search {
		height: auto;
		max-height: 86dvh;
		border-radius: 0 0 28px 28px;
		box-shadow: var(--shadow-lg);
	}

	.search__inner {
		padding-block: 22px 32px;
	}

	.search__form input {
		font-size: 1.6rem;
	}

	.toast {
		bottom: 110px;
	}

	.to-top {
		right: 24px;
		bottom: 28px;
	}

	.cookie {
		right: auto;
		bottom: 104px;
		left: 24px;
	}
}

/* WordPress admin bar */
.admin-bar .site-header {
	top: 32px;
}

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

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

/* ==========================================================================
   13. Page transitions and motion preferences
   ========================================================================== */

@view-transition {
	navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: .22s;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}

	.ticker.is-running .ticker__viewport {
		overflow-x: auto;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}
}

@media print {
	.topbar,
	.site-header,
	.ticker,
	.dock,
	.player,
	.to-top,
	.cookie,
	.share,
	.layout__side,
	.site-footer,
	.comments {
		display: none !important;
	}

	body {
		padding: 0;
		background: #fff;
		color: #000;
	}
}
