/*
Theme Name: Palapa Mac Radio
Theme URI: https://palapamacradio.com
Author: Palapa Mac Radio
Author URI: https://palapamacradio.com
Description: Custom block theme for Palapa Mac Radio. Design C — Lighter Palapa Mac Hybrid (Premium Coastal Escapism). Phase 6 visual system. Native blocks + theme.json first. No page builders.
Requires at least: 6.9
Tested up to: 7.1
Requires PHP: 8.0
Version: 0.15.40
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: palapa-mac-radio
Tags: block-themes, full-site-editing, custom-colors, custom-menu, wide-blocks
*/

/*
 * Only what theme.json cannot express lives here.
 * Tokens come from theme.json (--wp--preset--* / --wp--custom--*).
 */

/* ---------- Tokens ---------- */

:root {
	/*
	 * Sidekick clearance. Core sets --pmr-sidekick-clearance: the measured
	 * 100px player plus the 14px gap Cirrus leaves under it (114px of
	 * viewport). Falls back to theme.json (0px) when Core is inactive.
	 */
	--pm-player-height: var(--pmr-sidekick-clearance, var(--wp--custom--player--height));
	--pm-focus-width: var(--wp--custom--focus--width);
	--pm-focus-offset: var(--wp--custom--focus--offset);
}

/* ---------- Player-safe page bottom ---------- */

/* `html body` outranks the 80px body padding Cirrus's own stylesheet sets. */
html body {
	padding-bottom: calc(var(--pm-player-height) + env(safe-area-inset-bottom, 0px));
}

html {
	scroll-padding-bottom: calc(var(--pm-player-height) + var(--wp--preset--spacing--60));
}

/*
 * Phone: default page template (answer pages, /faq/, /facts/) needs extra
 * main padding so the last lines are not hidden under the Sidekick at 390.
 */
@media (max-width: 781px) {
	.page-template-default main.wp-block-group,
	body.page main.wp-block-group {
		padding-bottom: calc(var(--pm-player-height) + var(--wp--preset--spacing--80) + env(safe-area-inset-bottom, 0px)) !important;
	}
}

/* ---------- Links ---------- */

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
	transition: color var(--wp--custom--motion--fast) var(--wp--custom--motion--easing),
		text-decoration-thickness var(--wp--custom--motion--fast) var(--wp--custom--motion--easing);
}

a:hover {
	text-decoration-thickness: 2px;
}

/* ---------- Page frame: footer sits at the bottom on short pages ---------- */

.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px) - var(--pm-player-height));
}

.wp-site-blocks > footer {
	margin-top: auto;
}

/* ---------- Header: stays at the top on every page and screen, like the Sidekick at the bottom (Jeremy 2026-11-12) ---------- */

.pmr-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Logged in: sit under the admin bar, which is fixed from 601px up and scrolls away below that. */
@media (min-width: 601px) {
	.admin-bar .pmr-site-header {
		top: var(--wp-admin--admin-bar--height, 32px);
	}
}

/* The open phone menu covers the page as before (the header's own layer would otherwise cap it). */
.pmr-site-header:has(.wp-block-navigation__responsive-container.is-menu-open) {
	z-index: 100000;
}

/*
 * Links to #anchors and keyboard focus land below the header. Set on the page
 * content only: a page-wide scroll-padding made the page jump when focus went
 * back to the stuck menu or Sign Up button.
 */
.wp-site-blocks > :not(.pmr-site-header) :is([id], a, button, input, select, textarea, summary, [tabindex]),
.wp-site-blocks > :not(.pmr-site-header)[id] {
	scroll-margin-top: var(--wp--custom--header--sticky-offset);
}

@media (max-width: 839px) {
	.wp-site-blocks > :not(.pmr-site-header) :is([id], a, button, input, select, textarea, summary, [tabindex]),
	.wp-site-blocks > :not(.pmr-site-header)[id] {
		scroll-margin-top: 5rem;
	}
}

/*
 * Home hero subline (theme 0.15.13, tagline C): on portrait phones, break
 * after "Trop Rock," so it reads "Sprinkled with Trop Rock," / "Reggae and
 * Yacht Rock". Hidden on wider screens and landscape phones so Get the App
 * stays above the player.
 */
.pmr-home-hero .pmr-hero-subline-break {
	display: none;
}

@media (max-width: 599px) and (orientation: portrait) {
	.pmr-home-hero .pmr-hero-subline-break {
		display: block;
	}
}

/* Header logo (one-line PALAPA MAC RADIO, Version B). */
.pmr-header-logo a {
	display: block;
	line-height: 0;
}

.pmr-header-logo img {
	display: block;
	width: auto;
	height: 46px;
	max-width: none;
}

/* Laptop-narrow (five nav items on one row) and phones: the 31px phone size. */
@media (max-width: 1179px) {
	.pmr-header-logo img {
		height: 31px;
	}
}

/* Narrow phones: the logo shrinks with the screen only when Join and the menu need the room. */
@media (max-width: 419px) {
	.pmr-header-logo img {
		width: min(206px, calc(100vw - 184px));
		height: auto;
	}
}

.pmr-wordmark {
	white-space: nowrap;
}

/* ---------- Navigation ---------- */

.pmr-primary-nav .wp-block-navigation-item__content {
	padding-block: var(--wp--preset--spacing--30);
	white-space: nowrap;
}

/* Laptop-narrow: tighten nav so wordmark, five items and the sign-up pill fit on one row. */
@media (min-width: 840px) and (max-width: 1023px) {
	.pmr-primary-nav .wp-block-navigation__container {
		gap: var(--wp--preset--spacing--40);
	}

	.pmr-primary-nav {
		font-size: var(--wp--preset--font-size--small);
	}

	.pmr-header-actions {
		gap: var(--wp--preset--spacing--40);
	}
}

.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--coastal-blue);
	text-decoration-thickness: 3px;
	text-underline-offset: 0.4em;
}

.pmr-footer-nav .current-menu-item > .wp-block-navigation-item__content {
	text-decoration-color: var(--wp--preset--color--tropical-aqua);
}

/* 0.15.28: footer links are at least 44x44 px on phones (row 49). */
@media (max-width: 839px) {
	.pmr-footer-nav .wp-block-navigation-item__content {
		display: inline-flex;
		align-items: center;
		box-sizing: border-box;
		min-height: 44px;
		min-width: 44px;
	}
}

/* Menu open/close: 48px tap targets. The open icon stays visually aligned with the header edge. */
.pmr-primary-nav .wp-block-navigation__responsive-container-open,
.pmr-primary-nav .wp-block-navigation__responsive-container-close {
	padding: var(--wp--preset--spacing--40);
}

.pmr-primary-nav .wp-block-navigation__responsive-container-open {
	margin: calc(var(--wp--preset--spacing--40) * -1);
}

/* Mobile overlay menu: left-aligned, large type, 48px+ rows. */
.pmr-primary-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--50) clamp(var(--wp--preset--spacing--50), 4vw, var(--wp--preset--spacing--70));
}

.pmr-primary-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: var(--wp--preset--spacing--80);
}

.pmr-primary-nav .is-menu-open .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--30);
}

/* Advertise lives only in the open phone menu. Home is in the desktop bar and the phone menu. */
.pmr-primary-nav li.pmr-nav-phone-only {
	display: none;
}

.pmr-primary-nav .is-menu-open li.pmr-nav-phone-only {
	display: flex;
}

.pmr-primary-nav .is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	min-height: var(--wp--custom--control--height);
	display: flex;
	align-items: center;
}

/* Advertise is for businesses, so it sits last and a little quieter: same size and tap height, lighter weight. */
.pmr-primary-nav .is-menu-open .pmr-nav-advertise .wp-block-navigation-item__content {
	font-weight: 500;
}

/* ---------- Content components ---------- */

/* Block styles (Eyebrow, Card, Utility panel) live in styles/blocks/*.json. */

/* Edge-to-edge media inside cards: clip to the card radius. */
.pmr-card {
	overflow: hidden;
}

.pmr-card .wp-block-post-featured-image,
.pmr-card .wp-block-image {
	margin: 0;
}

/* Status label for unconfirmed content (TBD / ON HOLD). Removed once Jeremy confirms. */
.pmr-badge {
	width: fit-content;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
	border-radius: 999px;
	background-color: var(--wp--preset--color--warm-sand);
	color: var(--wp--preset--color--ocean-ink);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/*
 * Store badges (assets/badges/): App Store, Google Play, Alexa. Never recolored or stretched.
 * App Store: 48px tall (min 40px); clear space 1/4 height = 12px, matched by the card gap.
 * Google Play: the PNG carries its own clear space, so 72px renders the visible badge
 * at about the App Store badge's height (Google: same size or larger). Pull it left
 * by that built-in padding so both badges line up with the card text.
 */
.pmr-store-badge {
	margin-block: 0;
}

.pmr-store-badge img {
	display: block;
	width: auto;
	max-width: 100%;
}

.wp-block-image.pmr-store-badge--play {
	margin-inline-start: -12px;
}

/* Alexa clear space: half the Alexa icon height (~14px at 48px), so add 4px to the 12px card gap. */
.wp-block-image.pmr-store-badge--alexa {
	margin-block-start: var(--wp--preset--spacing--20);
}

/* Shout-Out line: the number is the call link and stays readable as text on desktop. */
.pmr-phone a {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--control--height);
	color: var(--wp--preset--color--ocean-ink);
	font-weight: 800;
	letter-spacing: 0.01em;
	text-decoration: none;
}

.pmr-phone a:hover {
	text-decoration: underline;
}

/*
 * TEAM Support Wall (Palapa Mac Core block): names are the visual.
 * VIP group first, set apart; TEAM group below. Each under its own logo.
 * No numbers, amounts, avatars or profile links. Long names wrap, never scroll.
 */
.pmr-logo img {
	display: block;
	max-width: 100%;
	height: auto;
}

.pmr-wall-group--vip {
	padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--60);
	border-top: 4px solid var(--wp--preset--color--palapa-gold);
	border-radius: var(--wp--preset--border-radius--card);
	background-color: var(--wp--preset--color--shell);
}

.pmr-support-wall {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: center;
}

.pmr-support-wall li {
	color: var(--wp--preset--color--ocean-ink);
	font-weight: 700;
	overflow-wrap: anywhere;
}

/* VIP: larger names on one centered line that wraps. */
.pmr-support-wall--vip {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--90);
}

