/*
Theme Name: UVW – United Voices of the World
Author: United Voices of the World
Author URI: https://www.uvwunion.org.uk/
Version: 1.4
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Fonts: D-DIN by Datto (SIL OFL 1.1, https://github.com/amcchord/datto-d-din) is bundled
as web alternative to DIN Pro / DIN Alternate.
Open Sans (SIL OFL 1.1) Extra Bold Italic for subheadings.
*/

/* --------------------------------------------------------------------------
   TABLE OF CONTENTS
   1.  Fonts (@font-face)
   2.  Design tokens (from DESIGN.md)
   3.  Base & typography
   4.  Accessibility helpers
   5.  Links, buttons, forms
   6.  Layout & colour sections (approved pairings only)
   7.  Megaphone stamp watermarks
   8.  Header & navigation (incl. Polylang language switcher)
   9.  Front page: hero, CTA word wall, news grid, join band
   10. Posts, pages, archives, cards
   11. Comments & pagination
   12. Footer
   13. WordPress core classes & block editor palette
   14. Media queries & reduced motion
   -------------------------------------------------------------------------- */

/* ==========================================================================
   1. FONTS
   ========================================================================== */

@font-face {
	font-family: 'D-DIN';
	src: url('fonts/D-DIN.woff2') format('woff2'),
	     url('fonts/D-DIN.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'D-DIN';
	src: url('fonts/D-DIN-Bold.woff2') format('woff2'),
	     url('fonts/D-DIN-Bold.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'D-DIN';
	src: url('fonts/D-DIN-Italic.woff2') format('woff2'),
	     url('fonts/D-DIN-Italic.woff') format('woff');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'D-DIN Condensed';
	src: url('fonts/D-DINCondensed.woff2') format('woff2'),
	     url('fonts/D-DINCondensed.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'D-DIN Condensed';
	src: url('fonts/D-DINCondensed-Bold.woff2') format('woff2'),
	     url('fonts/D-DINCondensed-Bold.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* Open Sans Extra Bold Italic — subheadings only. */
@font-face {
	font-family: 'Open Sans';
	src: url('fonts/OpenSans-ExtraBoldItalic-latin.woff2') format('woff2');
	font-weight: 800;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Open Sans';
	src: url('fonts/OpenSans-ExtraBoldItalic-latin-ext.woff2') format('woff2');
	font-weight: 800;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   2. DESIGN TOKENS — straight from DESIGN.md
   ========================================================================== */

:root {
	--uvw-navy:   #000037;
	--uvw-red:    #EA0420;
	--uvw-blue:   #0041B4;
	--uvw-yellow: #FFDD00;
	--uvw-white:  #FFFFFF;
	--uvw-black:  #000000; /* outside the poster palette; kept for reuse */

	--font-din: 'D-DIN', 'DIN Alternate', 'Helvetica Neue', Arial, sans-serif;
	--font-condensed: 'D-DIN Condensed', 'DIN Alternate', 'Arial Narrow', Arial, sans-serif;
	--font-subheading: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;

	--tracking-placard: -0.03em; /* letter spacing = −30 */
	--leading-placard: 0.9;      /* line spacing = 0.9   */
	--leading-body: 1.5;         /* relaxed for screen reading */

	--container: 72rem;
	--gutter: 1.25rem;
	--section-pad: clamp(3rem, 8vw, 6rem);
}

/* ==========================================================================
   3. BASE & TYPOGRAPHY
   ========================================================================== */

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	overflow-x: hidden;
	overflow-x: clip;
}

body {
	margin: 0;
	font-family: var(--font-din);
	font-size: 1.125rem;
	font-weight: 400;
	line-height: var(--leading-body);
	color: var(--uvw-navy);       /* navy on white: AAA 19.90 */
	background-color: var(--uvw-white);
	word-wrap: break-word;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-din);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
	line-height: var(--leading-placard);
	margin: 0 0 0.75em;
	overflow-wrap: break-word;
}

h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2rem); }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* Section titles */
.section-title {
	font-style: italic;
}

/* Page titles */
h1.page-title {
	font-style: normal;
	font-weight: 700;
	color: var(--uvw-white);
}

/* Subheading */
.subheading {
	font-family: var(--font-subheading);
	font-weight: 800;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
	line-height: 1.1;
	font-size: clamp(1.125rem, 2.5vw, 1.5rem);
	margin: 0 0 1em;
}

p {
	margin: 0 0 1.25em;
}

/* Lead paragraph */
.lead {
	font-size: 1.375rem;
	font-weight: 700;
}

ul, ol {
	margin: 0 0 1.25em;
	padding-left: 1.5em;
}

blockquote {
	margin: 1.5em 0;
	padding: 0.35em 1.5em; /* tight above and below the text */
	border-left: 0.5rem solid var(--uvw-red);
	font-weight: 700;
	font-size: 1.25rem;
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
	line-height: 1.1;
}

/* The paragraphs inside carry no extra space at the top or bottom */
blockquote > :first-child {
	margin-top: 0;
}

blockquote > :last-child {
	margin-bottom: 0;
}

blockquote cite {
	display: block;
	margin-top: 0.75em;
	font-size: 0.875rem;
	font-style: normal;
	text-transform: none;
	letter-spacing: 0;
}

hr {
	border: 0;
	height: 0.5rem;
	background: var(--uvw-yellow);
	margin: 2.5em 0;
}

/* Editor separator block */
hr.wp-block-separator {
	border: 0;
	height: 2px;
	max-width: none;
	background: var(--uvw-yellow);
	opacity: 1;
}

table {
	border-collapse: collapse;
	width: 100%;
	margin: 0 0 1.5em;
}

th, td {
	border: 2px solid var(--uvw-navy);
	padding: 0.5em 0.75em;
	text-align: left;
}

th {
	background: var(--uvw-navy);
	color: var(--uvw-white);
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
}

pre, code, kbd {
	font-family: 'SFMono-Regular', Consolas, monospace;
	font-size: 0.9375em;
}

pre {
	padding: 1em;
	overflow: auto;
	background: var(--uvw-navy);
	color: var(--uvw-white);
}

/* ==========================================================================
   4. ACCESSIBILITY HELPERS
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--uvw-yellow);
	color: var(--uvw-navy);
	clip: auto !important;
	clip-path: none;
	display: block;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 1em 1.5em;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.skip-link {
	position: absolute;
	left: -9999rem;
	top: 0;
	z-index: 100000;
}

.skip-link:focus {
	left: 0.5rem;
	top: 0.5rem;
	background: var(--uvw-yellow);
	color: var(--uvw-navy);
	padding: 0.75em 1.25em;
	font-weight: 700;
	text-transform: uppercase;
}

:focus-visible {
	outline: 3px solid var(--uvw-blue);
	outline-offset: 2px;
}

/* On dark/saturated sections a yellow focus ring keeps contrast. */
.section--navy :focus-visible,
.section--blue :focus-visible,
.section--red :focus-visible,
.top-bar :focus-visible,
.site-footer :focus-visible {
	outline-color: var(--uvw-yellow);
}

.section--yellow :focus-visible,
.page-header :focus-visible,
.site-header :focus-visible {
	outline-color: var(--uvw-navy);
}

/* ==========================================================================
   5. LINKS, BUTTONS, FORMS
   ========================================================================== */

a {
	color: var(--uvw-blue);
	text-decoration-thickness: 2px;
	text-underline-offset: 2px;
}

a:hover {
	color: var(--uvw-red);
}

.uvw-button,
button,
input[type='button'],
input[type='reset'],
input[type='submit'],
.wp-block-button__link {
	display: inline-block;
	font-family: var(--font-condensed);
	font-weight: 700;
	font-size: 1.375rem;
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
	line-height: 1;
	text-decoration: none;
	border: 0;
	border-radius: 0;             /* flat, solid blocks — no rounding */
	padding: 0.85em 1.4em 0.7em;
	cursor: pointer;
	background: var(--uvw-navy);
	color: var(--uvw-yellow);     /* yellow on navy: AAA 14.78 */
	transition: transform 0.15s ease;
}

.uvw-button:hover,
button:hover,
input[type='submit']:hover,
.wp-block-button__link:hover {
	transform: rotate(-2deg) scale(1.04);  /* the placard lean */
	color: var(--uvw-white);               /* white on navy: AAA 19.90 */
}

.uvw-button--red    { background: var(--uvw-red);    color: var(--uvw-white); } /* AA 4.63 */
.uvw-button--red:hover { color: var(--uvw-white); }
.uvw-button--blue   { background: var(--uvw-blue);   color: var(--uvw-white); } /* AAA 8.70 */
.uvw-button--blue:hover { color: var(--uvw-yellow); }                           /* AA 6.46 */
.uvw-button--yellow { background: var(--uvw-yellow); color: var(--uvw-navy); }  /* AAA 14.78 */
.uvw-button--yellow:hover { color: var(--uvw-navy); }
.uvw-button--white  { background: var(--uvw-white);  color: var(--uvw-blue); }  /* AAA 8.70 */
.uvw-button--white:hover { color: var(--uvw-red); }                             /* AA 4.63 */

input[type='text'],
input[type='email'],
input[type='url'],
input[type='password'],
input[type='search'],
input[type='tel'],
input[type='number'],
textarea,
select {
	font-family: var(--font-din);
	font-size: 1rem;
	color: var(--uvw-navy);
	background: var(--uvw-white);
	border: 3px solid var(--uvw-navy);
	border-radius: 0;
	padding: 0.6em 0.8em;
	max-width: 100%;
}

label {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
	font-size: 0.9375rem;
}

.search-form label {
	display: block;
	margin-bottom: 0.35rem;
}

.search-form__row {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.search-form .search-field {
	flex: 1 1 14rem;
}

/* --- Forms in the content area (contact, join, letter tools, …) --- */

[hidden] {
	display: none !important;
}

.uvw-form {
	max-width: 44rem;
	margin-top: 2.5rem;
}

.site-main form fieldset {
	border: 0;
	padding: 0;
	margin: 0 0 2rem;
	min-width: 0;
}

.site-main form legend {
	display: block;
	width: 100%;
	padding: 1.25rem 0 0.75rem;
	border-top: 0.5rem solid var(--uvw-yellow);
	font-family: var(--font-condensed);
	font-weight: 700;
	font-size: 1.5rem;
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
	line-height: 1.1;
}

/* Small question groups (yes/no radios) keep the plain label voice. */
.site-main form legend.uvw-form__legend--plain {
	border-top: 0;
	padding: 0 0 0.25rem;
	font-family: var(--font-din);
	font-size: 0.9375rem;
}

.site-main form input[type='text'],
.site-main form input[type='email'],
.site-main form input[type='tel'],
.site-main form input[type='number'],
.site-main form select,
.site-main form textarea {
	display: block;
	width: 100%;
}

.site-main form textarea {
	min-height: 12em;
}

.uvw-form__field {
	margin-bottom: 0.75rem;
}

.uvw-form__field > label {
	display: block;
	margin-bottom: 0.35rem;
}

/* Short side-by-side inputs (date of birth). */
.uvw-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.site-main form input.uvw-form__input--short {
	display: inline-block;
	width: 6.5em;
}

/* Quiet helper line under a legend. */
.uvw-form__hint {
	font-size: 0.9375rem;
	margin: 0 0 1em;
}

/* Radio/checkbox rows read as body text, not placard labels. */
.uvw-form__choice {
	display: block;
	font-weight: 400;
	font-size: 1.0625rem;
	text-transform: none;
	letter-spacing: 0;
	margin-bottom: 0.4rem;
}

.uvw-form__choice--inline {
	display: inline-block;
	margin-right: 1.5rem;
}

.uvw-form__choice input {
	accent-color: var(--uvw-red);
	margin-right: 0.4em;
}

/* Enquiry-type chooser panel */
.uvw-form__panel {
	background: var(--uvw-yellow);
	color: var(--uvw-navy);
	padding: 1.25rem;
	margin-bottom: 1.5rem;
}

.uvw-form__panel a {
	color: var(--uvw-navy);
}

.uvw-form__panel a:hover {
	color: var(--uvw-blue);
}

/* Contact landing: six enquiry-type boxes linking to ?type=… */
.contact-choices__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 2rem 0 1rem;
}

.contact-choices {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
	gap: 1rem;
	margin: 0 0 3rem;
}

.contact-choice {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	min-height: 8rem;
	padding: 1.25rem;
	background: var(--uvw-navy);
	color: var(--uvw-white);
	text-decoration: none;
	font-family: var(--font-condensed);
	font-weight: 700;
	font-size: 1.375rem;
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
	transition: transform 0.15s ease, background-color 0.15s ease;
}

.contact-choice:hover,
.contact-choice:focus-visible {
	background: var(--uvw-red);
	color: var(--uvw-white);
	transform: rotate(-1deg) scale(1.02); /* the placard lean */
}

.contact-choice__arrow {
	font-size: 1.75rem;
	flex: 0 0 auto;
}

/* Contact form: the chosen enquiry type, with a link back to the boxes */
.contact-chosen__label {
	margin: 0 0 0.25rem;
	font-size: 0.9375rem;
}

.contact-chosen__value {
	margin: 0;
	font-family: var(--font-condensed);
	font-size: 1.375rem;
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
	line-height: 1.1;
}

.contact-chosen__change {
	font-family: var(--font-din);
	font-size: 0.875rem;
	text-transform: none;
	letter-spacing: 0;
	margin-left: 0.75rem;
	white-space: nowrap;
}

.contact-chosen__desc {
	margin: 1rem 0 0;
	max-width: 65ch;
}

/* Legal small print above the casework terms tickbox. */
.uvw-form__smallprint {
	font-size: 0.875rem;
	max-width: 65ch;
}

.uvw-form__actions {
	margin-top: 2rem;
}

.uvw-form__actions .cf-turnstile {
	margin-top: 1rem;
}

/* Join-flow steps */
.form-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.form-steps__step {
	font-family: var(--font-condensed);
	font-weight: 700;
	font-size: 1.25rem;
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
	line-height: 1;
	padding: 0.7em 1em 0.55em;
	border: 3px solid var(--uvw-navy);
	background: var(--uvw-white);
	color: var(--uvw-navy);
}

.form-steps__step.is-current {
	background: var(--uvw-navy);
	color: var(--uvw-yellow); /* AAA 14.78 */
}

/* Error banner: white on red, AA 4.63. */
.form-error {
	background: var(--uvw-red);
	color: var(--uvw-white);
	font-weight: 700;
	padding: 1em 1.25em;
	margin: 0 0 1.5rem;
	max-width: 44rem;
}

.form-error a {
	color: var(--uvw-white);
}

.form-error p {
	margin: 0;
}

/* ==========================================================================
   6. LAYOUT & COLOUR SECTIONS
   ========================================================================== */

.container {
	max-width: var(--container);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.section {
	position: relative;
	padding-top: var(--section-pad);
	padding-bottom: var(--section-pad);
	overflow: hidden;
}

.section > .container {
	position: relative;
	z-index: 1;
}

.section--navy   { background: var(--uvw-navy);   color: var(--uvw-white); }
.section--blue   { background: var(--uvw-blue);   color: var(--uvw-white); }
.section--red    { background: var(--uvw-red);    color: var(--uvw-white); }
.section--yellow { background: var(--uvw-yellow); color: var(--uvw-navy); }
.section--white  { background: var(--uvw-white);  color: var(--uvw-navy); }

.section--navy a,
.section--blue a,
.section--red a {
	color: var(--uvw-white);
}

.section--navy a:hover,
.section--blue a:hover {
	color: var(--uvw-yellow); /* yellow on navy AAA 14.78, on blue AA 6.46 */
}

.section--red a:hover {
	color: var(--uvw-white);
	text-decoration-thickness: 4px;
}

.section--yellow a {
	color: var(--uvw-navy);   /* AAA 14.78 */
}

.section--yellow a:hover {
	color: var(--uvw-blue);   /* AA 6.46 */
}

/* Accent headings */
.section--navy .section-title,
.section--blue .section-title {
	color: var(--uvw-yellow);
}

/* Buttons keep their own pairing inside any colour section. */
.section .uvw-button          { color: var(--uvw-yellow); }
.section .uvw-button:hover    { color: var(--uvw-white); }
.section .uvw-button--red     { color: var(--uvw-white); }
.section .uvw-button--red:hover { color: var(--uvw-white); }
.section .uvw-button--blue    { color: var(--uvw-white); }
.section .uvw-button--blue:hover { color: var(--uvw-yellow); }
.section .uvw-button--yellow  { color: var(--uvw-navy); }
.section .uvw-button--yellow:hover { color: var(--uvw-navy); }
.section .uvw-button--white   { color: var(--uvw-blue); }
.section .uvw-button--white:hover { color: var(--uvw-red); }

/* Yellow call-to-action groups in page content: roomier, bigger heading,
   red button as on the front-page hero. */
:is(.entry-content, .section-cta) .wp-block-group.has-uvw-yellow-background-color {
	padding: 2rem 1.5rem;
	gap: 1.5rem;
}

:is(.entry-content, .section-cta) .wp-block-group.has-uvw-yellow-background-color > :is(h2, h3, h4) {
	font-size: clamp(2rem, 5vw, 3rem);
	margin: 0;
	max-width: none;
}

:is(.entry-content, .section-cta) .wp-block-group.has-uvw-yellow-background-color > p {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0;
}

/* Full-width Join band, flush against the footer */
.section-cta,
.section-cta .join-band {
	margin: 0;
}

/* Inside page content ([uvw_join_band]) the band still bleeds nothing; it
   just fills the content column. */
.entry-content .join-band {
	max-width: none;
}

.has-uvw-yellow-background-color .wp-block-button__link {
	background: var(--uvw-red);
	color: var(--uvw-white);      /* AA 4.63, as the hero's Join button */
	font-size: 1.5rem;
	padding: 0.85em 1.6em 0.7em;
}

.has-uvw-yellow-background-color .wp-block-button__link:hover {
	color: var(--uvw-white);
}

/* Editor button blocks flip to yellow/black on navy fields (the default
   navy button would vanish into the background). */
.section--navy .wp-block-button__link,
.side-column .wp-block-button__link,
.has-uvw-navy-background-color .wp-block-button__link {
	background: var(--uvw-yellow);
	color: var(--uvw-black);
}

.section--navy .wp-block-button__link:hover,
.side-column .wp-block-button__link:hover,
.has-uvw-navy-background-color .wp-block-button__link:hover {
	color: var(--uvw-black);
}

/* ==========================================================================
   7. MEGAPHONE STAMP WATERMARKS
   ========================================================================== */

.uvw-stamp {
	display: block;
	width: 100%;
	height: auto;
	fill: currentColor;
}

.uvw-stamp .uvw-stamp__hole {
	fill: var(--stamp-hole, var(--uvw-white));
}

.section__stamp {
	position: absolute;
	z-index: 0;
	width: clamp(20rem, 45vw, 40rem);
	right: -6rem;
	top: 50%;
	transform: translateY(-50%) rotate(8deg);
	pointer-events: none;
}

/* 404: the real megaphone logo instead of the drawn stamp */
.section__stamp--logo {
	transform: translateY(-50%);
	right: -3rem;
}

.section__stamp--logo img {
	display: block;
	width: 100%;
	height: auto;
}

.section--navy   .section__stamp { color: var(--uvw-blue);  --stamp-hole: var(--uvw-navy); }
.section--blue   .section__stamp { color: var(--uvw-navy);  --stamp-hole: var(--uvw-blue); }
.section--yellow .section__stamp { color: var(--uvw-white); --stamp-hole: var(--uvw-yellow); }

/* ==========================================================================
   8. HEADER & NAVIGATION
   ========================================================================== */

.site-header {
	background: var(--uvw-yellow);
	color: var(--uvw-navy);
	position: relative;
	z-index: 10;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-top: 1rem;
	padding-bottom: 1rem;
	flex-wrap: wrap;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	min-width: 0;
}

.site-branding a {
	color: inherit;
	text-decoration: none;
}

/* Logo hangs slightly below the yellow bar. */
.site-logo img,
.custom-logo {
	display: block;
	height: 5rem;
	width: auto;
	position: relative;
	z-index: 11;
}

.site-title {
	font-family: var(--font-condensed);
	font-weight: 700;
	font-size: 1.5rem;
	line-height: var(--leading-placard);
	letter-spacing: var(--tracking-placard);
	text-transform: uppercase;
	margin: 0;
	max-width: 11ch; /* stacks the name: UNITED VOICES / OF THE WORLD */
}

.site-title a:hover {
	color: var(--uvw-yellow);
}

/* Hamburger toggle: three white bars, morphing to an X when open. */
.menu-toggle {
	display: none;
	background: transparent;
	border: 0;
	padding: 0.6rem;
	cursor: pointer;
	position: relative;
	z-index: 1002;
}

.menu-toggle:hover {
	transform: none;
}

.menu-toggle__bars {
	display: block;
	width: 1.75rem;
}

.menu-toggle__bars span {
	display: block;
	height: 3px;
	background: var(--uvw-navy);
	margin: 5px 0;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle:hover .menu-toggle__bars span,
.menu-toggle:focus .menu-toggle__bars span {
	background: var(--uvw-navy); /* no colour shift on interaction */
}

/* Open state: the X goes white above the navy panel. */
.main-navigation.toggled .menu-toggle__bars span {
	background: var(--uvw-white);
}

.main-navigation.toggled .menu-toggle__bars span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.main-navigation.toggled .menu-toggle__bars span:nth-child(2) {
	opacity: 0;
}

.main-navigation.toggled .menu-toggle__bars span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem;
}

.main-navigation a {
	display: block;
	font-family: var(--font-condensed);
	font-weight: 700;
	font-size: 1.25rem;
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
	color: var(--uvw-navy);
	text-decoration: none;
	padding: 0.6em 0.75em 0.45em;
}

.main-navigation a:hover,
.main-navigation a:focus {
	color: var(--uvw-blue);
}

.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation .current_page_item > a {
	color: var(--uvw-navy);
	box-shadow: inset 0 -0.35em 0 0 var(--uvw-red);
}

/* CTA menu item (menu-item--cta): red placard button. */
.main-navigation .menu-item--cta > a {
	background: var(--uvw-red);
	color: var(--uvw-white);
	line-height: 1;
	padding: 0.7em 1.1em 0.55em;
	margin-inline: 0.5rem;
	transition: transform 0.15s ease;
}

.main-navigation .menu-item--cta > a:hover,
.main-navigation .menu-item--cta > a:focus {
	color: var(--uvw-white);
	transform: rotate(-2deg) scale(1.04); /* the placard lean */
}

.main-navigation .menu-item--cta.current-menu-item > a,
.main-navigation .menu-item--cta.current_page_item > a {
	color: var(--uvw-white);
	box-shadow: none;
}

/* Dropdowns: solid navy panel. */
.main-navigation ul ul {
	display: none;
	position: absolute;
	background: var(--uvw-navy);
	min-width: 14rem;
	padding: 0.5rem 0;
	margin: 0;
	border-top: 0.35rem solid var(--uvw-red);
}

.main-navigation li {
	position: relative;
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
	display: block;
}

.main-navigation ul ul a {
	font-size: 1.0625rem;
	padding: 0.5em 1em 0.4em;
	color: var(--uvw-white); /* the dropdown panel stays navy */
}

.main-navigation ul ul a:hover,
.main-navigation ul ul a:focus {
	color: var(--uvw-yellow);
}

/* --- Top bar: black strip across the very top --- */

.top-bar {
	background: var(--uvw-navy);
	color: var(--uvw-white);
}

.top-bar__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.lang-bar {
	display: flex;
	align-items: center;
}

.social-links {
	display: flex;
	align-items: center;
	margin-left: auto;
}

.social-links__link {
	display: flex;
	align-items: center;
	color: var(--uvw-white);
	padding: 0.5em 0.5em;
}

.social-links__link:hover,
.social-links__link:focus {
	color: var(--uvw-yellow);
}

.social-links__link svg {
	display: block;
}

/* Press: outline button after the social icons; hidden whenever the mobile
   menu is in use (see the 60em query). The right margin matches the menu's
   Join CTA so the two buttons share a right edge. */
.top-bar__press {
	margin-left: 0.5rem;
	margin-right: 0.5rem;
	font-family: var(--font-condensed);
	font-weight: 700;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
	line-height: 1;
	color: var(--uvw-white);
	text-decoration: none;
	border: 2px solid var(--uvw-white);
	padding: 0.4em 0.75em 0.3em;
}

.top-bar__press:hover,
.top-bar__press:focus {
	color: var(--uvw-navy);
	background: var(--uvw-yellow);
	border-color: var(--uvw-yellow);
}

.lang-bar__link {
	font-family: var(--font-condensed);
	font-weight: 700;
	font-size: 1.125rem;
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
	color: var(--uvw-white);
	text-decoration: none;
	padding: 0.55em 0.9em 0.4em;
}

.lang-bar__link + .lang-bar__link {
	border-left: 2px solid var(--uvw-white);
}

.lang-bar__link:hover,
.lang-bar__link:focus {
	color: var(--uvw-yellow);
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 4px;
}

.lang-bar__link.is-current {
	color: var(--uvw-yellow);
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 4px;
}

.lang-bar :focus-visible {
	outline-color: var(--uvw-yellow);
}

/* ==========================================================================
   9. FRONT PAGE
   ========================================================================== */

/* --- Hero: the cover — yellow field, white stamp, navy caps. ------------- */

.front-hero {
	padding-top: clamp(4rem, 10vw, 8rem);
	padding-bottom: clamp(4rem, 10vw, 8rem);
}

.front-hero .front-hero__title {
	font-size: clamp(3.5rem, 10.5vw, 7.5rem);
	font-style: italic;         /* the cover "DESIGN SYSTEM" lean */
	margin-bottom: 0.35em;
	max-width: 14ch;
	/* D-DIN tops out at 700; a hairline outward stroke takes it heavier */
	-webkit-text-stroke: 0.035em currentColor;
	paint-order: stroke fill;
}

/* Strapline under the headline: mixed case, highlighted line by line */
.front-hero__strapline {
	max-width: 34ch;
	margin: 0;
	font-weight: 700;
	font-size: clamp(1.125rem, 1.8vw, 1.375rem);
	line-height: 1.55;
}

.front-hero__strapline > span {
	background: var(--uvw-navy);
	color: var(--uvw-white); /* AAA 19.90 */
	padding: 0.15em 0.4em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone; /* each wrapped line gets its own box */
}

.nowrap {
	white-space: nowrap;
}

.front-hero__strapline + .front-hero__actions {
	margin-top: 1.75rem;
}

/* Headline lines in yellow boxes */
.front-hero__line {
	display: table;
	background: var(--uvw-yellow);
	color: var(--uvw-navy); /* AAA 14.78 */
	padding: 0.08em 0.25em 0.02em 0.15em;
}

.front-hero__line + .front-hero__line {
	margin-top: 0.08em;
}

.front-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 2rem;
}

/* Hero buttons match the menu CTA's size. */
.front-hero__actions .uvw-button {
	font-size: 1.25rem;
	padding: 0.7em 1.1em 0.55em;
}

/* Join CTA leads, clearly larger */
.front-hero__actions .uvw-button:first-child {
	font-size: 1.75rem;
	padding: 0.75em 1.25em 0.6em;
}

/* --- Hero image scroller --- */

.front-hero--scroll {
	display: flex;
	align-items: center;
	min-height: min(80vh, 46rem);
}

.front-hero--scroll > .container {
	width: 100%;
}

.front-hero__scroll {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
	background: var(--uvw-yellow);
}

.front-hero__track {
	/* Lean: tan(10°) ≈ 0.1763 */
	--lean: calc(min(80vh, 46rem) * 0.1763);
	display: flex;
	height: 100%;
	width: max-content;
	animation: uvw-hero-scroll 55s linear infinite;
	animation-delay: -15s;
	will-change: transform;
	backface-visibility: hidden;
}

.front-hero__track img {
	height: 100%;
	width: auto;
	max-width: none;
	display: block;
	/* 0.4rem under-overlap: thin diagonal seam */
	margin-left: calc(0.4rem - var(--lean));
	clip-path: polygon(var(--lean) 0, 100% 0, calc(100% - var(--lean)) 100%, 0 100%);
}

@keyframes uvw-hero-scroll {
	from {
		transform: translate3d(0, 0, 0);
	}

	to {
		transform: translate3d(-50%, 0, 0);
	}
}

.front-hero--scroll .front-hero__title {
	font-size: clamp(3.25rem, 6vw, 4.25rem);
}

.front-hero--scroll .front-hero__actions {
	margin-top: 1.5rem;
}

.front-hero--scroll .front-hero__actions .uvw-button {
	font-size: 1.125rem;
}

.front-hero--scroll .front-hero__actions .uvw-button:first-child {
	font-size: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
	.front-hero__track {
		animation: none;
	}
}

/* --- News grid ------------------------------------------------------------ */

.news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
	gap: 1.5rem;
	margin: 2rem 0;
}

.section__more {
	margin-top: 1rem;
}

/* --- Join band ------------------------------------------------------------ */

.join-band .section-title {
	color: var(--uvw-navy);
	font-size: clamp(2.5rem, 6vw, 4rem);
}

.join-band__text {
	max-width: 55ch;
	font-weight: 700;
	font-size: 1.25rem;
}

/* Yellow-duotone photo background */
.join-band__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-size: 0 0; /* the inline image paints on ::before, not here */
	background-color: var(--uvw-yellow);
	isolation: isolate;
}

