/*
Theme Name: Boldkampe
Theme URI: https://boldkampe.dk
Author: Busekist Media
Description: Kampprogrammer og seneste resultater for fodboldklubber. Tilføj en liga, så oprettes alle klubber automatisk med data fra API-Football. Alle sider har plads til en SEO-tekst. Design i samme stil som Lønfokus og TjekOpkald (Manrope, mørkegrøn).
Version: 1.0.1
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: boldkampe
*/

/* ------------------------------------------------------------------
   Skrifttype (Manrope, SIL Open Font License – hostet lokalt)
------------------------------------------------------------------ */
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url("assets/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
	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;
}
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url("assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
	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;
}

/* ------------------------------------------------------------------
   Variabler
------------------------------------------------------------------ */
:root {
	--c-primary: #084c35;
	--c-primary-dark: #063b29;
	--c-primary-mid: #2f7a5c;
	--c-primary-soft: #7fae98;
	--c-tint: #eff5f2;
	--c-tint-2: #f4f8f6;
	--c-chip: #e1f2e8;
	--c-border: #d9e0dc;
	--c-line: #edf1ee;
	--c-text: #16261f;
	--c-muted: #656f69;
	--c-down: #b42318;
	--c-down-bg: #fdecea;
	--c-gold: #c08a1e;
	--c-gold-bg: #fbf3e2;
	--c-white: #fff;
	--radius: 6px;
	--shadow: 0 1px 2px rgba(22, 38, 31, 0.05);
	--shadow-hover: 0 10px 28px -12px rgba(8, 76, 53, 0.28);
	--container: 1152px;
	--gutter: 24px;
	--font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ------------------------------------------------------------------
   Grundlæggende
------------------------------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--c-white);
	color: var(--c-text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-variant-numeric: tabular-nums;
}

img,
svg,
iframe {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var(--c-primary);
	text-decoration: none;
}

a:hover {
	color: var(--c-primary-dark);
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--c-text);
}

p {
	margin: 0;
}

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

:focus-visible {
	outline: 2px solid var(--c-primary);
	outline-offset: 2px;
}

[id] {
	scroll-margin-top: 16px;
}

[hidden] {
	display: none !important;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--c-primary);
	color: #fff;
	border-radius: var(--radius);
}

.skip-link:focus {
	left: 8px;
	color: #fff;
}

.icon {
	flex: none;
}

.muted {
	color: var(--c-muted);
}

.small {
	font-size: 13.5px;
}

.up {
	color: var(--c-primary);
}

.down {
	color: var(--c-down);
}

/* ------------------------------------------------------------------
   Knapper og links
------------------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 22px;
	border: 1.5px solid transparent;
	border-radius: var(--radius);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn .icon {
	transition: transform 0.18s ease;
}

.btn:hover .icon-arrow-right {
	transform: translateX(3px);
}

.btn-primary {
	background: var(--c-primary);
	color: #fff;
}

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

.btn-outline {
	border-color: var(--c-primary);
	background: #fff;
	color: var(--c-primary);
}

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

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
	font-size: 16px;
	color: var(--c-primary);
	white-space: nowrap;
}

.text-link .icon {
	transition: transform 0.18s ease;
}

.text-link:hover .icon {
	transform: translateX(3px);
}

.text-link-sm {
	gap: 8px;
	font-size: 14.5px;
}

/* Overlinje */
.eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--c-primary);
}

.eyebrow::before {
	content: "";
	flex: none;
	width: 32px;
	height: 1.5px;
	background: currentColor;
}

.eyebrow-light {
	color: rgba(255, 255, 255, 0.92);
}

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------ */
.site-header {
	position: relative;
	z-index: 20;
	background: #fff;
	border-bottom: 1px solid var(--c-border);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: 84px;
}

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--c-primary);
	font-size: 27px;
	line-height: 1;
	letter-spacing: -0.02em;
}

.site-logo:hover {
	color: var(--c-primary);
}

.logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: var(--c-primary);
	color: #fff;
	flex: none;
}

.site-logo .logo-text {
	font-weight: 400;
}

.site-logo strong {
	font-weight: 800;
}

.custom-logo-link img {
	max-height: 48px;
	width: auto;
}

.main-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.nav-list {
	display: flex;
	align-items: center;
	gap: 34px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-list a {
	display: block;
	padding: 6px 0;
	font-size: 16px;
	font-weight: 500;
	color: var(--c-text);
	transition: color 0.15s ease;
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
	color: var(--c-primary);
}

.nav-cta {
	display: none;
}

.header-cta {
	min-height: 48px;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 0;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: #fff;
	color: var(--c-primary);
	cursor: pointer;
}

.nav-toggle-close {
	display: none;
}

.nav-open .nav-toggle-open {
	display: none;
}

.nav-open .nav-toggle-close {
	display: block;
}

/* ------------------------------------------------------------------
   Forside – hero
------------------------------------------------------------------ */
.hero {
	position: relative;
	padding: 76px 0 68px;
	background: radial-gradient(120% 140% at 85% 20%, #1d6b51 0%, #0b4a35 45%, #062d20 100%);
	color: #fff;
	isolation: isolate;
	z-index: 2;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(6, 30, 22, 0.45) 0%, rgba(6, 30, 22, 0) 70%);
}

.hero-deco {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
}

.hero .eyebrow {
	margin-bottom: 26px;
}

.hero-title {
	max-width: 820px;
	font-size: clamp(2.4rem, 5vw, 3.7rem);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.025em;
	color: #fff;
}

.hero-lead {
	max-width: 640px;
	margin-top: 22px;
	font-size: 18.5px;
	line-height: 1.55;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.92);
}

.hero-search {
	max-width: 760px;
	margin-top: 36px;
}

.popular {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 22px;
	margin-top: 22px;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.8);
}

.popular a {
	color: rgba(255, 255, 255, 0.92);
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.5);
	text-underline-offset: 6px;
	text-decoration-thickness: 1px;
	white-space: nowrap;
}

.popular a:hover {
	color: #fff;
	text-decoration-color: #fff;
}

/* ------------------------------------------------------------------
   Søgefelt med forslag
------------------------------------------------------------------ */
.fk-search {
	position: relative;
}