.pmr-support-wall--vip li {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 800;
	letter-spacing: -0.01em;
}

/* TEAM (and "all"): even centered rows, so a short last row stays centered. 2 per row on phones. */
.pmr-support-wall--team,
.pmr-support-wall--all {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--70);
}

.pmr-support-wall--team li,
.pmr-support-wall--all li {
	flex: 0 1 11rem;
	padding-block: var(--wp--preset--spacing--40);
	border-bottom: 1px solid var(--wp--custom--border--subtle);
	font-size: var(--wp--preset--font-size--large);
}

@media (max-width: 599px) {
	.pmr-support-wall--team li,
	.pmr-support-wall--all li {
		flex-basis: calc(50% - var(--wp--preset--spacing--70));
	}
}

/* TEAM join prices: same size and weight for both choices (no color-only distinction). */
.pmr-price {
	margin-block: 0;
	color: var(--wp--preset--color--ocean-ink);
	font-weight: 800;
	line-height: 1.1;
}

.pmr-price-per {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	color: var(--wp--preset--color--charcoal);
}

/* FAQ rows (core/details): 48px+ tap targets, subtle dividers. */
.pmr-faq {
	border-bottom: 1px solid var(--wp--custom--border--subtle);
}

.pmr-faq > summary {
	display: flex;
	align-items: center;
	min-height: var(--wp--custom--control--height);
	padding-block: var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--ocean-ink);
	font-weight: 700;
	cursor: pointer;
}

.pmr-faq > summary::before {
	content: "+";
	flex: none;
	width: 1.5em;
	color: var(--wp--preset--color--coastal-blue);
	font-weight: 700;
}

.pmr-faq[open] > summary::before {
	content: "−";
}

.pmr-faq > summary::-webkit-details-marker {
	display: none;
}

.pmr-faq > :not(summary) {
	padding-left: 1.5em;
	padding-bottom: var(--wp--preset--spacing--50);
}

/* 404 recovery routes: large, scannable, one per row. */
.pmr-recovery-links {
	list-style: none;
	padding-left: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
	gap: var(--wp--preset--spacing--40);
}

.pmr-recovery-links a {
	display: flex;
	align-items: center;
	min-height: var(--wp--custom--control--height);
	padding-inline: var(--wp--preset--spacing--50);
	border: 1px solid var(--wp--custom--border--subtle);
	border-radius: var(--wp--preset--border-radius--control);
	background-color: var(--wp--preset--color--pure-white);
	font-weight: 600;
	text-decoration: none;
}

.pmr-recovery-links a:hover {
	background-color: var(--wp--preset--color--coastal-mist);
}

/*
 * Pages made of full-width sections (the "Sections" template and the
 * homepage): the sections sit edge to edge, with no gap between them.
 */
.pmr-sections > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* Site text labels (Core block) use the Eyebrow look. */
.pmr-site-text.is-style-eyebrow {
	color: var(--wp--preset--color--palapa-navy);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pmr-site-text.is-style-eyebrow a {
	color: currentColor;
	text-decoration: none;
}

/* 404 "Page not found" menu: large, scannable recovery links. */
.pmr-recovery-nav,
.pmr-recovery-nav .wp-block-navigation__container {
	width: 100%;
}

.pmr-recovery-nav .wp-block-navigation__container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
	gap: var(--wp--preset--spacing--40);
}

.pmr-recovery-nav .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	min-height: var(--wp--custom--control--height);
	padding-inline: var(--wp--preset--spacing--50);
	border: 1px solid var(--wp--custom--border--subtle);
	border-radius: var(--wp--preset--border-radius--control);
	background-color: var(--wp--preset--color--pure-white);
	font-weight: 600;
	text-decoration: none;
}

.pmr-recovery-nav .wp-block-navigation-item__content:hover {
	background-color: var(--wp--preset--color--coastal-mist);
}

/* Visually hidden, still read by screen readers. */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	word-wrap: normal !important;
}

/* ---------- Legal and utility pages (Decision 7.13) ---------- */

/*
 * Privacy, Terms, Accessibility, Glossary: text from the page content in a
 * 720px column. Body text stays at the site's normal size (never smaller),
 * with generous spacing so long policies stay readable.
 */
.pmr-reading__updated {
	color: var(--wp--preset--color--charcoal);
}

.pmr-answer-updated {
	margin-top: var(--wp--preset--spacing--30);
	margin-bottom: 0;
	color: var(--wp--preset--color--charcoal);
	font-size: var(--wp--preset--font-size--small);
}

.pmr-reading__updated p,
.pmr-reading__updated .wp-block-post-date {
	margin: 0;
}

.pmr-reading__body {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.7;
}

.pmr-reading__body > * + * {
	margin-block-start: var(--wp--preset--spacing--50);
}

.pmr-reading__body h2 {
	margin-block-start: var(--wp--preset--spacing--80);
	font-size: var(--wp--preset--font-size--x-large);
}

.pmr-reading__body h3 {
	margin-block-start: var(--wp--preset--spacing--60);
	font-size: var(--wp--preset--font-size--large);
}

.pmr-reading__body li + li {
	margin-block-start: var(--wp--preset--spacing--20);
}

/* "On this page" list at the top of long pages: two columns from tablet up. */
.pmr-reading__body .pmr-toc {
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60) var(--wp--preset--spacing--50) calc(var(--wp--preset--spacing--60) + 1.25em);
	border: 1px solid var(--wp--custom--border--subtle);
	border-radius: var(--wp--preset--border-radius--card);
	background-color: var(--wp--preset--color--pure-white);
}

@media (min-width: 600px) {
	.pmr-reading__body .pmr-toc {
		column-count: 2;
		column-gap: var(--wp--preset--spacing--80);
	}
}

.pmr-reading__body .pmr-toc li {
	break-inside: avoid;
}

.pmr-reading__body .pmr-toc-label {
	color: var(--wp--preset--color--ocean-ink);
	font-weight: 700;
}

.pmr-reading__body .pmr-toc-label + .pmr-toc {
	margin-block-start: var(--wp--preset--spacing--30);
}

/* Tables (e.g. cookies) scroll inside themselves on phones; the page never does. */
.pmr-reading__body .wp-block-table {
	overflow-x: auto;
}

.pmr-reading__body table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

.pmr-reading__body th,
.pmr-reading__body td {
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--custom--border--subtle);
	text-align: left;
	vertical-align: top;
}

.pmr-reading__body th {
	background-color: var(--wp--preset--color--shell);
	color: var(--wp--preset--color--ocean-ink);
}

.pmr-reading__body .wp-block-table code,
.pmr-reading__body td code {
	overflow-wrap: anywhere;
}

/* Something didn't load: what happened, then what to do next (Decision 7.13 §23). */
.pmr-unavailable {
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
	border: 1px solid var(--wp--custom--border--subtle);
	border-left: 4px solid var(--wp--preset--color--palapa-red);
	border-radius: var(--wp--preset--border-radius--control);
	background-color: var(--wp--preset--color--pure-white);
	color: var(--wp--preset--color--charcoal);
}

.pmr-unavailable p {
	margin: 0;
}

.pmr-unavailable p + p {
	margin-top: var(--wp--preset--spacing--20);
}

.pmr-unavailable__what {
	color: var(--wp--preset--color--ocean-ink);
	font-weight: 700;
}

/* ---------- Schedule, Shows, Hosts (Decision 7.12) ---------- */

/*
 * Radio Station Tabbed Schedule in Phase 6 styling. All seven days stay
 * visible as tabs at every width: Radio Station's narrow-screen script
 * hides some days behind arrow links, so both are overridden here.
 * Without JavaScript the tabs are hidden and every day is shown, stacked.
 */
.pmr-schedule .master-schedule {
	width: 100%;
}

.pmr-schedule .master-schedule-controls-wrapper,
.pmr-schedule .master-schedule > br,
.pmr-schedule .master-schedule-tabs .shift-left-arrow,
.pmr-schedule .master-schedule-tabs .shift-right-arrow,
.pmr-schedule .master-schedule-tab-bottom {
	display: none !important;
}

.pmr-schedule .master-schedule-tabs {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--20);
	margin: 0 0 var(--wp--preset--spacing--40);
	padding: 0;
	list-style: none;
}

.pmr-schedule .master-schedule:not(.pmr-tabs-ready) .master-schedule-tabs {
	display: none;
}

.pmr-schedule .master-schedule-tabs .master-schedule-tabs-day {
	display: block !important;
	width: auto;
	min-width: 0;
	margin: 0;
	border: 1px solid var(--wp--custom--border--subtle);
	border-radius: var(--wp--preset--border-radius--control);
	background-color: var(--wp--preset--color--pure-white);
	color: var(--wp--preset--color--ocean-ink);
	font-size: var(--wp--preset--font-size--small);
}

.pmr-schedule .master-schedule-tabs .master-schedule-tabs-headings {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 3.5rem;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--20);
	border-radius: inherit;
	cursor: pointer;
}

.pmr-schedule .master-schedule-tabs .master-schedule-tabs-day-name {
	font-size: 1em;
	font-weight: 800;
}

.pmr-schedule .master-schedule-tabs .master-schedule-tabs-date {
	font-size: 0.8em;
	font-weight: 600;
}

/* Today: a Gold bar under the day (plus the day/date text), not color alone. */
.pmr-schedule .master-schedule-tabs .master-schedule-tabs-day.current-day {
	border: 1px solid var(--wp--custom--border--subtle);
	box-shadow: inset 0 -4px 0 var(--wp--preset--color--palapa-gold);
}

.pmr-schedule .master-schedule-tabs .master-schedule-tabs-day.active-day-tab {
	border-color: var(--wp--preset--color--palapa-navy);
	background-color: var(--wp--preset--color--palapa-navy);
	color: var(--wp--preset--color--pure-white);
}

.pmr-schedule .master-schedule-tabs .master-schedule-tabs-headings:hover {
	text-decoration: underline;
}

.pmr-schedule .master-schedule-tabs .master-schedule-tabs-headings:focus-visible {
	outline: var(--pm-focus-width) solid var(--wp--preset--color--ocean-ink);
	outline-offset: var(--pm-focus-offset);
}

.pmr-schedule .master-schedule-tab-panels {
	width: auto;
	min-width: 0;
}

.pmr-schedule .master-schedule-tab-panels .master-schedule-tabs-panel {
	box-sizing: border-box;
	float: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--wp--preset--border-radius--card);
	background: none;
	list-style: none;
}

