/*
Theme Name:   LP Affiliate Plus
Theme URI:    https://lpsites.org
Author:       Chance Haywood
Author URI:   https://chancehaywood.com
Description:  A full WordPress theme for Libertarian Party affiliates ready to grow past a one-page site. Fixed masthead with a serif nameplate, slide-out menu, and Get Involved / Donate buttons.
Version:      0.9.1
Requires at least: 6.4
Requires PHP: 8.1
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  lp-affiliate-plus
*/

/* ---------- Design tokens (colors are overridden from the Customizer) ---------- */
:root {
	--lpa-navy: #1b2a4a;
	--lpa-accent: #fed105;
	--lpa-accent-text: #1b2a4a;
	--lpa-name-accent: #8a6d00; /* darker gold so the place name is readable on white */
	--lpa-header-h: 62px;
	--lpa-serif: "Lora", Georgia, "Times New Roman", serif;
	--lpa-sans: "Lato", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-padding-top: calc(var(--lpa-header-h) + 16px); }

body {
	margin: 0;
	padding-top: var(--lpa-header-h);
	font-family: var(--lpa-sans);
	color: var(--lpa-navy);
	line-height: 1.6;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 10001;
	padding: 8px 14px; background: #fff; color: var(--lpa-navy);
}

/* ---------- Masthead ---------- */
.lpa-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 1000;
	height: var(--lpa-header-h);
	background: #fff;
	box-shadow: 0 1px 0 rgba(27, 42, 74, .08);
	transition: box-shadow .2s ease;
}
.admin-bar .lpa-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .lpa-header { top: 46px; } }

.lpa-header.is-scrolled { box-shadow: 0 2px 12px rgba(27, 42, 74, .14); }

.lpa-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	height: 100%;
	padding: 0 20px;
}

