/* ==========================================================================
   England Fencing: Piste design
   Mobile first. Colour pairs checked against WCAG 2.2 AA.
   ========================================================================== */

@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
	--steel: #2a3138;        /* white text 13.4:1 */
	--steel-dark: #20262c;
	--steel-line: #3b444d;
	--red: #c41230;          /* 5.9:1 on white */
	--red-dark: #9a0e26;
	--slate: #4e6c7e;        /* 5.6:1 on white */
	--grey-1: #eef1f3;
	--grey-2: #d7dce0;
	--grey-3: #b9c1c8;
	--ink: #2a3138;
	--white: #ffffff;
	--green: #2fb36b;
	--focus: #ffbf47;
	--wrap: 80rem;
	--narrow: 46rem;
	--gutter: 1rem;
	--body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--display: "Barlow Condensed", "Arial Narrow", "Barlow", sans-serif;
}

/* Base ----------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3, h4 { line-height: 1.1; color: var(--steel); margin: 0 0 0.5em; font-family: var(--display); font-weight: 700; }
h1 { font-size: clamp(2.4rem, 1.7rem + 2.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 1.45rem + 1.1vw, 2.25rem); }
h3 { font-size: 1.5rem; }
p, ul, ol, dl { margin: 0 0 1em; }

a { color: var(--steel); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--red); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; box-shadow: 0 0 0 6px var(--steel); }
a:focus-visible { background: var(--focus); color: var(--steel); text-decoration: none; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; padding: 0.75rem 1rem; background: var(--focus); color: var(--steel); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.site-main:focus { outline: none; }
.icon { flex: none; width: 1.1em; height: 1.1em; vertical-align: -0.18em; }
.muted { color: var(--slate); }
.meta { color: var(--slate); font-size: 0.95rem; margin: 0 0 0.25rem; }

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

/* Layout ----------------------------------------------------------------- */

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--narrow); }
.container .container--narrow { padding-inline: 0; margin-inline: 0; }

.section { padding-block: 3.5rem; }
.section--light { background: var(--grey-1); }
.section--steel-light { background: var(--grey-2); }
.section--dark { background: var(--steel-dark); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark a { color: var(--white); }
.section-split { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--grey-3); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; margin-bottom: 1.5rem; }
.section-head > :first-child { margin: 0; }
.display-title { font-weight: 800; font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.4rem); line-height: 1; margin: 0 0 0.75rem; }
.section-title { font-size: clamp(1.75rem, 1.45rem + 1.1vw, 2.25rem); }
.section-intro { color: var(--slate); max-width: 40em; font-size: 1.15rem; margin-bottom: 2rem; }
.section--steel-light .section-intro { color: var(--ink); }
.section-more { margin: 1.5rem 0 0; }
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }

@media (min-width: 40em) {
	:root { --gutter: 1.5rem; }
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.section { padding-block: 4.5rem; }
}
@media (min-width: 64em) {
	:root { --gutter: 2rem; }
	.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.section { padding-block: 5.5rem; }
}

/* Buttons and links -------------------------------------------------------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
	min-height: 48px; padding: 0.65rem 1.4rem; border: 2px solid transparent; border-radius: 0;
	font: 600 1.0625rem/1.2 var(--body); text-decoration: none; text-align: center; cursor: pointer;
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); color: var(--white); }
.btn--dark { background: var(--steel); color: var(--white); }
.btn--dark:hover { background: var(--steel-dark); color: var(--white); }
.btn--secondary, .btn--outline { background: transparent; color: var(--steel); border-color: var(--steel); }
.btn--secondary:hover, .btn--outline:hover { background: var(--steel); color: var(--white); }
.btn--outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--steel); }
.btn--white { background: var(--white); color: var(--red); }
.btn--white:hover { background: var(--grey-1); color: var(--red-dark); }
.btn--small { min-height: 44px; padding: 0.45rem 1rem; font-size: 1rem; }
.btn--report { background: var(--red); color: var(--white); }
.btn--report:hover { background: var(--red-dark); color: var(--white); }
.btn__lamp { width: 10px; height: 10px; border-radius: 50%; background: var(--white); flex: none; }
.btn--report-header { padding-inline: 1rem; font-size: 1rem; }
.btn--report-large { font-size: 1.1rem; }

.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--steel); }
.link-row { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 1.25rem 0 0; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.back-link { margin-top: 2.5rem; }

/* Header ------------------------------------------------------------------ */