.join-band__bg::before {
	content: '';
	position: absolute;
	inset: 0 0 0 40%; /* the photo keeps to the right of the band */
	background-image: inherit;
	background-size: cover;
	background-position: center 30%;
	filter: grayscale(1);
	opacity: 0.3;
	/* Left edge dissolves into the yellow field */
	-webkit-mask-image: linear-gradient(to right, transparent, #000 45%);
	mask-image: linear-gradient(to right, transparent, #000 45%);
}

.join-band__bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--uvw-yellow);
	mix-blend-mode: multiply;
}

/* --- Donate page: featured image backdrop, white content box ------------ */

.donate-hero {
	position: relative;
	background: var(--uvw-navy);
	padding: clamp(2.5rem, 6vw, 5rem) 0;
	overflow: hidden;
}

.donate-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-size: cover;
	background-position: center;
}

/* Navy wash keeps the white box crisp on busy photos */
.donate-hero__bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 55, 0.35);
}

.donate-hero > .container {
	position: relative;
	z-index: 1;
}

.donate-box {
	max-width: 48rem;
	margin: 0 auto;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	background: var(--uvw-white);
	color: var(--uvw-navy);
}

.donate-box .entry-content {
	max-width: none;
}

.donate-box .entry-content > :first-child {
	margin-top: 0;
}

