/* ==========================================================================
   Torres Mix — main stylesheet
   Tokens: --tm-* (inc/tokens.php) map onto Theme Builder --cm-* Brand Kit vars,
   with the Radio Mix palette (luminous whites, slate, orange + pink + plum)
   as fallbacks. The look: airy white surfaces, pill buttons that lift on
   hover, 14px soft-shadow cards, hairline rules and refined sans type
   (port of the Radio Mix archetype).
   Sections: reset, layout, type, buttons, utility bar, masthead + nav,
   Listen Live, compact header, drawer, search, hero, prose + entry, cards,
   pagination, footer, 404, responsive.
   Theme Builder Core Page blocks are skinned in blocks.css.
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
	margin: 0;
	background: var(--tm-bg);
	color: var(--tm-text);
	font-family: var(--tm-font-body);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
	max-width: 100%;
}

img, video, iframe, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--tm-link); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--tm-primary-hover); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
	margin: 0;
	font-family: var(--tm-font-display);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--tm-text);
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.tm-nav__menu li, .tm-inline-menu li, .tm-footer__menu li, .tm-drawer__menu li, .tm-404__links li { list-style: none; }

:focus-visible { outline: 2px solid var(--tm-accent); outline-offset: 2px; }

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

.tm-skip {
	position: absolute; left: 16px; top: -60px; z-index: 1000;
	background: var(--tm-button-bg); color: var(--tm-button-text);
	padding: 10px 18px; border-radius: var(--tm-radius);
}
.tm-skip:focus { top: 12px; color: var(--tm-button-text); }

.tm-icon { flex: none; }

/* Layout ------------------------------------------------------------------- */
.tm-frame {
	background: var(--tm-bg);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: clip;
	max-width: 100%;
	min-width: 0;
}
.tm-frame > .tm-main,
.tm-frame > .tb-core-page__main {
	flex: 1 0 auto;
	width: 100%;
	min-width: 0;
}

.tm-wrap {
	width: 100%;
	max-width: var(--tm-width);
	margin-inline: auto;
	padding-inline: 16px;
}
.tm-wrap--narrow { max-width: 820px; }
.tm-wrap--wide { max-width: 1100px; }
@media (min-width: 768px) { .tm-wrap { padding-inline: 24px; } }

.tm-main { padding-bottom: 72px; }

/* Texture band: the skyline photo / gradient with a pale wash over it. */
.tm-texture {
	background:
		linear-gradient(180deg, rgba(248, 250, 252, .72), rgba(248, 250, 252, .92)),
		var(--tm-texture-image) center / var(--tm-texture-size) no-repeat,
		var(--tm-bg);
}

.tm-kicker {
	font-family: var(--tm-font-display);
	font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	color: var(--tm-pink-text);
}
.tm-kicker a { color: inherit; }
.tm-kicker a:hover { color: var(--tm-primary); }

/* Section rules: a short pink bar over a hairline. */
.tm-section-title,
.tm-rail-title {
	font-family: var(--tm-font-display);
	font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--tm-text);
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--tm-rule);
	background: linear-gradient(var(--tm-pink), var(--tm-pink)) left bottom / 56px 3px no-repeat;
}

/* Buttons ------------------------------------------------------------------ */
.tm-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--tm-button-bg); color: var(--tm-button-text);
	border: 1px solid transparent;
	border-radius: var(--tm-radius);
	padding: 14px 28px;
	font-family: var(--tm-font-body); font-size: var(--cm-button-font-size, 15px); font-weight: var(--cm-button-font-weight, 600);
	letter-spacing: .04em; text-transform: var(--cm-button-text-transform, uppercase);
	box-shadow: var(--tm-shadow);
	cursor: pointer; white-space: nowrap;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
/* Mix hover: lift with a deeper shadow (Radio Mix archetype). */
.tm-button:hover {
	color: var(--tm-button-text);
	transform: translateY(-2px);
	box-shadow: var(--tm-shadow-lg);
}
.tm-button:active { transform: none; box-shadow: var(--tm-shadow); }
.tm-button--ghost { background: transparent; color: var(--tm-text); border-color: var(--tm-border); box-shadow: none; }
.tm-button--ghost:hover { color: var(--tm-accent); border-color: var(--tm-accent); }

.tm-iconbtn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: none; border: 1px solid transparent; padding: 8px; margin: 0;
	border-radius: 999px;
	cursor: pointer; color: var(--tm-header-text);
}
.tm-iconbtn:hover { border-color: var(--tm-border); color: var(--tm-accent); }