.site-header { background: var(--steel); color: var(--white); position: relative; z-index: 50; }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; min-height: 5rem; padding-block: 0.75rem; }
.site-branding { flex: 0 1 auto; min-width: 0; margin-right: auto; }
.site-logo, .custom-logo-link { display: inline-flex; align-items: center; }
.site-logo img, .site-branding img { height: 3rem; width: auto; max-width: 100%; }
.site-header__actions { display: flex; align-items: center; gap: 0.5rem; order: 2; }
.site-header :focus-visible { box-shadow: 0 0 0 6px var(--white); }

.menu-toggle {
	display: inline-flex; align-items: center; gap: 0.45rem; min-height: 48px; min-width: 48px;
	padding: 0.5rem 0.85rem; border: 2px solid var(--white); border-radius: 0;
	background: transparent; color: var(--white); font: 600 1rem var(--body); cursor: pointer;
}
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: inline; }
.menu-toggle[aria-expanded="true"] .icon--menu { display: none; }

@media (max-width: 26em) {
	.menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
	.btn--report-header { font-size: 0.9rem; padding-inline: 0.7rem; }
	.btn--report-header .btn__lamp { display: none; }
	.site-logo img { height: 2.5rem; }
}

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

.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation a { display: flex; align-items: center; min-height: 48px; color: var(--white); font-weight: 500; text-decoration: none; }
.main-navigation a:hover { text-decoration: underline; color: var(--white); }
.main-navigation a:focus-visible { background: var(--focus); color: var(--steel); }
.main-navigation .current-menu-item > a,
.main-navigation .current-page-ancestor > a,
.main-navigation .current-menu-ancestor > a { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 0.4em; }

@media (max-width: 74.99em) {
	.main-navigation { order: 3; flex-basis: 100%; border-top: 1px solid var(--steel-line); padding-bottom: 0.75rem; }
	.js .main-navigation { display: none; }
	.js .menu-open .main-navigation { display: block; }
	.main-navigation li { border-bottom: 1px solid var(--steel-line); position: relative; }
	.main-navigation li:last-child { border-bottom: 0; }
	.main-navigation .menu-item-has-children > a { padding-right: 3.5rem; }
	.submenu-toggle {
		position: absolute; right: 0; top: 2px; width: 44px; height: 44px;
		display: inline-flex; align-items: center; justify-content: center;
		border: 1px solid var(--steel-line); background: transparent; color: var(--white); cursor: pointer;
	}
	.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
	.main-navigation .sub-menu { padding: 0 0 0.5rem 1rem; border-left: 3px solid var(--red); margin-bottom: 0.5rem; }
	.main-navigation .sub-menu li { border: 0; }
	.main-navigation .sub-menu a { min-height: 44px; color: var(--grey-2); }
	.js .main-navigation .sub-menu { display: none; }
	.js .main-navigation .is-open > .sub-menu { display: block; }
	.no-js .menu-toggle { display: none; }
}

@media (min-width: 75em) {
	.menu-toggle { display: none; }
	.site-branding { margin-right: 0; }
	.main-navigation { order: 1; flex: 1; }
	.main-navigation .menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.6rem; }
	.main-navigation .menu > li { position: relative; display: flex; align-items: center; }
	.submenu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 44px; border: 0; background: none; color: var(--white); cursor: pointer; }
	.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
	.main-navigation .sub-menu {
		position: absolute; top: 100%; left: -1rem; min-width: 17rem; padding: 0.5rem 0;
		background: var(--steel); border-top: 3px solid var(--red); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
	}
	.js .main-navigation .sub-menu { display: none; }
	.js .main-navigation .is-open > .sub-menu { display: block; }
	.no-js .main-navigation .sub-menu { display: none; }
	.no-js .main-navigation li:hover > .sub-menu, .no-js .main-navigation li:focus-within > .sub-menu { display: block; }
	.main-navigation .sub-menu a { padding: 0.5rem 1rem; min-height: 44px; }
}