.donate-box .entry-content > :last-child {
	margin-bottom: 0;
}

/* Donation amounts grid (below the page text), ruled above and below */
.donate-form {
	margin-top: 2.5rem;
	padding: 2rem 0;
	border-top: 0.5rem solid var(--uvw-yellow);
	border-bottom: 0.5rem solid var(--uvw-yellow);
}

.donate-form__options {
	border: 0;
	padding: 0;
	margin: 0;
}

.site-main .donate-form__legend {
	border-top: 0; /* the form itself carries the rule */
	padding-top: 0;
	font-family: var(--font-condensed);
	font-weight: 700;
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
	line-height: 1;
	margin-bottom: 1rem;
}

.donate-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.75rem;
}

.donate-option {
	position: relative;
	display: block;
	cursor: pointer;
}

/* The radio stays for keyboards/screen readers; the box is the control */
.donate-option input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.donate-option__box {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 4.5rem;
	padding: 0.5rem;
	border: 3px solid var(--uvw-navy);
	background: var(--uvw-white);
	color: var(--uvw-navy);
	font-family: var(--font-condensed);
	font-weight: 700;
	font-size: 1.75rem;
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
	line-height: 1;
	transition: transform 0.15s ease, background-color 0.15s ease;
}

.donate-option:hover .donate-option__box {
	transform: rotate(-2deg) scale(1.04); /* the placard lean */
}

