@import url("../fonts/fonts.css");

/* ==========================================================================
   Haukar — theme stylesheet

   Organised in the order the design reads:
     1.  Tokens
     2.  Reset & base
     3.  Utilities
     4.  Buttons
     5.  Site header (desktop)
     6.  Mobile header & red-wall menu
     7.  Footer
     8.  Home — hero
     9.  Home — fixtures strip
     10. Home — registration band
     11. Home — news
     12. Home — divisions
     13. Home — featured player
     14. Home — honours
     15. Home / page — facility split
     16. Page header band
     17. News archive & single
     18. Divisions (teams page)
     19. Fixtures page
     20. Registration page & form
     21. Facility page
     22. 404 & search
     23. Motion & print

   Accessibility note on colour: the source design used #8b877f for muted text
   (3.26:1 on the page background) and #ffd7d9 for small labels on red
   (3.72:1) — both below WCAG AA. This stylesheet keeps those hues for
   decorative use but introduces darker text-safe variants. See §1.
   ========================================================================== */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	/* -- Brand ---------------------------------------------------------- */
	--hk-red: #e11119;
	--hk-red-dark: #b00d14;

	/*
	 * Small red text on light backgrounds. #e11119 measures 4.45:1 on the page
	 * background — just short of AA — so text-sized red uses this instead.
	 * Visually all but indistinguishable; measures 4.93:1.
	 */
	--hk-red-text: #d40f17;

	--hk-ink: #15140f;
	--hk-paper: #f6f4f1;
	--hk-surface: #fff;
	--hk-border: #ece8e2;
	--hk-border-dark: #2c2924;

	/* -- Text ----------------------------------------------------------- */
	--hk-text: var(--hk-ink);
	--hk-text-body: #4c4842;

	/* Muted TEXT — darkened from the design's #8b877f to reach AA (4.83:1). */
	--hk-muted: #6f6b63;

	/* The original muted hue, kept for rules, borders and icons only. */
	--hk-muted-decor: #8b877f;

	/* On dark backgrounds. */
	--hk-on-dark: #e7e5e1;
	--hk-on-dark-muted: #b8b4ae;
	--hk-on-dark-soft: #f3b4b7; /* 10.56:1 on ink — safe at any size. */

	/* On the red background. #ffd7d9 fails AA at label sizes; this passes. */
	--hk-on-red-soft: #fff5f5;

	/* -- Type ----------------------------------------------------------- */
	--hk-font-display: Oswald, "Arial Narrow", system-ui, sans-serif;
	--hk-font-body: Barlow, system-ui, -apple-system, "Segoe UI", sans-serif;

	/*
	 * Fluid scale. The design was authored in two fixed frames (402px and
	 * 1280px) using container-query units; each value below is the linear
	 * solve through those two points, capped so display type stops growing
	 * on very wide screens.
	 */
	--hk-fs-display: clamp(2.75rem, 1.31rem + 5.85vw, 6rem);
	--hk-fs-h1: clamp(2.5rem, 1.63rem + 3.6vw, 4.5rem);
	--hk-fs-h2: clamp(1.875rem, 1.49rem + 1.57vw, 2.75rem);
	--hk-fs-h3: clamp(1.625rem, 1.35rem + 1.12vw, 2.25rem);
	--hk-fs-h4: clamp(1.25rem, 1.13rem + 0.5vw, 1.5rem);
	--hk-fs-quote: clamp(1.4375rem, 1.19rem + 1vw, 1.875rem);
	--hk-fs-lead: clamp(0.9375rem, 0.83rem + 0.45vw, 1.1875rem);
	--hk-fs-body: 1rem;
	--hk-fs-small: 0.875rem;
	--hk-fs-micro: 0.75rem;
	--hk-fs-stat: clamp(2.5rem, 1.6rem + 3.6vw, 3.75rem);

	--hk-ls-display: 0.01em;
	--hk-ls-label: 0.08em;
	--hk-ls-wide: 0.14em;

	/* -- Space & shape --------------------------------------------------- */
	--hk-gutter: clamp(1.375rem, 0.9rem + 2.4vw, 3.5rem);
	--hk-section-y: clamp(2.5rem, 1.9rem + 2.5vw, 3.75rem);
	--hk-max: 1400px;

	--hk-radius-sm: 5px;
	--hk-radius: 9px;
	--hk-radius-md: 14px;
	--hk-radius-lg: 16px;

	--hk-shadow: 0 18px 40px -28px rgb(21 20 15 / 45%);

	/* -- Motion ---------------------------------------------------------- */
	--hk-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--hk-dur: 0.3s;

	/* -- Focus ----------------------------------------------------------- */
	--hk-focus: var(--hk-red);
	--hk-focus-light: #fff;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--hk-paper);
	color: var(--hk-text);
	font-family: var(--hk-font-body);
	font-size: var(--hk-fs-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
picture,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--hk-font-display);
	font-weight: 700;
	line-height: 1.05;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: var(--hk-ls-display);
}