/* Inner page header ------------------------------------------------------- */

.page-header { position: relative; overflow: hidden; background: var(--steel); color: var(--white); padding-block: 1rem 2.75rem; border-top: 1px solid var(--steel-line); }
.page-header::after {
	content: ""; position: absolute; right: max(1rem, calc((100vw - var(--wrap)) / 2)); bottom: -2.5rem;
	width: 10rem; height: 14.5rem; background: url("../images/lion-white.svg") center / contain no-repeat;
	opacity: 0.07; pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-title { color: var(--white); margin: 0.5rem 0 0; max-width: 22ch; }
.page-intro { font-size: 1.2rem; color: var(--grey-2); margin: 1rem 0 0; max-width: 40em; }
.page-kicker { margin: 0.75rem 0 0; font-weight: 600; color: var(--grey-2); }
.post-meta { color: var(--grey-2); margin: 0.75rem 0 0; }
.page-header :focus-visible { box-shadow: 0 0 0 6px var(--white); }
@media (max-width: 39.99em) { .page-header::after { width: 6rem; height: 9rem; right: -1rem; } }

.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; font-size: 0.95rem; }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin: 0 0.5rem; color: var(--grey-3); }
.breadcrumbs a { color: var(--white); display: inline-block; padding-block: 0.6rem; }
.breadcrumbs [aria-current] { color: var(--grey-2); }

/* Hero ------------------------------------------------------------------ */