.fk-search-field {
	display: flex;
	align-items: stretch;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: 8px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fk-search-hero .fk-search-field {
	padding: 10px;
	border: 0;
	box-shadow: 0 18px 48px -18px rgba(0, 0, 0, 0.45);
}

.fk-search-field:focus-within {
	border-color: var(--c-primary);
	box-shadow: 0 0 0 3px rgba(8, 76, 53, 0.12);
}

.fk-search-hero .fk-search-field:focus-within {
	box-shadow: 0 18px 48px -18px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.fk-search-icon {
	display: inline-flex;
	align-items: center;
	flex: none;
	padding: 0 4px 0 10px;
	color: var(--c-primary);
}

.fk-search-field input {
	flex: 1;
	min-width: 0;
	height: 52px;
	padding: 0 12px;
	border: 0;
	background: transparent;
	font-size: 18px;
	font-weight: 600;
	color: var(--c-text);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.fk-search-field input::-webkit-search-cancel-button {
	display: none;
}

.fk-search-field input::placeholder {
	font-weight: 400;
	font-size: 16px;
	color: #8a938e;
}

.fk-search-btn {
	min-height: 52px;
	padding: 0 24px;
	font-size: 16px;
}

.fk-search-compact .fk-search-field {
	padding: 5px;
}

.fk-search-compact .fk-search-field input {
	height: 42px;
	font-size: 16px;
}

.fk-search-compact .fk-search-btn {
	min-height: 42px;
	padding: 0 16px;
}

.fk-search-compact .fk-search-icon {
	padding-left: 8px;
}

.fk-suggest {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	z-index: 30;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: 8px;
	box-shadow: 0 22px 48px -18px rgba(6, 30, 22, 0.4);
	color: var(--c-text);
}

.fk-suggest a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 12px;
	border-radius: var(--radius);
	color: var(--c-text);
}

.fk-suggest li.is-active a,
.fk-suggest a:hover {
	background: var(--c-tint);
	color: var(--c-text);
}

.sg-name {
	font-weight: 600;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sg-val {
	flex: none;
	font-size: 14px;
	color: var(--c-muted);
}

/* ------------------------------------------------------------------
   Fordele-bjælke og nøgletal
------------------------------------------------------------------ */
.trust-bar {
	background: var(--c-tint);
	border-bottom: 1px solid var(--c-border);
}

.trust-inner {
	display: flex;
	justify-content: space-between;
	gap: 16px 32px;
	padding-top: 22px;
	padding-bottom: 22px;
}

.trust-inner p {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 15px;
	font-weight: 500;
}

.trust-inner .icon {
	color: var(--c-primary);
}

/* ------------------------------------------------------------------
   Sektioner
------------------------------------------------------------------ */
.section {
	padding: 64px 0 72px;
}

.section-flush {
	padding-top: 52px;
}

.section-tint {
	background: var(--c-tint);
	border-top: 1px solid var(--c-border);
	border-bottom: 1px solid var(--c-border);
}

.section-tint + .site-footer,
.section-tint + .section-tint {
	border-top: 0;
}

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}

.section-head .text-link {
	margin-bottom: 6px;
}

.section-title {
	font-size: clamp(1.75rem, 3vw, 2.3rem);
}

.section-title-sm {
	margin-bottom: 20px;
	font-size: clamp(1.4rem, 2.4vw, 1.75rem);
}

.section-head .section-title-sm {
	margin-bottom: 0;
}

.section-lead {
	max-width: 660px;
	margin-top: 14px;
	font-size: 17px;
	color: var(--c-muted);
}

/* ------------------------------------------------------------------
   Sidehoveder (undersider)
------------------------------------------------------------------ */
.page-hero {
	padding: 40px 0 52px;
	background: var(--c-tint);
	border-bottom: 1px solid var(--c-border);
}

.page-title {
	font-size: clamp(2rem, 4.2vw, 2.9rem);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.12;
}

.page-lead {
	max-width: 780px;
	margin-top: 20px;
	font-size: 17.5px;
	line-height: 1.7;
	color: var(--c-muted);
}

.page-lead strong {
	color: var(--c-text);
}

.page-hero-search {
	max-width: 560px;
	margin-top: 28px;
}

.page-body {
	padding-top: 48px;
	padding-bottom: 88px;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 0;
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--c-muted);
}

.breadcrumbs li {
	display: inline-flex;
	align-items: center;
}

.breadcrumbs a {
	color: var(--c-muted);
}

.breadcrumbs a:hover {
	color: var(--c-primary);
}

.crumb-sep {
	margin: 0 12px;
}

.post-meta {
	margin-top: 14px;
	font-size: 14.5px;
	color: var(--c-muted);
}

/* ------------------------------------------------------------------
   Højre side
------------------------------------------------------------------ */
.aside-card {
	padding: 24px;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.aside-title {
	margin-bottom: 14px;
	font-size: 19px;
	letter-spacing: -0.015em;
}

.facts {
	margin: 0;
}

.facts div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--c-line);
	font-size: 15px;
}

.facts div:first-child {
	padding-top: 0;
}

.facts dt {
	color: var(--c-muted);
}

.facts dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
}

.facts-note {
	display: flex;
	gap: 8px;
	margin-top: 14px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--c-muted);
}

.facts-note .icon {
	margin-top: 2px;
}

/* ------------------------------------------------------------------
   Tekst
------------------------------------------------------------------ */
.prose {
	font-size: 16.5px;
	line-height: 1.75;
}

.prose > * + * {
	margin-top: 1.1em;
}