p {
	margin: 0 0 1em;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--hk-red-text);
	text-decoration: none;
}

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

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--hk-focus);
	outline-offset: 3px;
	border-radius: 2px;
}

/* On dark and red surfaces a red focus ring is invisible — invert it. */
:where(.hk-dark, .hk-red-bg, .hk-header, .hk-wall, .hk-footer)
	:where(a, button, input, select, [tabindex]):focus-visible {
	outline-color: var(--hk-focus-light);
}

/* ==========================================================================
   3. Utilities
   ========================================================================== */

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

.hk-section {
	padding-block: var(--hk-section-y);
}

.hk-dark {
	background: var(--hk-ink);
	color: #fff;
}

.hk-red-bg {
	background: var(--hk-red);
	color: #fff;
}

.hk-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Small uppercase Oswald label — the design's most repeated motif. */
.hk-kicker {
	font-family: var(--hk-font-display);
	font-size: var(--hk-fs-micro);
	font-weight: 500;
	letter-spacing: var(--hk-ls-wide);
	text-transform: uppercase;
	margin: 0;
	color: var(--hk-red-text);
}

.hk-dark .hk-kicker,
.hk-hero .hk-kicker {
	color: var(--hk-on-dark-soft);
}

.hk-red-bg .hk-kicker {
	color: var(--hk-on-red-soft);
}

.hk-kicker--rule {
	display: flex;
	align-items: center;
	gap: 10px;
}

.hk-kicker--rule::before {
	content: "";
	inline-size: 32px;
	block-size: 2px;
	background: var(--hk-red);
	flex: none;
}

.hk-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-block-end: 1.625rem;
}

.hk-section-head h2 {
	font-size: var(--hk-fs-h2);
}

.hk-section-head--baseline {
	align-items: baseline;
}

.hk-section-sub {
	color: var(--hk-muted);
	font-size: var(--hk-fs-body);
}

/* Text link with a trailing arrow, e.g. "Allar fréttir →". */
.hk-arrow-link {
	font-family: var(--hk-font-display);
	font-size: var(--hk-fs-small);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hk-red-text);
	white-space: nowrap;
}

.hk-arrow-link::after {
	content: " →";
}

.hk-red-bg .hk-arrow-link {
	color: var(--hk-on-red-soft);
}

.hk-red-bg .hk-arrow-link:hover {
	color: #fff;
}

/*
 * Stretches a link over its whole card so the entire card is clickable while
 * the accessible name stays the article title and there is one tab stop.
 */
.hk-stretch::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.hk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 44px; /* WCAG 2.2 target size */
	padding: 0.75rem 1.625rem;
	border: 2px solid transparent;
	border-radius: var(--hk-radius);
	background: var(--hk-red);
	color: #fff;
	font-family: var(--hk-font-display);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	transition: background var(--hk-dur) ease, color var(--hk-dur) ease,
		border-color var(--hk-dur) ease;
}

.hk-btn:hover {
	background: var(--hk-red-dark);
	color: #fff;
}

.hk-btn--sm {
	padding: 0.6875rem 1.375rem;
	font-size: var(--hk-fs-small);
	letter-spacing: 0.04em;
}

.hk-btn--ghost {
	background: rgb(255 255 255 / 12%);
	border-color: rgb(255 255 255 / 50%);
	color: #fff;
}

.hk-btn--ghost:hover {
	background: rgb(255 255 255 / 22%);
	border-color: #fff;
}

.hk-btn--white {
	background: #fff;
	color: var(--hk-red-text);
}

.hk-btn--white:hover {
	background: var(--hk-paper);
	color: var(--hk-red-dark);
}

.hk-btn--outline {
	background: transparent;
	border-color: var(--hk-ink);
	color: var(--hk-ink);
}

.hk-btn--outline:hover {
	background: var(--hk-ink);
	color: #fff;
}

.hk-btn--ink {
	background: var(--hk-ink);
	color: #fff;
}

.hk-btn--ink:hover {
	background: #000;
	color: #fff;
}

.hk-btn--block {
	display: flex;
	width: 100%;
}

.hk-btn[aria-disabled="true"],
.hk-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* ==========================================================================
   5. Site header (desktop)
   ========================================================================== */

.hk-skip {
	position: absolute;
	inset-inline-start: -9999px;
	top: 0;
	z-index: 100;
	padding: 0.75rem 1.25rem;
	background: var(--hk-red);
	color: #fff;
	font-family: var(--hk-font-display);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.hk-skip:focus {
	inset-inline-start: 0;
	color: #fff;
}

.hk-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--hk-ink);
	color: #fff;
}

.hk-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 76px;
}

.hk-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	flex: none;
}

.hk-brand:hover {
	color: #fff;
}

.hk-brand img {
	height: 44px;
	width: auto;
}

.hk-brand__name {
	font-family: var(--hk-font-display);
	font-weight: 700;
	font-size: 1.5625rem;
	letter-spacing: var(--hk-ls-wide);
	text-transform: uppercase;
	line-height: 1;
}