.hero { position: relative; background: var(--steel); color: var(--white); }
.hero__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--steel-dark); }
.hero__image, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-position, center); }
.hero__video { opacity: 0; transition: opacity 0.6s ease; }
.hero--video-playing .hero__video { opacity: 1; }
.hero__shade { position: absolute; inset: 0; background: rgba(32, 38, 44, var(--hero-overlay, 0)); pointer-events: none; }
.hero__inner { position: relative; z-index: 2; padding-inline: 0; }
.hero__panel { background: var(--steel); padding: 2rem var(--gutter) 2.5rem; }
.hero__title { color: var(--white); font-weight: 800; font-size: clamp(2.6rem, 1.6rem + 4vw, 4.75rem); line-height: 0.95; letter-spacing: -0.01em; margin: 0 0 1.25rem; }
.hero__text { margin: 0 0 1.75rem; font-size: 1.2rem; color: var(--grey-2); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero :focus-visible { box-shadow: 0 0 0 6px var(--white); }
.hero__video-toggle {
	position: absolute; z-index: 3; right: 0.75rem; top: 0.75rem;
	display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 1rem;
	background: rgba(42, 49, 56, 0.9); color: var(--white); border: 1px solid var(--grey-2);
	font: 600 0.95rem var(--body); cursor: pointer;
}
.hero__video-toggle .icon--play { display: none; }
.hero__video-toggle.is-paused .icon--play { display: inline; }
.hero__video-toggle.is-paused .icon--pause { display: none; }

@media (min-width: 40em) { .hero__media { aspect-ratio: 16 / 9; } }
@media (min-width: 64em) {
	.hero { min-height: 40rem; display: flex; align-items: flex-end; }
	.hero__media { position: absolute; inset: 0; aspect-ratio: auto; }
	.hero__inner { padding-inline: var(--gutter); }
	.hero__panel { max-width: 41rem; padding: 2.5rem 2.75rem 2.75rem; }
	.hero__video-toggle { right: 2rem; top: 1.75rem; }
}

/* Key dates scoreboard ---------------------------------------------------- */

.scoreboard { background: var(--steel-dark); color: var(--white); border-top: 4px solid var(--red); }
.scoreboard__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
.scoreboard__item { border-bottom: 1px solid var(--steel-line); }
.scoreboard__link { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.5rem 0; color: var(--white); text-decoration: none; height: 100%; }
.scoreboard__link:hover .scoreboard__title { text-decoration: underline; }
.scoreboard__link:focus-visible { box-shadow: inset 0 0 0 3px var(--focus); background: transparent; color: var(--white); }
.scoreboard__text { display: flex; flex-direction: column; }
.scoreboard__date { font: 800 2.75rem/1 var(--display); }
.scoreboard__title { font-weight: 600; font-size: 1.1rem; margin-top: 0.4rem; }
.scoreboard__detail { color: var(--grey-3); font-size: 0.95rem; }
.scoreboard__key { list-style: none; margin: 0; padding: 0.75rem 0 1.1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; color: var(--grey-3); font-size: 0.9rem; }
.scoreboard__key li { display: inline-flex; align-items: center; gap: 0.5rem; }
.lamp { flex: none; width: 14px; height: 14px; border-radius: 50%; margin-top: 0.85rem; background: var(--grey-3); }
.lamp--deadline { background: var(--red); box-shadow: 0 0 0 4px rgba(196, 18, 48, 0.3); }
.lamp--open { background: var(--green); box-shadow: 0 0 0 4px rgba(47, 179, 107, 0.25); }
.lamp--small { width: 9px; height: 9px; margin-top: 0; box-shadow: none; }
@media (min-width: 64em) {
	.scoreboard__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.scoreboard__item { border-bottom: 0; border-right: 1px solid var(--steel-line); padding-inline: 1.75rem; }
	.scoreboard__item:first-child { padding-left: 0; }
	.scoreboard__item:last-child { border-right: 0; }
}

/* Competitions row -------------------------------------------------------- */

.comp-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 3px solid var(--steel); }
.comp-row li { border-bottom: 1px solid var(--grey-3); }
.comp-row__link { display: block; padding: 1.5rem 0 1.75rem; text-decoration: none; color: var(--steel); height: 100%; }
.comp-row__link:hover .comp-row__name { text-decoration: underline; text-decoration-thickness: 2px; }
.comp-row__name { display: block; font: 700 2rem/1.05 var(--display); }
.comp-row__text { display: block; color: var(--slate); margin-top: 0.5rem; }
@media (min-width: 52em) {
	.comp-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.comp-row li + li { border-left: 1px solid var(--grey-3); }
	.comp-row li + li .comp-row__link { padding-left: 1.75rem; }
	.comp-row li .comp-row__link { padding-right: 1.75rem; }
}

/* Results-sheet table ------------------------------------------------------ */

.table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.table-wrap:focus-visible { box-shadow: 0 0 0 3px var(--focus); }
.sheet { width: 100%; min-width: 40rem; border-collapse: collapse; background: var(--white); font-size: 1.05rem; }
.sheet th { text-align: left; font: 700 1.1rem var(--display); color: var(--steel); padding: 0.85rem 1rem; border-bottom: 3px solid var(--steel); }
.sheet td { padding: 1.1rem 1rem; border-bottom: 1px solid var(--grey-3); vertical-align: top; }
.sheet tbody tr:hover td { background: var(--grey-1); }
.sheet__date { font: 700 1.4rem/1.2 var(--display); white-space: nowrap; }
.sheet__action { text-align: right; white-space: nowrap; }
.sheet__action a { font-weight: 600; }
@media (max-width: 47.99em) {
	.sheet--stack { min-width: 0; }
	.sheet--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.sheet--stack, .sheet--stack tbody, .sheet--stack tr, .sheet--stack td { display: block; width: 100%; }
	.sheet--stack tr { border-top: 3px solid var(--steel); padding: 1rem; margin-bottom: 1rem; background: var(--white); }
	.sheet--stack td { border: 0; padding: 0.2rem 0; text-align: left; }
	.sheet--stack td[data-label="Region"]:not(:empty)::before, .sheet--stack td[data-label="For"]:not(:empty)::before { content: attr(data-label) ": "; font-weight: 600; color: var(--slate); }
	.sheet--stack .sheet__action { padding-top: 0.6rem; }
	.sheet--stack .sheet__action:empty { display: none; }
	.sheet--stack tbody tr:hover td { background: none; }
}
.notice-line { padding: 1.25rem 1.5rem; background: var(--white); border-left: 4px solid var(--slate); margin: 0; max-width: 46rem; }

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