/* Hamburger */
.lpa-menu-toggle {
	justify-self: start;
	position: relative;
	width: 34px; height: 34px;
	padding: 0;
	border: 0; border-radius: 50%;
	background: transparent;
	cursor: pointer;
}
.lpa-menu-toggle__line {
	position: absolute;
	left: 8px;
	width: 18px; height: 2px;
	background: var(--lpa-navy);
	transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.lpa-menu-toggle__line:nth-child(1) { top: 11px; }
.lpa-menu-toggle__line:nth-child(2) { top: 16px; }
.lpa-menu-toggle__line:nth-child(3) { top: 21px; }
.lpa-menu-toggle[aria-expanded="true"] { border: 1px solid var(--lpa-navy); }
.lpa-menu-toggle[aria-expanded="true"] .lpa-menu-toggle__line:nth-child(1) { top: 15px; transform: rotate(45deg); }
.lpa-menu-toggle[aria-expanded="true"] .lpa-menu-toggle__line:nth-child(2) { opacity: 0; }
.lpa-menu-toggle[aria-expanded="true"] .lpa-menu-toggle__line:nth-child(3) { top: 15px; transform: rotate(-45deg); }
.lpa-menu-toggle:focus-visible { outline: 2px solid var(--lpa-navy); outline-offset: 2px; }

/* Nameplate */
.lpa-brand {
	justify-self: center;
	text-align: center;
	text-decoration: none;
	font-family: var(--lpa-serif);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 3px;
	color: var(--lpa-navy);
	line-height: 1.1;
	white-space: nowrap;
}
.lpa-brand__the { font-size: 26px; }
.lpa-brand__name { font-size: 26px; }
.lpa-brand__the { color: var(--lpa-navy); }
.lpa-brand__party { color: var(--lpa-navy); }
.lpa-brand__place { color: var(--lpa-name-accent, #8a6d00); }
.lpa-brand img { display: block; max-height: 44px; width: auto; }

/* Right-side actions */
.lpa-actions {
	justify-self: end;
	display: flex;
	gap: 10px;
	align-items: center;
}
.lpa-btn {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--lpa-navy);
	border-radius: 2px;
	font-family: var(--lpa-sans);
	font-size: 16px;
	line-height: 1.4;
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
}
.lpa-btn--outline { color: var(--lpa-navy); background: #fff; }
.lpa-btn--outline:hover,
.lpa-btn--outline:focus-visible { background: var(--lpa-navy); color: #fff; }
.lpa-btn--donate {
	background: var(--lpa-accent);
	border-color: var(--lpa-accent);
	color: var(--lpa-accent-text);
	font-weight: 700;
}
.lpa-btn--donate:hover,
.lpa-btn--donate:focus-visible { filter: brightness(.93); }

/* ---------- Slide-out menu panel ---------- */
.lpa-panel {
	position: fixed;
	top: var(--lpa-header-h);
	left: 0;
	z-index: 999;
	width: 280px;
	max-height: calc(100vh - var(--lpa-header-h));
	overflow-y: auto;
	padding: 10px 20px 20px;
	background: var(--lpa-navy);
	transform: translateX(-100%);
	visibility: hidden;
	transition: transform .25s ease, visibility 0s linear .25s;
}
.admin-bar .lpa-panel { top: calc(var(--lpa-header-h) + 32px); }
.lpa-panel.is-open {
	transform: translateX(0);
	visibility: visible;
	transition: transform .25s ease, visibility 0s;
}
.lpa-panel ul { list-style: none; margin: 0; padding: 0; }
.lpa-panel li { border-bottom: 1px solid rgba(255, 255, 255, .5); }
.lpa-panel li:last-child { border-bottom: 0; }
.lpa-panel a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	color: #fff;
	font-size: 18px;
	text-decoration: none;
}
.lpa-panel a::before {
	content: "";
	width: 7px; height: 7px;
	border-right: 1.5px solid rgba(255, 255, 255, .6);
	border-top: 1.5px solid rgba(255, 255, 255, .6);
	transform: rotate(45deg);
	flex: none;
}
.lpa-panel a:hover,
.lpa-panel a:focus-visible { color: var(--lpa-accent); }
.lpa-panel .sub-menu { padding-left: 20px; }
.lpa-panel .sub-menu li { border: 0; }
.lpa-panel .sub-menu a { font-size: 16px; padding: 6px 0; }
.lpa-panel__extra { display: none; border-top: 1px solid rgba(255, 255, 255, .5); }
.lpa-panel__donate { padding-top: 12px; }
.lpa-panel .lpa-btn--donate {
	justify-content: center;
	padding: 8px 14px;
	color: var(--lpa-accent-text);
	font-size: 18px;
}
.lpa-panel .lpa-btn--donate:hover,
.lpa-panel .lpa-btn--donate:focus-visible { color: var(--lpa-accent-text); }
.lpa-panel__donate a::before { display: none; }

/* Dim the page behind the open menu */
.lpa-scrim {
	position: fixed;
	inset: 0;
	z-index: 998;
	background: rgba(0, 0, 0, .35);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility 0s linear .25s;
}
.lpa-scrim.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }

/* "Next event" bar along the bottom of the banner */
.lpa-hero__next {
	position: relative;
	width: 100%;
	background: rgba(12, 18, 34, .84);
	border-top: 3px solid var(--lpa-accent);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.lpa-hero__next-link {
	display: flex;
	align-items: center;
	gap: 18px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 14px clamp(20px, 5vw, 64px);
	color: #fff;
	text-decoration: none;
}
.lpa-hero__next-date {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	background: var(--lpa-accent);
	color: var(--lpa-accent-text);
	line-height: 1;
}
.lpa-hero__next-month { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.lpa-hero__next-day { margin-top: 3px; font-family: var(--lpa-serif); font-size: 26px; font-weight: 600; }
.lpa-hero__next-text { display: flex; flex-direction: column; min-width: 0; }
.lpa-hero__next-label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--lpa-accent);
}
.lpa-hero__next-when { color: #fff; white-space: nowrap; }
.lpa-hero__next-sep { color: rgba(255, 255, 255, .6); }
.lpa-hero__next-title {
	margin-top: 2px;
	font-family: var(--lpa-serif);
	font-size: 21px;
	font-weight: 600;
	line-height: 1.25;
}
.lpa-hero__next-venue { font-size: 15px; opacity: .85; }
.lpa-hero__next-cta {
	flex: none;
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 20px;
	border: 2px solid #fff;
	border-radius: 2px;
	font-weight: 700;
	transition: background .15s ease, color .15s ease;
}
.lpa-hero__next-cta::after { content: " \2192"; white-space: pre; }
.lpa-hero__next-link:hover .lpa-hero__next-cta,
.lpa-hero__next-link:focus-visible .lpa-hero__next-cta { background: #fff; color: var(--lpa-navy); }
.lpa-hero__next-link:hover .lpa-hero__next-title { text-decoration: underline; text-decoration-color: var(--lpa-accent); text-underline-offset: 4px; }
.lpa-hero__next-link:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
@media (max-width: 640px) {
	.lpa-hero.lpa-hero--full { --lpa-hero-skirt: 120px; }
	.lpa-hero__next-link { gap: 12px; padding: 12px 16px; }
	.lpa-hero__next-date { width: 48px; height: 50px; }
	.lpa-hero__next-day { font-size: 22px; }
	.lpa-hero__next-label { font-size: 11px; }
	.lpa-hero__next-title { font-size: 17px; }
	.lpa-hero__next-venue { display: none; }
	/* Just an arrow on phones to leave room for the title */
	.lpa-hero__next-cta { min-height: 44px; min-width: 44px; padding: 0; justify-content: center; border-width: 0; font-size: 0; }
	.lpa-hero__next-cta::after { content: "\2192"; font-size: 24px; }
}

/* ---------- Events: home section, /events/ page, cards ---------- */
.lpa-events {
	background: #f4f5f8;
	border-top: 4px solid var(--lpa-accent);
}
.lpa-events__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 64px);
}
.lpa-events__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 28px;
}
.lpa-events__title {
	margin: 0;
	font-family: var(--lpa-serif);
	font-weight: 600;
	font-size: clamp(28px, 3.4vw, 40px);
	line-height: 1.1;
	color: var(--lpa-navy);
}
.lpa-events__all {
	color: var(--lpa-navy);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--lpa-accent);
	text-decoration-thickness: 3px;
	text-underline-offset: 5px;
}
.lpa-events__all::after { content: " \2192"; }
.lpa-events__all:hover,
.lpa-events__all:focus-visible { text-decoration-color: var(--lpa-navy); }
.lpa-events__empty {
	margin: 0;
	padding: 28px;
	background: #fff;
	border-left: 4px solid var(--lpa-navy);
	font-size: 18px;
}

.lpa-events__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
/* One or two events: keep cards card-sized instead of stretching across the page */
.lpa-events__grid--1 { grid-template-columns: minmax(0, 400px); }
.lpa-events__grid--2 { grid-template-columns: repeat(2, minmax(0, 400px)); }

