/*
Theme Name:        NMRA
Theme URI:         https://nationalmastersracquetball.com/
Description:       Theme for the National Masters Racquetball Association, built on the NMRA Style Guide (direction C, "Hall of Legends"). Works with the NMRA Core plugin.
Version:           1.0.0
Requires at least: 6.4
Requires PHP:      7.4
Author:            Gerardo Duenas
Text Domain:       nmra
*/

/* ==========================================================================
   Tokens (NMRA Style Guide)
   ========================================================================== */
:root {
	--brand-purple: #432f8a;
	--brand-purple-deep: #2a1f5e;
	--brand-purple-tint: #c9c2e6;
	--brand-red: #c62027;
	--brand-red-deep: #a9182a;
	--brand-gold: #eda321;
	--brand-gold-ink: #8a5a12;
	--ink: #1c1a26;
	--ink-soft: #3b3950;
	--ink-muted: #55526a;
	--surface: #ffffff;
	--surface-alt: #f6f5fa;
	--surface-gold: #fbf4e4;
	--line: #dddae6;
	--line-strong: #1c1a26;
	--on-brand: #ffffff;
	--on-brand-soft: #e4e0f3;

	--font-display: Fraunces, Georgia, "Times New Roman", serif;
	--font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

	--space-2: 8px;
	--space-3: 16px;
	--space-4: 24px;
	--space-5: 32px;
	--space-6: 48px;
	--space-7: 64px;
	--space-8: 88px;

	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-pill: 999px;

	--container: 1240px;
	--measure: 680px;
	--tap: 48px;
	--gutter: 24px;
	color-scheme: light;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--surface);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 19px;
	line-height: 1.58;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand-purple); text-underline-offset: 0.15em; }
a:hover { color: var(--brand-red-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
	outline: 3px solid var(--brand-gold);
	outline-offset: 3px;
	border-radius: 2px;
}
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--ink);
	text-wrap: balance;
	margin: 0;
}
p { margin: 0; }
table { font-variant-numeric: tabular-nums; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: -9999px; top: 8px; z-index: 100;
	background: var(--surface); color: var(--brand-purple);
	padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

.wrap {
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin: 0 auto;
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
	.wrap {
		padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
		padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
	}
}

/* ==========================================================================
   Type helpers
   ========================================================================== */
.eyebrow {
	font-size: 15px; line-height: 20px; font-weight: 700;
	letter-spacing: .14em; text-transform: uppercase;
	color: var(--brand-red);
}
.eyebrow--gold { color: var(--brand-gold-ink); }
.lead { font-size: 22px; line-height: 34px; color: var(--ink-soft); max-width: var(--measure); }
.small { font-size: 17px; line-height: 26px; }
.muted { color: var(--ink-muted); }
.text-link { font-weight: 700; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: var(--tap); padding: 12px 28px;
	border-radius: var(--radius-sm); border: 1.5px solid transparent;
	font-family: var(--font-sans); font-weight: 700; font-size: 19px; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--brand-purple); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-purple-deep); color: var(--on-brand); }
.btn--secondary { border-color: var(--brand-purple); color: var(--brand-purple); background: transparent; }
.btn--secondary:hover { background: var(--surface-alt); color: var(--brand-purple); }
.btn--light { background: var(--surface); color: var(--brand-purple); }
.btn--light:hover { background: var(--surface-gold); color: var(--brand-purple-deep); }
.btn--outline-light { border-color: var(--on-brand); color: var(--on-brand); background: transparent; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); color: var(--on-brand); }

.tag {
	display: inline-block; padding: 2px 10px;
	border-radius: var(--radius-pill);
	background: var(--brand-purple); color: var(--on-brand);
	font-size: 13px; font-weight: 700; letter-spacing: .06em; line-height: 20px;
	text-transform: uppercase; vertical-align: 2px;
}
.tag--quiet { background: var(--surface-alt); color: var(--ink-muted); }

/* ==========================================================================
   Announcement bar
   ========================================================================== */