/* Utility bar --------------------------------------------------------------- */
/* Brand Kit utility bar (MIX: deep pink with white type). */
.tm-utility {
	background: var(--cm-utility-bg, var(--tm-accent));
	border-bottom: 1px solid var(--cm-utility-border, transparent);
	color: var(--cm-utility-lang-color, #ffffff);
	font-size: 14px;
}
.tm-utility a { color: inherit; }
.tm-utility a:hover { color: var(--cm-utility-lang-hover, var(--tm-primary)); }
.tm-utility .tb-social-links__link { border-color: transparent; color: var(--cm-utility-social-color, #ffffff); }
.tm-utility .tb-social-links__link:hover { color: var(--cm-utility-social-hover, var(--tm-primary)); border-color: transparent; box-shadow: none; }
.tm-utility__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.tm-utility__start { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; }
.tm-utility__end { display: flex; align-items: center; gap: 16px; margin-inline-start: auto; }
.tm-inline-menu { display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: var(--tm-font-menu); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; font-weight: 600; }
.tm-utility__lang ul, .tm-drawer__lang ul { display: flex; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.tm-utility__lang a,
.tm-utility .cal-lang-switcher__link,
.tm-drawer__lang a,
.tm-drawer__lang .cal-lang-switcher__link {
	font-family: var(--tm-font-menu);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
	text-decoration: none;
	color: inherit;
}
.tm-utility__lang a:hover,
.tm-utility .cal-lang-switcher__link:hover,
.tm-drawer__lang a:hover,
.tm-drawer__lang .cal-lang-switcher__link:hover { color: var(--tm-primary); }

.tm-utility .tb-social-links__list,
.tm-drawer__social .tb-social-links__list,
.tm-footer__social .tb-social-links__list { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tb-social-links__link {
	display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center;
	border-radius: 999px;
	border: 1px solid var(--tm-border);
	color: var(--tm-muted);
	transition: color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.tb-social-links__link:hover { color: var(--tm-accent); border-color: var(--tm-accent); box-shadow: var(--tm-shadow); transform: translateY(-1px); }
.tb-social-links__icon { width: 15px; height: 15px; fill: currentColor; }

/* Masthead + primary nav --------------------------------------------------- */
.tm-chrome { position: relative; z-index: 100; }
.tm-masthead {
	position: relative;
	/* Brand Kit header colour with the skyline photo over it (MIX). */
	background:
		var(--cm-header-bg-image, none) var(--cm-header-bg-position, center center) / var(--cm-header-bg-size, cover) var(--cm-header-bg-repeat, no-repeat),
		var(--tm-header-bg);
	color: var(--tm-header-text);
	border-bottom: 1px solid var(--tm-chrome-rule);
	box-shadow: var(--tm-shadow);
}
.tm-masthead__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 112px;
	padding-block: 10px;
	transition: min-height .2s ease, padding .2s ease;
}
.tm-masthead__brand { flex: none; position: relative; z-index: 2; }
.tm-masthead__nav { flex: 1 1 auto; display: none; justify-content: center; }
.tm-masthead__end { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; position: relative; z-index: 2; }
.tm-masthead__cta { display: none; }

.tm-logo { margin: 0; line-height: 0; }
.tm-logo__link { display: inline-flex; align-items: center; color: var(--tm-header-text); }
.tm-logo__img {
	width: auto;
	height: auto;
	transition: max-height .2s ease, margin .2s ease;
}
/* Masthead: ignore any Brand Kit logo hang — keep the mark inside the bar. */
.tm-logo--masthead .tm-logo__img {
	max-height: 60px;
	max-width: 180px;
	margin: 0;
}
.tm-logo__text { font-family: var(--tm-font-display); font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: -0.01em; }
.tm-logo--footer .tm-logo__img { max-height: 88px; margin: 0; }
.tm-logo--drawer .tm-logo__img { max-height: 48px; margin: 0; }

.tm-nav__menu { display: flex; align-items: center; gap: var(--cm-menu-item-gap, 24px); }
.tm-nav__menu > li { position: relative; display: flex; align-items: center; }
.tm-nav__menu a {
	position: relative;
	display: inline-block;
	padding: var(--cm-menu-block-padding-y, 8px) var(--cm-menu-block-padding-x, 14px);
	font-family: var(--tm-font-menu);
	font-size: var(--cm-menu-font-size, 16px);
	font-weight: var(--cm-menu-font-weight, 600);
	letter-spacing: var(--cm-menu-letter-spacing, 0em);
	text-transform: var(--cm-menu-text-transform, none);
	white-space: nowrap;
	color: var(--cm-menu-text, var(--tm-header-text));
	border-radius: var(--cm-menu-block-radius, 999px);
	transition: color .12s ease, background-color .12s ease;
}
/* Pointer: pink-tinted pill (Theme Builder nav_pointer=background, 14% fill). */
.tm-nav__menu > li > a::after { content: none; }
.tm-nav__menu a:hover,
.tm-nav__menu a:focus-visible { color: var(--cm-menu-text-hover, var(--tm-accent)); background: var(--cm-menu-block-fill-surface, var(--tm-pink-soft)); }
.tm-nav__menu .current-menu-item > a,
.tm-nav__menu .current_page_item > a,
.tm-nav__menu .current-menu-ancestor > a {
	color: var(--cm-menu-text-active, var(--tm-accent));
	background: var(--cm-menu-block-fill-surface, var(--tm-pink-soft));
}
.tm-nav__toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 26px; margin-inline-start: -4px;
	background: none; border: 0; padding: 0; cursor: pointer;
	color: var(--cm-menu-text, var(--tm-header-text));
	opacity: .7;
}
.tm-nav__toggle svg { transition: transform .15s ease; }
.is-open > .tm-nav__toggle svg { transform: rotate(180deg); }

.tm-nav--desktop .sub-menu {
	position: absolute; top: calc(100% + 8px); left: 0; z-index: 50;
	min-width: 220px; padding: 8px;
	background: var(--cm-menu-dropdown-bg, var(--tm-surface));
	border: 1px solid var(--cm-menu-dropdown-border, var(--tm-border));
	border-radius: var(--tm-card-radius);
	box-shadow: var(--tm-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(4px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.tm-nav--desktop .sub-menu li { list-style: none; }
.tm-nav--desktop .sub-menu a { display: block; font-size: 15px; letter-spacing: 0; color: var(--cm-menu-dropdown-text, var(--tm-text)); border-radius: calc(var(--tm-card-radius) - 4px); }
.tm-nav--desktop .sub-menu a:hover { background: var(--tm-pink-soft); color: var(--cm-menu-dropdown-text-hover, var(--tm-accent)); }
.tm-nav--desktop .menu-item-has-children:hover > .sub-menu,
.tm-nav--desktop .menu-item-has-children.is-open > .sub-menu,
.tm-nav--desktop .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

/* Listen Live (Radio Station Player header / mini player) ------------------ */
.tm-listen-live {
	flex: 0 0 auto;
	display: flex; align-items: center; justify-content: center;
	position: relative; z-index: 40; overflow: visible;
	/* Classic compact player is ~203px: scale into a 64px slot. */
	width: 64px; height: 64px;
}
.tm-listen-live:has(.rsp-compact-player--header) { width: auto; height: auto; min-height: 64px; }
.tm-listen-live .rsp-compact-player { transform: scale(.315); transform-origin: center center; width: 203px; height: 203px; margin: 0; }
.tm-listen-live .rsp-compact-player--header { transform: none; width: auto; height: auto; margin: 0; }
.tm-listen-live .rsp-compact-player--header .rsp-now-playing-pill {
	width: clamp(220px, 18vw, 270px); max-width: 270px; flex: 0 0 auto; box-sizing: border-box;
	/* Radio Station Player's own dark card (artwork, title, votes) stays as is. */
	box-shadow: var(--tm-shadow);
}
/* Mini player (~101px) → 64px. */
.tm-listen-live .rsp-mini-compact-player { transform: scale(.634); transform-origin: center center; width: 101px; height: 101px; margin: 0; }
.tm-listen-live .rsp-compact-play-btn,
.tm-listen-live .rsp-mini-compact-play-btn {
	position: relative !important; right: auto !important;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 6px 18px var(--tm-glow);
}
.tm-listen-live .rsp-player-error { display: none; }

/* Compact header (body.tm-has-compact; JS adds .tm-is-scrolled) ------------ */
.tm-chrome-spacer { display: block; width: 100%; pointer-events: none; visibility: hidden; }

body.tm-is-scrolled .tm-chrome { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 200; }
body.admin-bar.tm-is-scrolled .tm-chrome { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar.tm-is-scrolled .tm-chrome { top: 46px; } }

body.tm-is-scrolled .tm-utility { display: none; }
body.tm-is-scrolled .tm-masthead { box-shadow: var(--tm-shadow-lg); }
body.tm-is-scrolled .tm-masthead__inner { min-height: 60px; padding-block: 4px; gap: 12px; }
body.tm-is-scrolled .tm-logo__img { max-height: 44px; margin: 0; }
body.tm-is-scrolled .tm-logo__text { font-size: 20px; }
body.tm-is-scrolled .tm-nav__menu a { padding-block: .3rem; font-size: 15px; }

body.tm-is-scrolled .tm-listen-live { width: 40px; height: 40px; }
body.tm-is-scrolled .tm-listen-live:has(.rsp-compact-player--header) { width: auto; height: auto; min-height: 40px; }
body.tm-is-scrolled .tm-listen-live .rsp-compact-player { transform: scale(.197); }
body.tm-is-scrolled .tm-listen-live .rsp-compact-player--header { transform: none; width: auto; height: auto; }
body.tm-is-scrolled .rsp-compact-player--header .rsp-compact-play-btn { width: 40px !important; height: 40px !important; border-width: 2px !important; }
body.tm-is-scrolled .rsp-compact-player--header .rsp-compact-play-icon,
body.tm-is-scrolled .rsp-compact-player--header .rsp-compact-pause-icon { width: 22px; height: 22px; }
body.tm-is-scrolled .rsp-compact-player--header .rsp-now-playing-pill,
body.tm-is-scrolled .rsp-compact-player--header .rsp-vote-buttons { display: none !important; }
body.tm-is-scrolled .tm-listen-live .rsp-mini-compact-player { transform: scale(.396); }

/* Sticky menu: utility links join the nav only in the scrolled bar (the
   utility bar above is hidden then). Muted so the station sections lead. */
.tm-nav__menu > .tm-menu-item-sticky-utility { display: none; }
body.tm-is-scrolled .tm-nav__menu > .tm-menu-item-sticky-utility { display: flex; }
body.tm-is-scrolled .tm-nav__menu > .tm-menu-item-sticky-utility > a { opacity: .75; font-size: 13px; letter-spacing: .04em; }
body.tm-is-scrolled .tm-nav__menu > .tm-menu-item-sticky-utility > a:hover { opacity: 1; }
body.tm-is-scrolled .tm-nav__menu > li:not(.tm-menu-item-sticky-utility) + .tm-menu-item-sticky-utility {
	margin-inline-start: 10px;
	padding-inline-start: 10px;
	border-inline-start: 1px solid color-mix(in srgb, currentColor 25%, transparent);
}

/* Drawer ------------------------------------------------------------------- */
/* Above Radio Station Player's bottom banner (z-index 99990). */
.tm-drawer { position: fixed; inset: 0; z-index: 100000; }
.tm-drawer[hidden] { display: none; }
.tm-drawer__scrim { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); border: 0; padding: 0; cursor: pointer; backdrop-filter: blur(2px); }
.tm-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; z-index: 1;
	width: min(380px, 88vw);
	display: flex; flex-direction: column; gap: 20px;
	padding: 18px 20px 28px;
	background: var(--tm-surface);
	color: var(--tm-text);
	border-left: 1px solid var(--tm-border);
	box-shadow: -12px 0 32px rgba(15, 23, 42, .18);
	overflow-y: auto;
}
.tm-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tm-drawer .tm-iconbtn { color: var(--tm-text); }
.tm-drawer .tm-nav__menu { flex-direction: column; align-items: stretch; gap: 2px; }
.tm-drawer .tm-nav__menu > li { flex-wrap: wrap; justify-content: space-between; }
.tm-drawer .tm-nav__menu a { flex: 1 1 auto; padding: .75rem .5rem; font-size: 18px; color: var(--tm-text); background: none; border-bottom: 1px solid var(--tm-rule); border-radius: 0; box-shadow: none; }
.tm-drawer .tm-nav__menu a:hover,
.tm-drawer .tm-nav__menu .current-menu-item > a { color: var(--tm-accent); background: none; }
.tm-drawer .tm-nav__toggle { width: 44px; height: 44px; color: var(--tm-muted); }
.tm-drawer .sub-menu { display: none; flex-basis: 100%; padding-inline-start: 14px; }
.tm-drawer .sub-menu li { list-style: none; }
.tm-drawer .sub-menu a { display: block; font-size: 15px; }
.tm-drawer .is-open > .sub-menu { display: block; }
.tm-drawer__menu { display: flex; flex-direction: column; gap: 6px; font-family: var(--tm-font-menu); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; font-weight: 600; }
.tm-drawer__menu a { color: var(--tm-muted); }
.tm-drawer__lang { color: var(--tm-muted); }
.tm-drawer__foot { display: flex; flex-direction: column; gap: 16px; margin-top: auto; }
body.tm-drawer-open { overflow: hidden; }

/* Search ------------------------------------------------------------------- */
.tm-search { display: flex; align-items: stretch; gap: 0; width: 100%; max-width: 560px; }
.tm-search__input {
	flex: 1 1 auto; min-width: 0;
	background: var(--tm-surface); color: var(--tm-text);
	border: 1px solid var(--tm-border); border-right: 0;
	border-radius: 999px 0 0 999px;
	padding: 11px 18px; font: inherit; font-size: 16px;
}
.tm-search__input::placeholder { color: var(--tm-muted); opacity: .8; }
.tm-search__input:focus { outline: none; border-color: var(--tm-accent); }
.tm-search__btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0 18px; cursor: pointer;
	background: var(--tm-button-bg); color: var(--tm-button-text);
	border: 1px solid transparent; border-radius: 0 999px 999px 0;
}

/* Hero band ---------------------------------------------------------------- */
.tm-hero {
	position: relative; isolation: isolate; overflow: hidden;
	padding: 64px 0 52px;
	margin-bottom: 44px;
	/* Skyline photo / gradient under a pale wash (Radio Mix archetype hero). */
	background:
		linear-gradient(180deg, rgba(248, 250, 252, .74), rgba(248, 250, 252, .94)),
		var(--tm-texture-image) center / var(--tm-texture-size) no-repeat,
		var(--tm-bg);
	border-bottom: 1px solid var(--tm-rule);
}
.tm-hero--image {
	background:
		linear-gradient(180deg, rgba(15, 23, 42, .25), rgba(15, 23, 42, .62)),
		var(--tm-hero-image) center / cover no-repeat,
		var(--tm-bg);
	padding: 120px 0 56px;
	color: #fff;
}
.tm-hero--image .tm-hero__title { color: #fff; text-shadow: 0 2px 12px rgba(15, 23, 42, .35); }
.tm-hero--image .tm-hero__subtitle { color: rgba(255, 255, 255, .85); }
.tm-hero--image .tm-kicker { color: #fff; }
.tm-hero__inner { position: relative; display: flex; flex-direction: column; gap: 12px; }
.tm-hero__title { font-size: clamp(36px, 6vw, 60px); letter-spacing: -0.02em; }
.tm-hero__subtitle { max-width: 680px; color: var(--tm-muted); font-size: 18px; }
.tm-hero .tm-search { margin-top: 8px; }

/* Prose + entry ------------------------------------------------------------ */
.tm-entry__head { padding: 56px 0 28px; }
.tm-entry__head .tm-wrap { display: flex; flex-direction: column; gap: 12px; }
.tm-entry__title { font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.02em; }
.tm-entry__meta { color: var(--tm-muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.tm-entry__figure { margin: 0 auto 36px; }
.tm-entry__figure img { width: 100%; border-radius: var(--tm-img-radius); box-shadow: var(--tm-shadow-lg); }
.tm-entry__caption { margin-top: 8px; color: var(--tm-muted); font-size: 14px; }
.tm-entry__back { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--tm-rule); }
.tm-entry__back a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--tm-font-display); font-weight: 600; }

.tm-prose { color: color-mix(in srgb, var(--tm-text) 80%, var(--tm-muted)); line-height: 1.75; font-size: 18px; }
.tm-prose > * + * { margin-top: 1.1em; }
.tm-prose h2 { font-size: 30px; margin-top: 1.6em; }
.tm-prose h3 { font-size: 23px; margin-top: 1.4em; }
.tm-prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--tm-link) 40%, transparent); text-underline-offset: 3px; }
.tm-prose ul, .tm-prose ol { padding-inline-start: 1.4em; }
.tm-prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--tm-pink); font-style: italic; color: var(--tm-text); }
.tm-prose img, .tm-prose .wp-block-image img { border-radius: var(--tm-img-radius); }
.tm-prose figure { margin-inline: 0; }
.tm-prose figcaption { color: var(--tm-muted); font-size: 14px; margin-top: 6px; }
.tm-prose audio, .tm-prose .wp-block-audio audio { width: 100%; }
.tm-prose .wp-block-audio { background: var(--tm-surface); border: 1px solid var(--tm-border); border-radius: var(--tm-card-radius); padding: 14px; box-shadow: var(--tm-shadow-card); }
.tm-prose hr { border: 0; border-top: 1px solid var(--tm-rule); }
.tm-prose table { width: 100%; border-collapse: collapse; }
.tm-prose th, .tm-prose td { border: 1px solid var(--tm-border); padding: 8px 10px; text-align: left; }
.tm-pagelinks { margin-top: 24px; }