.hk-nav__list {
	display: flex;
	align-items: center;
	gap: 1.625rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hk-nav__link {
	display: flex;
	align-items: center;
	min-height: 44px;
	font-family: var(--hk-font-display);
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--hk-on-dark);
}

.hk-nav__link:hover {
	color: #fff;
}

.hk-nav__item.is-current > .hk-nav__link,
.hk-nav__link[aria-current="page"] {
	color: #ff5560;
}

.hk-header__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex: none;
}

/* Language toggle */
.hk-lang {
	display: flex;
	border: 1px solid #4a463f;
	border-radius: var(--hk-radius-sm);
	overflow: hidden;
	font-family: var(--hk-font-display);
	font-size: var(--hk-fs-small);
	font-weight: 600;
}

.hk-lang__opt {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 38px;
	padding: 0 0.75rem;
	color: #fff;
	background: transparent;
}

.hk-lang__opt:hover {
	background: rgb(255 255 255 / 10%);
	color: #fff;
}

.hk-lang__opt[aria-current="true"] {
	background: #fff;
	color: var(--hk-red-text);
}

/* ==========================================================================
   6. Mobile header & red-wall menu
   ========================================================================== */

.hk-header__mobile {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 0.625rem;
	min-height: 58px;
}

.hk-burger {
	position: relative;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: var(--hk-red);
	cursor: pointer;
	transition: background var(--hk-dur) ease;
	flex: none;
}

.hk-burger__bar {
	position: absolute;
	left: 50%;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: width 0.34s ease,
		transform 0.34s cubic-bezier(0.68, -0.35, 0.32, 1.35),
		opacity 0.2s ease;
}

/*
 * The three-line → X morph is driven entirely by aria-expanded, so the
 * attribute is the single source of truth and JS only has to toggle it.
 *
 * The bars are children 2–4, not 1–3: the button opens with a
 * .hk-visually-hidden label span that occupies the first slot.
 */
.hk-burger__bar:nth-child(2) {
	width: 20px;
	transform: translate(-50%, -6px);
}

.hk-burger__bar:nth-child(3) {
	width: 11px;
	transform: translate(-50%, 0) translateX(4.5px);
}

.hk-burger__bar:nth-child(4) {
	width: 14px;
	transform: translate(-50%, 6px) translateX(-3px);
}

.hk-burger[aria-expanded="true"] {
	background: transparent;
}

.hk-burger[aria-expanded="true"] .hk-burger__bar:nth-child(2) {
	transform: translate(-50%, 0) rotate(45deg);
}

.hk-burger[aria-expanded="true"] .hk-burger__bar:nth-child(3) {
	width: 20px;
	transform: translate(-50%, 0);
	opacity: 0;
}

.hk-burger[aria-expanded="true"] .hk-burger__bar:nth-child(4) {
	width: 20px;
	transform: translate(-50%, 0) rotate(-45deg);
}

/* The red wall */
.hk-wall {
	position: fixed;
	inset: 0;
	z-index: 60;
	background: var(--hk-red);
	color: #fff;
	overflow-y: auto;
	opacity: 0;
	transform: translateY(-10px);
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.35s ease, transform 0.4s var(--hk-ease),
		visibility 0s linear 0.4s;
}

.hk-wall.is-open {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.35s ease, transform 0.4s var(--hk-ease),
		visibility 0s linear 0s;
}

.hk-wall::before,
.hk-wall::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.hk-wall::before {
	top: -40px;
	right: -40px;
	width: 220px;
	height: 220px;
	background: rgb(255 255 255 / 6%);
}

.hk-wall::after {
	bottom: -60px;
	left: -30px;
	width: 200px;
	height: 200px;
	background: rgb(0 0 0 / 8%);
}

.hk-wall__inner {
	position: relative;
	padding: 74px 26px 44px;
}

.hk-wall__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

/*
 * Stagger is expressed as a per-item custom property written by PHP, so the
 * reveal needs no JS timers and honours reduced-motion automatically.
 */
.hk-wall__item {
	border-bottom: 1px solid rgb(255 255 255 / 18%);
	opacity: 0;
	transform: translateX(-18px);
	transition: opacity 0.45s ease, transform 0.45s var(--hk-ease);
}

.hk-wall.is-open .hk-wall__item {
	opacity: 1;
	transform: translateX(0);
	transition-delay: calc(0.1s + var(--i, 0) * 0.06s);
}

.hk-wall__link {
	display: block;
	padding: 13px 0;
	color: #fff;
}

.hk-wall__link:hover {
	color: #fff;
}

.hk-wall__label {
	display: block;
	font-family: var(--hk-font-display);
	font-weight: 700;
	font-size: 1.625rem;
	line-height: 1;
	text-transform: uppercase;
}

.hk-wall__item.is-current .hk-wall__label {
	color: rgb(255 255 255 / 55%);
}