.lpa-event-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 2px;
	box-shadow: 0 1px 2px rgba(27, 42, 74, .08), 0 4px 16px rgba(27, 42, 74, .06);
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}
.lpa-event-card:hover { box-shadow: 0 2px 4px rgba(27, 42, 74, .1), 0 10px 28px rgba(27, 42, 74, .12); transform: translateY(-2px); }
.lpa-event-card.is-past { opacity: .75; }

/* Photo area. Without a photo it's a navy panel with the date. */
.lpa-event-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background:
		radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .08) 0 30%, transparent 31%),
		var(--lpa-navy);
}
.lpa-event-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lpa-event-card__date {
	position: absolute;
	left: 16px;
	bottom: -1px;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 74px;
	padding: 8px 10px 10px;
	background: var(--lpa-accent);
	color: var(--lpa-accent-text);
	line-height: 1;
	text-align: center;
}
.lpa-event-card__month,
.lpa-event-card__weekday { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.lpa-event-card__day { font-family: var(--lpa-serif); font-size: 36px; font-weight: 600; margin: 4px 0; }
.lpa-event-card__weekday { font-weight: 400; }

.lpa-event-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px 20px 22px;
}
.lpa-event-card__title {
	margin: 0 0 10px;
	font-family: var(--lpa-serif);
	font-weight: 600;
	font-size: 22px;
	line-height: 1.25;
}
.lpa-event-card__title a { color: var(--lpa-navy); text-decoration: none; }
/* Whole card is clickable via the title link */
.lpa-event-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.lpa-event-card__title a:focus-visible { outline: none; }
.lpa-event-card:focus-within { outline: 3px solid var(--lpa-navy); outline-offset: 2px; }