.news-split { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.news-lead__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 1.1rem; }
.news-lead__title { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.4rem); margin: 0 0 0.6rem; }
.news-lead__title a, .news-list__title a { text-decoration: none; color: var(--steel); }
.news-lead__title a:hover, .news-list__title a:hover { text-decoration: underline; }
.news-list { border-top: 3px solid var(--steel); }
.news-list__item { padding: 1.35rem 0; border-bottom: 1px solid var(--grey-3); }
.news-list__title { font-size: 1.65rem; margin: 0; }
@media (min-width: 64em) { .news-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; } }

/* Finder and regions band ----------------------------------------------------- */

.finder { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: end; max-width: 56rem; }
.finder__field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
@media (min-width: 52em) { .finder { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; } }
.region-chips { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.region-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 1rem; background: var(--white); border: 2px solid var(--steel); color: var(--steel); font-weight: 600; text-decoration: none; }
.region-chips a:hover { background: var(--steel); color: var(--white); }
.bf-panel { background: var(--grey-1); border-top: 3px solid var(--steel); padding: 1.5rem; max-width: 46rem; }
.bf-panel__title { font-size: 1.6rem; }
.bf-panel p:last-child { margin-bottom: 0; }

/* Safeguarding band and footer -------------------------------------------------- */

.safe-band { background: var(--red); color: var(--white); }
.safe-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 2.5rem; }
.safe-band__title { color: var(--white); font-weight: 800; font-size: clamp(1.9rem, 1.6rem + 1vw, 2.4rem); margin: 0 0 0.4rem; }
.safe-band p { margin: 0; max-width: 40em; }
.safe-band :focus-visible { box-shadow: 0 0 0 6px var(--steel); }

.site-footer { background: var(--steel); color: var(--grey-2); padding-block: 3.5rem 2rem; font-size: 1rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--grey-2); }
.site-footer :focus-visible { box-shadow: 0 0 0 6px var(--white); }
.site-footer a:focus-visible { color: var(--steel); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 52em) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }
.footer-logo { display: inline-block; margin-bottom: 1.1rem; }
.footer-logo img { height: 3.25rem; width: auto; }
.footer-heading { color: var(--white); font-size: 1.3rem; margin-bottom: 0.5rem; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-col a[href^="mailto"] { word-break: break-all; display: inline-flex; min-height: 44px; align-items: center; }
.footer-legal { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--steel-line); font-size: 0.9rem; }

/* Cards --------------------------------------------------------------- */