.donate-option input:checked + .donate-option__box {
	background: var(--uvw-navy);
	color: var(--uvw-yellow);
}

.donate-option input:focus-visible + .donate-option__box {
	outline: 3px solid var(--uvw-blue);
	outline-offset: 2px;
}

.donate-form__other {
	margin-top: 1rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	font-weight: 700;
}

.site-main .donate-form__other input[type='number'] {
	display: inline-block;
	width: 10rem;
}

.donate-form__actions {
	margin-top: 1.5rem;
}

.donate-form__note {
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
}

/* Mobile / small screens: two rows of two */
@media (max-width: 48em) {
	.donate-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* --- Know your rights: question cards --- */

.front-kyr .section-title {
	color: var(--uvw-navy);
}

.kyr-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-top: 2rem;
}

/* Two boxes per row on desktop. */
@media (min-width: 48em) {
	.kyr-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.kyr-card {
	background: var(--uvw-navy);
	color: var(--uvw-white);
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.kyr-card:nth-child(4n+2) { background: var(--uvw-blue); }
.kyr-card:nth-child(4n+3) { background: var(--uvw-red); }
.kyr-card:nth-child(4n)   { background: var(--uvw-yellow); color: var(--uvw-navy); }

.kyr-card__icon {
	width: 2.75rem;
	height: 2.75rem;
}

.kyr-card__question {
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	margin: 0;
	flex-grow: 1;
}

.kyr-card__action {
	margin: 0;
}

.kyr-card .uvw-button {
	font-size: 1.125rem;
}

/* On the yellow card the yellow button flips to navy. */
.kyr-card:nth-child(4n) .uvw-button--yellow {
	background: var(--uvw-navy);
	color: var(--uvw-yellow);
}

/* ==========================================================================
   10. POSTS, PAGES, ARCHIVES, CARDS
   ========================================================================== */

.site-main {
	display: block;
}

.page-header {
	background: var(--uvw-yellow);
	color: var(--uvw-navy);
	padding: 1rem 0;
}

.page-header .page-title {
	color: var(--uvw-navy); /* AAA 14.78 on yellow */
	margin: 0;
}

.page-header .archive-description {
	margin: 1em 0 0;
	max-width: 60ch;
}

/* Links inside the yellow band */
.page-header a {
	color: var(--uvw-navy);
}

.page-header a:hover {
	color: var(--uvw-blue);
}

/* Vertical padding only; the gutter comes from .container */
.content-area {
	padding-top: clamp(2.5rem, 6vw, 4rem);
	padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

/* Event scheduling eyebrow */
.entry-eyebrow {
	font-family: var(--font-condensed);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
	font-size: clamp(1.25rem, 3vw, 1.75rem);
	line-height: 1.1;
	color: var(--uvw-red);
	margin: 0 0 0.5rem;
}

.entry-header .entry-title {
	max-width: 40ch;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
}

/* Just the plain date: quiet, regular weight, body colour. */
.entry-meta {
	font-family: var(--font-condensed);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
	font-size: 1.375rem;
	color: var(--uvw-navy);
	margin-bottom: 2rem;
}

/* --- Single post hero --- */
.post-hero {
	position: relative;
	margin: 0;
	aspect-ratio: 2 / 1;
	max-height: 70vh;
	min-height: 60vh;
	overflow: hidden;
	width: 100%;
}

.post-hero img {
	height: 100%;
	width: 100%;
	object-fit: cover;
}

@media (min-width: 600px) {
	.post-hero img {
		width: 75%;
		margin-left: auto;
	}
}

.post-hero__overlay {
	position: absolute;
	inset: auto 0 1.75rem 0;
}

/* Date chip at the top left */
.post-hero__meta {
	position: absolute;
	inset: 1.5rem 0 auto 0;
}

.post-hero__date {
	display: inline-block;
	background: var(--uvw-white);
	color: var(--uvw-navy); /* AAA 19.90 */
	font-family: var(--font-condensed);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
	font-size: 1.375rem;
	line-height: 1;
	padding: 0.35em 0.55em 0.25em;
}

.post-hero__title {
	margin: 0;
	max-width: 24ch;
	font-size: clamp(1.75rem, 4.5vw, 3.25rem);
	line-height: 1.15; /* roomier than placard leading so the cloned boxes don't overlap */
}

/* Yellow boxes cloned onto every wrapped line */
.post-hero__line {
	display: inline;
	background: var(--uvw-yellow);
	color: var(--uvw-navy); /* AAA 14.78 */
	padding: 0.08em 0.25em 0.02em 0.15em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.post-hero__eyebrow {
	margin: 0 0 0.6em;
	font-family: var(--font-condensed);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
	font-size: clamp(1.125rem, 2.5vw, 1.5rem);
	line-height: 1.2;
}

.post-thumbnail {
	max-width: 44rem;
	margin: 0 0 2rem;
}

.post-thumbnail img {
	width: 100%;
}

.entry-content,
.entry-summary {
	max-width: 44rem;
}

/* Pages, and posts with a side column: room for two-column layouts */
.entry-content--wide {
	max-width: 64rem;
}

/* Card-grid intros: full container width */
.entry-content--full {
	max-width: none;
}

/* Wide layouts still keep running text at a readable line length;
   images, columns, tables, embeds and galleries use the full width. */
:where(.entry-content--wide, .entry-content--full)
	:is(p, ul, ol, dl, h1, h2, h3, h4, h5, h6, blockquote, pre, .wp-block-verse) {
	max-width: 44rem;
}

.entry-content > * {
	margin-left: 0;
}

.wp-block-column {
	padding: 2rem 1rem 1rem 1rem;
}

/* Know Your Rights page: coloured column boxes. Flex column so the button
   at the end of each box lines up along the bottom of the row. */
.kyr-page .wp-block-column.has-background {
	padding: 2.5rem 2rem;
	display: flex;
	flex-direction: column;
}

/* The box title (the leading <strong>) in placard caps, ruled underneath */
.kyr-page .wp-block-column.has-background p > strong:first-child {
	display: block;
	margin-bottom: 0.3em;
	padding-bottom: 0.25em;
	border-bottom: 1px solid var(--uvw-white);
	font-family: var(--font-condensed);
	font-size: 1.5rem;
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
}

/* On the yellow box the text is navy, so the rule is too */
.kyr-page .wp-block-column.has-uvw-yellow-background-color p > strong:first-child {
	border-bottom-color: var(--uvw-navy);
}

/* Buttons inside a box: white, with the box's colour as the text colour
   (also on hover/focus — the theme's default hover would turn it white). */
.kyr-page .wp-block-column.has-background .wp-block-button__link,
.kyr-page .wp-block-column.has-background .wp-block-button__link:hover,
.kyr-page .wp-block-column.has-background .wp-block-button__link:focus {
	background: var(--uvw-white);
	color: var(--uvw-navy);
}

.kyr-page .wp-block-column.has-uvw-blue-background-color .wp-block-button__link,
.kyr-page .wp-block-column.has-uvw-blue-background-color .wp-block-button__link:hover,
.kyr-page .wp-block-column.has-uvw-blue-background-color .wp-block-button__link:focus { color: var(--uvw-blue); }

.kyr-page .wp-block-column.has-uvw-red-background-color .wp-block-button__link,
.kyr-page .wp-block-column.has-uvw-red-background-color .wp-block-button__link:hover,
.kyr-page .wp-block-column.has-uvw-red-background-color .wp-block-button__link:focus { color: var(--uvw-red); }

/* Yellow text on white fails contrast: the yellow box keeps navy text */
.kyr-page .wp-block-column.has-uvw-yellow-background-color .wp-block-button__link,
.kyr-page .wp-block-column.has-uvw-yellow-background-color .wp-block-button__link:hover,
.kyr-page .wp-block-column.has-uvw-yellow-background-color .wp-block-button__link:focus { color: var(--uvw-navy); }

.kyr-page .wp-block-column.has-background .wp-block-buttons {
	margin-top: auto;      /* pushes to the bottom of the box */
	padding-top: 1.25rem;
}

/* Side columns: white on navy, yellow links */
.side-column {
	background: var(--uvw-navy);
	color: var(--uvw-white);
	padding: 1.25rem;
	align-self: flex-start;
}

/* Outranks core's per-column alignment classes */
.entry-content .wp-block-column.side-column {
	align-self: flex-start;
}

/* Outranks core's pinned flex-basis on imported columns */
.entry-content--wide .wp-block-columns > .wp-block-column[style*='flex-basis']:not(.side-column) {
	flex-grow: 1;
}

.side-column a {
	color: var(--uvw-yellow);
}

.side-column a:hover {
	color: var(--uvw-white);
}

.entry-footer {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 0.5rem solid var(--uvw-yellow);
	font-family: var(--font-condensed);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 1rem;
}

.entry-footer a {
	margin-right: 0.75em;
}

/* The tag list leads with an icon instead of the word "Tagged". */
.tags-links__icon {
	width: 1.1em;
	height: 1.1em;
	vertical-align: -0.15em;
	margin-right: 0.5em;
}

/* --- Newsletter signup box (top of the news page) ------------------------ */

.newsletter-box {
	background: var(--uvw-red);
	color: var(--uvw-white);
	padding: 1.75rem 0;
	margin: 0; /* sits between the news content and the Join band */
}

.newsletter-box__form {
	display: grid;
	grid-template-columns: minmax(16rem, 1fr) 2fr;
	gap: 1rem 2rem;
	align-items: center;
}

.newsletter-box__title {
	font-family: var(--font-condensed);
	font-size: 1.75rem;
	margin: 0 0 0.25em;
	color: var(--uvw-white);
}

.newsletter-box__text {
	margin: 0;
	font-weight: 700;
	max-width: 36ch;
}

.newsletter-box__fields {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.site-main .newsletter-box__fields input[type='text'],
.site-main .newsletter-box__fields input[type='email'] {
	display: block;
	flex: 1 1 12rem;
	width: auto;
	border-color: var(--uvw-white);
}

.newsletter-box__fields .uvw-button {
	flex: 0 0 auto;
}

/* Off-screen, not display:none — Mailchimp expects the field to be present. */
.newsletter-box__honeypot {
	position: absolute;
	left: -5000px;
}

.newsletter-box__smallprint {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 0.8125rem;
	opacity: 0.9;
}

/* --- Recent victories (History page / [uvw_victories]) --- */

.victories {
	margin-top: 4rem;
	max-width: none;
}

.victories__title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	margin-bottom: 0.5rem;
}

.victories__more {
	margin: 0;
	max-width: none;
}

/* --- Events page: section headings and smaller month labels --- */

.events-heading {
	margin-bottom: 1.5rem;
}

.events-heading--past {
	margin-top: 4rem;
}

.events-month {
	font-size: clamp(1.375rem, 3vw, 1.75rem);
	margin: 0 0 1rem;
}

.news-grid + .wp-block-separator + .events-month {
	margin-top: 0;
}

.news-grid--past .card {
	opacity: 0.85;
}

/* --- Page toolbar (events filter/search, news search) + school banner --- */

.page-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 2.5rem;
}

.page-toolbar form {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.site-main .page-toolbar select {
	display: inline-block;
	width: auto;
}

.page-toolbar input[type='search'] {
	width: 14rem;
	max-width: 100%;
}

.page-toolbar button {
	font-size: 1rem;
	padding: 0.65em 0.9em 0.5em;
}

/* Keeps a lone search form on the right. */
.page-toolbar__search {
	margin-left: auto;
}

/* Navy band, centred title, red button */
.events-banner {
	display: block;
	margin-top: 3rem;
	padding: 2rem 1.5rem;
	background: var(--uvw-navy);
	color: var(--uvw-white); /* AAA 19.90 */
	text-align: center;
	text-decoration: none;
}

.events-banner__title {
	display: block;
	font-family: var(--font-condensed);
	font-weight: 700;
	font-size: clamp(1.5rem, 3.5vw, 2.25rem);
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
	line-height: 1.1;
}

.events-banner__more {
	margin-top: 1rem;
}

/* The whole band is the link, so the button leans on band hover */
.events-banner:hover .events-banner__more,
.events-banner:focus-visible .events-banner__more {
	transform: rotate(-2deg) scale(1.04);
}

/* --- News page: year archives --- */

.news-archives {
	margin-top: 3.5rem;
	border-top: 0.5rem solid var(--uvw-yellow);
	padding-top: 1.5rem;
}

.news-archives__title {
	font-size: 1.75rem;
}

.news-archives__years {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
}

.news-archives__years a {
	font-family: var(--font-condensed);
	font-weight: 700;
	font-size: 1.375rem;
	letter-spacing: var(--tracking-placard);
	text-decoration: none;
}

.news-archives__years a:hover {
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 4px;
}

/* --- News/archive cards --- */

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--uvw-navy);
	color: var(--uvw-white);
	overflow: hidden;
	transition: box-shadow 500ms;
	box-shadow: 0px 0px 20px 10px rgba(250, 221, 0, 0);
}

.card:hover {
	 box-shadow: 0px 0px 20px 10px rgba(250, 221, 0, 0.4);
}

.card a {
	color: inherit;
}

.card__body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	gap: 0.5rem;
}

.card__title {
	font-size: 1.5rem;
	margin: 0;
	text-wrap: balance;
}

.card__title a {
	text-decoration: none;
}

.card__title a::after {   /* whole card clickable */
	content: '';
	position: absolute;
	inset: 0;
}

.card__meta {
	font-family: var(--font-condensed);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
	font-size: 0.9375rem;
	order: -1;
}

.card__eyebrow {
	font-family: var(--font-condensed);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
	font-size: 1.25rem;
	line-height: 1.1;
	margin: 0;
	opacity: 0.85;
}

/* The category link must sit above the whole-card-click overlay. */
.card__category {
	position: relative;
	z-index: 1;
	text-decoration: none;
}

.card__category:hover {
	text-decoration: underline;
}

/* Date leads the meta line; the campaign tag follows after a dot. */
.card__date + .card__category {
	margin-left: 0.35em;
}

.card__date + .card__category::before {
	content: '· ';
}

.card__excerpt {
	font-size: 1rem;
	margin: 0;
}

.card__thumb img {
	width: 100%;
	aspect-ratio: 2 / 1;
	object-fit: cover;
}

/* Video cards */
.card--video iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	display: block;
}