.prose h2,
.prose h3 {
	margin-top: 1.6em;
}

.prose h2 {
	font-size: 1.5rem;
}

.prose h3 {
	font-size: 1.2rem;
}

.prose a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.prose ul,
.prose ol {
	padding-left: 1.3em;
}

.prose img {
	border-radius: var(--radius);
}

.prose-card .prose {
	font-size: 16px;
}

.prose-page {
	max-width: 760px;
}

/* Blog */
.post-list {
	display: grid;
	gap: 36px;
	max-width: 760px;
}

.post-item-title {
	margin: 6px 0 10px;
	font-size: 1.5rem;
}

.post-item-title a {
	color: var(--c-text);
}

.post-item-title a:hover {
	color: var(--c-primary);
}

.post-item p {
	margin-bottom: 12px;
	color: var(--c-muted);
}

.post-thumb {
	margin: 0 0 32px;
}

.post-thumb img {
	border-radius: var(--radius);
}

.pagination {
	margin-top: 40px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	color: var(--c-text);
}

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

/* ------------------------------------------------------------------
   Fælles
------------------------------------------------------------------ */
.empty {
	padding: 22px 24px;
	background: var(--c-tint-2);
	border: 1px dashed var(--c-border);
	border-radius: var(--radius);
	color: var(--c-muted);
}

.crest {
	position: relative;
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: var(--crest, 24px);
	height: var(--crest, 24px);
	font-size: calc(var(--crest, 24px) * 0.36);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--c-primary);
}

/* Forbogstaver vises kun, hvis logoet ikke kan hentes. */
.crest:not(:has(img))::before {
	content: attr(data-i);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--c-chip);
	border-radius: 50%;
}

.crest img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.hero-deco {
	color: rgba(255, 255, 255, 0.11);
}

.hero-deco svg {
	position: absolute;
	top: 0;
	right: 0;
	width: 62%;
	height: 100%;
	-webkit-mask-image: linear-gradient(to left, #000 35%, transparent 100%);
	mask-image: linear-gradient(to left, #000 35%, transparent 100%);
}

.section-seo {
	border-bottom: 0;
}

.archive-text,
.seo-text {
	margin-top: 48px;
}

.section-seo .seo-text {
	margin-top: 0;
}

.seo-text > :first-child {
	margin-top: 0;
}

.entity-content .seo-text {
	padding-top: 40px;
	border-top: 1px solid var(--c-border);
}

/* ------------------------------------------------------------------
   Faner med dage
------------------------------------------------------------------ */
.tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 28px;
	padding-bottom: 4px;
	overflow-x: auto;
	scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
	display: none;
}

.tab {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 9px;
	min-height: 44px;
	padding: 0 16px;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	font-size: 15px;
	font-weight: 600;
	color: var(--c-text);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tab:hover {
	border-color: var(--c-primary);
}

.tab[aria-selected="true"] {
	background: var(--c-primary);
	border-color: var(--c-primary);
	color: #fff;
}

.tab-count {
	min-width: 24px;
	padding: 1px 7px;
	background: var(--c-tint);
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
	color: var(--c-primary);
}

.tab[aria-selected="true"] .tab-count {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

/* ------------------------------------------------------------------
   Turneringer og kampe
------------------------------------------------------------------ */
.comp + .comp {
	margin-top: 30px;
}

.comp-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	font-size: 17px;
	letter-spacing: -0.01em;
}

.comp-head a,
.comp-head span:not(.crest) {
	color: var(--c-text);
}

.comp-head a:hover {
	color: var(--c-primary);
}

.comp-head small {
	font-size: 13.5px;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--c-muted);
}

.fx-section + .fx-section {
	margin-top: 52px;
}

.fx-group + .fx-group {
	margin-top: 26px;
}

[data-more-box] > .fx-group:first-child {
	margin-top: 26px;
}

.fx-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 10px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0;
	color: var(--c-text);
}

.fx-head span {
	font-size: 13.5px;
	font-weight: 500;
	color: var(--c-muted);
}