.pmr-schedule .master-schedule:not(.pmr-tabs-ready) .master-schedule-tabs-panel {
	display: block;
	margin-bottom: var(--wp--preset--spacing--60);
}

.pmr-schedule .master-schedule-tab-panels .master-schedule-tabs-panel.active-day-panel {
	overflow: hidden;
	border: 1px solid var(--wp--custom--border--subtle);
	background-color: var(--wp--preset--color--pure-white);
}

.pmr-schedule .master-schedule-tab-panels .master-schedule-tabs-panel:focus-visible {
	outline: var(--pm-focus-width) solid var(--wp--preset--color--ocean-ink);
	outline-offset: var(--pm-focus-offset);
}

/* "Viewing: Monday" is the day label when every day is stacked (no JavaScript). */
.pmr-schedule .master-schedule-tab-panels .master-schedule-tabs-selected {
	display: none;
}

.pmr-schedule .master-schedule:not(.pmr-tabs-ready) .master-schedule-tabs-selected {
	display: block;
	padding: 0 0 var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--ocean-ink);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 800;
}

.pmr-schedule .master-schedule-tab-panels .master-schedule-tabs-show,
.pmr-schedule .master-schedule-tab-panels .master-schedule-tabs-show.first-show,
.pmr-schedule .master-schedule-tab-panels .master-schedule-tabs-show.last-show {
	margin: 0;
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
	border: 0;
	border-bottom: 1px solid var(--wp--custom--border--subtle);
}

.pmr-schedule .master-schedule-tab-panels .master-schedule-tabs-show.last-show {
	border-bottom: 0;
}

/* Radio Station fades past shows to 80%; keep full contrast. */
.pmr-schedule .master-schedule-tab-panels .master-schedule-tabs-show.before-current {
	opacity: 1;
}

/* The Show on air now (inside the schedule only; not Now Playing music). */
.pmr-schedule .master-schedule-tab-panels .master-schedule-tabs-show.nowplaying {
	border: 0;
	border-bottom: 1px solid var(--wp--custom--border--subtle);
	box-shadow: inset 4px 0 0 var(--wp--preset--color--palapa-gold);
	background-color: var(--wp--preset--color--shell);
}

.pmr-schedule .master-schedule-tab-panels .master-schedule-tabs-show .show-info {
	display: block;
	float: none;
	width: auto;
	min-width: 0;
	margin: 0;
}

.pmr-schedule .master-schedule-tabs-show .show-image:empty {
	display: none;
}

/* Show artwork: square thumbnail beside the title and times. */
.pmr-schedule .master-schedule-tab-panels .master-schedule-tabs-show:has(.show-image img) {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr);
	align-items: center;
	gap: var(--wp--preset--spacing--50);
}

.pmr-schedule .master-schedule-tab-panels .master-schedule-tabs-show .show-image {
	width: auto;
	margin: 0;
}

.pmr-schedule .master-schedule-tabs-show .show-image a,
.pmr-schedule .master-schedule-tabs-show .show-image img {
	display: block;
}

.pmr-schedule .master-schedule-tabs-show .show-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--wp--preset--border-radius--control);
}

.pmr-schedule .master-schedule-tabs-show .show-title {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	line-height: 1.3;
}

.pmr-schedule .master-schedule-tabs-show .show-title a {
	color: var(--wp--preset--color--ocean-ink);
}

.pmr-schedule .master-schedule-tabs-show .show-time,
.pmr-schedule .master-schedule-tabs-show .show-user-time {
	margin-top: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--charcoal);
	font-size: var(--wp--preset--font-size--medium);
}

.pmr-schedule .master-schedule-tabs-show .rs-time {
	text-transform: uppercase;
}

@media (max-width: 599px) {
	.pmr-schedule .master-schedule-tabs {
		gap: 4px;
	}

	.pmr-schedule .master-schedule-tabs .master-schedule-tabs-headings {
		padding-inline: 2px;
	}

	/* Date on two lines ("12th" / "Oct") for every day, so the tabs line up. */
	.pmr-schedule .master-schedule-tabs .master-schedule-tabs-date {
		width: min-content;
		font-size: 0.7em;
		text-align: center;
	}

	.pmr-schedule .master-schedule-tab-panels .master-schedule-tabs-show,
	.pmr-schedule .master-schedule-tab-panels .master-schedule-tabs-show.first-show,
	.pmr-schedule .master-schedule-tab-panels .master-schedule-tabs-show.last-show {
		padding-inline: var(--wp--preset--spacing--50);
	}

	.pmr-schedule .master-schedule-tab-panels .master-schedule-tabs-show:has(.show-image img) {
		grid-template-columns: 3.5rem minmax(0, 1fr);
		gap: var(--wp--preset--spacing--40);
	}
}

/* Airtimes on Show and Host pages and Show cards (Core blocks). */
.pmr-airtimes__list,
.pmr-host-shows__list,
.pmr-host-chips,
.pmr-host-links ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Day | times on two columns; stacked on phones and inside cards. */
.pmr-airtimes__list li {
	display: grid;
	grid-template-columns: 12rem minmax(0, 1fr);
	gap: 0 var(--wp--preset--spacing--40);
	padding-block: var(--wp--preset--spacing--20);
}

.pmr-airtimes__days {
	color: var(--wp--preset--color--ocean-ink);
	font-weight: 700;
}

@media (max-width: 599px) {
	.pmr-airtimes__list li {
		display: block;
	}

	.pmr-airtimes__days,
	.pmr-airtimes__times {
		display: block;
	}
}

.pmr-airtimes__zone {
	margin-top: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--charcoal);
	font-size: var(--wp--preset--font-size--small);
}

.pmr-card .pmr-airtimes__list li {
	display: block;
	padding-block: 2px;
	font-size: var(--wp--preset--font-size--small);
}

.pmr-card .pmr-airtimes__days {
	margin-inline-end: var(--wp--preset--spacing--30);
}

.pmr-card .pmr-airtimes__zone {
	margin-top: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--small);
}

.pmr-host-shows__list > li + li {
	margin-top: var(--wp--preset--spacing--60);
	padding-top: var(--wp--preset--spacing--60);
	border-top: 1px solid var(--wp--custom--border--subtle);
}

.pmr-host-show__title {
	margin: 0 0 var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--large);
}

/* Host links on a Show page: name (and photo when there is one), 48px tall. */
.pmr-host-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--40);
}

.pmr-host-chip a,
.pmr-host-links a {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--40);
	min-height: var(--wp--custom--control--height);
	padding-inline: var(--wp--preset--spacing--50);
	border: 1px solid var(--wp--custom--border--subtle);
	border-radius: 999px;
	background-color: var(--wp--preset--color--pure-white);
	color: var(--wp--preset--color--ocean-ink);
	font-weight: 700;
	text-decoration: none;
}

.pmr-host-chip a:has(.pmr-host-chip__photo) {
	padding-inline-start: 4px;
}

.pmr-host-chip a:hover,
.pmr-host-links a:hover {
	background-color: var(--wp--preset--color--coastal-mist);
}

.pmr-host-chip__photo {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.pmr-host-links ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--40);
}

.pmr-show-hosts--compact,
.pmr-host-shows--compact {
	margin: 0;
	color: var(--wp--preset--color--charcoal);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

/* ---------- Header "Keep Me in the Loop" + pop-up (Decision 7.10, Jeremy 2026-10-08) ---------- */

.pmr-header-actions {
	flex-wrap: nowrap;
}

/* Outlined pill: clearly a button, distinct from the nav links. */
.pmr-loop-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--30);
	box-sizing: border-box;
	min-height: 44px;
	min-width: 44px;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
	border: 2px solid var(--wp--preset--color--ocean-ink);
	border-radius: 999px;
	background-color: var(--wp--preset--color--pure-white);
	color: var(--wp--preset--color--ocean-ink);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color var(--wp--custom--motion--fast) var(--wp--custom--motion--easing);
}

.pmr-loop-button:hover {
	background-color: var(--wp--preset--color--coastal-mist);
	text-decoration: none;
}

.pmr-loop-button__icon {
	flex: none;
}

/*
 * Phone header (under 840px): compact "Join" pill. Desktop and in-page CTAs
 * keep "Keep Me in the Loop". Only one label is visible at a time so the
 * spoken name can include the visible word (WCAG 2.5.3). The control also
 * has aria-label "Join: Keep Me in the Loop".
 */
.pmr-loop-button__label--short {
	display: none;
}

.pmr-loop-button__label--full {
	display: inline;
}

@media (max-width: 1179px) {
	.pmr-loop-button {
		gap: 6px;
		padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	}
}

@media (max-width: 839px) {
	.pmr-header-actions .pmr-loop-button__label--full {
		display: none;
	}

	.pmr-header-actions .pmr-loop-button__label--short {
		display: inline;
	}
}

/*
 * Phones and narrow tablets (under 840px): the nav collapses to the menu button so
 * wordmark + sign-up pill + menu always fit on one row. The pill sits left of the menu.
 */
@media (min-width: 600px) and (max-width: 839px) {
	.pmr-primary-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.pmr-primary-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

@media (max-width: 839px) {
	.pmr-site-header .alignwide {
		gap: var(--wp--preset--spacing--40);
	}

	.pmr-header-actions {
		gap: var(--wp--preset--spacing--30);
	}

	.pmr-header-actions .pmr-loop-button {
		order: -1;
	}
}

/* Small phones: a slightly smaller wordmark keeps the one-row header. */
@media (max-width: 419px) {
	.pmr-site-header .pmr-wordmark {
		font-size: 0.9375rem;
	}
}

@media (max-width: 359px) {
	.pmr-site-header .pmr-wordmark {
		font-size: 0.8125rem;
	}

	.pmr-site-header .alignwide {
		gap: var(--wp--preset--spacing--30);
	}

	.pmr-loop-button {
		padding: var(--wp--preset--spacing--30);
	}
}

/* Backdrop stops above the Sidekick, so the player is never covered. */
.pmr-signup-backdrop {
	position: fixed;
	inset: 0 0 calc(var(--pm-player-height) + env(safe-area-inset-bottom, 0px)) 0;
	z-index: 100000;
	background-color: rgba(8, 44, 69, 0.55);
}

.pmr-signup-backdrop[hidden] {
	display: none;
}

.pmr-signup-dialog {
	position: fixed;
	z-index: 100001;
	top: calc((100dvh - var(--pm-player-height)) / 2);
	left: 50%;
	transform: translate(-50%, -50%);
	box-sizing: border-box;
	width: min(560px, calc(100vw - 2 * var(--wp--preset--spacing--50)));
	max-height: calc(100dvh - var(--pm-player-height) - 2 * var(--wp--preset--spacing--50));
	margin: 0;
	padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--70) var(--wp--preset--spacing--70);
	overflow: auto;
	border: 0;
	border-top: 4px solid var(--wp--preset--color--palapa-gold);
	border-radius: var(--wp--preset--border-radius--card);
	background-color: var(--wp--preset--color--pure-white);
	color: var(--wp--preset--color--charcoal);
}