.hk-wall__sub {
	display: block;
	margin-top: 2px;
	font-family: var(--hk-font-body);
	font-size: 0.6875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgb(255 255 255 / 80%);
}

.hk-wall__cta {
	margin-top: 26px;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.hk-wall.is-open .hk-wall__cta {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.34s;
}

.hk-wall__lang {
	display: flex;
	gap: 8px;
	margin-top: 16px;
}

.hk-wall__lang .hk-lang__opt {
	flex: 1;
	min-height: 44px;
	border: 1px solid rgb(255 255 255 / 50%);
	border-radius: 7px;
	font-family: var(--hk-font-display);
	font-size: 0.8125rem;
	font-weight: 600;
}

.hk-wall__lang .hk-lang__opt[aria-current="true"] {
	background: #fff;
	border-color: #fff;
	color: var(--hk-red-text);
}

body.hk-menu-open {
	overflow: hidden;
}

@media (max-width: 900px) {
	.hk-header__inner {
		display: none;
	}

	.hk-header__mobile {
		display: flex;
	}

	.hk-brand img {
		height: 32px;
	}

	.hk-brand__name {
		font-size: 1.1875rem;
		letter-spacing: 0.12em;
	}

	.hk-header {
		z-index: 65;
	}
}

@media (min-width: 901px) {
	.hk-wall {
		display: none;
	}
}

/* ==========================================================================
   7. Footer
   ========================================================================== */

.hk-footer {
	background: var(--hk-ink);
	color: #fff;
	padding-block: clamp(2.5rem, 2rem + 2vw, 3.125rem) 2.375rem;
}

.hk-footer__top {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
	padding-bottom: 1.75rem;
	border-bottom: 1px solid var(--hk-border-dark);
}

.hk-footer__brand {
	max-width: 300px;
}

.hk-footer__brand .hk-brand {
	margin-bottom: 14px;
}

.hk-footer__brand img {
	height: 40px;
}

.hk-footer__tagline {
	color: var(--hk-on-dark-muted);
	font-size: 0.9375rem;
	line-height: 1.5;
	margin: 0;
}

.hk-footer__contact {
	font-size: 0.9375rem;
	color: #c9c6c1;
	line-height: 1.9;
	font-style: normal;
}

.hk-footer__contact a {
	color: #c9c6c1;
}

.hk-footer__contact a:hover {
	color: #fff;
}

.hk-footer__heading {
	font-family: var(--hk-font-display);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hk-on-dark-soft);
	margin-bottom: 8px;
}

.hk-social {
	display: flex;
	gap: 12px;
	height: fit-content;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hk-social__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid #3a362f;
	border-radius: var(--hk-radius);
	font-family: var(--hk-font-display);
	font-size: var(--hk-fs-micro);
	letter-spacing: 0.04em;
	color: #c9c6c1;
}

.hk-social__link:hover {
	border-color: var(--hk-red);
	background: var(--hk-red);
	color: #fff;
}

.hk-footer__legal {
	padding-top: 1.25rem;
	font-size: 0.8125rem;
	color: #7d7970;
}

/* ==========================================================================
   8. Home — hero
   ========================================================================== */

.hk-hero {
	position: relative;
	overflow: hidden;
	min-height: clamp(27.5rem, 20rem + 24vw, 37.5rem);
	background: var(--hk-ink);
	color: #fff;
	display: flex;
	align-items: center;
}

.hk-hero__media,
.hk-hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Fallback so the section never reads as broken if the photo is missing. */
.hk-hero__media {
	background: linear-gradient(135deg, #2a2620 0%, #15140f 60%);
}

.hk-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgb(15 14 10 / 92%) 0%,
		rgb(15 14 10 / 50%) 55%,
		rgb(15 14 10 / 5%) 100%
	);
}

.hk-hero__inner {
	position: relative;
	padding-block: clamp(3rem, 2rem + 5vw, 5rem);
}

.hk-hero__title {
	font-size: var(--hk-fs-display);
	line-height: 0.92;
	margin: 1rem 0 0;
}

.hk-hero__title span {
	color: var(--hk-red);
}

.hk-hero__sub {
	max-width: 520px;
	margin: 1.25rem 0 1.75rem;
	font-size: var(--hk-fs-lead);
	line-height: 1.5;
	color: #e4e2de;
}

.hk-hero__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

@media (max-width: 640px) {
	.hk-hero__scrim {
		background: linear-gradient(
			0deg,
			rgb(15 14 10 / 94%) 10%,
			rgb(15 14 10 / 55%) 70%,
			rgb(15 14 10 / 35%) 100%
		);
	}
}

/* ==========================================================================
   9. Home — fixtures strip
   ========================================================================== */

.hk-fixstrip {
	background: var(--hk-red);
	color: #fff;
	padding-block: 1.25rem;
}

.hk-fixstrip__head {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}

.hk-fixstrip__title {
	font-family: var(--hk-font-display);
	font-size: var(--hk-fs-small);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0;
}