.announce { background: var(--brand-purple-deep); color: var(--on-brand); font-size: 16px; }
.announce .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: center; padding-block: 10px; }
.announce a { color: var(--on-brand); }
.announce a:hover { color: var(--brand-gold); }
.announce strong { color: var(--brand-gold); }
.announce__links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }

/* ==========================================================================
   Header and navigation
   ========================================================================== */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); position: relative; z-index: 20; }
.site-header__inner { display: flex; gap: 16px 40px; align-items: center; justify-content: space-between; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 72px; height: 72px; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.1; max-width: 260px; }

.nav-toggle {
	display: none;
	align-items: center; gap: 10px;
	min-height: var(--tap); padding: 0 16px;
	background: var(--surface); color: var(--brand-purple);
	border: 1.5px solid var(--brand-purple); border-radius: var(--radius-sm);
	font: 700 17px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase;
	cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 20px; height: 2px; background: currentColor; position: relative; content: "";
}
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; }
.main-nav li { position: relative; }
.main-nav a {
	display: flex; align-items: center;
	min-height: var(--tap); padding: 0 12px;
	font-size: 17px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
	color: var(--ink); text-decoration: none;
	border-bottom: 3px solid transparent;
}
.main-nav a:hover { color: var(--brand-purple); border-bottom-color: var(--brand-gold); }
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a,
.main-nav .current_page_item > a,
.main-nav .current_page_ancestor > a { border-bottom-color: var(--brand-red); }
.main-nav .menu-cta > a {
	margin-left: 12px; background: var(--brand-purple); color: var(--on-brand);
	border-radius: var(--radius-sm); border-bottom: 0; padding: 0 22px; letter-spacing: .06em;
}
.main-nav .menu-cta > a:hover { background: var(--brand-purple-deep); color: var(--on-brand); }

/* Drop-downs (desktop) */
@media (min-width: 1081px) {
	.main-nav .sub-menu {
		position: absolute; left: 0; top: 100%;
		min-width: 260px; padding: 8px 0;
		background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brand-purple);
		box-shadow: 0 12px 28px rgba(28, 26, 38, .12);
		visibility: hidden; opacity: 0; transform: translateY(4px);
		transition: opacity .15s, transform .15s, visibility .15s;
	}
	.main-nav li:hover > .sub-menu,
	.main-nav li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }
	.main-nav .sub-menu a {
		text-transform: none; letter-spacing: 0; font-size: 17px; font-weight: 600;
		padding: 0 20px; min-height: 44px; border-bottom: 0;
	}
	.main-nav .sub-menu a:hover { background: var(--surface-alt); }
	.main-nav .sub-menu .sub-menu { left: 100%; top: -11px; }
	.main-nav .menu-item-has-children > a::after {
		content: ""; width: 7px; height: 7px; margin-left: 8px; margin-top: -4px;
		border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
	}
	.main-nav .sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); margin-left: auto; margin-top: 0; }
}

/* Mobile menu */
@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; }
	.site-header__inner { flex-wrap: wrap; }
	.main-nav { flex-basis: 100%; display: none; padding-bottom: 8px; }
	.main-nav.is-open { display: block; }
	.main-nav > ul { display: block; border-top: 1px solid var(--line); }
	.main-nav li { border-bottom: 1px solid var(--line); }
	.main-nav a { padding: 0 4px; border-bottom: 0; }
	.main-nav .sub-menu { padding-left: 20px; border-top: 1px solid var(--line); }
	.main-nav .sub-menu li:last-child { border-bottom: 0; }
	.main-nav .sub-menu a { text-transform: none; letter-spacing: 0; }
	.main-nav .menu-cta > a { margin: 12px 0 4px; justify-content: center; }
	.main-nav .menu-cta { border-bottom: 0; }
}
@media (max-width: 560px) {
	.brand img { width: 56px; height: 56px; }
	.brand__name { font-size: 19px; max-width: 200px; }
}

/* ==========================================================================
   Home: hero and "This season"
   ========================================================================== */