.pmr-signup-dialog__close {
	position: absolute;
	top: var(--wp--preset--spacing--40);
	right: var(--wp--preset--spacing--40);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--ocean-ink);
	cursor: pointer;
}

.pmr-signup-dialog__close:hover {
	background-color: var(--wp--preset--color--coastal-mist);
}

.pmr-signup-dialog__title {
	margin: 0 0 var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--x-large);
}

.pmr-signup-dialog__lead {
	margin: 0 0 var(--wp--preset--spacing--60);
}

@media (max-width: 599px) {
	.pmr-signup-dialog {
		padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--50) var(--wp--preset--spacing--50);
	}
}

/* Homepage form panel: HubSpot pads its own form, so keep our panel thin on phones. */
@media (max-width: 599px) {
	.pmr-form-panel {
		padding: var(--wp--preset--spacing--20) !important;
	}
}

/* ---------- Home visual pass (Gate 9, Decision 21): opt-in block styles ---------- */

/*
 * Every look below is a block style a block opts into (is-style-*) or a
 * class on a Home pattern section, so no other page changes. Text and
 * images stay in the page content and the Media Library.
 */

/* Script headline: North Port, Home / Listen / Advertise display. */
.is-style-script-headline {
	font-synthesis: none;
	text-wrap: balance;
}

/* Photo hero: full-width photo; a light Shell wash at the top keeps the navy headline readable on any photo. */
.wp-block-cover.is-style-photo-hero {
	overflow: hidden;
	/* The page's own side padding (on the inner container) is enough; drop the cover's default 1em. */
	padding-left: 0;
	padding-right: 0;
}

.wp-block-cover.is-style-photo-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		rgba(255, 249, 240, 0.86) 0%,
		rgba(255, 249, 240, 0.62) 34%,
		rgba(255, 249, 240, 0.12) 62%,
		rgba(255, 249, 240, 0) 76%
	);
}

.wp-block-cover.is-style-photo-hero .wp-block-cover__inner-container {
	z-index: 2;
}

.wp-block-cover.is-style-photo-hero .is-style-script-headline {
	display: block;
	width: fit-content;
	max-width: 100%;
	margin-inline: auto;
	padding-inline: 0.08em;
	overflow: visible;
	transform: rotate(var(--pmr-headline-tilt, -3deg));
	transform-origin: center center;
	text-shadow: 0 2px 18px rgba(255, 249, 240, 0.7);
}

.wp-block-cover.is-style-photo-hero .wp-block-buttons {
	margin-block-start: var(--wp--preset--spacing--70);
}

/* Short screens (phones held sideways): the hero is as tall as its content. */
@media (max-height: 520px) {
	.wp-block-cover.is-style-photo-hero {
		min-height: 0 !important;
	}
}

@media (max-width: 781px) and (min-height: 521px) {
	.wp-block-cover.is-style-photo-hero {
		min-height: 560px !important;
	}
}

@media (max-width: 781px) {
	.wp-block-cover.is-style-photo-hero {
		padding-top: var(--wp--preset--spacing--90) !important;
		padding-bottom: var(--wp--preset--spacing--90) !important;
	}
}

/*
 * Left-aligned photo heroes (Listen, Advertise; Decision 22): longer text,
 * so the Shell wash runs from the left. Keyed to the cover's own
 * "content position: left" setting.
 */
.wp-block-cover.is-style-photo-hero.is-position-center-left .wp-block-cover__inner-container {
	width: 100% !important;
}

/* Line the text up with the page's wide grid (the wordmark and the sections below). */
.wp-block-cover.is-style-photo-hero.is-position-center-left .wp-block-cover__inner-container > * {
	max-width: var(--wp--style--global--wide-size);
}

.wp-block-cover.is-style-photo-hero.is-position-center-left::before {
	background: linear-gradient(
		90deg,
		rgba(255, 249, 240, 0.93) 0%,
		rgba(255, 249, 240, 0.86) 42%,
		rgba(255, 249, 240, 0.3) 66%,
		rgba(255, 249, 240, 0) 80%
	);
}

.wp-block-cover.is-style-photo-hero.is-position-center-left .is-style-script-headline {
	margin-inline: 0;
	padding-inline: 0.35em 0.6em;
	transform: rotate(var(--pmr-headline-tilt, -3deg));
	transform-origin: left center;
}

@media (max-width: 781px) {
	.wp-block-cover.is-style-photo-hero.is-position-center-left::before {
		background: rgba(255, 249, 240, 0.88);
	}
}

/*
 * Short screens (520px tall or less, e.g. phones held sideways). Decision
 * 7.5: no CTA hidden behind the Sidekick. The photo heroes go compact, so
 * the hero button sits above the player without scrolling. Content order is
 * not changed here; on Listen and Advertise the button already follows the H1.
 */
@media (max-height: 520px) {
	.wp-site-blocks > main:has(.wp-block-cover.is-style-photo-hero) {
		margin-block-start: 0;
	}

	.wp-block-cover.is-style-photo-hero {
		padding-top: var(--wp--preset--spacing--50) !important;
		padding-bottom: var(--wp--preset--spacing--50) !important;
	}

	.wp-block-cover.is-style-photo-hero .is-style-script-headline {
		font-size: 2.25rem !important;
	}

	.wp-block-cover.is-style-photo-hero .is-style-condensed-label {
		font-size: var(--wp--preset--font-size--medium) !important;
	}

	.wp-block-cover.is-style-photo-hero .wp-block-cover__inner-container > * + *,
	.wp-block-cover.is-style-photo-hero .wp-block-cover__inner-container > .wp-block-group > * + * {
		margin-block-start: var(--wp--preset--spacing--30) !important;
	}
}

/* Very short screens (360px tall or less): tighter still. */
@media (max-height: 360px) {
	.wp-block-cover.is-style-photo-hero {
		padding-top: var(--wp--preset--spacing--30) !important;
		padding-bottom: var(--wp--preset--spacing--30) !important;
	}

	.wp-block-cover.is-style-photo-hero .is-style-script-headline {
		font-size: 1.875rem !important;
		transform: none !important;
	}

	.wp-block-cover.is-style-photo-hero .is-style-condensed-label {
		font-size: var(--wp--preset--font-size--x-small) !important;
	}

	.wp-block-cover.is-style-photo-hero .wp-block-button__link {
		font-size: var(--wp--preset--font-size--medium) !important;
		padding-top: 0.5rem !important;
		padding-bottom: 0.5rem !important;
	}

	.wp-block-cover.is-style-photo-hero .wp-block-cover__inner-container > * + *,
	.wp-block-cover.is-style-photo-hero .wp-block-cover__inner-container > .wp-block-group > * + * {
		margin-block-start: var(--wp--preset--spacing--20) !important;
	}
}

/*
 * Hero actions row (Listen; Jeremy, 2026-10-18). The app button and the
 * "Wondering what's on?" line share a row that wraps on narrow phones, so the
 * schedule link sits beside the button and clear of the Sidekick on short
 * screens. The line is page content; this only lays it out.
 */
.wp-block-cover.is-style-photo-hero .pmr-hero-actions > .wp-block-buttons {
	margin-block-start: 0;
}

.wp-block-cover.is-style-photo-hero .pmr-hero-actions > p {
	flex: 1 1 14rem;
	margin: 0;
}

/* Outline caps: the outline button in condensed caps (Decision 22). */
.wp-block-button.is-style-outline-caps > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--coastal-mist);
	color: var(--wp--preset--color--ocean-ink);
}

/* Five photo cards: overlap the bottom of the hero on wide screens, as in the mockup. */
.pmr-home-cards {
	position: relative;
	z-index: 3;
	/* Keep the cards' negative margin inside this section, so only the cards (not its background) rise over the photo. */
	display: flow-root;
}

@media (min-width: 960px) {
	.wp-block-cover.is-style-photo-hero + .pmr-home-cards > .alignwide {
		margin-block-start: -7.5rem;
	}
}

@media (max-width: 959px) {
	.pmr-home-cards {
		padding-top: var(--wp--preset--spacing--80) !important;
	}
}

/* Two columns on phones (one below 360px): the odd last card sits centered at the same width. */
@media (min-width: 360px) and (max-width: 599px) {
	.pmr-home-cards .alignwide > .is-style-photo-card:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		justify-self: center;
		width: calc(50% - var(--wp--preset--spacing--60) / 2);
	}
}

/* Photo card: whole card is the link (the title's link is stretched over it). */
.is-style-photo-card {
	position: relative;
	height: 100%;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(8, 44, 69, 0.12);
	transition: transform var(--wp--custom--motion--base) var(--wp--custom--motion--easing),
		box-shadow var(--wp--custom--motion--base) var(--wp--custom--motion--easing);
}

.is-style-photo-card > .wp-block-image {
	margin: 0;
	width: 100%;
}

.is-style-photo-card > .wp-block-image img {
	display: block;
	width: 100%;
	border-radius: 0;
}

.is-style-photo-card > .wp-block-group {
	flex-grow: 1;
	border-top: 3px solid var(--wp--preset--color--sunset-gold);
}

.is-style-photo-card h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.is-style-photo-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 36px rgba(8, 44, 69, 0.18);
}

.is-style-photo-card:has(a:focus-visible) {
	outline: var(--pm-focus-width) solid var(--wp--preset--color--ocean-ink);
	outline-offset: var(--pm-focus-offset);
}

@supports selector(:has(a)) {
	.is-style-photo-card a:focus-visible {
		outline: none;
	}
}

/* Split: script headline beside a photo with a brush edge. */
.wp-block-image.is-style-brush-edge {
	margin: 0;
}