.fx-list {
	margin: 0;
	padding: 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.fx {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr) 150px;
	align-items: center;
	gap: 16px;
	min-height: 60px;
	padding: 10px 18px;
}

.fx + .fx {
	border-top: 1px solid var(--c-line);
}

.fx:hover {
	background: var(--c-tint-2);
}

.fx:has(.fx-end) {
	grid-template-columns: 96px minmax(0, 1fr) 122px 50px;
	gap: 12px;
	padding: 10px 14px;
}

.fx:not(:has(.fx-info)) {
	grid-template-columns: 112px minmax(0, 1fr);
}

.fx-when {
	display: flex;
	flex-direction: column;
	gap: 1px;
	font-size: 14px;
	line-height: 1.35;
}

.fx-date {
	font-weight: 600;
	color: var(--c-text);
}

.fx-time {
	color: var(--c-muted);
}

.tab-panel .fx-time {
	font-weight: 600;
	color: var(--c-text);
}

.fx-live .fx-time {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 6px;
	padding: 1px 8px;
	background: var(--c-down-bg);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	color: var(--c-down);
}

.fx-live .fx-time::before {
	content: "";
	width: 7px;
	height: 7px;
	background: currentColor;
	border-radius: 50%;
	animation: fk-pulse 1.6s ease-in-out infinite;
}

@keyframes fk-pulse {
	50% {
		opacity: 0.3;
	}
}

.fx-off .fx-time {
	font-weight: 600;
	color: var(--c-down);
}

.fx-match {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 22px 10px 22px minmax(0, 1fr);
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.fx-team {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	font-size: 15.5px;
	font-weight: 500;
	color: var(--c-text);
}

a.fx-team:hover {
	color: var(--c-primary);
}

.fx-team.is-focus {
	font-weight: 700;
}

.fx-match > .fx-team:first-child {
	flex-direction: row-reverse;
	text-align: right;
}

.fx-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fx-goal {
	font-size: 17px;
	font-weight: 700;
	text-align: center;
	color: var(--c-text);
}

.fx-sep {
	text-align: center;
	color: #a6afaa;
}

.fx-upcoming .fx-goal {
	visibility: hidden;
}

.fx-live .fx-goal {
	color: var(--c-down);
}

.fx-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1px;
	min-width: 0;
	font-size: 13.5px;
	line-height: 1.35;
}

.fx-comp {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 600;
	color: var(--c-text);
}

a.fx-comp:hover {
	color: var(--c-primary);
}

.fx-round {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--c-muted);
}

.fx-end {
	display: flex;
	justify-content: flex-end;
}

.fx-side {
	font-size: 13px;
	font-weight: 500;
	color: var(--c-muted);
}

.res {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: var(--radius);
	font-size: 13.5px;
	font-weight: 800;
	color: #fff;
}

.res-v {
	background: var(--c-primary-mid);
}

.res-u {
	background: #8a938e;
}

.res-t {
	background: var(--c-down);
}

.fx-more {
	max-width: 100%;
	margin-top: 18px;
	padding-top: 12px;
	padding-bottom: 12px;
	line-height: 1.3;
	text-align: center;
	white-space: normal;
}