.card--video-vertical iframe {
	aspect-ratio: 9 / 16;
	flex-grow: 1;
}

/* Keep the iframe interactive; only the headline links */
.card--video .card__title a::after {
	content: none;
}

.card:nth-child(4n+2) { background: var(--uvw-blue); }
.card:nth-child(4n+3) { background: var(--uvw-red); }
.card:nth-child(4n)   { background: var(--uvw-yellow); color: var(--uvw-navy); }

.card:nth-child(4n+1) .card__meta { color: var(--uvw-yellow); } /* AAA 14.78 */
.card:nth-child(4n+2) .card__meta { color: var(--uvw-yellow); } /* AA 6.46  */
.card:nth-child(4n+3) .card__meta { color: var(--uvw-white); }
.card:nth-child(4n)   .card__meta { color: var(--uvw-navy); }


/* ==========================================================================
   11. COMMENTS & PAGINATION
   ========================================================================== */

.comments-area {
	margin-top: 3rem;
	max-width: 44rem;
}

.comment-list {
	list-style: none;
	padding: 0;
}

.comment-list .comment {
	border-left: 0.5rem solid var(--uvw-blue);
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
}

.comment-list .bypostauthor {
	border-left-color: var(--uvw-red);
}

.comment-meta {
	font-size: 0.9375rem;
	margin-bottom: 0.5rem;
}