.wp-block-image.is-style-brush-edge img {
	display: block;
	width: 100%;
	border-radius: 0;
	/*
	 * Organic torn edge (Round 6b, Jeremy 2026-11-12): a dry-brush paint
	 * edge on the left, 16px deep, replacing the zigzag polygon. The edge is
	 * a PNG alpha mask; the rest of the photo is a solid mask.
	 */
	-webkit-mask:
		url("assets/images/edges/photo-edge-left-d.png") left top / 16px 100% no-repeat,
		linear-gradient(#000 0 0) right top / calc(100% - 15px) 100% no-repeat;
	mask:
		url("assets/images/edges/photo-edge-left-d.png") left top / 16px 100% no-repeat,
		linear-gradient(#000 0 0) right top / calc(100% - 15px) 100% no-repeat;
}

@media (max-width: 781px) {
	/* Columns stack on phones: the torn edge moves to the top, 11px deep. */
	.wp-block-image.is-style-brush-edge img {
		-webkit-mask:
			url("assets/images/edges/photo-edge-top-p.png") center top / 800px 11px repeat-x,
			linear-gradient(#000 0 0) center bottom / 100% calc(100% - 10px) no-repeat;
		mask:
			url("assets/images/edges/photo-edge-top-p.png") center top / 800px 11px repeat-x,
			linear-gradient(#000 0 0) center bottom / 100% calc(100% - 10px) no-repeat;
	}
}

/* Gold caps button: Palapa Gold, condensed caps, a drawn arrow (not text, so screen readers skip it). */
.wp-block-button.is-style-gold-caps > .wp-block-button__link {
	box-shadow: 0 6px 16px rgba(8, 44, 69, 0.16);
}

.wp-block-button.is-style-gold-caps > .wp-block-button__link::after,
.wp-block-button.is-style-outline-caps > .wp-block-button__link::after {
	content: "";
	display: inline-block;
	flex-shrink: 0;
	width: 1.1em;
	height: 0.8em;
	margin-inline-start: 0.5em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 16'%3E%3Cpath d='M0 7h17.2l-5-5L13.6.6 21 8l-7.4 7.4-1.4-1.4 5-5H0z'/%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 22 16'%3E%3Cpath d='M0 7h17.2l-5-5L13.6.6 21 8l-7.4 7.4-1.4-1.4 5-5H0z'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform var(--wp--custom--motion--fast) var(--wp--custom--motion--easing);
}

.wp-block-button.is-style-gold-caps > .wp-block-button__link:hover::after,
.wp-block-button.is-style-outline-caps > .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

/*
 * ---------- Home: Round 6b colour rhythm and torn paint edges ----------
 * Jeremy, 2026-11-12 (edges-round6/R6b-*). Every section change pairs a deep
 * band with a light one, and the deep band owns the tear: it rises into the
 * light band above (top) and hangs into the light band below (bottom).
 * Dry-brush paint edge "A" (PNG alpha masks in assets/images/edges/), 58px
 * deep on wide screens and 18px on phones. No thatch, no shadows on the
 * colour tears. Style-guide colours only. Keyed to the Home section classes,
 * so no other page changes.
 *   Hero photo / Cards + split: Shell / PalapaPalooza 2027 (hidden until
 *   announced): Ocean Ink, reusing the Advertise tear masks / Inbox: Shell /
 *   Footer: Ocean Ink.
 *   Removed from Home (Jeremy's OK, 2026-11-16): Advertise, Coconut Crew,
 *   TEAM, Discover ("See what's on and who's on") and Shop. With Palooza
 *   hidden, Cards + split + Inbox are one continuous Shell band; the footer
 *   still owns the tear into that band. Remove .pmr-unannounced to reveal
 *   Palooza; the rhythm is then Shell / Ocean Ink / Shell / Ocean Ink.
 */

.pmr-sections > .pmr-home-advertise.has-background,
.pmr-sections > .pmr-home-palooza.has-background {
	background-color: var(--wp--preset--color--ocean-ink) !important;
}

.pmr-sections > .pmr-home-team.has-background,
.pmr-sections > .pmr-home-discover.has-background {
	background-color: var(--wp--preset--color--palapa-navy) !important;
}

.pmr-home-advertise,
.pmr-home-palooza,
.pmr-home-team,
.pmr-home-discover {
	--pmr-deep: var(--wp--preset--color--ocean-ink);
	position: relative;
	z-index: 1;
	color: var(--wp--preset--color--pure-white);
}

.pmr-home-team,
.pmr-home-discover {
	--pmr-deep: var(--wp--preset--color--palapa-navy);
}

/* Text on the deep bands: Pure White headings and body, Palapa Gold small labels. */
:is(.pmr-home-advertise, .pmr-home-palooza, .pmr-home-team, .pmr-home-discover) :is(h1, h2, h3, h4, p):not(.is-style-eyebrow) {
	color: var(--wp--preset--color--pure-white) !important;
}

:is(.pmr-home-advertise, .pmr-home-palooza, .pmr-home-team, .pmr-home-discover) .is-style-eyebrow {
	color: var(--wp--preset--color--palapa-gold) !important;
}

/* Outline buttons on the deep bands: white outline and label. The Gold button and the Discover boxes stay as they are. */
:is(.pmr-home-advertise, .pmr-home-palooza, .pmr-home-team, .pmr-home-discover) .wp-block-button.is-style-outline > .wp-block-button__link {
	background-color: transparent;
	border-color: var(--wp--preset--color--pure-white);
	color: var(--wp--preset--color--pure-white);
}

:is(.pmr-home-advertise, .pmr-home-palooza, .pmr-home-team, .pmr-home-discover) .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--pure-white);
	color: var(--wp--preset--color--ocean-ink);
}

:is(.pmr-home-advertise, .pmr-home-palooza, .pmr-home-team, .pmr-home-discover) .wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	outline-color: var(--wp--preset--color--pure-white);
}

.pmr-home-discover .pmr-recovery-links a {
	color: var(--wp--preset--color--ocean-ink);
}

/* The tears. */
.pmr-home-advertise::before,
.pmr-home-advertise::after,
.pmr-home-palooza::before,
.pmr-home-palooza::after,
.pmr-home-team::before,
.pmr-home-team::after,
.pmr-home-discover::before,
.pmr-home-discover::after,
.wp-site-blocks:has(.pmr-home-email) > footer::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 58px;
	background-color: var(--pmr-deep);
	pointer-events: none;
	-webkit-mask-position: center top;
	mask-position: center top;
	-webkit-mask-size: 2560px 58px;
	mask-size: 2560px 58px;
	-webkit-mask-repeat: repeat-x;
	mask-repeat: repeat-x;
}

.pmr-home-advertise::before,
.pmr-home-palooza::before,
.pmr-home-team::before,
.pmr-home-discover::before,
.wp-site-blocks:has(.pmr-home-email) > footer::before {
	bottom: calc(100% - 1px);
}

.pmr-home-advertise::after,
.pmr-home-palooza::after,
.pmr-home-team::after,
.pmr-home-discover::after {
	top: calc(100% - 1px);
}

.pmr-home-advertise::before,
.pmr-home-palooza::before { -webkit-mask-image: url("assets/images/edges/tear-advertise-top-d.png"); mask-image: url("assets/images/edges/tear-advertise-top-d.png"); }
.pmr-home-advertise::after,
.pmr-home-palooza::after { -webkit-mask-image: url("assets/images/edges/tear-advertise-bottom-d.png"); mask-image: url("assets/images/edges/tear-advertise-bottom-d.png"); }
.pmr-home-team::before { -webkit-mask-image: url("assets/images/edges/tear-team-top-d.png"); mask-image: url("assets/images/edges/tear-team-top-d.png"); }
.pmr-home-team::after { -webkit-mask-image: url("assets/images/edges/tear-team-bottom-d.png"); mask-image: url("assets/images/edges/tear-team-bottom-d.png"); }
.pmr-home-discover::before { -webkit-mask-image: url("assets/images/edges/tear-discover-top-d.png"); mask-image: url("assets/images/edges/tear-discover-top-d.png"); }
.pmr-home-discover::after { -webkit-mask-image: url("assets/images/edges/tear-discover-bottom-d.png"); mask-image: url("assets/images/edges/tear-discover-bottom-d.png"); }


/* Inbox sits on Shell so Cards + split + Inbox are one light band while Palooza is hidden. */
.pmr-sections > .pmr-home-email.has-background {
	background-color: var(--wp--preset--color--shell) !important;
}

/*
 * PalapaPalooza 2027 teaser is in the Home page but hidden until announced.
 * It leaves no gap and no hanging tear. Remove .pmr-unannounced to reveal it.
 */
.pmr-home-palooza.pmr-unannounced {
	display: none !important;
}

/* The footer (Ocean Ink) rises into the Inbox band. Home only. */
.wp-site-blocks:has(.pmr-home-email) > footer {
	position: relative;
	z-index: 1;
	--pmr-deep: var(--wp--preset--color--ocean-ink);
}

.wp-site-blocks:has(.pmr-home-email) > footer::before {
	-webkit-mask-image: url("assets/images/edges/tear-footer-top-d.png");
	mask-image: url("assets/images/edges/tear-footer-top-d.png");
}

/*
 * Home hero (H2 Single-Pole Palapa, Jeremy 2026-11-13). Wide screens: photo
 * top aligned (the block's focal point) and no button. The photo owns the
 * tear and hangs onto the Shell below, with a soft Ocean Ink lift (26%)
 * because sand on Shell is close in value.
 */