.card { position: relative; display: flex; flex-direction: column; background: var(--white); border-top: 3px solid var(--steel); border-bottom: 1px solid var(--grey-3); }
.card:hover .card__link { text-decoration: underline; }
.card__image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { padding: 1.25rem 0 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card--event { padding: 1.25rem 0 1.5rem; }
.card__title { font-size: 1.6rem; margin: 0 0 0.5rem; }
.card__link { text-decoration: none; color: var(--steel); }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__link:focus-visible { background: none; outline: none; box-shadow: none; }
.card:focus-within { outline: 3px solid var(--focus); box-shadow: 0 0 0 6px var(--steel); }
.card__text { color: var(--slate); margin: 0.25rem 0 0; }
.card__date { font-size: 0.95rem; color: var(--slate); font-weight: 600; margin: 0 0 0.35rem; }
.card__tag { align-self: flex-start; margin: 0 0 0.75rem; padding: 0.1rem 0.55rem; font-size: 0.85rem; font-weight: 600; color: var(--white); background: var(--steel); }
.card__tag--dev { background: #1d6b45; }
.card__meta { list-style: none; padding: 0; margin: 0 0 0.5rem; font-size: 1rem; }
.card__meta li { display: flex; gap: 0.45rem; align-items: flex-start; padding-block: 0.15rem; }
.card__meta .icon { margin-top: 0.2em; color: var(--red); }
.card__meta-label { font-weight: 600; }
.card__action { margin: auto 0 0; padding-top: 0.75rem; position: relative; z-index: 2; }
.card--event a:not(.card__link) { position: relative; z-index: 2; }

.empty-state { padding: 1.25rem 1.5rem; background: var(--grey-1); border-left: 4px solid var(--slate); }
.empty-state p { margin: 0; }

/* People -------------------------------------------------------------------- */

.people-group + .people-group { margin-top: 3rem; }
.people-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 40em) { .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64em) { .people-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.person-card { position: relative; }
.person-card__photo { aspect-ratio: 1; overflow: hidden; background: var(--steel); margin-bottom: 0.85rem; border-bottom: 4px solid var(--red); }
.person-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.person-card__initials { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font: 800 3rem var(--display); color: var(--white); overflow: hidden; }
.person-card__initials::before { content: ""; position: absolute; right: -15%; top: 10%; width: 65%; height: 100%; background: url("../images/lion-white.svg") center / contain no-repeat; opacity: 0.08; }
.person-card__name { font-size: 1.4rem; margin: 0 0 0.15rem; }
.person-card__role { margin: 0; color: var(--slate); }
.person-card:focus-within { outline: 3px solid var(--focus); outline-offset: 4px; }
.profile { display: grid; gap: 1.5rem; }
.profile__photo img { max-width: 16rem; width: 100%; border-bottom: 4px solid var(--red); }
@media (min-width: 40em) { .profile { grid-template-columns: 14rem 1fr; align-items: start; } }

/* Regions and clubs ---------------------------------------------------------- */

.region-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; grid-template-columns: 1fr; border-top: 3px solid var(--steel); }
@media (min-width: 30em) { .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 52em) { .region-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 72em) { .region-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.region-card { position: relative; padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--grey-3); }
.region-card:hover .card__link { text-decoration: underline; }
.region-card:focus-within { outline: 3px solid var(--focus); }
.region-card__name { font-size: 1.5rem; margin: 0; }
.region-card__count { margin: 0.15rem 0 0; color: var(--slate); font-size: 0.95rem; }
.region-summary { display: grid; gap: 1.5rem; margin-bottom: 2.5rem; }
@media (min-width: 52em) { .region-summary { grid-template-columns: 1fr 20rem; align-items: start; } }

.club-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 40em) { .club-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .club-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.club-card { padding: 1.15rem 0; border-top: 3px solid var(--steel); border-bottom: 1px solid var(--grey-3); display: flex; flex-direction: column; }
.club-card__name { font-size: 1.5rem; margin-bottom: 0.6rem; }
.club-card__facts { margin: 0 0 0.75rem; font-size: 1rem; }
.club-card__facts div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.5rem; padding-block: 0.15rem; }
.club-card__facts dt { font-weight: 600; color: var(--slate); }
.club-card__facts dd { margin: 0; }
.club-card__links { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.club-card__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

.contact-box { padding: 1.25rem 1.5rem; background: var(--grey-1); border-top: 3px solid var(--steel); margin-block: 1.5rem; }
.contact-box__title { font-size: 1.5rem; }
.contact-box ul { list-style: none; padding: 0; margin: 0; }
.contact-box li { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; word-break: break-word; }
.contact-box a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; }
.contact-box p:last-child { margin-bottom: 0; }