.comment-author .fn {
	font-weight: 700;
	text-transform: uppercase;
}

.comment-form label {
	display: block;
	margin-bottom: 0.25rem;
}

.comment-form input[type='text'],
.comment-form input[type='email'],
.comment-form input[type='url'],
.comment-form textarea {
	width: 100%;
	margin-bottom: 1rem;
}

.pagination,
.posts-navigation,
.post-navigation {
	margin: 2.5rem 0;
	font-family: var(--font-condensed);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
	font-size: 1.125rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 0.55em 0.9em 0.4em;
	background: var(--uvw-navy);
	color: var(--uvw-yellow);
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--uvw-red);
	color: var(--uvw-white);
}

.pagination .page-numbers:hover {
	background: var(--uvw-blue);
	color: var(--uvw-white);
}

.post-navigation .nav-links,
.posts-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */

.site-footer {
	background: var(--uvw-navy);
	color: var(--uvw-white);
	margin-top: 0;
}

.site-footer a {
	color: var(--uvw-white); /* AAA 19.90 */
}

.site-footer a:hover {
	color: var(--uvw-yellow); /* AAA 14.78 */
}

/* Footer join links: small red placard buttons */
.site-footer a[href$='/en/join'],
.site-footer a[href$='/en/join/'],
.site-footer a[href$='/es/unete'],
.site-footer a[href$='/es/unete/'],
.site-footer .menu-item--cta > a {
	display: inline-block;
	background: var(--uvw-red);
	color: var(--uvw-white); /* AA 4.63 */
	padding: 0.45em 0.9em 0.35em;
	text-decoration: none;
	transition: transform 0.15s ease;
}