.hero .wrap { display: flex; flex-wrap: wrap; gap: var(--space-6); padding-block: var(--space-6) var(--space-8); }
.hero__main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.hero__image {
	display: block; width: 100%; max-width: 100%; height: auto;
	aspect-ratio: 1800 / 400; min-height: 200px;
	object-fit: cover; object-position: 68% 50%;
	border-radius: var(--radius-sm); background: var(--surface-alt);
}
.hero__title { font-size: clamp(46px, 6.4vw, 80px); line-height: 1; letter-spacing: -.02em; }
.hero__main .eyebrow { margin-bottom: -12px; }

.sidebar-block { flex: 1 1 320px; min-width: 0; align-self: flex-start; border-top: 4px solid var(--line-strong); padding-top: 18px; }
.sidebar-block > h2 { font-size: 30px; line-height: 36px; }

.event-item { padding-block: 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.event-item:last-of-type { border-bottom: 0; }
.event-item h3 { font-size: 24px; line-height: 30px; }
.event-item h3 a { color: var(--ink); text-decoration: none; }
.event-item h3 a:hover { color: var(--brand-purple); }
.event-item .tag { margin-left: 8px; }
.inline-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 17px; }

/* ==========================================================================
   Purple promise band
   ========================================================================== */
.values { background: var(--brand-purple-deep); color: var(--on-brand); border-top: 6px solid var(--brand-gold); }
.values .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-5) var(--space-6); padding-block: var(--space-7); }
.values h3 { color: var(--on-brand); font-size: 30px; line-height: 36px; }
.values p { color: var(--brand-purple-tint); margin-top: 10px; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--space-8) 0; }
.section--pad { padding-block: var(--space-8); }
.section-head { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; align-items: flex-end; }
.section-head h2 { font-size: clamp(38px, 4.6vw, 56px); line-height: 1.07; letter-spacing: -.01em; margin-top: var(--space-2); }

.timeline { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border-top: 2px solid var(--line-strong); }
.timeline li { padding: 22px 24px 22px 0; display: flex; flex-direction: column; gap: 6px; }
.timeline__year { font-family: var(--font-display); font-weight: 700; font-size: 48px; line-height: 1; color: var(--brand-gold-ink); }
.timeline__title { font-weight: 700; margin-top: 6px; }

.feature .wrap { display: flex; flex-wrap: wrap; gap: var(--space-6); padding-block: var(--space-8); }
.story { flex: 999 1 560px; min-width: 0; display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: flex-start; background: var(--surface-gold); padding: var(--space-5); border-radius: var(--radius-sm); }
.story__media { flex: 1 1 220px; min-width: 0; }
.story__media img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); }
.story__body { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.story h2 { font-size: 44px; line-height: 48px; }
.story h2 a { color: var(--ink); text-decoration: none; }
.story h2 a:hover { color: var(--brand-purple); }

.result-list { list-style: none; margin: 8px 0 16px; padding: 0; }
.result-list li { padding-block: 16px; border-bottom: 1px solid var(--line); }
.result-list__name { color: var(--ink); font-weight: 700; text-decoration: none; }
a.result-list__name:hover { color: var(--brand-purple); }
.result-list p { font-size: 17px; margin-top: 2px; }
.dot-links { display: inline; }
.dot-links a + a::before { content: "·"; color: var(--ink-muted); margin: 0 .45em; display: inline-block; text-decoration: none; }

/* ==========================================================================
   Membership band
   ========================================================================== */
.join-band { background: var(--brand-purple); color: var(--on-brand); overflow: hidden; }
.join-band .wrap { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; padding-block: var(--space-8); }
.join-band__copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.join-band h2 { color: var(--on-brand); font-size: clamp(40px, 5vw, 60px); line-height: 1.05; }
.join-band p { color: var(--on-brand-soft); max-width: var(--measure); }
.join-band .eyebrow { color: var(--brand-gold); }
.join-band .btn-row { margin-top: var(--space-2); }
.join-band a:not(.btn) { color: var(--on-brand); }
.join-band__seal { flex: 1 1 220px; display: flex; justify-content: center; }
.join-band__seal img { width: min(260px, 70vw); height: auto; }
.join-band__price { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--brand-gold) !important; }

/* ==========================================================================
   Sponsors
   ========================================================================== */