.hk-fixstrip__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hk-fixstrip__item {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 12px 0;
	border-top: 1px solid rgb(255 255 255 / 22%);
}

.hk-fixstrip__comp {
	font-family: var(--hk-font-display);
	font-size: 0.6875rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--hk-on-red-soft);
}

.hk-fixstrip__teams {
	display: flex;
	align-items: center;
	gap: 9px;
	font-family: var(--hk-font-display);
	font-weight: 600;
	font-size: 1.0625rem;
	text-transform: uppercase;
}

.hk-fixstrip__pill {
	background: #fff;
	color: var(--hk-red-text);
	padding: 1px 8px;
	border-radius: var(--hk-radius-sm);
	white-space: nowrap;
}

.hk-fixstrip__meta {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--hk-on-red-soft);
}

/* ==========================================================================
   10. Home — registration band
   ========================================================================== */

.hk-regband {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	padding-block: clamp(1.875rem, 1.4rem + 2.4vw, 3.25rem);
}

.hk-regband__text {
	max-width: 720px;
}

.hk-regband__title {
	font-size: var(--hk-fs-h3);
	margin: 8px 0;
}

.hk-regband__body {
	margin: 0;
	color: #c9c6c1;
}

/* ==========================================================================
   11. Home — news
   ========================================================================== */

.hk-newslead {
	position: relative;
	display: block;
	border-radius: var(--hk-radius-lg);
	overflow: hidden;
	min-height: clamp(18.75rem, 13rem + 18vw, 25rem);
	margin-bottom: 20px;
	background: var(--hk-ink);
	color: #fff;
}

.hk-newslead:hover {
	color: #fff;
}

.hk-newslead__media,
.hk-newslead__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hk-newslead__media {
	background: linear-gradient(135deg, #33302a, #15140f);
}

.hk-newslead::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		0deg,
		rgb(15 14 10 / 92%) 5%,
		rgb(15 14 10 / 5%) 60%
	);
	z-index: 1;
}

.hk-newslead__body {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	z-index: 2;
	padding: clamp(1.25rem, 1rem + 1.2vw, 2rem);
}

.hk-newslead__title {
	font-weight: 600;
	font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem);
	line-height: 1.05;
	margin: 14px 0 8px;
}

.hk-newslead__excerpt {
	max-width: 600px;
	margin: 0;
	color: #d8d5d0;
	font-size: 0.9375rem;
}

.hk-tag {
	display: inline-block;
	background: var(--hk-red);
	color: #fff;
	font-family: var(--hk-font-display);
	font-size: var(--hk-fs-micro);
	letter-spacing: var(--hk-ls-label);
	text-transform: uppercase;
	padding: 4px 11px;
	border-radius: var(--hk-radius-sm);
}

.hk-newsgrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hk-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--hk-surface);
	border: 1px solid var(--hk-border);
	border-radius: var(--hk-radius-md);
	overflow: hidden;
	transition: transform var(--hk-dur) var(--hk-ease),
		box-shadow var(--hk-dur) ease;
}

.hk-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--hk-shadow);
}

.hk-card:focus-within {
	box-shadow: var(--hk-shadow);
}

.hk-card__media {
	height: 150px;
	overflow: hidden;
	background: linear-gradient(135deg, var(--hk-border), #dcd7cf);
}

.hk-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hk-card__body {
	padding: 16px 18px 20px;
}

.hk-card__meta {
	display: flex;
	gap: 9px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.hk-card__tag {
	font-family: var(--hk-font-display);
	font-size: 0.6875rem;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--hk-red-text);
}

.hk-card__date {
	font-size: 0.6875rem;
	color: var(--hk-muted);
}

.hk-card__title {
	font-weight: 600;
	font-size: 1.1875rem;
	line-height: 1.12;
	margin: 0;
	text-transform: none;
}

.hk-card__title a {
	color: var(--hk-ink);
}

.hk-card__title a:hover {
	color: var(--hk-red-text);
}

.hk-card__excerpt {
	margin: 8px 0 0;
	font-size: 0.9375rem;
	color: var(--hk-muted);
	line-height: 1.5;
}

/* ==========================================================================
   12. Home — divisions
   ========================================================================== */

.hk-divgrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hk-divcard {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 158px;
	padding: 22px 20px;
	background: var(--hk-ink);
	color: #fff;
	border-radius: var(--hk-radius-md);
	transition: background var(--hk-dur) ease;
}

.hk-divcard:hover,
.hk-divcard:focus-within {
	background: var(--hk-red);
}

.hk-divcard__n {
	font-family: var(--hk-font-display);
	font-size: var(--hk-fs-small);
	font-weight: 600;
	color: var(--hk-red);
	transition: color var(--hk-dur) ease;
}

.hk-divcard:hover .hk-divcard__n,
.hk-divcard:focus-within .hk-divcard__n {
	color: #fff;
}

.hk-divcard__name {
	font-family: var(--hk-font-display);
	font-weight: 600;
	font-size: 1.375rem;
	line-height: 1;
	text-transform: uppercase;
	margin: 0;
}

.hk-divcard__name a {
	color: #fff;
}

.hk-divcard__desc {
	margin: 7px 0 0;
	font-size: 0.8125rem;
	color: var(--hk-on-dark-muted);
	transition: color var(--hk-dur) ease;
}

.hk-divcard:hover .hk-divcard__desc,
.hk-divcard:focus-within .hk-divcard__desc {
	color: rgb(255 255 255 / 85%);
}

/* ==========================================================================
   13. Home — featured player
   ========================================================================== */

.hk-feature {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
	background: var(--hk-red);
	color: #fff;
}

.hk-feature__media {
	overflow: hidden;
	min-height: clamp(21.25rem, 14rem + 22vw, 32.5rem);
	background: linear-gradient(135deg, #f04a50, var(--hk-red));
}

.hk-feature__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.hk-feature__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(2.25rem, 1.7rem + 2.8vw, 3.75rem) var(--hk-gutter);
}

.hk-feature__name {
	font-size: clamp(2.5rem, 2rem + 2.2vw, 3.375rem);
	line-height: 0.95;
	margin: 14px 0 4px;
}

.hk-feature__pos {
	font-family: var(--hk-font-display);
	font-size: 0.9375rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--hk-on-red-soft);
	margin-bottom: 20px;
}