.lpa-event-card__meta { list-style: none; margin: 0 0 18px; padding: 0; color: #3b4459; font-size: 16px; }
.lpa-event-card__meta li { position: relative; padding-left: 24px; margin-bottom: 4px; }
.lpa-event-card__meta li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .35em;
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: var(--icon) center / contain no-repeat;
	mask: var(--icon) center / contain no-repeat;
	opacity: .7;
}
.lpa-event-card__when { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.5' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M8 4v4.3l2.8 1.7' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.lpa-event-card__where { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 15s5-4.6 5-8.5A5 5 0 0 0 3 6.5C3 10.4 8 15 8 15z' fill='none' stroke='black' stroke-width='1.6'/%3E%3Ccircle cx='8' cy='6.5' r='1.8' fill='black'/%3E%3C/svg%3E"); }

.lpa-event-card__actions {
	position: relative;
	z-index: 2; /* above the full-card link */
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
}
.lpa-event-card__rsvp,
.lpa-event-card__more {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 20px;
	border: 2px solid var(--lpa-navy);
	border-radius: 2px;
	font-weight: 700;
	text-decoration: none;
}
.lpa-event-card__rsvp { background: var(--lpa-navy); color: #fff; }
.lpa-event-card__rsvp:hover,
.lpa-event-card__rsvp:focus-visible { background: #fff; color: var(--lpa-navy); }
.lpa-event-card__more { color: var(--lpa-navy); background: #fff; }
.lpa-event-card__more:hover,
.lpa-event-card__more:focus-visible { background: var(--lpa-navy); color: #fff; }

/* /events/ pagination */
.lpa-events .navigation.pagination { margin-top: 32px; }
.lpa-events .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.lpa-events .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px; background: #fff; color: var(--lpa-navy); text-decoration: none; }
.lpa-events .page-numbers.current { background: var(--lpa-navy); color: #fff; }

/* Single event page */
.lpa-event__head { background: var(--lpa-navy); color: #fff; border-bottom: 4px solid var(--lpa-accent); }
.lpa-event__head-inner { max-width: 1240px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 64px); }
.lpa-event__back { color: #fff; font-size: 15px; }
.lpa-event__back::before { content: "\2190  "; }
.lpa-event__title { margin: 12px 0 0; font-family: var(--lpa-serif); font-weight: 600; font-size: clamp(30px, 4.5vw, 52px); line-height: 1.1; text-wrap: balance; }
.lpa-event__past { margin: 12px 0 0; display: inline-block; padding: 4px 10px; background: rgba(255, 255, 255, .15); }
.lpa-event__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: clamp(24px, 4vw, 56px);
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 64px);
}
.lpa-event__facts { align-self: start; position: sticky; top: calc(var(--lpa-header-h) + 24px); padding: 24px; background: #f4f5f8; border-top: 4px solid var(--lpa-navy); }
.lpa-event__facts dl { margin: 0 0 20px; }
.lpa-event__facts dt { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #5a6478; }
.lpa-event__facts dd { margin: 4px 0 18px; font-size: 18px; }
.lpa-event__facts a { color: var(--lpa-navy); }
.lpa-event__buttons { display: flex; flex-direction: column; gap: 10px; }
.lpa-event__buttons .lpa-hero__btn { width: 100%; }
.lpa-event__cal { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; border: 2px solid var(--lpa-navy); color: var(--lpa-navy); font-weight: 700; text-decoration: none; }
.lpa-event__cal:hover, .lpa-event__cal:focus-visible { background: var(--lpa-navy); color: #fff; }
.lpa-event__image { margin: 0 0 24px; }
.lpa-event__image img { width: 100%; height: auto; display: block; }
.lpa-entry { font-size: 18px; }
.lpa-entry > *:first-child { margin-top: 0; }

/* Tablet */
@media (max-width: 1024px) {
	.lpa-events__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lpa-events__grid--1 { grid-template-columns: minmax(0, 400px); }
	/* With 3 cards on a tablet, the 3rd spans the row as a wide card */
	.lpa-events__grid--3 > .lpa-event-card:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
	.lpa-events__grid--3 > .lpa-event-card:last-child:nth-child(odd) .lpa-event-card__media { flex: 0 0 45%; aspect-ratio: auto; min-height: 220px; }
}
@media (max-width: 900px) {
	.lpa-event__layout { grid-template-columns: minmax(0, 1fr); }
	.lpa-event__facts { position: static; }
}
/* Phone */
@media (max-width: 640px) {
	.lpa-events__grid,
	.lpa-events__grid--2 { grid-template-columns: minmax(0, 1fr); }
	.lpa-events__grid--1 { grid-template-columns: minmax(0, 1fr); }
	.lpa-events__grid--3 > .lpa-event-card:last-child:nth-child(odd) { flex-direction: column; }
	.lpa-events__grid--3 > .lpa-event-card:last-child:nth-child(odd) .lpa-event-card__media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
	.lpa-event-card__media { aspect-ratio: 5 / 2; }
	.lpa-events__grid--3 > .lpa-event-card:last-child:nth-child(odd) .lpa-event-card__media { aspect-ratio: 5 / 2; }
	.lpa-event-card__rsvp, .lpa-event-card__more { flex: 1; justify-content: center; }
}

/* ---------- Shared section heading ---------- */
.lpa-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 28px;
}
.lpa-section-head__title {
	margin: 0;
	font-family: var(--lpa-serif);
	font-weight: 600;
	font-size: clamp(28px, 3.4vw, 40px);
	line-height: 1.1;
	color: var(--lpa-navy);
}
.lpa-section-head__link {
	color: var(--lpa-navy);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--lpa-accent);
	text-decoration-thickness: 3px;
	text-underline-offset: 5px;
}
.lpa-section-head__link::after { content: " \2192"; }
.lpa-section-head__link:hover,
.lpa-section-head__link:focus-visible { text-decoration-color: var(--lpa-navy); }

/* ---------- News ---------- */
.lpa-news { background: #fff; }
.lpa-news__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 64px);
}
.lpa-news__layout {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: clamp(24px, 3vw, 40px);
	align-items: start;
}
.lpa-news__layout--single { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.lpa-news__list { display: flex; flex-direction: column; }
.lpa-news__list .lpa-news-card { padding: 18px 0; border-top: 1px solid #dfe2ea; }
.lpa-news__list .lpa-news-card:first-child { padding-top: 0; border-top: 0; }
.lpa-news__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 24px;
}
.lpa-news__empty { font-size: 18px; }

.lpa-news-card { position: relative; display: flex; flex-direction: column; }
.lpa-news-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, .06) 0 50%, transparent 50%),
		var(--lpa-navy);
}
/* No photo: a navy panel with a gold rule, so stories still line up */
.lpa-news-card__media--none::after {
	content: "";
	position: absolute;
	left: 20px;
	bottom: 20px;
	width: 48px;
	height: 4px;
	background: var(--lpa-accent);
}
.lpa-news-card__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.lpa-news-card:hover .lpa-news-card__img { transform: scale(1.03); }
.lpa-news-card__body { padding-top: 14px; }
.lpa-news-card__meta {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	line-height: 1.4;
	color: #5a6478;
}
.lpa-news-card__cat { color: var(--lpa-name-accent); }
.lpa-news-card__sep { color: #9aa1b2; }
.lpa-news-card__date { white-space: nowrap; }
.lpa-news-card__title { margin: 0 0 8px; font-family: var(--lpa-serif); font-weight: 600; font-size: 22px; line-height: 1.25; }
.lpa-news-card__title a { color: var(--lpa-navy); text-decoration: none; }
.lpa-news-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.lpa-news-card:hover .lpa-news-card__title a,
.lpa-news-card__title a:focus-visible { text-decoration: underline; text-decoration-color: var(--lpa-accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.lpa-news-card__title a:focus-visible { outline: none; }
.lpa-news-card:focus-within { outline: 3px solid var(--lpa-navy); outline-offset: 4px; }
.lpa-news-card__excerpt { margin: 0 0 10px; color: #3b4459; }

.lpa-news-card--lead .lpa-news-card__title { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; }
.lpa-news-card--lead .lpa-news-card__excerpt { font-size: 18px; }

.lpa-news-card--compact { flex-direction: row; gap: 16px; align-items: flex-start; }
.lpa-news-card--compact .lpa-news-card__media { flex: 0 0 132px; aspect-ratio: 4 / 3; }
.lpa-news-card--compact .lpa-news-card__media--none::after { left: 12px; bottom: 12px; width: 28px; height: 3px; }
.lpa-news-card--compact .lpa-news-card__body { padding-top: 0; }
.lpa-news-card--compact .lpa-news-card__title { font-size: 19px; margin-bottom: 6px; }

.lpa-news .navigation.pagination { margin-top: 40px; }
.lpa-news .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.lpa-news .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px; background: #f4f5f8; color: var(--lpa-navy); text-decoration: none; }
.lpa-news .page-numbers.current { background: var(--lpa-navy); color: #fff; }

/* News without photos: text-only, newspaper style.
   The newest story runs the full width; the rest sit in columns under it. */
.lpa-news--text .lpa-news__layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
.lpa-news--text .lpa-news__lead {
	padding: 22px 0 28px;
	border-top: 4px solid var(--lpa-navy);
}
.lpa-news--text .lpa-news-card--lead .lpa-news-card__body { padding-top: 0; }
.lpa-news--text .lpa-news-card--lead .lpa-news-card__title { font-size: clamp(34px, 4vw, 54px); line-height: 1.08; margin-bottom: 14px; }
.lpa-news--text .lpa-news-card--lead .lpa-news-card__excerpt { font-size: 20px; line-height: 1.55; max-width: 60em; }
.lpa-news--text .lpa-news__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 0 32px;
	padding-top: 0;
	border-top: 0;
}
.lpa-news--text .lpa-news__list .lpa-news-card,
.lpa-news--text .lpa-news__list .lpa-news-card:first-child { padding: 18px 0; border-top: 1px solid #c9ceda; }
.lpa-news-card--text.lpa-news-card--compact .lpa-news-card__meta { margin-bottom: 4px; font-size: 12px; }
.lpa-news-card--text.lpa-news-card--compact .lpa-news-card__title { font-size: 21px; }
/* News page grid without photos */
.lpa-news--text .lpa-news__grid { gap: 0 32px; }
.lpa-news--text .lpa-news__grid .lpa-news-card { padding: 22px 0 28px; border-top: 3px solid var(--lpa-navy); }
.lpa-news-card--text .lpa-news-card__body { padding-top: 0; }
.lpa-news-card--text.lpa-news-card--card .lpa-news-card__title { font-size: 24px; }
@media (max-width: 900px) {
	/* Tablet: newest story full width, the rest two across */
	.lpa-news--text .lpa-news__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
}
@media (max-width: 640px) {
	/* Phone: one column; the newest story's headline matches the others */
	.lpa-news--text .lpa-news__list { grid-template-columns: minmax(0, 1fr); }
	.lpa-news--text .lpa-news__lead { padding-bottom: 18px; }
	.lpa-news--text .lpa-news-card--lead .lpa-news-card__title,
	.lpa-news--text .lpa-news-card--text.lpa-news-card--compact .lpa-news-card__title,
	.lpa-news--text .lpa-news__grid .lpa-news-card__title { font-size: 21px; line-height: 1.25; margin-bottom: 8px; }
	.lpa-news--text .lpa-news-card--lead .lpa-news-card__excerpt { font-size: 18px; }
	.lpa-news--text .lpa-news__grid { gap: 0; }
}

/* ---------- Page and article headers ---------- */
.lpa-page-head { background: var(--lpa-navy); color: #fff; border-bottom: 4px solid var(--lpa-accent); }
.lpa-page-head__inner { max-width: 1240px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 64px); }
.lpa-page-head--article .lpa-page-head__inner { max-width: 900px; }
.lpa-page-head__title { margin: 0; font-family: var(--lpa-serif); font-weight: 600; font-size: clamp(30px, 4.5vw, 52px); line-height: 1.1; text-wrap: balance; }
.lpa-page-head__desc { margin-top: 12px; max-width: 60ch; font-size: 18px; opacity: .9; }
.lpa-page-head__kicker { display: inline-block; margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--lpa-accent); text-decoration: none; }
.lpa-page-head__kicker:hover, .lpa-page-head__kicker:focus-visible { text-decoration: underline; }
.lpa-article__byline { margin: 14px 0 0; font-size: 16px; opacity: .85; }

.lpa-article__wrap { max-width: 900px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 40px) clamp(40px, 6vw, 72px); }
.lpa-article__image { margin: 0 0 32px; }
.lpa-article__image img { display: block; width: 100%; height: auto; }
.lpa-article__image figcaption { margin-top: 8px; font-size: 14px; color: #5a6478; }

/* Story and page text */
.lpa-entry { font-size: 19px; line-height: 1.7; color: #22283a; }
.lpa-entry > *:first-child { margin-top: 0; }
.lpa-entry p, .lpa-entry ul, .lpa-entry ol { margin: 0 0 1.2em; }
.lpa-entry h2, .lpa-entry h3, .lpa-entry h4 { font-family: var(--lpa-serif); color: var(--lpa-navy); line-height: 1.2; margin: 1.6em 0 .5em; }
.lpa-entry h2 { font-size: 30px; }
.lpa-entry h3 { font-size: 24px; }
.lpa-entry a { color: var(--lpa-navy); text-decoration-color: var(--lpa-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lpa-entry a:hover { text-decoration-color: var(--lpa-navy); }
.lpa-entry blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--lpa-accent); font-family: var(--lpa-serif); font-size: 23px; font-style: italic; color: var(--lpa-navy); }
.lpa-entry img, .lpa-entry video, .lpa-entry iframe { max-width: 100%; height: auto; }
.lpa-entry figure { margin: 1.6em 0; }
.lpa-entry figcaption { font-size: 14px; color: #5a6478; margin-top: 6px; }
.lpa-entry .alignwide { margin-left: calc(-1 * clamp(0px, 8vw, 120px)); margin-right: calc(-1 * clamp(0px, 8vw, 120px)); }
.lpa-entry .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.lpa-entry .wp-block-button__link { background: var(--lpa-accent); color: var(--lpa-accent-text); font-weight: 700; border-radius: 2px; text-decoration: none; }
.lpa-entry table { width: 100%; border-collapse: collapse; font-size: 16px; }
.lpa-entry th, .lpa-entry td { padding: 8px 10px; border-bottom: 1px solid #dfe2ea; text-align: left; }
.lpa-entry .wp-block-table { overflow-x: auto; }
.lpa-article__wrap--home { padding-top: 0; }

/* Share and next/previous */
.lpa-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #dfe2ea; }
.lpa-share__label { margin-right: 6px; font-weight: 700; }
.lpa-share__link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 2px solid var(--lpa-navy); border-radius: 2px; background: #fff; color: var(--lpa-navy); font: 700 15px/1 var(--lpa-sans); text-decoration: none; cursor: pointer; }
.lpa-share__link:hover, .lpa-share__link:focus-visible { background: var(--lpa-navy); color: #fff; }
.lpa-share__link[hidden] { display: none; }
.lpa-article__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.lpa-article__nav a { display: block; padding: 16px 18px; background: #f4f5f8; color: var(--lpa-navy); font-family: var(--lpa-serif); font-size: 18px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.lpa-article__nav a:hover, .lpa-article__nav a:focus-visible { background: #e8ebf2; }
.lpa-article__nav span { display: block; margin-bottom: 4px; font: 700 12px/1.2 var(--lpa-sans); letter-spacing: 1px; text-transform: uppercase; color: #5a6478; }
.lpa-article__nav-next { grid-column: 2; text-align: right; }

@media (max-width: 1024px) {
	.lpa-news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	/* Tablet: lead story on top, the rest in two columns under it */
	.lpa-news__layout { grid-template-columns: minmax(0, 1fr); }
	.lpa-news-card--lead .lpa-news-card__media { aspect-ratio: 2 / 1; }
	.lpa-news__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
	.lpa-news__list .lpa-news-card,
	.lpa-news__list .lpa-news-card:first-child { padding: 0; border: 0; }
}
@media (max-width: 640px) {
	.lpa-news__grid { grid-template-columns: minmax(0, 1fr); }
	.lpa-news__list { display: flex; }
	.lpa-news__list .lpa-news-card { padding: 16px 0; border-top: 1px solid #dfe2ea; }
	.lpa-news__list .lpa-news-card:first-child { padding-top: 20px; }
	.lpa-news-card--compact .lpa-news-card__media { flex-basis: 104px; }
	.lpa-news-card--compact .lpa-news-card__title { font-size: 18px; }
	.lpa-entry { font-size: 18px; }
	.lpa-article__nav { grid-template-columns: minmax(0, 1fr); }
	.lpa-article__nav-next { grid-column: auto; text-align: left; }
}

/* ---------- One section per screen (home page) ---------- */
html:has(body.lpa-screens) {
	scroll-snap-type: y proximity; /* sections settle into place when scrolled near */
	scroll-padding-top: var(--lpa-header-h);
}
body.lpa-screens .lpa-hero,
body.lpa-screens .lpa-screen { scroll-snap-align: start; }
.lpa-screen {
	/* Same idea as the banner: fill the visible screen under the header, plus
	   a skirt on phones so iOS 26's see-through toolbar shows this section's
	   own background instead of the next section. menu.js sets the exact height. */
	--lpa-skirt: 0px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: calc(100vh - var(--lpa-header-h) + var(--lpa-skirt));
	min-height: calc(100dvh - var(--lpa-header-h) + var(--lpa-skirt));
	padding-bottom: var(--lpa-skirt);
}
.lpa-screen > .lpa-events__inner,
.lpa-screen > .lpa-news__inner { width: 100%; padding-top: clamp(28px, 5vh, 64px); padding-bottom: clamp(28px, 5vh, 64px); }
.lpa-events__swipe { display: none; }

@media (max-width: 640px) {
	.lpa-screen { --lpa-skirt: 120px; }
	.lpa-screen .lpa-section-head,
	.lpa-screen .lpa-events__head { margin-bottom: 18px; }

	/* Events: a sideways swipe row, one card at a time with the next one peeking in */
	.lpa-screen .lpa-events__grid {
		display: flex;
		gap: 14px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		margin-inline: calc(-1 * clamp(20px, 5vw, 64px));
		padding: 4px clamp(20px, 5vw, 64px) 10px;
		scroll-padding-inline: clamp(20px, 5vw, 64px);
		scrollbar-width: none;
	}
	.lpa-screen .lpa-events__grid::-webkit-scrollbar { display: none; }
	.lpa-screen .lpa-events__grid > .lpa-event-card { flex: 0 0 84%; scroll-snap-align: start; }
	.lpa-screen .lpa-events__grid--1 > .lpa-event-card { flex-basis: 100%; }
	.lpa-screen .lpa-events__grid:focus-visible { outline: 3px solid var(--lpa-navy); outline-offset: 2px; }
	.lpa-screen .lpa-events__swipe {
		display: block;
		margin: 10px 0 0;
		font-size: 14px;
		font-weight: 700;
		color: #5a6478;
		text-align: center;
	}
	.lpa-screen .lpa-events__swipe::after { content: "  \2192"; white-space: pre; }
}
/* Phones: keep News on one screen. The lead story's summary is trimmed to a
   few lines (the full story is a tap away). */
@media (max-width: 640px) {
	.lpa-screen.lpa-news--text .lpa-news-card--lead .lpa-news-card__excerpt {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		line-clamp: 3;
		overflow: hidden;
		margin-bottom: 0;
	}
}
@media (max-width: 640px) and (max-height: 780px) {
	.lpa-screen > .lpa-events__inner,
	.lpa-screen > .lpa-news__inner { padding-top: 20px; padding-bottom: 20px; }
	.lpa-screen .lpa-section-head__title,
	.lpa-screen .lpa-events__title { font-size: 26px; }
	.lpa-screen.lpa-news--text .lpa-news-card--lead .lpa-news-card__excerpt { -webkit-line-clamp: 2; line-clamp: 2; font-size: 16px; }
	.lpa-screen.lpa-news--text .lpa-news__lead { padding: 16px 0 12px; }
	.lpa-screen.lpa-news--text .lpa-news__list .lpa-news-card,
	.lpa-screen.lpa-news--text .lpa-news__list .lpa-news-card:first-child { padding: 11px 0; }
	.lpa-screen.lpa-news--text .lpa-news-card__title { font-size: 19px; margin-bottom: 4px; }
	.lpa-screen .lpa-events__grid .lpa-event-card__media { aspect-ratio: 3 / 1; }
	.lpa-screen .lpa-event-card__body { padding: 14px 16px 16px; }
	.lpa-screen .lpa-event-card__meta { margin-bottom: 12px; }
}
@media (max-width: 640px) and (max-height: 680px) {
	.lpa-screen.lpa-news--text .lpa-news-card--lead .lpa-news-card__excerpt { display: none; }
	.lpa-screen .lpa-events__grid .lpa-event-card__media { aspect-ratio: 4 / 1; }
	.lpa-screen .lpa-event-card__title { font-size: 20px; }
	.lpa-screen .lpa-event-card__weekday { display: none; }
	.lpa-screen .lpa-event-card__date { padding: 6px 10px 8px; }
	.lpa-screen .lpa-event-card__day { font-size: 30px; margin: 2px 0 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
	.lpa-brand__the, .lpa-brand__name { font-size: 20px; letter-spacing: 2px; }
}
@media (max-width: 1024px) {
	/* Stack the nameplate: "LIBERTARIAN PARTY" over "OF STATEN ISLAND" */
	.lpa-brand__the { display: none; }
	.lpa-brand__name { display: flex; flex-direction: column; align-items: center; }
	.lpa-brand__party { font-size: 18px; letter-spacing: 2px; }
	.lpa-brand__place { font-size: 10px; letter-spacing: 3px; font-family: var(--lpa-serif); }
	.lpa-btn--outline { display: none; }
	.lpa-panel__extra { display: block; }
}
@media (max-width: 600px) {
	/* Phones: the menu takes the full width */
	.lpa-panel { width: 100%; }
}
@media (max-width: 420px) {
	.lpa-header__inner { padding: 0 12px; }
	.lpa-brand__party { font-size: 15px; letter-spacing: 1.5px; }
	.lpa-btn { font-size: 14px; padding: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.lpa-panel, .lpa-menu-toggle__line, .lpa-header, .lpa-scrim, .lpa-hero__video, .lpa-event-card { transition: none; }
	.lpa-event-card:hover { transform: none; }
	.lpa-news-card__img { transition: none; }
	.lpa-news-card:hover .lpa-news-card__img { transform: none; }
}

/* ---------- Content wrappers ---------- */
.lpa-main { display: block; }
.lpa-container { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }

/* ---------- Front-page banner (hero) ---------- */
.lpa-hero {
	--lpa-hero-overlay: .45;
	--lpa-hero-focus: center center;
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	isolation: isolate;
	color: #fff;
	background: var(--lpa-navy);
}
/* Heights: fill the screen below the fixed header. svh keeps phones from jumping when the address bar hides. */
.lpa-hero--full {
	/* The skirt is extra banner below the Next event bar. On iPhones with
	   iOS 26 "Liquid Glass", Safari draws the page under its see-through
	   toolbar; the skirt makes that area show more banner instead of the
	   next section. Elsewhere it is simply below the fold. */
	--lpa-hero-skirt: 0px;
	min-height: calc(100vh - var(--lpa-header-h) + var(--lpa-hero-skirt));
	min-height: calc(100dvh - var(--lpa-header-h) + var(--lpa-hero-skirt));
	padding-bottom: var(--lpa-hero-skirt);
} /* menu.js then sets the exact visible height */
.lpa-hero--tall   { min-height: 70vh; min-height: 70svh; }
.lpa-hero--medium { min-height: 50vh; min-height: 50svh; }
.admin-bar .lpa-hero--full { min-height: calc(100svh - var(--lpa-header-h) - 32px); }

.lpa-hero__media { position: absolute; inset: 0; z-index: -1; }
.lpa-hero__img,
.lpa-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--lpa-hero-focus);
}
/* Phones and upright tablets (screen taller than wide): use the phone crop */
@media (max-aspect-ratio: 1/1) {
	.lpa-hero__img,
	.lpa-hero__video { object-position: var(--lpa-hero-focus-tall, var(--lpa-hero-focus)); }
}
.lpa-hero__video { opacity: 0; transition: opacity .6s ease; }
.lpa-hero__video.is-playing { opacity: 1; }

/* Overlay: the affiliate's darkness setting, plus a gradient behind the text side */
.lpa-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 65%),
		rgba(0, 0, 0, var(--lpa-hero-overlay));
}
.lpa-hero--center .lpa-hero__media::after {
	background:
		radial-gradient(ellipse at center, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 70%),
		rgba(0, 0, 0, var(--lpa-hero-overlay));
}

.lpa-hero__inner {
	flex: 1;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(40px, 8vh, 96px) clamp(20px, 5vw, 64px);
}
.lpa-hero__content { width: 100%; }
.lpa-hero__content { max-width: 720px; }
.lpa-hero--center .lpa-hero__content { margin: 0 auto; text-align: center; }

.lpa-hero__title {
	margin: 0 0 .4em;
	font-family: var(--lpa-serif);
	font-weight: 600;
	font-size: clamp(34px, 5.2vw, 64px);
	line-height: 1.08;
	text-wrap: balance;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.lpa-hero__title em { font-style: italic; font-weight: 500; color: var(--lpa-accent); }
.lpa-hero__text {
	margin: 0 0 1.6em;
	max-width: 36em;
	font-size: clamp(17px, 1.6vw, 21px);
	line-height: 1.5;
	text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
}
.lpa-hero--center .lpa-hero__text { margin-left: auto; margin-right: auto; }

.lpa-hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.lpa-hero--center .lpa-hero__buttons { justify-content: center; }
.lpa-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 28px;
	border: 2px solid #fff;
	border-radius: 2px;
	font-family: var(--lpa-sans);
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
	transition: background .15s ease, color .15s ease, filter .15s ease;
}
.lpa-hero__btn--primary {
	background: var(--lpa-accent);
	border-color: var(--lpa-accent);
	color: var(--lpa-accent-text);
}
.lpa-hero__btn--primary:hover,
.lpa-hero__btn--primary:focus-visible { filter: brightness(.93); }
.lpa-hero__btn--secondary { background: transparent; color: #fff; }
.lpa-hero__btn--secondary:hover,
.lpa-hero__btn--secondary:focus-visible { background: #fff; color: var(--lpa-navy); }
.lpa-hero__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Form plugins: make their fields readable on the dark banner */
.lpa-hero__form { margin-top: 24px; max-width: 560px; }
.lpa-hero--center .lpa-hero__form { margin-left: auto; margin-right: auto; }
.lpa-hero__form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.lpa-hero__form select {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 0;
	border-radius: 2px;
	font-size: 16px;
}
.lpa-hero__form input[type="submit"],
.lpa-hero__form button[type="submit"] {
	min-height: 46px;
	padding: 10px 28px;
	border: 0;
	border-radius: 2px;
	background: var(--lpa-accent);
	color: var(--lpa-accent-text);
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
}
.lpa-hero__form a { color: #fff; }

/* Pause button for video (needed for accessibility: moving content > 5s) */
.lpa-hero__pause {
	position: absolute;
	right: 16px;
	top: 16px;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, .7);
	border-radius: 50%;
	background: rgba(0, 0, 0, .35);
	cursor: pointer;
}
.lpa-hero__pause-icon,
.lpa-hero__pause-icon::after {
	position: absolute;
	top: 14px;
	width: 4px;
	height: 14px;
	background: #fff;
}
.lpa-hero__pause-icon { left: 15px; }
.lpa-hero__pause-icon::after { content: ""; top: 0; left: 8px; }
.lpa-hero__pause.is-paused .lpa-hero__pause-icon {
	left: 17px;
	width: 0;
	height: 0;
	background: none;
	border-style: solid;
	border-width: 8px 0 8px 13px;
	border-color: transparent transparent transparent #fff;
}
.lpa-hero__pause.is-paused .lpa-hero__pause-icon::after { display: none; }
.lpa-hero__pause:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

@media (max-width: 600px) {
	/* Phones: stronger overall darkening since text covers more of the image */
	.lpa-hero__media::after {
		background:
			linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .5) 100%),
			rgba(0, 0, 0, var(--lpa-hero-overlay));
	}
	/* "Text at the bottom" on phones: the photo shows clearly in the top half,
	   and the darkening is concentrated behind the text. */
	.lpa-hero--phone-bottom .lpa-hero__inner { align-items: flex-end; padding-bottom: 24px; }
	.lpa-hero--phone-bottom .lpa-hero__media::after {
		background:
			linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .72) 62%, rgba(0, 0, 0, .85) 100%),
			rgba(0, 0, 0, calc(var(--lpa-hero-overlay) * .35));
	}
	.lpa-hero__buttons { flex-wrap: nowrap; gap: 10px; }
	.lpa-hero__btn { flex: 1; padding: 12px 10px; }
	.lpa-hero__text { margin-bottom: 1.2em; }
}
@media (max-width: 600px) and (max-height: 660px) {
	/* Short phones: the text starts higher, so the darkening starts higher too */
	.lpa-hero--phone-bottom .lpa-hero__media::after {
		background:
			linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .15) 20%, rgba(0, 0, 0, .72) 45%, rgba(0, 0, 0, .85) 100%),
			rgba(0, 0, 0, calc(var(--lpa-hero-overlay) * .35));
	}
}
/* Phones: compact banner text (headline 30px, smaller summary) so the photo
   gets more of the screen. Same look on every phone, whatever its height. */
@media (max-width: 640px) {
	.lpa-hero__inner { padding-top: 28px; padding-bottom: 28px; }
	.lpa-hero__title { font-size: 30px; }
	.lpa-hero__text { font-size: 16px; }
}