.callout { background: var(--grey-1); padding: 1.5rem; border-top: 3px solid var(--steel); }
.callout h2 { font-size: 1.75rem; }
.callout p:last-child { margin-bottom: 0; }
.callout--brand { border-top-color: var(--red); }

/* Forms and filters -------------------------------------------------------------- */

label { font-weight: 600; }
input[type="search"], input[type="text"], input[type="email"], select, textarea {
	width: 100%; min-height: 52px; padding: 0.55rem 0.85rem; font: inherit; color: var(--ink);
	background: var(--white); border: 2px solid var(--steel); border-radius: 0;
}
select {
	appearance: none; padding-right: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232a3138' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 0.85rem center;
}
.filters { display: grid; gap: 1rem; padding: 1.25rem; margin-bottom: 1.5rem; background: var(--grey-1); border-top: 3px solid var(--steel); }
.filters__field label { display: block; margin-bottom: 0.35rem; }
.filters__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
@media (min-width: 52em) {
	.filters { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; }
	.filters:not(:has(.filters__field--wide)) { grid-template-columns: 1fr auto; max-width: 36rem; }
	.filters:has(.filters__field--wide):not(:has(> div:nth-of-type(4))) { grid-template-columns: 2fr 1fr auto; }
}
.results-count { font-weight: 600; color: var(--slate); }
.search-form { margin-bottom: 2rem; }
.search-form label { display: block; margin-bottom: 0.35rem; }
.search-form__row { display: flex; gap: 0.5rem; }
.filter-tabs ul { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 1rem; border: 2px solid var(--steel); text-decoration: none; font-weight: 600; }
.filter-tabs a[aria-current="page"] { background: var(--steel); color: var(--white); }

/* Documents, lists, tables -------------------------------------------------------- */

.doc-group + .doc-group { margin-top: 2.5rem; }
.doc-list { list-style: none; padding: 0; margin: 0 0 1.5rem; border-top: 3px solid var(--steel); }
.doc-item { display: flex; gap: 0.85rem; padding: 1rem 0; border-bottom: 1px solid var(--grey-3); }
.doc-item > .icon { color: var(--red); width: 1.5rem; height: 1.5rem; margin-top: 0.1rem; }
.doc-item__title { font-weight: 600; font-size: 1.1rem; }
.doc-item__desc { margin: 0.2rem 0 0; }
.doc-item__meta { margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--slate); }

.data-table { width: 100%; border-collapse: collapse; }
.data-table caption { text-align: left; font: 700 1.3rem var(--display); padding-bottom: 0.5rem; color: var(--steel); }
.caption-count { color: var(--slate); font-weight: 400; font-family: var(--body); font-size: 1rem; }
.data-table th, .data-table td { text-align: left; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--grey-3); }
.data-table thead th { border-bottom: 3px solid var(--steel); font-family: var(--display); font-size: 1.1rem; }

.details-list { margin: 0 0 1.75rem; border-top: 3px solid var(--steel); }
.details-list div { display: grid; grid-template-columns: 1fr; padding: 0.7rem 0; border-bottom: 1px solid var(--grey-3); }
.details-list dt { font-weight: 600; color: var(--slate); }
.details-list dd { margin: 0; }
@media (min-width: 40em) { .details-list div { grid-template-columns: 10rem 1fr; gap: 1rem; } }

.timeline { list-style: none; margin: 0 0 2rem; padding: 0 0 0 1.5rem; border-left: 2px solid var(--steel); }
.timeline__item { position: relative; padding-bottom: 1.25rem; }
.timeline__item::before { content: ""; position: absolute; left: calc(-1.5rem - 8px); top: 0.45rem; width: 14px; height: 14px; border-radius: 50%; background: var(--red); }
.timeline__item--past::before { background: var(--white); border: 3px solid var(--grey-3); }
.timeline__item--past .timeline__title { color: var(--slate); }
.timeline__item p { margin: 0; }
.timeline__date { font: 700 1.35rem/1.2 var(--display); }
.timeline__passed { font: 400 0.95rem var(--body); color: var(--slate); }
.timeline__title { font-weight: 600; }
.timeline__detail { color: var(--slate); }