.hk-feature__quote {
	font-family: var(--hk-font-display);
	font-weight: 500;
	font-size: var(--hk-fs-quote);
	line-height: 1.15;
	margin: 0 0 16px;
}

.hk-feature__text {
	max-width: 520px;
	margin: 0 0 26px;
	color: #ffe3e4;
	line-height: 1.55;
}

.hk-feature .hk-btn {
	align-self: flex-start;
}

/* ==========================================================================
   14. Home — honours
   ========================================================================== */

.hk-honours__head {
	display: flex;
	align-items: baseline;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 1.625rem;
}

.hk-honours__head h2 {
	font-size: var(--hk-fs-h3);
}

.hk-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hk-stat {
	border-top: 3px solid var(--hk-red);
	padding-top: 16px;
}

.hk-stat__n {
	font-family: var(--hk-font-display);
	font-weight: 700;
	font-size: var(--hk-fs-stat);
	line-height: 0.9;
}

.hk-stat__l {
	margin-top: 8px;
	font-family: var(--hk-font-display);
	font-size: 0.8125rem;
	letter-spacing: var(--hk-ls-label);
	text-transform: uppercase;
	color: var(--hk-on-dark-muted);
}

/* ==========================================================================
   15. Facility split panel
   ========================================================================== */

.hk-split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.hk-split__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: var(--hk-paper);
	padding: clamp(2.25rem, 1.7rem + 2.8vw, 3.75rem) var(--hk-gutter);
}

.hk-split__title {
	font-size: var(--hk-fs-h2);
	line-height: 1;
	margin: 12px 0 14px;
}

.hk-split__text {
	max-width: 480px;
	margin: 0 0 24px;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--hk-text-body);
}

.hk-split__media {
	overflow: hidden;
	min-height: 320px;
	background: linear-gradient(135deg, #d8d3cb, #b9b3a9);
}

.hk-split__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hk-split .hk-btn {
	align-self: flex-start;
}

/* ==========================================================================
   16. Page header band
   ========================================================================== */

.hk-pagehead {
	background: var(--hk-ink);
	color: #fff;
	padding-block: clamp(2.125rem, 1.6rem + 2.6vw, 4rem);
}

.hk-pagehead--red {
	background: var(--hk-red);
}

.hk-pagehead__title {
	font-size: var(--hk-fs-h1);
	line-height: 0.95;
	margin: 10px 0 0;
}

/* Facility variant: photo with the title over the bottom of it. */
.hk-pagehead--media {
	position: relative;
	overflow: hidden;
	min-height: clamp(18.75rem, 13rem + 18vw, 27.5rem);
	display: flex;
	align-items: flex-end;
	padding-block: 0;
	background: var(--hk-ink);
}

.hk-pagehead__media,
.hk-pagehead__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hk-pagehead--media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		0deg,
		rgb(15 14 10 / 90%) 5%,
		rgb(15 14 10 / 20%) 70%
	);
}

.hk-pagehead--media .hk-container {
	position: relative;
	z-index: 1;
	padding-block: clamp(1.5rem, 1.1rem + 2vw, 3.5rem);
}

/* ==========================================================================
   17. News archive & single
   ========================================================================== */

.hk-archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hk-archive-grid .hk-card__media {
	height: 200px;
}

.hk-archive-grid .hk-card__body {
	padding: 20px 22px 24px;
}

.hk-archive-grid .hk-card__title {
	font-size: 1.375rem;
	line-height: 1.1;
}

.hk-article {
	max-width: 760px;
	margin-inline: auto;
}

.hk-article__meta {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
	font-size: var(--hk-fs-small);
	color: var(--hk-muted);
}