.sponsors .wrap { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); align-items: center; justify-content: space-between; padding-block: var(--space-6); }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-5); }
.logo-row a, .logo-row span { display: flex; align-items: center; justify-content: center; height: 64px; }
.logo-row img { max-height: 64px; max-width: 180px; width: auto; object-fit: contain; }
.logo-row__name { font-weight: 700; color: var(--ink-muted); }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero { border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-block: var(--space-7) var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.page-hero h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -.015em; }
.page-hero .lead { margin-top: 4px; }
.breadcrumbs { font-size: 16px; color: var(--ink-muted); }
.breadcrumbs a { color: var(--ink-muted); }

.layout { display: flex; flex-wrap: wrap; gap: var(--space-6); padding-block: var(--space-7) var(--space-8); }
.layout__main { flex: 999 1 620px; min-width: 0; }
.layout__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.layout__side > * { flex: none; align-self: stretch; }

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 36px; line-height: 42px; margin-top: 1.6em; }
.prose h3 { font-size: 28px; line-height: 34px; margin-top: 1.4em; }
.prose h4 { font-size: 22px; line-height: 28px; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin-left: 0; padding-left: var(--space-4); border-left: 4px solid var(--brand-gold); font-family: var(--font-display); font-size: 24px; line-height: 1.4; color: var(--ink-soft); }
.prose img, .prose figure { border-radius: var(--radius-sm); }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { font-size: 15px; color: var(--ink-muted); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 17px; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.prose .alignleft { float: left; margin: 0 var(--space-4) var(--space-3) 0; }
.prose .alignright { float: right; margin: 0 0 var(--space-3) var(--space-4); }
.prose .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.prose .wp-block-button__link { background: var(--brand-purple); color: var(--on-brand); border-radius: var(--radius-sm); font-weight: 700; padding: 12px 28px; text-decoration: none; }

.panel { background: var(--surface-alt); border-radius: var(--radius-sm); padding: var(--space-5); }
.panel h2, .panel h3 { font-size: 26px; line-height: 32px; }
.panel--gold { background: var(--surface-gold); }

/* Championship cards */
.event-cards { display: flex; flex-direction: column; gap: var(--space-5); }
.event-card { display: flex; flex-wrap: wrap; gap: var(--space-5); padding-top: var(--space-5); border-top: 4px solid var(--line-strong); }
.event-card__body { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.event-card__body h2 { font-size: 36px; line-height: 42px; }
.event-card__body h2 a { color: var(--ink); text-decoration: none; }
.event-card__body h2 a:hover { color: var(--brand-purple); }
.event-card__aside { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.facts { margin: 0; display: grid; gap: 10px; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.facts dt { font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); padding-top: 3px; }
.facts dd { margin: 0; }
@media (max-width: 480px) { .facts div { grid-template-columns: 1fr; gap: 0; } }

.doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.doc-list a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.doc-list svg { width: 20px; height: 20px; flex: none; }

/* Results archive */
.year-group { display: grid; grid-template-columns: 120px 1fr; gap: var(--space-4); padding-block: var(--space-4); border-top: 1px solid var(--line); }
.year-group:first-child { border-top: 4px solid var(--line-strong); }
.year-group__year { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--brand-gold-ink); }
.year-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.year-group li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.year-group li > div { min-width: 0; }
@media (max-width: 640px) { .year-group { grid-template-columns: 1fr; gap: 12px; } }

/* Filterable tables (Hall of Fame, In Memoriam) */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; margin-bottom: var(--space-4); }
.filters label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.filters input, .filters select {
	min-height: var(--tap); padding: 0 14px; min-width: 220px; max-width: 100%;
	font: 400 18px var(--font-sans); color: var(--ink);
	border: 1.5px solid #b9b5c9; border-radius: var(--radius-md); background: var(--surface);
}
.filters__count { margin-left: auto; font-size: 17px; color: var(--ink-muted); }
.table-scroll { position: relative; overflow-x: auto; border-top: 4px solid var(--line-strong); }
.data-table { width: 100%; border-collapse: collapse; font-size: 18px; }
.data-table th { text-align: left; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); padding: 14px 16px 12px 0; border-bottom: 2px solid var(--line); white-space: nowrap; }
.data-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table td:first-child { font-weight: 700; }
.data-table .num { white-space: nowrap; }
.data-table__sub { display: block; font-weight: 400; font-size: 16px; color: var(--ink-muted); }
.data-table .year-cell { font-family: var(--font-display); font-weight: 700; color: var(--brand-gold-ink); }
.empty-row td { text-align: center; color: var(--ink-muted); font-weight: 400; }