.site-footer a[href$='/en/join']:hover,
.site-footer a[href$='/en/join/']:hover,
.site-footer a[href$='/es/unete']:hover,
.site-footer a[href$='/es/unete/']:hover,
.site-footer .menu-item--cta > a:hover {
	color: var(--uvw-white);
	transform: rotate(-2deg) scale(1.04);
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 2rem;
	padding: var(--section-pad) 0 2rem;
}

.footer-widgets .widget-title {
	color: var(--uvw-yellow);
	font-style: italic;
	font-size: 1.25rem;
}

.footer-widgets ul {
	list-style: none;
	padding: 0;
}

.footer-navigation {
	padding-top: 3rem;
}

/* Secondary footer menu */
.footer-navigation--secondary {
	padding-top: 0.75rem;
}

.footer-navigation ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline; /* padded join button aligns by text, not box */
	gap: 0.25rem 1.5rem;
	margin: 0;
	padding: 0;
}

.footer-navigation a {
	font-family: var(--font-condensed);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
	text-decoration: none;
}

.site-info {
	border-top: 3px solid var(--uvw-blue);
	margin-top: 1.5rem;
	padding: 2rem 0 2.5rem;
	font-size: 0.9375rem;
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem 4rem;
	align-items: flex-start;
}

.site-info__logo img {
	display: block;
	height: 4rem;
	width: auto;
}