.hk-article__media {
	margin-bottom: 2rem;
	border-radius: var(--hk-radius-lg);
	overflow: hidden;
}

.hk-article__content {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--hk-text-body);
}

.hk-article__content h2,
.hk-article__content h3 {
	margin: 2rem 0 0.75rem;
	color: var(--hk-ink);
}

.hk-article__content h2 {
	font-size: var(--hk-fs-h3);
}

.hk-article__content h3 {
	font-size: var(--hk-fs-h4);
}

.hk-article__content img {
	border-radius: var(--hk-radius-md);
	margin-block: 1.5rem;
}

.hk-article__content blockquote {
	margin: 1.75rem 0;
	padding-inline-start: 1.25rem;
	border-inline-start: 3px solid var(--hk-red);
	font-family: var(--hk-font-display);
	font-weight: 500;
	font-size: var(--hk-fs-h4);
	line-height: 1.25;
	color: var(--hk-ink);
}

.hk-backlink {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	margin-top: 2.5rem;
	font-family: var(--hk-font-display);
	font-size: var(--hk-fs-small);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hk-backlink::before {
	content: "←";
}

.hk-empty {
	padding: 3rem 0;
	color: var(--hk-muted);
	font-size: var(--hk-fs-lead);
}

.hk-pagination {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 2.5rem;
	font-family: var(--hk-font-display);
}

.hk-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.75rem;
	border: 1px solid var(--hk-border);
	border-radius: var(--hk-radius);
	background: var(--hk-surface);
	color: var(--hk-ink);
}

.hk-pagination .page-numbers:hover {
	border-color: var(--hk-red);
	color: var(--hk-red-text);
}

.hk-pagination .page-numbers.current {
	background: var(--hk-red);
	border-color: var(--hk-red);
	color: #fff;
}

/* ==========================================================================
   18. Divisions (teams page)
   ========================================================================== */

.hk-divrows {
	display: flex;
	flex-direction: column;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hk-divrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	background: var(--hk-surface);
	border: 1px solid var(--hk-border);
	border-radius: var(--hk-radius-lg);
	padding: 24px 28px;
}

.hk-divrow__lead {
	display: flex;
	align-items: center;
	gap: 20px;
}

.hk-divrow__n {
	font-family: var(--hk-font-display);
	font-weight: 700;
	font-size: 2.5rem;
	line-height: 1;
	color: var(--hk-red);
}

.hk-divrow__name {
	font-family: var(--hk-font-display);
	font-weight: 700;
	font-size: 1.75rem;
	line-height: 1;
	text-transform: uppercase;
	margin: 0;
	color: var(--hk-ink);
}

.hk-divrow__desc {
	margin: 4px 0 0;
	font-size: 0.9375rem;
	color: var(--hk-muted);
}

.hk-divrow__groups {
	flex: 1;
	min-width: 180px;
	font-size: var(--hk-fs-small);
	color: #57534c;
}

/* ==========================================================================
   19. Fixtures page
   ========================================================================== */

.hk-tabs {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 1.625rem;
	list-style: none;
	padding: 0;
}

.hk-tab {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.625rem 1.125rem;
	border: 0;
	border-radius: var(--hk-radius);
	background: #eceae5;
	color: #57534c;
	font-family: var(--hk-font-display);
	font-size: var(--hk-fs-small);
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
}

.hk-tab:hover {
	background: #e2dfd9;
	color: var(--hk-ink);
}

.hk-tab[aria-current="true"],
.hk-tab.is-active {
	background: var(--hk-red);
	color: #fff;
}

.hk-fixrows {
	display: flex;
	flex-direction: column;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hk-fixrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	background: var(--hk-surface);
	border: 1px solid var(--hk-border);
	border-radius: var(--hk-radius-md);
	padding: 20px 24px;
}

.hk-fixrow__comp {
	min-width: 150px;
	font-family: var(--hk-font-display);
	font-size: var(--hk-fs-micro);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hk-muted);
}

.hk-fixrow__teams {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--hk-font-display);
	font-weight: 600;
	font-size: 1.375rem;
	color: var(--hk-ink);
}

.hk-fixrow__pill {
	background: var(--hk-ink);
	color: #fff;
	padding: 3px 12px;
	border-radius: 6px;
	font-size: 1.25rem;
	white-space: nowrap;
}

.hk-fixrow--final .hk-fixrow__pill {
	background: var(--hk-red);
}

.hk-fixrow__side {
	text-align: end;
	margin-inline-start: auto;
}

.hk-fixrow__status,
.hk-fixrow__venue {
	display: block;
}

.hk-fixrow__status {
	font-family: var(--hk-font-display);
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--hk-red-text);
}

.hk-fixrow__venue {
	font-size: var(--hk-fs-micro);
	color: var(--hk-muted);
}