/* Board */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-6) var(--space-5); }
.person { display: flex; flex-direction: column; gap: 10px; }
.person__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-alt); display: block; }
.person__photo--empty { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 64px; color: var(--brand-purple-tint); }
.person h2 { font-size: 26px; line-height: 32px; }
.person__meta { font-size: 17px; color: var(--ink-muted); }
.person__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.person__tags span { font-size: 14px; font-weight: 600; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--surface-alt); color: var(--ink-soft); }
.person__bio { font-size: 17px; line-height: 26px; }
.person__hof { color: var(--brand-gold-ink); font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }

/* Newsletter and resources */
.issue-years { display: flex; flex-direction: column; }
.issue-years .year-group li { justify-content: flex-start; }
.current-issue { display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: center; }
.current-issue img { width: 200px; max-width: 100%; border-radius: var(--radius-sm); box-shadow: 0 6px 20px rgba(28, 26, 38, .15); }
.resource-group + .resource-group { margin-top: var(--space-6); }
.resource-group h2 { font-size: 30px; line-height: 36px; padding-top: 18px; border-top: 4px solid var(--line-strong); }
.resource-list { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 var(--space-5); }
.resource-list li { padding-block: 14px; border-bottom: 1px solid var(--line); }
.resource-list a { font-weight: 700; }

/* News */
.post-list { display: flex; flex-direction: column; }
.post-card { display: flex; flex-wrap: wrap; gap: var(--space-5); padding-block: var(--space-5); border-bottom: 1px solid var(--line); }
.post-card:first-child { border-top: 4px solid var(--line-strong); }
.post-card__media { flex: 1 1 240px; max-width: 320px; }
.post-card__media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); }
.post-card__body { flex: 999 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.post-card h2 { font-size: 30px; line-height: 36px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--brand-purple); }
.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cat-list li { border-bottom: 1px solid var(--line); }
.cat-list a { display: flex; justify-content: space-between; min-height: var(--tap); align-items: center; text-decoration: none; color: var(--ink); font-weight: 600; }
.cat-list a:hover { color: var(--brand-purple); }
.pagination { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; font-weight: 700; }
.pagination .current { background: var(--brand-purple); color: var(--on-brand); border-color: var(--brand-purple); }
.single-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.single-hero-image { margin-bottom: var(--space-5); }
.single-hero-image img { width: 100%; border-radius: var(--radius-sm); }

.search-form { display: flex; flex-wrap: wrap; gap: 8px; }
.search-form input[type="search"] { flex: 1 1 200px; min-height: var(--tap); padding: 0 14px; font: 400 18px var(--font-sans); border: 1.5px solid #b9b5c9; border-radius: var(--radius-md); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--surface-alt); border-top: 1px solid var(--line); }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-5); padding-block: var(--space-7) var(--space-5); font-size: 17px; color: var(--ink-muted); }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand img { width: 64px; height: 64px; flex: none; }
.foot-brand p { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--ink); }
.site-footer h2 { font-family: var(--font-sans); font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer__legal { border-top: 1px solid var(--line); }
.site-footer__legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 32px; font-size: 15px; color: var(--ink-muted); }

/* ==========================================================================
   Small screens
   ========================================================================== */
@media (max-width: 720px) {
	.story { padding: var(--space-4); }
	.story h2 { font-size: 34px; line-height: 40px; }
	.lead { font-size: 20px; line-height: 31px; }
	.event-card__body h2 { font-size: 30px; line-height: 36px; }
	.filters__count { margin-left: 0; width: 100%; }
	.filters input, .filters select { min-width: 0; width: 100%; }
	.filters label { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