/* ------------------------------------------------------------------
   Kort
------------------------------------------------------------------ */
.card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.card-grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.club-card,
.league-card {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	padding: 15px 16px;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	color: var(--c-text);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.club-card:hover,
.league-card:hover {
	border-color: var(--c-primary-soft);
	box-shadow: var(--shadow-hover);
	color: var(--c-text);
	transform: translateY(-1px);
}

.club-card > .icon {
	margin-left: auto;
	color: var(--c-primary-soft);
}

.club-card-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.club-card-name {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.01em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.club-card-meta {
	font-size: 13.5px;
	color: var(--c-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.league-season {
	flex: none;
	margin-left: auto;
	padding: 3px 9px;
	background: var(--c-chip);
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--c-primary);
}

.club-section + .club-section {
	margin-top: 48px;
}

.club-section h2 a {
	color: var(--c-text);
}

.club-section h2 a:hover {
	color: var(--c-primary);
}

.table-filter {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 14px;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: 8px;
	color: var(--c-primary);
}

.table-filter:focus-within {
	border-color: var(--c-primary);
	box-shadow: 0 0 0 3px rgba(8, 76, 53, 0.12);
}

.table-filter input {
	flex: 1;
	min-width: 0;
	height: 50px;
	border: 0;
	background: transparent;
	font-size: 16px;
	color: var(--c-text);
	outline: none;
}

/* ------------------------------------------------------------------
   Klub- og ligaside
------------------------------------------------------------------ */
.entity-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	align-items: start;
	gap: 48px;
}

.entity-main {
	display: flex;
	align-items: flex-start;
	gap: 22px;
}

.entity-main > .crest {
	padding: 10px;
	width: 92px;
	height: 92px;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: 10px;
	box-sizing: border-box;
	font-size: 28px;
}

.entity-main > .crest::before {
	border-radius: 6px;
}

.entity-main .page-lead {
	margin-top: 14px;
}

.next-card {
	padding: 20px 22px 18px;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: 10px;
	box-shadow: var(--shadow-hover);
}

.next-eyebrow {
	margin-bottom: 14px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--c-primary);
}

.next-card.is-live .next-eyebrow {
	color: var(--c-down);
}

.next-teams {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: start;
	gap: 10px;
}

.next-team {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-width: 0;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	overflow-wrap: anywhere;
}

.next-mid {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 6px;
}

.next-mid strong {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--c-primary);
}

.next-mid small {
	font-size: 12.5px;
	color: var(--c-muted);
}

.next-meta {
	display: grid;
	gap: 6px;
	margin: 16px 0 0;
	padding: 14px 0 0;
	list-style: none;
	border-top: 1px solid var(--c-line);
	font-size: 14px;
	color: var(--c-muted);
}

.next-meta li {
	display: flex;
	align-items: center;
	gap: 9px;
}

.next-meta .icon {
	color: var(--c-primary);
}

.next-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	font-size: 14px;
	font-weight: 600;
}

.entity-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	align-items: start;
	gap: 32px;
}

.entity-aside {
	display: grid;
	gap: 18px;
	min-width: 0;
}

.aside-sub {
	margin: 20px 0 8px;
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: 0;
}

.aside-sub:first-of-type {
	margin-top: 0;
}

.aside-card .text-link-sm {
	margin-top: 14px;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
}

.chip {
	min-height: 36px;
	padding: 0 14px;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--c-text);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
	border-color: var(--c-primary);
}

.chip.is-active {
	background: var(--c-primary);
	border-color: var(--c-primary);
	color: #fff;
}

.form-row {
	display: flex;
	gap: 6px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.form-row .res {
	width: 36px;
	height: 36px;
	font-size: 15px;
}

.link-list {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
}

.link-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	font-weight: 500;
	color: var(--c-text);
}

.link-list a:hover {
	color: var(--c-primary);
}

.st-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 14px;
}

.st-table th {
	padding: 6px 4px;
	border-bottom: 1px solid var(--c-border);
	font-size: 12.5px;
	font-weight: 600;
	text-align: left;
	color: var(--c-muted);
}

.st-table abbr {
	text-decoration: none;
}

.st-table td {
	padding: 7px 4px;
	border-bottom: 1px solid var(--c-line);
}

.st-table tbody tr:last-child td {
	border-bottom: 0;
}

.st-table .num {
	width: 30px;
	text-align: right;
	white-space: nowrap;
}

.st-table .num:nth-child(4) {
	width: 36px;
}

.st-table td.num:first-child,
.st-table th.num:first-child {
	width: 26px;
	text-align: left;
	color: var(--c-muted);
}