@media (max-width: 640px) {
	.hk-fixrow {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.hk-fixrow__side {
		text-align: start;
		margin-inline-start: 0;
	}
}

/* ==========================================================================
   20. Registration page & form
   ========================================================================== */

.hk-reglayout {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 32px;
	align-items: start;
}

.hk-form {
	background: var(--hk-surface);
	border: 1px solid var(--hk-border);
	border-radius: var(--hk-radius-lg);
	padding: 32px 30px;
}

.hk-form__title {
	font-size: 1.5rem;
	margin: 0 0 1.375rem;
}

.hk-form__fields {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.hk-field label,
.hk-field__label {
	display: block;
	margin-bottom: 7px;
	font-family: var(--hk-font-display);
	font-size: var(--hk-fs-micro);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #57534c;
}

.hk-field input,
.hk-field select {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid #d8d3cb;
	border-radius: var(--hk-radius);
	background: var(--hk-surface);
	font-size: 0.9375rem;
	font-family: var(--hk-font-body);
}

.hk-field input:focus,
.hk-field select:focus {
	border-color: var(--hk-red);
}

.hk-field input[aria-invalid="true"],
.hk-field select[aria-invalid="true"] {
	border-color: var(--hk-red);
	background: #fff8f8;
}

.hk-field__error {
	display: block;
	margin-top: 6px;
	font-size: var(--hk-fs-small);
	color: var(--hk-red-text);
}

.hk-field__error:empty {
	display: none;
}

/*
 * Honeypot. Deliberately not display:none — some bots skip hidden inputs, and
 * this needs to look fillable to them while staying out of the a11y tree.
 */
.hk-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hk-formmsg {
	margin-bottom: 1.25rem;
	padding: 14px 16px;
	border-radius: var(--hk-radius);
	border: 1px solid #f0c3c5;
	background: #fdf1f1;
	color: #8a1015;
	font-size: 0.9375rem;
}

.hk-formmsg ul {
	margin: 6px 0 0;
	padding-inline-start: 1.1rem;
}

.hk-success {
	background: #f0fbf2;
	border: 1px solid #bfe6c6;
	border-radius: var(--hk-radius-lg);
	padding: 40px 34px;
	text-align: center;
}

.hk-success__icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: #1a7f3f;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	line-height: 1;
}

.hk-success__title {
	font-size: 1.75rem;
	margin: 0 0 8px;
	color: var(--hk-ink);
}

.hk-success__msg {
	margin: 0 0 22px;
	color: var(--hk-text-body);
}

.hk-infocards {
	display: flex;
	flex-direction: column;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hk-infocard {
	background: var(--hk-ink);
	color: #fff;
	border-radius: var(--hk-radius-md);
	padding: 22px 24px;
}

.hk-infocard__label {
	margin-bottom: 6px;
	font-family: var(--hk-font-display);
	font-size: var(--hk-fs-micro);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hk-on-dark-soft);
}

.hk-infocard__value {
	font-family: var(--hk-font-display);
	font-size: 1.0625rem;
	font-weight: 600;
}

.hk-infocard__value a {
	color: #fff;
}

.hk-infocard__value a:hover {
	color: var(--hk-on-dark-soft);
}

/* ==========================================================================
   21. Facility page
   ========================================================================== */

.hk-facility__intro {
	max-width: 640px;
	margin: 0 0 2rem;
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--hk-text-body);
}

.hk-faccards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hk-faccard {
	background: var(--hk-surface);
	border: 1px solid var(--hk-border);
	border-radius: var(--hk-radius-md);
	padding: 24px 26px;
}

.hk-faccard__label {
	margin-bottom: 10px;
	font-family: var(--hk-font-display);
	font-size: var(--hk-fs-micro);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hk-red-text);
}

.hk-faccard__value {
	font-size: 1rem;
	line-height: 1.6;
	color: #2c2925;
	white-space: pre-line;
}

/* ==========================================================================
   22. 404 & search
   ========================================================================== */

.hk-404 {
	padding-block: clamp(3rem, 2rem + 5vw, 6rem);
	text-align: center;
}

.hk-404__title {
	font-size: var(--hk-fs-h1);
	margin-bottom: 1rem;
}

.hk-404__body {
	max-width: 480px;
	margin: 0 auto 2rem;
	color: var(--hk-muted);
	font-size: var(--hk-fs-lead);
}

.hk-searchform {
	display: flex;
	gap: 8px;
	max-width: 420px;
	margin-inline: auto;
}

.hk-searchform input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 12px 15px;
	border: 1px solid #d8d3cb;
	border-radius: var(--hk-radius);
	background: var(--hk-surface);
	font-size: 0.9375rem;
}

/* ==========================================================================
   23. Motion & print
   ========================================================================== */

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

	.hk-card:hover {
		transform: none;
	}
}

@media print {
	.hk-header,
	.hk-wall,
	.hk-footer,
	.hk-skip,
	.hk-tabs,
	.hk-btn {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}

	.hk-hero,
	.hk-pagehead {
		background: none;
		color: #000;
		min-height: 0;
	}

	.hk-hero__media,
	.hk-hero__scrim,
	.hk-pagehead__media {
		display: none;
	}
}