.alert { padding: 1.25rem 1.5rem 1.5rem; margin-block: 2rem; }
.alert--danger { background: #fbeef0; border-left: 6px solid var(--red); }
.alert p { margin: 0 0 0.75rem; }

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

.entry-content { max-width: var(--narrow); }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { margin-top: 2.25rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: 0.35rem; }
.entry-content blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 4px solid var(--red); font-size: 1.15rem; }
.entry-content + * { margin-top: 2rem; }
.section > .entry-content:empty { display: none; }
.featured-image { margin: 0 0 1.75rem; }
.featured-image img { width: 100%; }
.featured-image figcaption { font-size: 0.9rem; color: var(--slate); margin-top: 0.5rem; }

.link-list { list-style: none; padding: 0; margin: 0 0 1.5rem; border-top: 3px solid var(--steel); }
.link-list li { border-bottom: 1px solid var(--grey-3); }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; padding: 0.5rem 0; font-weight: 600; text-decoration: none; }
.link-list a:hover { text-decoration: underline; }
.link-list .icon { color: var(--red); }
.link-list--compact a { font-weight: 400; min-height: 44px; }

.post-nav { display: grid; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 3px solid var(--steel); }
@media (min-width: 40em) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav__link { display: block; padding: 1rem 0; text-decoration: none; font-weight: 600; }
.post-nav__link--next { text-align: right; }
.post-nav__label { display: block; font-weight: 400; color: var(--slate); font-size: 0.9rem; }

.search-list { list-style: none; padding: 0; margin: 0; border-top: 3px solid var(--steel); }
.search-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--grey-3); }
.search-list__type { margin: 0; font-size: 0.9rem; color: var(--slate); font-weight: 600; }
.search-list__title { font-size: 1.5rem; margin: 0.2rem 0 0.4rem; }
.search-list p:last-child { margin: 0; color: var(--slate); }

.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 0.75rem; border: 2px solid var(--steel); text-decoration: none; font-weight: 600; }
.pagination .current { background: var(--steel); color: var(--white); }

/* Social feeds ----------------------------------------------------------------- */

.social-feed { margin-top: 3rem; padding-top: 2.5rem; border-top: 3px solid var(--steel); }
.section--dark .social-feed { margin-top: 0; padding-top: 0; border-top: 0; }
.social-feed__grid { display: grid; gap: 2rem; }
@media (min-width: 64em) { .social-feed__grid:has(.social-feed__col + .social-feed__col) { grid-template-columns: 1fr 1fr; } }
.social-feed__label { display: flex; align-items: center; gap: 0.5rem; font-size: 1.4rem; }
.social-links { list-style: none; padding: 0; margin: 0; }
.social-links a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-weight: 600; }
.social-links--inline { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }

/* Block editor helpers ----------------------------------------------------------- */

.alignwide { max-width: var(--wrap); }
.alignfull { width: 100%; }
.wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; border-radius: 0; }
.has-steel-color { color: var(--steel); }
.has-red-color { color: var(--red); }
.has-steel-background-color { background-color: var(--steel); color: var(--white); }
.has-red-background-color { background-color: var(--red); color: var(--white); }
.has-light-background-color { background-color: var(--grey-1); }

@media (forced-colors: active) {
	.btn, .menu-toggle, .submenu-toggle, .filter-tabs a, .region-chips a { border: 2px solid ButtonText; }
	.lamp, .btn__lamp, .timeline__item::before { forced-color-adjust: none; }
}

@media print {
	.site-header__actions, .main-navigation, .safe-band, .filters, .social-feed, .hero__media { display: none !important; }
	.site-footer, .hero, .hero__panel, .page-header, .scoreboard { background: none !important; color: #000 !important; }
	.hero__title, .page-title { color: #000 !important; }
	a { color: #000; }
}