.st-table td.st-club {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.st-club a,
.st-club span:not(.crest) {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 500;
	color: var(--c-text);
}

.st-club a:hover {
	color: var(--c-primary);
}

.st-points {
	font-weight: 700;
}

.st-table .is-focus td {
	background: var(--c-chip);
}

.st-table .is-focus td:first-child {
	border-radius: 4px 0 0 4px;
}

.st-table .is-focus td:last-child {
	border-radius: 0 4px 4px 0;
}

.st-table .is-focus .st-club a {
	font-weight: 700;
}

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.site-footer {
	border-top: 1px solid var(--c-border);
	background: #fff;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 40px;
	padding-top: 48px;
	padding-bottom: 44px;
}

.footer-logo {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	font-size: 21px;
	letter-spacing: -0.02em;
	color: var(--c-primary);
}

.footer-logo:hover {
	color: var(--c-primary);
}

.footer-logo .logo-mark {
	width: 34px;
	height: 34px;
	border-radius: 7px;
}

.footer-logo .logo-text {
	font-weight: 400;
}

.footer-logo strong {
	font-weight: 800;
}

.footer-brand p {
	max-width: 300px;
	margin-top: 14px;
	font-size: 14.5px;
	color: var(--c-muted);
}

.footer-title {
	margin-bottom: 12px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0;
}

.footer-list {
	display: grid;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14.5px;
}

.footer-list a {
	color: var(--c-muted);
}

.footer-list a:hover {
	color: var(--c-primary);
}

.footer-bottom {
	border-top: 1px solid var(--c-border);
	background: var(--c-tint-2);
}

.footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	padding-top: 16px;
	padding-bottom: 16px;
	font-size: 13.5px;
	color: var(--c-muted);
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu a {
	color: var(--c-muted);
}

.footer-menu a:hover {
	color: var(--c-primary);
}

/* ------------------------------------------------------------------
   Responsivt
------------------------------------------------------------------ */
@media (max-width: 1100px) {
	.entity-head {
		grid-template-columns: minmax(0, 1fr) 360px;
		gap: 28px;
	}

	.entity-layout {
		grid-template-columns: minmax(0, 1fr) 290px;
		gap: 24px;
	}

	.fx:has(.fx-end),
	.fx:has(.fx-info):not(:has(.fx-end)) {
		grid-template-columns: 96px minmax(0, 1fr) 46px;
	}

	.fx:has(.fx-info):not(:has(.fx-end)) {
		grid-template-columns: 96px minmax(0, 1fr);
	}

	.fx-info {
		grid-column: 2;
		grid-row: 2;
		flex-direction: row;
		justify-content: center;
		gap: 8px;
	}

	.fx-end {
		grid-column: 3;
		grid-row: 1 / span 2;
	}

	.fx-when {
		grid-row: 1 / span 2;
	}

	.fx {
		row-gap: 2px;
	}
}

@media (max-width: 960px) {
	.header-inner {
		min-height: 72px;
		gap: 16px;
	}

	.site-logo {
		font-size: 24px;
	}

	.header-cta {
		display: none;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.main-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		flex-direction: column;
		gap: 14px;
		padding: 12px var(--gutter) 24px;
		background: #fff;
		border-bottom: 1px solid var(--c-border);
		box-shadow: 0 18px 30px -20px rgba(0, 0, 0, 0.25);
	}

	.nav-open .main-nav {
		display: flex;
	}

	.nav-list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nav-list li + li {
		border-top: 1px solid var(--c-border);
	}

	.nav-list a {
		padding: 14px 0;
	}

	.nav-cta {
		display: inline-flex;
	}

	.trust-inner {
		flex-direction: column;
		gap: 10px;
	}

	.entity-head,
	.entity-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.entity-aside {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}

	.card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 720px) {
	:root {
		--gutter: 16px;
	}

	.hero {
		padding: 44px 0 40px;
	}

	.hero-deco svg {
		width: 100%;
		opacity: 0.6;
	}

	.hero-lead {
		font-size: 17px;
	}

	.fk-search-hero .fk-search-field {
		flex-wrap: wrap;
		padding: 8px;
	}

	.fk-search-hero .fk-search-field input {
		height: 48px;
		font-size: 17px;
	}

	.fk-search-hero .fk-search-btn {
		flex-basis: 100%;
		margin-top: 8px;
		min-height: 50px;
	}

	.fk-search-field input::placeholder {
		font-size: 14.5px;
	}

	.fk-search-compact .fk-search-btn span {
		display: none;
	}

	.section {
		padding: 44px 0 52px;
	}

	.section-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		margin-bottom: 22px;
	}

	.section-head .text-link {
		margin-bottom: 0;
	}

	.page-hero {
		padding: 22px 0 32px;
	}

	.breadcrumbs ol {
		margin-bottom: 20px;
	}

	.page-title {
		font-size: 1.8rem;
	}

	.page-lead {
		font-size: 16px;
		line-height: 1.6;
	}

	.page-body {
		padding-top: 32px;
		padding-bottom: 56px;
	}

	.entity-main {
		gap: 14px;
	}

	.entity-main > .crest {
		width: 60px;
		height: 60px;
		padding: 6px;
		font-size: 18px;
	}

	.entity-aside,
	.card-grid,
	.card-grid-2 {
		grid-template-columns: minmax(0, 1fr);
	}

	.next-card {
		padding: 18px 16px 16px;
	}

	.aside-card {
		padding: 20px 16px;
	}

	/* Kampe på mobil: hold over hinanden, mål i højre side. */
	.fx,
	.fx:not(:has(.fx-info)),
	.fx:has(.fx-info):not(:has(.fx-end)),
	.fx:has(.fx-end) {
		grid-template-columns: 84px minmax(0, 1fr) auto;
		gap: 2px 12px;
		padding: 10px 12px;
	}

	.fx-when {
		grid-row: 1 / span 2;
		font-size: 13px;
	}

	.fx-match {
		grid-column: 2;
		grid-row: 1;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 5px 10px;
	}

	.fx-match > .fx-team:first-child {
		flex-direction: row;
		text-align: left;
	}

	.fx-match > .fx-team:first-child {
		grid-column: 1;
		grid-row: 1;
	}

	.fx-match > .fx-team:last-child {
		grid-column: 1;
		grid-row: 2;
	}

	.fx-gh {
		grid-column: 2;
		grid-row: 1;
	}

	.fx-ga {
		grid-column: 2;
		grid-row: 2;
	}

	.fx-sep {
		display: none;
	}

	.fx-upcoming .fx-goal {
		display: none;
	}

	.fx-team {
		font-size: 15px;
	}

	.fx-info {
		grid-column: 2;
		grid-row: 2;
		justify-content: flex-start;
		flex-wrap: wrap;
		gap: 0 8px;
		padding-top: 2px;
		font-size: 12.5px;
	}

	.fx-end {
		grid-column: 3;
		grid-row: 1 / span 2;
		align-self: center;
	}

	.fx-side {
		font-size: 12px;
	}

	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 20px;
		padding-top: 36px;
		padding-bottom: 32px;
	}
}

/* Smalle telefoner: dato og tid på egen linje, så klubnavnene får hele bredden. */
@media (max-width: 480px) {
	.fx,
	.fx:not(:has(.fx-info)),
	.fx:has(.fx-info):not(:has(.fx-end)),
	.fx:has(.fx-end) {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 4px 10px;
	}

	.fx-when {
		grid-column: 1 / -1;
		grid-row: 1;
		flex-direction: row;
		align-items: center;
		gap: 8px;
	}

	.fx-match {
		grid-column: 1;
		grid-row: 2;
	}

	.fx-info {
		grid-column: 1;
		grid-row: 3;
		padding-top: 0;
	}

	.fx-end {
		grid-column: 2;
		grid-row: 2 / span 2;
	}

	.fx-live .fx-time {
		align-self: center;
	}
}