.site-info__address {
	font-style: normal;
}

.site-info__contact a {
	text-decoration-thickness: 1px;
}

/* Small print menu. */
.legal-navigation {
	padding: 0 0 2rem;
}

.legal-navigation ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	margin: 0;
	padding: 0;
}

.legal-navigation a {
	font-size: 0.8125rem;
	text-decoration-thickness: 1px;
}

/* ==========================================================================
   13. WORDPRESS CORE CLASSES & EDITOR PALETTE
   ========================================================================== */

.alignleft {
	float: left;
	margin: 0.5em 1.5em 1.5em 0;
}

.alignright {
	float: right;
	margin: 0.5em 0 1.5em 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignwide {
	max-width: calc(var(--container) - 2 * var(--gutter));
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

.wp-caption {
	max-width: 100%;
	margin-bottom: 1.5em;
}

.wp-caption-text,
.wp-block-image figcaption,
.gallery-caption {
	font-size: 0.875rem;
	font-family: var(--font-condensed);
	text-transform: uppercase;
	letter-spacing: var(--tracking-placard);
	padding: 0.5em 0;
	border-bottom: 3px solid var(--uvw-yellow);
}

.sticky {
	/* required class — visual treatment lives on .card.sticky */
	display: block;
}

.bypostauthor {
	display: block;
}

/* Editor colour palette classes */
.has-uvw-navy-color   { color: var(--uvw-navy); }
.has-uvw-red-color    { color: var(--uvw-red); }
.has-uvw-blue-color   { color: var(--uvw-blue); }
.has-uvw-yellow-color { color: var(--uvw-yellow); }
.has-uvw-white-color  { color: var(--uvw-white); }

.has-uvw-navy-background-color   { background-color: var(--uvw-navy); }
.has-uvw-red-background-color    { background-color: var(--uvw-red); }
.has-uvw-blue-background-color   { background-color: var(--uvw-blue); }
.has-uvw-yellow-background-color { background-color: var(--uvw-yellow); }
.has-uvw-white-background-color  { background-color: var(--uvw-white); }

/* ==========================================================================
   14. MEDIA QUERIES & REDUCED MOTION
   ========================================================================== */

@media (max-width: 60em) {
	.top-bar__press {
		display: none;
	}

	.newsletter-box__form {
		grid-template-columns: 1fr;
	}

	.menu-toggle {
		display: inline-block;
	}

	/* Hamburger sits at the right edge of the bar, beside the logo. */
	.main-navigation {
		margin-left: auto;
	}

	/* Off-canvas panel sliding in from the right. */
	.main-navigation > ul {
		display: flex; /* stays rendered so the slide can animate */
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 1001;
		width: min(20rem, 85vw);
		background: var(--uvw-navy);
		border-left: 0.35rem solid var(--uvw-red);
		flex-direction: column;
		flex-wrap: nowrap; /* wrap would spill long menus into a second column */
		align-items: stretch;
		gap: 0;
		/* Top padding clears the floating close button. */
		padding: 8.5rem 1.5rem 2rem;
		overflow-y: auto;
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 0.25s ease, visibility 0.25s;
	}

	.main-navigation.toggled > ul {
		transform: translateX(0);
		visibility: visible;
	}

	.main-navigation > ul a {
		font-size: 1.5rem;
		padding: 0.5em 0 0.35em;
		color: var(--uvw-white); /* the off-canvas panel stays navy */
	}

	.main-navigation > ul a:hover,
	.main-navigation > ul a:focus {
		color: var(--uvw-yellow);
	}

	/* Current item: yellow on the navy panel */
	.main-navigation > ul .current-menu-item > a,
	.main-navigation > ul .current-menu-ancestor > a,
	.main-navigation > ul .current_page_item > a {
		color: var(--uvw-yellow);
		width: fit-content;
	}

	/* The CTA keeps its button shape and red fill in the off-canvas panel. */
	.main-navigation > ul .menu-item--cta > a {
		margin: 1rem 0 0;
		padding: 0.85em 1.4em 0.7em;
		text-align: center;
		background: var(--uvw-red);
		color: var(--uvw-white);
	}

	.main-navigation > ul .menu-item--cta > a:hover,
	.main-navigation > ul .menu-item--cta > a:focus {
		color: var(--uvw-white);
	}

	/* Backdrop behind the panel. */
	.main-navigation::before {
		content: '';
		position: fixed;
		inset: 0;
		z-index: 1000;
		background: rgba(0, 0, 55, 0.6);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.25s ease, visibility 0.25s;
	}

	.main-navigation.toggled::before {
		opacity: 1;
		visibility: visible;
	}

	.main-navigation ul ul {
		display: block;
		position: static;
		border-top: 0;
		border-left: 0.35rem solid var(--uvw-red);
		margin-left: 1rem;
		min-width: 0;
	}

	.section__stamp {
		opacity: 0.9;
		width: clamp(16rem, 60vw, 24rem);
		right: -4rem;
	}
}

/* Top bar fits one line on phones: tighter icons, smaller language links. */
@media (max-width: 30em) {
	.top-bar__inner {
		gap: 0.25rem;
	}

	.lang-bar__link {
		font-size: 1rem;
		padding: 0.55em 0.6em 0.4em;
	}

	.social-links__link {
		padding: 0.4em 0.3em;
	}

	.social-links__link svg {
		width: 16px;
		height: 16px;
	}

}

@media print {
	.site-header,
	.site-footer,
	.menu-toggle,
	.top-bar {
		display: none;
	}
}

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

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}

	.uvw-button:hover,
	button:hover,
	input[type='submit']:hover,
	.wp-block-button__link:hover,
	.site-footer a[href$='/en/join']:hover,
	.site-footer a[href$='/en/join/']:hover,
	.site-footer a[href$='/es/unete']:hover,
	.site-footer a[href$='/es/unete/']:hover,
	.site-footer .menu-item--cta > a:hover {
		transform: none;
	}
}

.donate-block {
	display: none;
}