/* Audio clips (audio post type, legacy-content.php). */
.tm-audio { display: flex; flex-direction: column; gap: 16px; margin-bottom: 1.5em; }
.tm-audio__summary { font-size: 20px; color: var(--tm-text); }
.tm-audio__player { background: var(--tm-surface); border: 1px solid var(--tm-border); border-radius: var(--tm-card-radius); padding: 14px; box-shadow: var(--tm-shadow-card); }
.tm-audio__player audio { width: 100%; }
.tm-audio__embed iframe { width: 100%; border-radius: var(--tm-img-radius); }
.tm-audio__transcript { border: 1px solid var(--tm-border); border-radius: var(--tm-card-radius); padding: 12px 18px; background: var(--tm-surface); }
.tm-audio__transcript summary { cursor: pointer; font-family: var(--tm-font-display); font-weight: 600; color: var(--tm-accent); }
.tm-audio__transcript > * + * { margin-top: 1em; }

/* Cards + grid --------------------------------------------------------------- */
.tm-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tm-card {
	display: flex; flex-direction: column;
	background: var(--tm-surface);
	border: 1px solid var(--tm-border);
	border-radius: var(--tm-card-radius);
	box-shadow: var(--tm-shadow-card);
	overflow: hidden;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.tm-card:hover { border-color: color-mix(in srgb, var(--tm-primary) 50%, var(--tm-border)); box-shadow: var(--tm-shadow-lg); transform: translateY(-3px); }
.tm-card__media { display: block; aspect-ratio: 3 / 2; background: var(--tm-shade); overflow: hidden; }
.tm-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tm-card:hover .tm-card__media img { transform: scale(1.03); }
.tm-card__media--empty { display: flex; align-items: center; justify-content: center; color: var(--tm-border); }
.tm-card__media--empty .tm-icon { width: 56px; height: 56px; }
.tm-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.tm-card__title { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.tm-card__title a { color: var(--tm-text); }
.tm-card__title a:hover { color: var(--tm-accent); }
.tm-card__meta { color: var(--tm-muted); font-size: 14px; }
.tm-card__excerpt { color: var(--tm-muted); font-size: 15px; line-height: 1.6; }
.tm-empty { color: var(--tm-muted); padding: 24px 0; }

/* Single recent-news rail -------------------------------------------------- */
.tm-recent-rail {
	display: none;
}
@media (min-width: 1024px) {
	.tm-recent-rail {
		display: block;
		position: fixed;
		top: 110px;
		right: max(16px, calc((100vw - 1120px) / 2 - 12px));
		z-index: 40;
		width: min(280px, 22vw);
		max-height: calc(100vh - 180px);
		overflow: auto;
		padding: 14px 16px 16px;
		background: var(--tm-surface);
		border: 1px solid var(--tm-border);
		border-radius: var(--tm-card-radius);
		box-shadow: var(--tm-shadow-lg);
		opacity: 0;
		transform: translateX(12px);
		pointer-events: none;
		visibility: hidden;
		transition: opacity .28s ease, transform .28s ease, visibility .28s ease;
	}
	.tm-recent-rail.is-visible {
		opacity: 1;
		transform: translateX(0);
		pointer-events: auto;
		visibility: visible;
	}
	.tm-recent-rail__heading {
		margin: 0 0 12px;
		padding-bottom: 8px;
		font-family: var(--tm-font-display);
		font-size: 13px;
		font-weight: 700;
		letter-spacing: .08em;
		text-transform: uppercase;
		color: var(--tm-text);
		border-bottom: 1px solid var(--tm-rule);
		background: linear-gradient(var(--tm-pink), var(--tm-pink)) left bottom / 40px 3px no-repeat;
	}
	.tm-recent-rail__list {
		margin: 0;
		padding: 0;
		list-style: none;
		display: flex;
		flex-direction: column;
		gap: 12px;
	}
	.tm-recent-rail__item {
		display: grid;
		grid-template-columns: 52px minmax(0, 1fr);
		gap: 10px;
		align-items: start;
	}
	.tm-recent-rail__item:not(:has(.tm-recent-rail__thumb)) {
		grid-template-columns: minmax(0, 1fr);
	}
	.tm-recent-rail__thumb {
		display: block;
		overflow: hidden;
		border-radius: calc(var(--tm-card-radius) - 4px);
		border: 1px solid var(--tm-border);
		aspect-ratio: 1;
		background: var(--tm-shade);
	}
	.tm-recent-rail__thumb img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
	.tm-recent-rail__body {
		min-width: 0;
		display: flex;
		flex-direction: column;
		gap: 4px;
	}
	.tm-recent-rail__title {
		font-family: var(--tm-font-display);
		font-size: 14px;
		font-weight: 600;
		line-height: 1.3;
		color: var(--tm-text);
	}
	.tm-recent-rail__title:hover { color: var(--tm-accent); }
	.tm-recent-rail__date {
		font-size: 12px;
		color: var(--tm-muted);
	}
}

/* Pagination --------------------------------------------------------------- */
.tm-pagination { margin-top: 44px; }
.tm-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-pagination .page-numbers {
	display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0 14px;
	border: 1px solid var(--tm-border); border-radius: 999px;
	background: var(--tm-surface);
	font-family: var(--tm-font-display); font-weight: 600;
	color: var(--tm-text);
	transition: border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.tm-pagination .page-numbers.current,
.tm-pagination a.page-numbers:hover { border-color: var(--tm-accent); color: var(--tm-accent); box-shadow: var(--tm-shadow); }

/* Footer ------------------------------------------------------------------- */
.tm-footer {
	position: relative; isolation: isolate;
	background: var(--tm-footer-bg);
	color: var(--tm-footer-text);
	border-top: 1px solid var(--tm-chrome-rule);
	padding: 64px 0 28px;
	font-size: 15px;
}
.tm-footer a { color: inherit; }
.tm-footer a:hover { color: var(--tm-primary); }
.tm-footer__grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 768px) { .tm-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.tm-footer__col { display: flex; flex-direction: column; gap: 14px; }
.tm-footer__title {
	font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
	color: #ffffff;
	padding-bottom: 8px;
	background: linear-gradient(var(--tm-pink), var(--tm-pink)) left bottom / 36px 3px no-repeat;
}
.tm-footer__contact { font-style: normal; display: flex; flex-direction: column; gap: 8px; }
.tm-footer__row { display: inline-flex; align-items: flex-start; gap: 10px; }
.tm-footer__row .tm-icon { color: var(--tm-primary); margin-top: 2px; }
.tm-footer__label { font-family: var(--tm-font-display); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #ffffff; }
.tm-footer__menu { display: flex; flex-direction: column; gap: 8px; font-family: var(--cm-font-footer-menu, var(--tm-font-menu)); font-size: var(--cm-footer-menu-font-size, 15px); font-weight: var(--cm-footer-menu-font-weight, 500); text-transform: var(--cm-footer-menu-text-transform, none); letter-spacing: var(--cm-footer-menu-letter-spacing, 0); }
.tm-footer__menu a { color: var(--cm-footer-menu-text, var(--tm-footer-text)); }
.tm-footer__menu a:hover { color: var(--cm-footer-menu-text-hover, var(--tm-primary)); }
.tm-footer__social .tb-social-links__link { border-color: color-mix(in srgb, var(--tm-footer-text) 35%, transparent); color: var(--tm-footer-text); }
.tm-footer__social .tb-social-links__link:hover { color: #fff; border-color: var(--tm-primary); }
.tm-footer__html { margin-top: 20px; font-size: 14px; color: color-mix(in srgb, var(--tm-footer-text) 85%, transparent); }
.tm-footer__html p { margin: 0 0 12px; }
.tm-footer__html p:last-child { margin-bottom: 0; }
.tm-footer__html a { display: inline-block; }
.tm-footer__html img { display: block; max-width: 120px; height: auto; }
.tm-footer__base {
	margin-top: 44px; padding-top: 20px;
	border-top: 1px solid color-mix(in srgb, var(--tm-footer-text) 25%, transparent);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
	font-size: 14px; color: color-mix(in srgb, var(--tm-footer-text) 85%, transparent);
}
.tm-footer__note { flex-basis: 100%; }
.tm-footer__copy a { text-decoration: underline; text-underline-offset: 3px; }
.tm-footer__credit a { opacity: .8; }

/* 404 ---------------------------------------------------------------------- */
.tm-404__inner { padding-top: 72px; display: flex; flex-direction: column; gap: 18px; }
.tm-404__links { display: flex; flex-wrap: wrap; gap: 10px; }

/* Responsive --------------------------------------------------------------- */
@media (min-width: 1024px) {
	/*
	 * Three equal columns: logo | centred nav | player.
	 * Keeps the menu in the true middle without overlapping the logo
	 * (absolute 50% centering fails when the menu is wide).
	 */
	.tm-masthead__inner {
		display: grid;
		/* Side columns size to logo / player, then share leftover equally so nav sits true-centre. */
		grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
		align-items: center;
		column-gap: 20px;
	}
	.tm-masthead__brand { justify-self: start; }
	.tm-masthead__nav {
		display: flex;
		justify-content: center;
		justify-self: center;
		flex: none;
		width: max-content;
		max-width: 100%;
		position: static;
		transform: none;
	}
	.tm-masthead__end {
		justify-self: end;
		margin-inline-start: 0;
	}
	.tm-masthead__burger { display: none; }
	.tm-masthead__cta { display: inline-flex; }
	.tm-logo--masthead .tm-logo__img {
		max-height: var(--cm-header-logo-max-height, 96px);
		max-width: var(--cm-header-logo-max-width, 220px);
		margin: 0;
	}
	body.tm-is-scrolled .tm-masthead__inner {
		display: grid;
		grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
	}
	body.tm-is-scrolled .tm-masthead__nav {
		position: static;
		left: auto;
		transform: none;
		width: max-content;
	}
}
@media (max-width: 1023px) {
	.tm-masthead__inner { min-height: 72px; }
	.tm-logo--masthead .tm-logo__img { max-height: 56px; margin: 0; }
	/* Phones: Listen Live keeps the play button; the now-playing pill would crowd the bar. */
	.tm-listen-live .rsp-compact-player--header .rsp-now-playing-pill,
	.tm-listen-live .rsp-compact-player--header .rsp-vote-buttons { display: none !important; }
}
@media (max-width: 480px) {
	.tm-masthead__inner { gap: 10px; min-height: 64px; }
	.tm-logo__text { font-size: 19px; }
	.tm-logo--masthead .tm-logo__img { max-height: 48px; margin: 0; }
	.tm-masthead__end { gap: 4px; }
	.tm-listen-live { width: 48px; height: 48px; }
	.tm-listen-live:has(.rsp-compact-player--header) { min-height: 48px; }
	.tm-listen-live .rsp-compact-player { transform: scale(.236); }
	.tm-listen-live .rsp-compact-player--header { transform: none; }
	.tm-listen-live .rsp-compact-player--header .rsp-compact-play-btn { width: 48px !important; height: 48px !important; }
	.tm-listen-live .rsp-mini-compact-player { transform: scale(.475); }
	.tm-utility__nav { display: none; }
	.tm-hero { padding: 44px 0 36px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}

/* Masthead must never overflow the viewport: flex row, the nav takes what is
   left between the logo and the player and wraps onto a second row before it
   pushes the player off-screen. */
@media (min-width: 1024px) {
	.tm-masthead__inner,
	body.tm-is-scrolled .tm-masthead__inner { display: flex; grid-template-columns: none; column-gap: 20px; }
	.tm-masthead__nav,
	body.tm-is-scrolled .tm-masthead__nav { flex: 1 1 auto; min-width: 0; width: auto; justify-self: auto; }
	.tm-nav--desktop .tm-nav__menu { flex-wrap: wrap; justify-content: center; row-gap: 2px; }
	.tm-masthead__end { flex: none; margin-inline-start: auto; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
	.tm-nav__menu { gap: 10px; }
	.tm-nav__menu a { font-size: calc(var(--cm-menu-font-size, 16px) - 2px); padding-inline: 10px; }
}
/* Below 1440px the now-playing pill would squeeze an eight-item menu onto two rows. */
@media (min-width: 1024px) and (max-width: 1699px) {
	.tm-nav__menu { gap: min(var(--cm-menu-item-gap, 24px), 16px); }
	.tm-listen-live .rsp-compact-player--header .rsp-now-playing-pill,
	.tm-listen-live .rsp-compact-player--header .rsp-vote-buttons { display: none !important; }
}

/* The masthead and utility bar may run wider than the content column so an
   eight-item menu, the logo and the Listen Live player share one row. */
@media (min-width: 1024px) {
	.tm-masthead__inner,
	.tm-utility__inner { max-width: max(var(--tm-width), 1520px); }
}

/* MIX masthead: utility links sit right, the logo hangs over the utility bar
   and below the masthead (Brand Kit header_logo_margin), as on mix985fm.com. */
.tm-utility__inner { justify-content: flex-end; }
.tm-utility__start { margin-inline-start: auto; order: 1; }
.tm-utility__end { margin-inline-start: 0; order: 2; }
.tm-masthead__brand { z-index: 5; }
@media (min-width: 1024px) {
	.tm-logo--masthead .tm-logo__img {
		max-height: var(--cm-header-logo-max-height, 175px);
		max-width: var(--cm-header-logo-max-width, 175px);
		/* Top edge on the utility bar, bottom edge hanging below the masthead. */
		margin: -38px 0 var(--cm-header-logo-margin-bottom, -30px) 0;
		padding: var(--cm-header-logo-padding, 0);
		filter: drop-shadow(0 4px 10px rgba(15, 23, 42, .18));
	}
	.tm-masthead__inner { min-height: 100px; }
	.tm-masthead__brand { align-self: flex-start; }
	body.tm-is-scrolled .tm-masthead__brand { align-self: center; }
	body.tm-is-scrolled .tm-logo--masthead .tm-logo__img { max-height: 44px; max-width: 160px; margin: 0; padding: 0; filter: none; }
}