/* The picture element has to fill the cover the way the bare img did. */
.wp-block-cover.is-style-photo-hero.pmr-home-hero > picture.pmr-home-hero-picture {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.wp-block-cover.is-style-photo-hero.pmr-home-hero > picture.pmr-home-hero-picture > img {
	object-position: 50% 0%;
}

/*
 * Phone crop (below 600px): pin to the bottom of the frame. The designed crop
 * matches 390 x 560 exactly. At 430 the box is a little wider, and a top-aligned
 * cover would clip the chairs, table and drinks. !important beats the cover
 * block's inline object-position (50% 0%).
 */
@media (max-width: 599px) {
	.wp-block-cover.is-style-photo-hero.pmr-home-hero > picture.pmr-home-hero-picture > img {
		object-position: 50% 100% !important;
	}
}

/*
 * Hero type clearance (theme 0.15.12, 2026-11-14). On 430px phones the 560px
 * min-height plus the bottom pin cropped the sky, so the genre line sat on
 * the palapa thatch. On wide screens the subline crossed the thatch too.
 * Keep the chairs, drinks and palapa in frame, keep the Round 6b tears, and
 * do not use a heavy dark overlay. Hero copy is tagline C as of 0.15.13.
 */

/* Soft Shell wash behind the type, fading out before the chairs and drinks. */
.wp-block-cover.is-style-photo-hero.pmr-home-hero::before {
	background: linear-gradient(
		180deg,
		rgba(255, 249, 240, 0.48) 0%,
		rgba(255, 249, 240, 0.28) 30%,
		rgba(255, 249, 240, 0.10) 50%,
		rgba(255, 249, 240, 0) 66%
	);
}

/* A little Shell glow on the genre line if a word still kisses the thatch. */
.wp-block-cover.is-style-photo-hero.pmr-home-hero .is-style-condensed-label {
	text-shadow: 0 1px 10px rgba(255, 249, 240, 0.95), 0 0 22px rgba(255, 249, 240, 0.7);
}

/* Lift the type into the sky. !important beats the cover block's inline padding. */
.wp-block-cover.is-style-photo-hero.pmr-home-hero {
	padding-top: var(--wp--preset--spacing--80) !important;
}

@media (max-width: 781px) {
	.wp-block-cover.is-style-photo-hero.pmr-home-hero {
		padding-top: var(--wp--preset--spacing--60) !important;
	}
}

/*
 * Phones: keep the designed 1170x1680 crop, including the sky. Height follows
 * the crop's aspect when the box is wider than 390, and never drops below the
 * existing 560px min-height. Short landscape screens keep the compact rules
 * so Get the App stays above the player.
 */
@media (max-width: 599px) and (min-height: 521px) {
	.wp-block-cover.is-style-photo-hero.pmr-home-hero {
		min-height: max(560px, calc(100vw * 1680 / 1170)) !important;
	}
}

.wp-block-cover.is-style-photo-hero.pmr-home-hero {
	-webkit-mask:
		linear-gradient(#000 0 0) center top / 100% calc(100% - 57px) no-repeat,
		url("assets/images/edges/tear-hero-d.png") center bottom / 2560px 58px repeat-x;
	mask:
		linear-gradient(#000 0 0) center top / 100% calc(100% - 57px) no-repeat,
		url("assets/images/edges/tear-hero-d.png") center bottom / 2560px 58px repeat-x;
}

.wp-block-cover.is-style-photo-hero.pmr-home-hero + .pmr-home-cards::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 0;
	right: 0;
	top: -58px;
	height: 70px;
	background-color: var(--wp--preset--color--ocean-ink);
	pointer-events: none;
	-webkit-mask: url("assets/images/edges/tear-hero-shadow-d.png") center top / 2560px 70px repeat-x;
	mask: url("assets/images/edges/tear-hero-shadow-d.png") center top / 2560px 70px repeat-x;
}

/* "Get the App" (phones only; links to the App Store or Google Play). Wide screens use the Sidekick player. */
@media (min-width: 782px) {
	.pmr-home-hero .pmr-phone-only {
		display: none !important;
	}
}

@media (max-width: 781px) {
	/* Phone tear (Round 6b). The H2 crop is chosen by the picture element; no extra zoom or scrim. */
	.wp-block-cover.is-style-photo-hero.pmr-home-hero {
		-webkit-mask:
			linear-gradient(#000 0 0) center top / 100% calc(100% - 17px) no-repeat,
			url("assets/images/edges/tear-hero-p.png") center bottom / 1280px 18px repeat-x;
		mask:
			linear-gradient(#000 0 0) center top / 100% calc(100% - 17px) no-repeat,
			url("assets/images/edges/tear-hero-p.png") center bottom / 1280px 18px repeat-x;
	}

	.wp-block-cover.is-style-photo-hero.pmr-home-hero + .pmr-home-cards::before {
		top: -18px;
		height: 30px;
		-webkit-mask: url("assets/images/edges/tear-hero-shadow-p.png") center top / 1280px 30px repeat-x;
		mask: url("assets/images/edges/tear-hero-shadow-p.png") center top / 1280px 30px repeat-x;
	}

	.pmr-home-advertise::before,
	.pmr-home-advertise::after,
	.pmr-home-palooza::before,
	.pmr-home-palooza::after,
	.pmr-home-team::before,
	.pmr-home-team::after,
	.pmr-home-discover::before,
	.pmr-home-discover::after,
	.wp-site-blocks:has(.pmr-home-email) > footer::before {
		height: 18px;
		-webkit-mask-size: 1280px 18px;
		mask-size: 1280px 18px;
	}

	.pmr-home-advertise::before,
	.pmr-home-palooza::before { -webkit-mask-image: url("assets/images/edges/tear-advertise-top-p.png"); mask-image: url("assets/images/edges/tear-advertise-top-p.png"); }
	.pmr-home-advertise::after,
	.pmr-home-palooza::after { -webkit-mask-image: url("assets/images/edges/tear-advertise-bottom-p.png"); mask-image: url("assets/images/edges/tear-advertise-bottom-p.png"); }
	.pmr-home-team::before { -webkit-mask-image: url("assets/images/edges/tear-team-top-p.png"); mask-image: url("assets/images/edges/tear-team-top-p.png"); }
	.pmr-home-team::after { -webkit-mask-image: url("assets/images/edges/tear-team-bottom-p.png"); mask-image: url("assets/images/edges/tear-team-bottom-p.png"); }
	.pmr-home-discover::before { -webkit-mask-image: url("assets/images/edges/tear-discover-top-p.png"); mask-image: url("assets/images/edges/tear-discover-top-p.png"); }
	.pmr-home-discover::after { -webkit-mask-image: url("assets/images/edges/tear-discover-bottom-p.png"); mask-image: url("assets/images/edges/tear-discover-bottom-p.png"); }
	.wp-site-blocks:has(.pmr-home-email) > footer::before { -webkit-mask-image: url("assets/images/edges/tear-footer-top-p.png"); mask-image: url("assets/images/edges/tear-footer-top-p.png"); }
}

/* ---------- Buttons ---------- */

.wp-element-button,
.wp-block-button__link {
	min-height: var(--wp--custom--control--height);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color var(--wp--custom--motion--fast) var(--wp--custom--motion--easing),
		color var(--wp--custom--motion--fast) var(--wp--custom--motion--easing);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--coastal-mist);
	color: var(--wp--preset--color--ocean-ink);
}

/* ---------- Focus (strong, visible, keyboard only) ---------- */

:focus-visible {
	outline: var(--pm-focus-width) solid currentColor;
	outline-offset: var(--pm-focus-offset);
	border-radius: 2px;
}

.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible {
	outline-color: var(--wp--preset--color--ocean-ink);
	border-radius: var(--wp--preset--border-radius--control);
}

/*
 * Gold buttons: a two-tone ring (Ocean Ink + Pure White) so focus stays
 * visible on Palapa Gold and on the deep Home bands, where an Ocean Ink
 * outline disappeared into the navy background (row 40).
 */
.wp-block-button.is-style-gold-caps > .wp-block-button__link:focus-visible,
.wp-block-button.is-style-gold-caps > .wp-element-button:focus-visible,
.pmr-loop-split .wp-block-button.is-style-gold-caps .wp-block-button__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--pure-white);
	outline-offset: 3px;
	box-shadow: 0 0 0 3px var(--wp--preset--color--ocean-ink), 0 0 0 6px var(--wp--preset--color--pure-white);
	border-radius: var(--wp--preset--border-radius--control);
}

/* ---------- Forms (unified system; HubSpot embeds inherit in later gates) ---------- */

input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="hidden"]),
select,
textarea {
	min-height: var(--wp--custom--control--height);
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	border: 1px solid var(--wp--preset--color--ocean-ink);
	border-radius: var(--wp--preset--border-radius--control);
	background-color: var(--wp--preset--color--pure-white);
	color: var(--wp--preset--color--charcoal);
	font: inherit;
	box-sizing: border-box;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline-color: var(--wp--preset--color--coastal-blue);
	outline-offset: 1px;
}

label {
	font-weight: 600;
	color: var(--wp--preset--color--ocean-ink);
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/*
 * Theme 0.15.17: Home hero headline size for "Hottest Coastal Country
 * Music Mix". Fluid between the approved sizes (360: 42px, 390: 43.3px,
 * 430: 50.7px, 768: 66.6px, 1024 unchanged at 83.6px, 1440: 93.5px) so
 * the headline stays two lines on phones and the type stays in the sky,
 * clear of the palapa thatch. Scoped to the Home hero. Short landscape
 * screens keep the existing compact size so Get the App stays above the
 * player.
 */
@media (min-height: 521px) {
	.wp-block-cover.is-style-photo-hero.pmr-home-hero .is-style-script-headline {
		font-size: 40px !important;
	}
}

@media (min-height: 521px) and (min-width: 360px) {
	.wp-block-cover.is-style-photo-hero.pmr-home-hero .is-style-script-headline {
		font-size: calc(40px + 2 * ((100vw - 360px) / 30)) !important;
	}
}

@media (min-height: 521px) and (min-width: 390px) {
	.wp-block-cover.is-style-photo-hero.pmr-home-hero .is-style-script-headline {
		font-size: calc(42px + 6 * ((100vw - 390px) / 40)) !important;
	}
}

@media (min-height: 521px) and (min-width: 430px) {
	.wp-block-cover.is-style-photo-hero.pmr-home-hero .is-style-script-headline {
		font-size: calc(48px + 18.6 * ((100vw - 430px) / 338)) !important;
	}
}

@media (min-height: 521px) and (min-width: 768px) {
	.wp-block-cover.is-style-photo-hero.pmr-home-hero .is-style-script-headline {
		font-size: calc(66.6px + 17 * ((100vw - 768px) / 256)) !important;
	}
}

@media (min-height: 521px) and (min-width: 1024px) {
	.wp-block-cover.is-style-photo-hero.pmr-home-hero .is-style-script-headline {
		font-size: calc(83.6px + 9.9 * ((100vw - 1024px) / 416)) !important;
	}
}

@media (min-height: 521px) and (min-width: 1440px) {
	.wp-block-cover.is-style-photo-hero.pmr-home-hero .is-style-script-headline {
		font-size: 93.5px !important;
	}
}


/* ==========================================================================
 * Theme 0.15.18 batch build (Mac's GO, 2026-11-18). Markup comes from
 * inc/batch-1118.php. Standard: SITE-SPACING-STANDARD-2026-11-16.md.
 * ======================================================================== */

/* Handwriting font: North Port Regular (Hustle Supply Co, Web Font
 * License, 10K pageviews/month, Order #10325, 2026-11-18). Replaces
 * Comforter Brush. Body type (Plus Jakarta Sans) is unchanged. No texture.
 * License proof lives in docs/licenses/north-port/ (not in this theme folder).
 */
@font-face {
	font-family: "North Port";
	src: url("assets/fonts/north-port/northport-regular.woff2") format("woff2"),
		url("assets/fonts/north-port/northport-regular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	/*
	 * Big-headline tilt, ON by default. Flip it off any of these ways:
	 *   1. Set PMR_HEADLINE_TILT to false in the theme (functions.php)
	 *      or in wp-config.php before the theme loads.
	 *   2. Add the class pmr-headline-tilt-off to <html> or <body>.
	 *   3. Set --pmr-headline-tilt: 0deg on :root (for example in a
	 *      custom CSS plugin). Set it back to -3deg to turn it on.
	 * Very short landscape screens still force 0deg so Get the App
	 * stays above the player.
	 */
	--pmr-headline-tilt: -3deg;
}

html.pmr-headline-tilt-off,
body.pmr-headline-tilt-off {
	--pmr-headline-tilt: 0deg;
}

:root body {
	--wp--preset--font-family--kaushan-script: "North Port", "Plus Jakarta Sans", system-ui, sans-serif;
	--pmr-script: "North Port", "Plus Jakarta Sans", system-ui, sans-serif;
	--pmr-pad: var(--wp--style--root--padding-left, clamp(16px, 4vw, 32px));
}

/* Script headlines and panel titles share the face. Tilt is applied
 * only to the big ones (home hero, Listen/Advertise heroes, inner
 * banners, show titles). .pmr-loop-split__title stays straight.
 */
.is-style-script-headline,
.pmr-ib-title,
.pmr-loop-split__title {
	font-family: var(--pmr-script) !important;
	font-weight: 400 !important;
	font-synthesis: none;
	letter-spacing: 0 !important;
}

/* Phone-and-up line break for long North Port display titles
 * (injected by inc/batch-1118.php). Always on: the all-caps face is
 * wider than Comforter Brush and will not fit one line at display size.
 */
.pmr-hero-title-break {
	display: block;
}

.pmr-hero-title-line {
	white-space: nowrap;
}

/* ---------- Inner page banner (navy A, torn edge; 220px desktop, about 140px phone) ---------- */
.pmr-ib-wrap {
	position: relative;
	z-index: 1;
	background: var(--wp--preset--color--shell);
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	max-width: none !important;
}

.pmr-ib {
	position: relative;
	z-index: 1;
	height: 220px;
	display: flex;
	align-items: center;
	overflow: visible;
	background: none;
}

/* Paint and tear live on a sibling layer so a -3deg title cannot clip. */
.pmr-ib::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: var(--wp--preset--color--palapa-navy) url("assets/images/banner/banner-navy-d.jpg") center / cover no-repeat;
	-webkit-mask:
		linear-gradient(#000 0 0) center top / 100% calc(100% - 57px) no-repeat,
		url("assets/images/edges/tear-hero-d.png") center bottom / 2560px 58px repeat-x;
	mask:
		linear-gradient(#000 0 0) center top / 100% calc(100% - 57px) no-repeat,
		url("assets/images/edges/tear-hero-d.png") center bottom / 2560px 58px repeat-x;
}

.pmr-ib-shadow {
	position: absolute;
	z-index: 0;
	left: 0;
	right: 0;
	bottom: -12px;
	height: 70px;
	background: var(--wp--preset--color--ocean-ink);
	opacity: 0.26;
	-webkit-mask: url("assets/images/edges/tear-hero-shadow-d.png") center top / 2560px 70px repeat-x;
	mask: url("assets/images/edges/tear-hero-shadow-d.png") center top / 2560px 70px repeat-x;
}

.pmr-ib-inner {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 100%;
	padding: 12px var(--pmr-pad) 36px max(var(--pmr-pad), calc((100% - var(--wp--style--global--wide-size)) / 2));
}

.pmr-ib-title {
	display: inline-block;
	max-width: 100%;
	margin: 0 0 0 -0.04em !important;
	color: var(--wp--preset--color--shell) !important;
	white-space: nowrap;
	line-height: 1.12 !important;
	font-size: min(94px, calc((100vw - 2 * var(--pmr-pad)) * var(--ib-k, 0.3))) !important;
	transform: rotate(var(--pmr-headline-tilt, -3deg));
	transform-origin: left center;
	overflow: visible;
	padding-right: 0.35em;
}

/* The one short sentence under the banner: regular weight (400), never bold. */
.pmr-ib-lede {
	margin: 0 !important;
	max-width: 40em;
	font-family: var(--wp--preset--font-family--plus-jakarta-sans);
	font-size: var(--wp--preset--font-size--large) !important;
	font-weight: 400 !important;
	line-height: 1.5;
	color: var(--wp--preset--color--charcoal);
}

.pmr-ib-lede + .pmr-ib-rest {
	margin-top: var(--wp--preset--spacing--50) !important;
}

/* Banner to sentence: 16px desktop, 20px phone. */
.pmr-has-ib main {
	padding-top: 0 !important;
}

.pmr-has-ib main > .pmr-ib-wrap + * {
	margin-top: 16px !important;
}

.pmr-has-ib main > .pmr-ib-wrap + .entry-content,
.pmr-has-ib main > .pmr-ib-wrap + section,
.pmr-has-ib main > .pmr-ib-wrap + article {
	margin-top: 0 !important;
}

.pmr-has-ib main > .pmr-ib-wrap + .entry-content > :first-child,
.pmr-has-ib main > .pmr-ib-wrap + section,
.pmr-has-ib main > .pmr-ib-wrap + article {
	padding-top: 16px !important;
}

/* Sentence-only intro joins the next section: same Shell band, at most 32px to the first content row. */
.pmr-has-ib .pmr-ib-intro-only {
	padding-bottom: 0 !important;
}

.pmr-has-ib .pmr-ib-after-intro {
	padding-top: 32px !important;
	margin-top: 0 !important;
	background-color: var(--wp--preset--color--shell) !important;
}

/* Narrow single and reading columns line up with the banner title and logo (left edge of the wide grid). */
@media (min-width: 782px) {
	.pmr-has-ib main.is-layout-constrained > :not(.alignfull):not(.alignwide),
	.pmr-has-ib .pmr-reading.is-layout-constrained > :not(.alignfull):not(.alignwide) {
		margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) !important;
		margin-right: auto !important;
	}
}

@media (max-width: 781px) {
	.pmr-ib {
		height: 140px;
	}

	.pmr-ib::before {
		background-image: url("assets/images/banner/banner-navy-p.jpg");
		-webkit-mask:
			linear-gradient(#000 0 0) center top / 100% calc(100% - 17px) no-repeat,
			url("assets/images/edges/tear-hero-p.png") center bottom / 1280px 18px repeat-x;
		mask:
			linear-gradient(#000 0 0) center top / 100% calc(100% - 17px) no-repeat,
			url("assets/images/edges/tear-hero-p.png") center bottom / 1280px 18px repeat-x;
	}

	.pmr-ib-shadow {
		bottom: -12px;
		height: 30px;
		-webkit-mask: url("assets/images/edges/tear-hero-shadow-p.png") center top / 1280px 30px repeat-x;
		mask: url("assets/images/edges/tear-hero-shadow-p.png") center top / 1280px 30px repeat-x;
	}

	.pmr-ib-inner {
		padding-bottom: 10px;
	}

	.pmr-ib-title {
		font-size: min(73px, calc((100vw - 2 * var(--pmr-pad)) * var(--ib-k, 0.3))) !important;
	}

	/* 0.15.20: long titles wrap to two set lines on phone at a normal title size; the band grows to fit. */
	.pmr-ib {
		height: auto;
		min-height: 140px;
	}

	.pmr-ib--2l .pmr-ib-inner {
		padding-top: 28px;
		padding-bottom: 40px;
	}

	.pmr-ib--2l .pmr-ib-title {
		white-space: normal;
		line-height: 1.12 !important;
		font-size: min(54px, calc((100vw - 2 * var(--pmr-pad)) * var(--ib-k2, 0.15))) !important;
	}

	.pmr-ib--2l .pmr-ib-line {
		display: block;
		white-space: nowrap;
	}

	.pmr-has-ib main > .pmr-ib-wrap + * {
		margin-top: 20px !important;
	}

	.pmr-has-ib main > .pmr-ib-wrap + .entry-content > :first-child,
	.pmr-has-ib main > .pmr-ib-wrap + section,
	.pmr-has-ib main > .pmr-ib-wrap + article {
		padding-top: 20px !important;
	}

	.pmr-has-ib .pmr-ib-after-intro {
		padding-top: 24px !important;
	}
}

/* ---------- Home: torn split (Keep Me in the Loop | Put your brand in the good mood) ---------- */
.pmr-sections > .pmr-loop-split {
	position: relative;
	z-index: 1;
	margin-top: 58px !important;
	padding: 0 !important;
	background: none !important;
}

.pmr-loop-split__grid {
	display: grid;
	grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
	align-items: stretch;
}

.pmr-loop-split__loop,
.pmr-loop-split__brand {
	position: relative;
	box-sizing: border-box;
}

.pmr-loop-split__loop {
	background: var(--wp--preset--color--warm-sand);
	padding: 56px 64px 120px max(var(--pmr-pad), calc((100vw - var(--wp--style--global--wide-size)) / 2));
}

.pmr-loop-split__brand {
	display: flex;
	align-items: center;
	background: var(--wp--preset--color--palapa-navy);
	color: var(--wp--preset--color--shell);
	padding: 56px max(var(--pmr-pad), calc((100vw - var(--wp--style--global--wide-size)) / 2)) 120px 64px;
}

.pmr-loop-split__brand-inner {
	max-width: 420px;
}

/* Torn top edges into the Shell band above, and the torn seam between the two sides. */
.pmr-loop-split__loop::before,
.pmr-loop-split__brand::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(100% - 1px);
	height: 58px;
	pointer-events: none;
	-webkit-mask: url("assets/images/edges/tear-advertise-top-d.png") center top / 2560px 58px repeat-x;
	mask: url("assets/images/edges/tear-advertise-top-d.png") center top / 2560px 58px repeat-x;
}

.pmr-loop-split__loop::before { background: var(--wp--preset--color--warm-sand); }
.pmr-loop-split__brand::after { background: var(--wp--preset--color--palapa-navy); }

.pmr-loop-split__brand::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -15px;
	width: 16px;
	background: var(--wp--preset--color--palapa-navy);
	pointer-events: none;
	-webkit-mask: url("assets/images/edges/photo-edge-left-d.png") left top / 16px 100% no-repeat;
	mask: url("assets/images/edges/photo-edge-left-d.png") left top / 16px 100% no-repeat;
}

.pmr-loop-split__title {
	margin: 0 0 var(--wp--preset--spacing--50) !important;
	font-size: clamp(52px, 5.2vw, 80px) !important;
	line-height: 1.05 !important;
	text-wrap: balance;
}

.pmr-loop-split__loop .pmr-loop-split__title { color: var(--wp--preset--color--palapa-navy) !important; }
.pmr-loop-split__brand .pmr-loop-split__title { color: var(--wp--preset--color--shell) !important; }

.pmr-loop-split__text {
	margin: 0 0 var(--wp--preset--spacing--60) !important;
	max-width: 36em;
	font-size: var(--wp--preset--font-size--large) !important;
	line-height: 1.5;
}

.pmr-loop-split__loop .pmr-loop-split__text { color: var(--wp--preset--color--charcoal); }
.pmr-loop-split__brand .pmr-loop-split__text { color: var(--wp--preset--color--shell); }

.pmr-loop-split__form {
	background: var(--wp--preset--color--pure-white);
	border-radius: var(--wp--preset--border-radius--card, 12px);
	padding: var(--wp--preset--spacing--60);
	max-width: 640px;
}

.pmr-loop-split .wp-block-buttons {
	margin-top: var(--wp--preset--spacing--50);
}

.pmr-loop-split__brand .wp-block-button__link:focus-visible {
	outline-color: var(--wp--preset--color--shell);
}

@media (max-width: 781px) {
	.pmr-sections > .pmr-loop-split {
		margin-top: 18px !important;
	}

	.pmr-loop-split__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.pmr-loop-split__loop {
		padding: 32px var(--pmr-pad) 56px;
	}

	.pmr-loop-split__brand {
		padding: 40px var(--pmr-pad) 72px;
	}

	.pmr-loop-split__brand::before {
		display: none;
	}

	.pmr-loop-split__loop::before,
	.pmr-loop-split__brand::after {
		height: 18px;
		-webkit-mask: url("assets/images/edges/tear-advertise-top-p.png") center top / 1280px 18px repeat-x;
		mask: url("assets/images/edges/tear-advertise-top-p.png") center top / 1280px 18px repeat-x;
	}

	.pmr-loop-split__form {
		padding: var(--wp--preset--spacing--50);
	}

	.pmr-loop-split__title {
		font-size: 42px !important;
	}
}

/* ---------- Listen and Advertise heroes: theme photos, torn bottom edge ---------- */
.wp-block-cover.is-style-photo-hero > picture.pmr-cover-picture {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.wp-block-cover.is-style-photo-hero > picture.pmr-cover-picture > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 60% 50%;
}

.wp-block-cover.is-style-photo-hero.pmr-listen-hero,
.wp-block-cover.is-style-photo-hero.pmr-advertise-hero {
	-webkit-mask:
		linear-gradient(#000 0 0) center top / 100% calc(100% - 57px) no-repeat,
		url("assets/images/edges/tear-hero-d.png") center bottom / 2560px 58px repeat-x;
	mask:
		linear-gradient(#000 0 0) center top / 100% calc(100% - 57px) no-repeat,
		url("assets/images/edges/tear-hero-d.png") center bottom / 2560px 58px repeat-x;
}

.pmr-listen-intro {
	margin-top: var(--wp--preset--spacing--50) !important;
	max-width: 34em;
}

@media (max-width: 781px) {
	.wp-block-cover.is-style-photo-hero.pmr-listen-hero,
	.wp-block-cover.is-style-photo-hero.pmr-advertise-hero {
		-webkit-mask:
			linear-gradient(#000 0 0) center top / 100% calc(100% - 17px) no-repeat,
			url("assets/images/edges/tear-hero-p.png") center bottom / 1280px 18px repeat-x;
		mask:
			linear-gradient(#000 0 0) center top / 100% calc(100% - 17px) no-repeat,
			url("assets/images/edges/tear-hero-p.png") center bottom / 1280px 18px repeat-x;
	}

	/* Phone: photo at full strength, a light local Shell scrim behind the text only (65% peak). */
	.wp-block-cover.is-style-photo-hero.pmr-listen-hero::before,
	.wp-block-cover.is-style-photo-hero.pmr-advertise-hero::before {
		background: none !important;
	}

	.pmr-listen-hero .wp-block-cover__inner-container > .wp-block-group,
	.pmr-advertise-hero .wp-block-cover__inner-container > .wp-block-group {
		background: rgba(255, 249, 240, 0.65);
		box-shadow: 0 0 28px 20px rgba(255, 249, 240, 0.65);
		border-radius: 18px;
	}

	.pmr-advertise-hero > picture.pmr-cover-picture > img {
		object-position: 72% 50%;
	}

	.pmr-listen-hero > picture.pmr-cover-picture > img {
		object-position: 70% 50%;
	}
}

/* Footer social icons: under the mailing address, Shell on Ocean Ink. */
.pmr-footer-social {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	margin-top: var(--wp--preset--spacing--40);
}

.pmr-footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	color: var(--wp--preset--color--shell);
	text-decoration: none;
}

.pmr-footer-social a:hover,
.pmr-footer-social a:focus-visible {
	color: var(--wp--preset--color--palapa-gold);
}

.pmr-footer-social svg {
	display: block;
	width: 24px;
	height: 24px;
}

/* ---------- Footer: round logo at the very bottom, beside the copyright line ---------- */
.pmr-footer-round {
	display: block;
	margin-left: auto;
	line-height: 0;
}

.pmr-footer-round img {
	display: block;
	width: 88px;
	height: 88px;
}

@media (max-width: 781px) {
	.pmr-footer-round img {
		width: 64px;
		height: 64px;
	}
}

/* Gold caps on the split's Let's Talk button (same look as Learn more). */
.pmr-loop-split .wp-block-button.is-style-gold-caps .wp-block-button__link {
	background-color: var(--wp--preset--color--palapa-gold);
	color: var(--wp--preset--color--ocean-ink);
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	letter-spacing: 0.05em;
	line-height: 1.3;
	padding: 0.75rem var(--wp--preset--spacing--70);
	text-transform: uppercase;
}

/* The banner sits right under the pinned header: no Shell strip between them. */
.pmr-has-ib .wp-site-blocks > main {
	margin-block-start: 0 !important;
}

/* ---------- Theme 0.15.32: Brand Partner Sponsors and spotlights ---------- */

.pmr-sponsors-hub,
.pmr-spotlight {
	padding-block: var(--wp--preset--spacing--80);
}

.pmr-sponsors-hub__eyebrow,
.pmr-spotlight__eyebrow {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--ocean-ink);
}

.pmr-sponsors-hub h1,
.pmr-spotlight h1 {
	margin: 0 0 var(--wp--preset--spacing--50);
}

.pmr-sponsors-hub__intro {
	margin-bottom: var(--wp--preset--spacing--70);
	max-width: 40rem;
}

.pmr-sponsor-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--60);
}

@media (min-width: 782px) {
	.pmr-sponsor-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.pmr-sponsor-card {
	background: var(--wp--preset--color--shell);
	border: 1px solid var(--wp--custom--border--subtle, rgba(15, 40, 54, 0.12));
	border-radius: 8px;
	padding: var(--wp--preset--spacing--60);
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
}

.pmr-sponsor-card__logo-link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 8rem;
	background: #fff;
	border-radius: 4px;
	padding: var(--wp--preset--spacing--40);
	text-decoration: none;
}

.pmr-sponsor-card__logo-link img,
.pmr-spotlight__logo {
	display: block;
	max-width: 100%;
	width: auto;
	height: auto;
	max-height: 8.5rem;
	margin-inline: auto;
	object-fit: contain;
}

.pmr-sponsor-card__name {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
}

.pmr-sponsor-card__line,
.pmr-sponsor-card__links {
	margin: 0;
}

.pmr-sponsors-hub__cta {
	margin-top: var(--wp--preset--spacing--80);
	padding-top: var(--wp--preset--spacing--70);
	border-top: 1px solid var(--wp--custom--border--subtle, rgba(15, 40, 54, 0.12));
}

/* Keep the Advertise CTA clear of the Sidekick at desktop 1440. */
@media (min-width: 782px) {
	.pmr-sponsors-hub {
		padding-bottom: calc(var(--pm-player-height) + var(--wp--preset--spacing--80));
	}
}

.pmr-spotlight__hero {
	text-align: center;
	margin-bottom: var(--wp--preset--spacing--70);
}

.pmr-spotlight__logo {
	margin-top: var(--wp--preset--spacing--60);
	max-height: 10rem;
}

.pmr-spotlight__writeup,
.pmr-spotlight__heard,
.pmr-spotlight__visit {
	margin-bottom: var(--wp--preset--spacing--70);
	max-width: 40rem;
}

.pmr-spotlight__heard,
.pmr-spotlight__visit {
	padding: var(--wp--preset--spacing--60);
	background: var(--wp--preset--color--shell);
	border-radius: 8px;
}

.pmr-spotlight-contact {
	margin: 0 0 var(--wp--preset--spacing--60);
}

.pmr-spotlight-contact > div {
	margin: 0 0 var(--wp--preset--spacing--40);
}

.pmr-spotlight-contact dt {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: var(--wp--preset--font-size--small);
	margin: 0 0 0.2em;
}

.pmr-spotlight-contact dd {
	margin: 0;
}

.pmr-spotlight-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--40);
}

.pmr-spotlight-actions .wp-block-button {
	margin: 0;
}

.pmr-spotlight-actions .wp-block-button__link {
	min-height: 3rem;
	padding-inline: 1.25rem;
}

/* Footer already stacks; keep the short Sponsors label from crowding the phone header. */
@media (max-width: 781px) {
	.pmr-sponsors-hub,
	.pmr-spotlight {
		padding-block: var(--wp--preset--spacing--60);
	}

	.pmr-spotlight-actions {
		flex-direction: column;
	}

	.pmr-spotlight-actions .wp-block-button,
	.pmr-spotlight-actions .wp-block-button__link {
		box-sizing: border-box;
		max-width: 100%;
		width: 100%;
		justify-content: center;
		text-align: center;
	}
}
