/*
Theme Name: Klubradar
Theme URI: https://nexodigital.dk/
Author: Busekist Media / Nexo Digital
Description: Klubside for én fodboldklub – kampe, stillinger, trup, stadion og TV – med data fra API-Football. Al klubdata ligger i en klubprofil, der kan eksporteres og importeres, så temaet kan genbruges til andre klubber. Første opsætning: Manchester United ("United Radar").
Version: 1.2.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: klubradar
*/

/* ==========================================================================
   Grundlag
   ========================================================================== */
:root {
	--kr-brand: #d40c1b;
	--kr-accent: #e7b642;
	--kr-ink: #0f2239;
	--kr-dark: #1a1514;
	--kr-dark-rgb: 26, 21, 20;
	--kr-muted: #586475;
	--kr-bg: #ecf0f6;
	--kr-card: #ffffff;
	--kr-line: #e8e9eb;
	--kr-soft: #e8edf4;
	--kr-header: #fcfbfa;
	--kr-grey: #9aa3af;
	--kr-zone-red: #d93a3a;
	--kr-display: "Archivo", system-ui, sans-serif;
	--kr-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--kr-radius: 16px;
	--kr-w: 1048px;
}

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

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

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--kr-bg);
	color: var(--kr-ink);
	font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p { margin: 0; }
table { border-collapse: collapse; }
button { font: inherit; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 100;
	background: #fff; padding: 8px 12px; border-radius: 8px;
}

.kr-mono { font-family: var(--kr-mono); }
.kr-display {
	font-family: var(--kr-display);
	font-weight: 900;
	font-stretch: 80%;
	letter-spacing: -0.025em;
}

/* ==========================================================================
   Header
   ========================================================================== */
.kr-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--kr-header);
	border-bottom: 1px solid #e5e5e8;
}
.kr-header__in {
	max-width: 1080px;
	margin: 0 auto;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.kr-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}
.kr-logo__badge {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	box-shadow: 0 0 0 2px var(--kr-accent);
	background: var(--kr-brand);
	color: #fff;
	display: grid;
	place-items: center;
	font-family: var(--kr-display);
	font-weight: 900;
	font-size: 12px;
	letter-spacing: -0.01em;
	line-height: 1;
}
.kr-logo__img { width: 36px; height: 36px; margin: -2px; object-fit: contain; }
.kr-logo__text {
	position: relative;
	top: -.5px;
	font-family: var(--kr-display);
	font-weight: 900;
	font-stretch: 80%;
	font-size: 20px;
	letter-spacing: -0.025em;
	text-transform: uppercase;
	line-height: 28px;
}
.kr-nav { display: flex; align-items: center; gap: 4px; }
.kr-nav a {
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	color: var(--kr-muted);
	padding: 6.5px 12px 5.5px;
	border-radius: 999px;
	transition: color .15s, background .15s;
}
.kr-nav a:hover { color: var(--kr-ink); }
.kr-nav a.is-active { background: var(--kr-brand); color: #fff; }
.kr-nav-toggle {
	display: none;
	width: 40px; height: 40px;
	border: 0; background: transparent; color: var(--kr-ink);
	border-radius: 10px;
	cursor: pointer;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.kr-main {
	flex: 1 0 auto;
	width: 100%;
	max-width: var(--kr-w);
	margin: 0 auto;
	padding: 24px 0 80px;
}
.kr-stack > * + * { margin-top: 24px; }
.kr-grid-2 {
	display: grid;
	grid-template-columns: 6fr 5fr;
	gap: 24px;
	align-items: stretch;
}

.kr-card {
	background: var(--kr-card);
	border: 1px solid var(--kr-line);
	border-radius: var(--kr-radius);
	overflow: hidden;
}
.kr-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 49px;
	padding: 0 16px;
	border-bottom: 1px solid var(--kr-line);
}
.kr-card__title {
	font-family: var(--kr-display);
	font-weight: 900;
	font-stretch: 80%;
	letter-spacing: -0.032em;
	font-size: 16px;
	line-height: 24px;
}
.kr-card__link {
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	color: var(--kr-brand);
}
.kr-card__link:hover { text-decoration: underline; }

/* Sidehoved på undersider */
.kr-pagehead { margin: 0 0 24px; padding-top: .5px; }
.kr-kicker {
	font-family: var(--kr-mono);
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--kr-brand);
}
.kr-pagehead h1 {
	font-family: var(--kr-display);
	font-weight: 900;
	font-stretch: 80%;
	letter-spacing: .005em;
	font-size: 36px;
	line-height: 40px;
	margin-top: 3.5px;
}
.kr-pagehead p {
	font-size: 14px;
	line-height: 20px;
	color: var(--kr-muted);
	margin-top: 8px;
}

/* ==========================================================================
   Badges
   ========================================================================== */
.kr-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 18px;
	border-radius: 4px;
	font-family: var(--kr-mono);
	font-size: 10px;
	font-weight: 600;
	line-height: 1;
	flex-shrink: 0;
}
.kr-badge--dark { background: var(--kr-dark); color: #fff; }
.kr-badge--gold { background: var(--kr-accent); color: var(--kr-dark); }
.kr-badge--light { background: var(--kr-soft); color: var(--kr-ink); }
.kr-badge--red { background: var(--kr-brand); color: #fff; }
.kr-badge--grey { background: var(--kr-grey); color: #fff; }

.kr-code {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 24px;
	border-radius: 4px;
	background: var(--kr-soft);
	color: var(--kr-muted);
	font-family: var(--kr-mono);
	font-size: 10px;
	font-weight: 500;
	line-height: 1;
	flex-shrink: 0;
}
.kr-code--club { background: var(--kr-brand); color: #fff; }

/* Klublogo (med kodebadgen som reserve, hvis billedet ikke kan hentes) */
.kr-crest {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 24px;
	flex-shrink: 0;
}
.kr-crest img { width: 24px; height: 24px; object-fit: contain; }
.kr-crest .kr-code { display: none; }
.kr-crest.is-missing img { display: none; }
.kr-crest.is-missing .kr-code { display: inline-flex; }
.kr-crest--lg { width: 40px; height: 40px; }
.kr-crest--lg img { width: 40px; height: 40px; }

.kr-res {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 4px;
	font-family: var(--kr-mono);
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	flex-shrink: 0;
}
.kr-res--win { background: var(--kr-dark); color: #fff; }
.kr-res--loss { background: var(--kr-brand); color: #fff; }
.kr-res--draw { background: var(--kr-soft); color: var(--kr-muted); font-weight: 500; }

/* ==========================================================================
   Kamprækker
   ========================================================================== */
.kr-rows { list-style: none; margin: 0; padding: 0; }
.kr-row {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 44px;
	box-sizing: content-box;
	padding: 0 16px;
	border-top: 1px solid var(--kr-line);
}
.kr-rows > .kr-row:first-child { border-top: 0; }
.kr-row__date {
	padding-top: .5px;
	width: 64px;
	flex-shrink: 0;
	font-family: var(--kr-mono);
	font-size: 12px;
	color: var(--kr-muted);
	white-space: nowrap;
}
.kr-row__hu {
	width: 24px;
	flex-shrink: 0;
	font-family: var(--kr-mono);
	font-size: 12px;
	color: var(--kr-muted);
}
.kr-row__team {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}
.kr-row__name {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.kr-row__round {
	width: 192px;
	flex-shrink: 0;
	font-size: 12px;
	color: var(--kr-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.kr-row__time {
	padding-top: .5px;
	width: 48px;
	flex-shrink: 0;
	text-align: right;
	font-family: var(--kr-mono);
	font-size: 12px;
	color: var(--kr-ink);
}
.kr-row__score {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}
.kr-row__score b {
	font-family: var(--kr-mono);
	font-size: 14px;
	font-weight: 700;
	min-width: 30px;
	text-align: right;
}
.kr-row__tv { display: flex; gap: 4px; flex-shrink: 0; }
.kr-row--compact .kr-row__name { font-size: 15px; font-weight: 600; letter-spacing: -0.03em; }
.kr-row a.kr-row__name:hover { color: var(--kr-brand); }

.kr-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	padding: 12.5px 16px 11.5px;
	border-top: 1px solid var(--kr-line);
	font-size: 12px;
	line-height: 16px;
	color: var(--kr-muted);
}
.kr-legend span { display: inline-flex; align-items: center; gap: 4px; }
.kr-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.kr-dot--dark { background: var(--kr-dark); }
.kr-dot--gold { background: var(--kr-accent); }
.kr-dot--light { background: var(--kr-soft); }
.kr-dot--grey { background: var(--kr-grey); }
.kr-dot--red { background: var(--kr-zone-red); }

/* ==========================================================================
   Forside
   ========================================================================== */
.kr-hero {
	position: relative;
	height: 416px;
	border-radius: 20px;
	overflow: hidden;
	background: var(--kr-dark);
	color: #fff;
}
.kr-hero__img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
}
.kr-hero::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(var(--kr-dark-rgb), .9) 0%, rgba(var(--kr-dark-rgb), .58) 50%, rgba(var(--kr-dark-rgb), 0) 100%);
}
.kr-hero__body {
	position: relative;
	z-index: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 40px;
	max-width: 600px;
}
.kr-hero__kicker {
	font-family: var(--kr-mono);
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--kr-accent);
}
.kr-hero h1 {
	font-family: var(--kr-display);
	font-weight: 900;
	font-stretch: 80%;
	letter-spacing: -0.025em;
	font-size: 60px;
	line-height: 60px;
	margin-top: 8px;
	color: #faf8f5;
}
.kr-hero p {
	font-size: 14px;
	line-height: 20px;
	color: rgba(255, 255, 255, .85);
	margin-top: 17px;
	max-width: 490px;
}
.kr-hero__pill {
	align-self: flex-start;
	margin-top: 24px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .15);
	backdrop-filter: blur(4px);
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	letter-spacing: -0.025em;
	color: #fff;
}

.kr-next { display: flex; flex-direction: column; }
.kr-next__body { padding: 20px 16px; }
.kr-next__comp { font-size: 12px; line-height: 16px; color: var(--kr-muted); }
.kr-empty { padding: 20px 16px; font-size: 12px; line-height: 16px; color: var(--kr-muted); }
.kr-next__teams {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
}
.kr-next__team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kr-next__team--away { justify-content: flex-end; }
.kr-next__team b { font-size: 18px; line-height: 28px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kr-next__time { font-family: var(--kr-mono); font-size: 14px; font-weight: 600; color: var(--kr-muted); }
.kr-next__meta { font-size: 14px; line-height: 20px; color: var(--kr-muted); margin-top: 12px; }

.kr-quick {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}
.kr-quick a {
	display: block;
	position: relative;
	background: var(--kr-card);
	border: 1px solid var(--kr-line);
	border-radius: var(--kr-radius);
	padding: 16px;
	min-height: 78px;
	transition: border-color .15s, transform .15s;
}
.kr-quick a:hover { border-color: var(--kr-brand); }
.kr-quick b { display: block; font-size: 16px; line-height: 24px; font-weight: 800; }
.kr-quick span { display: block; font-size: 12px; line-height: 16px; color: var(--kr-muted); margin-top: 4px; }
.kr-quick .kr-arrow { position: absolute; top: 20px; right: 16px; width: 16px; height: 16px; color: var(--kr-brand); }

/* ==========================================================================
   Tabeller (stillinger, trup, profil)
   ========================================================================== */
.kr-table { width: 100%; font-size: 14px; }
.kr-table th {
	font-size: 11px;
	line-height: 16px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--kr-muted);
	text-align: left;
	padding: 0 6px 2px;
	height: 31.75px;
	white-space: nowrap;
}
.kr-table td {
	padding: 0 6px;
	border-top: 1px solid var(--kr-line);
	white-space: nowrap;
}
.kr-table th:first-child, .kr-table td:first-child { padding-left: 16px; }
.kr-table th:last-child, .kr-table td:last-child { padding-right: 16px; }
.kr-table .r { text-align: right; }
.kr-matches td:first-child { font-size: 12px; }
.kr-table .c { text-align: center; }
.kr-table .num { font-family: var(--kr-mono); font-size: 13px; color: var(--kr-muted); }
.kr-table .num--ink { color: var(--kr-ink); }
.kr-table .strong { font-weight: 800; color: var(--kr-ink); }
.kr-table thead tr { border-bottom: 0; }

/* Stillinger */
.kr-standings { table-layout: fixed; }
.kr-standings col.w-pos { width: 51px; }
.kr-standings col.w-num { width: 20px; }
.kr-standings col.w-goals { width: 98.75px; }
.kr-standings col.w-gd { width: 58.5px; }
.kr-standings col.w-pts { width: 40px; }
.kr-standings th, .kr-standings td { padding-left: 0; padding-right: 0; }
.kr-standings th:first-child, .kr-standings td:first-child { padding-left: 20px; }
.kr-standings th:nth-child(7), .kr-standings td:nth-child(7),
.kr-standings th:nth-child(8), .kr-standings td:nth-child(8) { padding-right: 8px; }
.kr-standings th:nth-child(9), .kr-standings td:nth-child(9) { padding-left: 9.5px; }
.kr-standings th:last-child, .kr-standings td:last-child { padding-right: 16px; }
.kr-standings td { height: 37px; }
.kr-standings .pos { position: relative; font-family: var(--kr-mono); font-size: 13px; }
.kr-standings td.pos::before {
	content: "";
	position: absolute;
	left: 0; top: -1px; bottom: 0;
	width: 4px;
	background: transparent;
}
.kr-standings tr.z-dark td.pos::before { background: var(--kr-dark); }
.kr-standings tr.z-gold td.pos::before { background: var(--kr-accent); }
.kr-standings tr.z-grey td.pos::before { background: var(--kr-grey); }
.kr-standings tr.z-red td.pos::before { background: var(--kr-zone-red); }
.kr-standings tr.is-club td { background: #fce8ea; }
.kr-standings tr.is-club td,
.kr-standings tr.is-club .num { color: var(--kr-ink); font-weight: 700; }
.kr-standings .team { display: flex; align-items: center; gap: 8px; }
.kr-standings .team b { font-size: 14px; font-weight: 600; }
.kr-standings tr.is-club .team b { font-weight: 600; }
.kr-form { display: flex; gap: 2px; }
.kr-form .kr-res { width: 20px; height: 20px; }
.kr-standings .pts { font-family: var(--kr-mono); font-weight: 700; font-size: 13px; color: var(--kr-ink); }

.kr-cups .kr-row { height: 40px; }
.kr-cups .kr-row b { font-size: 14px; font-weight: 600; flex: 1; }
.kr-cups .kr-row span { font-family: var(--kr-mono); font-size: 12px; color: var(--kr-muted); }

/* Trup */
.kr-squad th, .kr-squad td { padding-left: 0; padding-right: 0; }
.kr-squad th:first-child, .kr-squad td:first-child { padding-left: 16px; width: 48.5px; }
.kr-squad th:last-child, .kr-squad td:last-child { padding-right: 16px; }
.kr-squad td { height: 69px; }
.kr-squad .nat { color: var(--kr-muted); }
.kr-squad .kr-player { margin-left: -1px; }
.kr-player { display: flex; align-items: center; gap: 12px; }
.kr-avatar {
	width: 36px; height: 36px;
	border-radius: 50%;
	object-fit: cover;
	background: #cdcdd1;
	border: 1px solid var(--kr-line);
	flex-shrink: 0;
}
.kr-player b { display: block; font-size: 14px; line-height: 20px; font-weight: 600; padding-top: 1px; }
.kr-player > span > span { display: block; font-size: 12px; line-height: 16px; color: var(--kr-muted); }
a.kr-player:hover b { color: var(--kr-brand); }
.kr-table .rating { font-family: var(--kr-mono); font-weight: 700; font-size: 14px; color: var(--kr-ink); }

/* ==========================================================================
   Spillerprofil
   ========================================================================== */
.kr-back {
	display: inline-block;
	font-size: 12px;
	line-height: 20px;
	font-weight: 600;
	color: var(--kr-muted);
	margin: 4px 0 12px;
}
.kr-back:hover { color: var(--kr-ink); }
.kr-pro {
	display: flex;
	align-items: center;
	gap: 24px;
	background: var(--kr-dark);
	color: #fff;
	border-radius: 20px;
	padding: 33px;
	min-height: 224px;
}
.kr-pro__photo {
	width: 158px; height: 158px;
	border-radius: 50%;
	object-fit: cover;
	background: #cdcdd1;
	flex-shrink: 0;
}
.kr-pro__kicker { font-family: var(--kr-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--kr-accent); }
.kr-pro h1 {
	font-family: var(--kr-display);
	font-weight: 900;
	font-stretch: 80%;
	letter-spacing: -0.025em;
	font-size: 48px;
	line-height: 48px;
	margin-top: 4px;
	color: #faf8f5;
}
.kr-pro p { font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .8); margin-top: 8px; }

.kr-stats {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
}
.kr-stat {
	background: var(--kr-card);
	border: 1px solid var(--kr-line);
	border-radius: var(--kr-radius);
	padding: 11.5px 16px 12px;
}
.kr-stat span { display: block; font-size: 11px; line-height: 16px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--kr-muted); }
.kr-stat b { display: block; font-size: 24px; line-height: 32px; font-weight: 900; margin-top: 4.5px; }

.kr-split { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; align-items: stretch; }
.kr-facts { display: grid; grid-template-columns: 1fr 1fr; }
.kr-fact {
	padding: 9px 16px 10px;
	border-bottom: 1px solid var(--kr-line);
	border-right: 1px solid var(--kr-line);
}
.kr-fact:nth-child(2n) { border-right: 0; }
.kr-fact span { display: block; font-size: 11px; line-height: 16px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--kr-muted); }
.kr-fact b { display: block; font-size: 16px; line-height: 24px; font-weight: 600; margin-top: 3.5px; }

.kr-matches td { height: 33px; }
.kr-matches th, .kr-matches td, .kr-comps th, .kr-comps td { padding-left: 0; padding-right: 0; }
.kr-matches th:first-child, .kr-matches td:first-child, .kr-comps th:first-child, .kr-comps td:first-child { padding-left: 16px; }
.kr-matches th:last-child, .kr-matches td:last-child, .kr-comps th:last-child, .kr-comps td:last-child { padding-right: 16px; }
.kr-table td .kr-row__score { display: inline-flex; vertical-align: middle; }
.kr-comps td { height: 37px; }
.kr-table .team { display: flex; align-items: center; gap: 8px; }
.kr-comps .team b, .kr-matches .team b { font-size: 15px; font-weight: 600; letter-spacing: -0.03em; }
.kr-table .sub { color: var(--kr-muted); }
.kr-note { padding: 8.5px 16px; line-height: 16px; border-top: 1px solid var(--kr-line); font-size: 11px; color: var(--kr-muted); }

/* ==========================================================================
   Stadion
   ========================================================================== */
.kr-stadium-hero {
	position: relative;
	height: 384px;
	border-radius: 20px;
	overflow: hidden;
	background: var(--kr-dark);
	color: #fff;
}
.kr-stadium-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kr-stadium-hero::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(0deg, rgba(var(--kr-dark-rgb), .9) 0%, rgba(var(--kr-dark-rgb), .3) 50%, rgba(var(--kr-dark-rgb), 0) 100%);
}
.kr-stadium-hero__body { position: absolute; left: 32px; right: 32px; bottom: 32px; z-index: 1; }
.kr-stadium-grid { grid-template-columns: 10fr 11fr; }
.kr-stadium-hero h1 {
	font-family: var(--kr-display);
	font-weight: 900;
	font-stretch: 80%;
	letter-spacing: -0.025em;
	font-size: 60px;
	line-height: 60px;
	margin-top: 4px;
	color: #faf8f5;
}
.kr-stadium-hero .kr-kicker { color: var(--kr-accent); }
.kr-prose { padding: 16px; font-size: 14px; line-height: 22.75px; color: var(--kr-muted); }
.kr-prose p + p { margin-top: 12px; }
.kr-prose a { color: var(--kr-brand); text-decoration: underline; }
.kr-prose h2, .kr-prose h3 { color: var(--kr-ink); font-size: 16px; margin: 16px 0 6px; }
.kr-stands .kr-stand { padding: 12px 16px; border-top: 1px solid var(--kr-line); }
.kr-stands .kr-stand:first-child { border-top: 0; }
.kr-stand b { display: block; font-size: 14px; line-height: 20px; font-weight: 600; }
.kr-stand span { display: block; font-size: 14px; line-height: 20px; color: var(--kr-muted); }

/* ==========================================================================
   TV
   ========================================================================== */
.kr-tvhero {
	background: var(--kr-dark);
	color: #fff;
	border-radius: 20px;
	padding: 32px;
}
.kr-tvhero__kicker {
	font-size: 14px;
	line-height: 20px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--kr-accent);
}
.kr-tvhero__match { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.kr-tvhero__match b {
	font-family: var(--kr-display);
	font-weight: 900;
	font-stretch: 80%;
	font-size: 32px;
	line-height: 36px;
	color: #faf8f5;
}
.kr-tvhero__vs { width: 12.5px; height: 4px; background: var(--kr-accent); margin: 0 8px; border-radius: 1px; }
.kr-tvhero__meta { font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .75); margin-top: 8px; }
.kr-tvhero__chans { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.kr-tvpill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 16px 4px 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .1);
	font-size: 14px;
	font-weight: 600;
}
.kr-ch {
	width: 24px; height: 24px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--kr-mono);
	font-size: 9px;
	font-weight: 600;
	flex-shrink: 0;
}
.kr-ch--red { background: var(--kr-brand); color: #fff; }
.kr-ch--gold { background: var(--kr-accent); color: var(--kr-dark); }
.kr-ch--dark { background: var(--kr-dark); color: #fff; }
.kr-ch--light { background: transparent; color: var(--kr-ink); }
.kr-ch--grey { background: var(--kr-grey); color: #fff; }
.kr-ch--lg { width: 32px; height: 32px; font-size: 11px; }
.kr-tvhero .kr-ch--light { background: #fff; }

.kr-section-head { margin: 40px 0 20px; }
.kr-section-head h2 {
	font-family: var(--kr-display);
	font-weight: 900;
	font-stretch: 80%;
	font-size: 24px;
	line-height: 32px;
}
.kr-section-head p { font-size: 14px; line-height: 20px; color: var(--kr-muted); margin-top: 4px; }

.kr-tvtable { width: 100%; border-collapse: separate; border-spacing: 0 8px; margin-top: -8px; }
.kr-tvtable th {
	text-align: left;
	font-size: 14px;
	font-weight: 700;
	padding: 12px 16px;
	white-space: nowrap;
}
.kr-tvtable th .kr-badge { margin-right: 8px; vertical-align: -3px; }
.kr-tvtable td {
	background: #e8ecf3;
	padding: 0 16px;
	height: 48px;
	font-size: 14px;
	white-space: nowrap;
}
.kr-tvtable td:first-child { border-radius: 10px 0 0 10px; }
.kr-tvtable td:last-child { border-radius: 0 10px 10px 0; }
.kr-tvtable .chan { display: flex; align-items: center; gap: 12px; }
.kr-tvtable .none { color: var(--kr-muted); }
.kr-tvtable .chk { width: 22px; height: 22px; color: var(--kr-ink); margin-left: 23px; display: block; }
.kr-stack > .kr-tvlist { margin-top: 40px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.kr-footer {
	background: #fdfbfb;
	border-top: 1px solid #e6e5e7;
}
.kr-footer__in {
	max-width: 1048px;
	margin: 0 auto;
	height: 96px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.kr-footer__left { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--kr-muted); }
.kr-footer__left .kr-logo__badge { font-size: 12px; }
.kr-footer nav { display: flex; gap: 20px; font-size: 12px; color: var(--kr-muted); flex-wrap: wrap; }
.kr-footer nav a:hover { color: var(--kr-ink); }

/* ==========================================================================
   Tekstside (Om os, Cookies m.m.): tekst til venstre, sidebar til højre
   ========================================================================== */
.kr-textpage {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 24px;
	align-items: start;
}
.kr-textpage .kr-pagehead h1 { margin-top: 0; }
.kr-article {
	padding: 24px 28px 28px;
	font-size: 16px;
	line-height: 1.7;
	color: #334155;
	overflow-wrap: break-word;
}
.kr-article > * + * { margin-top: 16px; }
.kr-article h2, .kr-article h3, .kr-article h4 {
	font-family: var(--kr-display);
	font-weight: 900;
	font-stretch: 80%;
	letter-spacing: -0.01em;
	color: var(--kr-ink);
	line-height: 1.2;
}
.kr-article h2 { font-size: 24px; margin-top: 32px; }
.kr-article h3 { font-size: 19px; margin-top: 26px; }
.kr-article h4 { font-size: 16px; margin-top: 22px; }
.kr-article > :first-child { margin-top: 0; }
.kr-article a { color: var(--kr-brand); text-decoration: underline; text-underline-offset: 2px; }
.kr-article a:hover { text-decoration-thickness: 2px; }
.kr-article ul, .kr-article ol { padding-left: 22px; margin-bottom: 0; }
.kr-article li + li { margin-top: 6px; }
.kr-article li::marker { color: var(--kr-brand); }
.kr-article strong { color: var(--kr-ink); }
.kr-article blockquote {
	margin-left: 0;
	margin-right: 0;
	padding: 4px 0 4px 18px;
	border-left: 3px solid var(--kr-accent);
	color: var(--kr-ink);
	font-style: italic;
}
.kr-article hr { border: 0; border-top: 1px solid var(--kr-line); margin: 28px 0; }
.kr-article img { border-radius: 10px; }
.kr-article figure { margin-left: 0; margin-right: 0; }
.kr-article figcaption { font-size: 13px; color: var(--kr-muted); margin-top: 6px; }
.kr-article .wp-block-table { overflow-x: auto; }
.kr-article table { width: 100%; font-size: 14px; border-collapse: collapse; }
.kr-article th, .kr-article td { border-bottom: 1px solid var(--kr-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.kr-article th { color: var(--kr-ink); font-weight: 700; background: var(--kr-soft); }
.kr-article code { font-family: var(--kr-mono); font-size: .9em; background: var(--kr-soft); padding: 1px 5px; border-radius: 4px; }
.kr-article .wp-block-button__link { display: inline-block; background: var(--kr-brand); color: #fff; text-decoration: none; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.kr-article .alignleft { float: left; margin: 4px 20px 12px 0; }
.kr-article .alignright { float: right; margin: 4px 0 12px 20px; }
.kr-article .aligncenter { margin-left: auto; margin-right: auto; }
.kr-article::after { content: ""; display: table; clear: both; }
.kr-article__image img { width: 100%; max-height: 420px; object-fit: cover; }
.kr-article__image { margin: 0; }
.kr-article__pages { font-weight: 700; }
.kr-article__updated { padding: 10px 28px; }

.kr-sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: sticky;
	top: 88px;
}
.kr-side-match { padding: 14px 16px 16px; }
.kr-side-match__comp {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	line-height: 16px;
	color: var(--kr-muted);
	margin-bottom: 10px;
	min-width: 0;
}
.kr-side-match__comp span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kr-side-match__team {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 0;
}
.kr-side-match__team b {
	flex: 1;
	min-width: 0;
	font-size: 15px;
	line-height: 22px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.kr-side-match__goals {
	font-family: var(--kr-mono);
	font-size: 16px;
	font-weight: 700;
	min-width: 20px;
	text-align: right;
}
.kr-side-match__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--kr-line);
	font-size: 12px;
	line-height: 16px;
	color: var(--kr-muted);
}
.kr-side-match__live { font-family: var(--kr-mono); font-size: 10px; font-weight: 700; color: #fff; background: var(--kr-brand); border-radius: 4px; padding: 3px 6px; }
.kr-side-match__tv { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kr-side-match__ch {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px 3px 3px;
	border-radius: 999px;
	background: var(--kr-soft);
	font-size: 12px;
	font-weight: 600;
}
.kr-side-match__ch .kr-ch--light { background: #fff; }

.kr-standings.kr-side-table { table-layout: auto; }
.kr-side-table th, .kr-side-table td { padding-left: 4px; padding-right: 4px; }
.kr-side-table th:first-child, .kr-side-table td:first-child { padding-left: 16px; width: 1%; }
.kr-side-table th:last-child, .kr-side-table td:last-child { padding-right: 16px; }
.kr-side-table td { height: 36px; }
.kr-side-table .team b { display: block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.kr-side-table .kr-crest, .kr-side-table .kr-code { width: 28px; }

/* Standardsider */
.kr-page .kr-card { padding: 24px; }
.kr-page .kr-prose { padding: 0; }

/* ==========================================================================
   Responsivt
   ========================================================================== */
@media (max-width: 1120px) {
	.kr-header__in, .kr-main, .kr-footer__in { padding-left: 16px; padding-right: 16px; max-width: none; }
	.kr-main { padding-top: 16px; padding-bottom: 48px; }
}
@media (max-width: 900px) {
	.kr-textpage { grid-template-columns: 1fr; }
	.kr-sidebar { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
	.kr-standings { table-layout: auto; }
	.kr-standings col { width: auto !important; }
	.kr-grid-2, .kr-split { grid-template-columns: 1fr; }
	.kr-quick { grid-template-columns: 1fr 1fr; }
	.kr-stats { grid-template-columns: repeat(3, 1fr); }
	.kr-row__round { width: auto; flex: 0 1 140px; }
	.kr-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 760px) {
	.kr-article { padding: 20px 18px 22px; font-size: 15.5px; }
	.kr-article__updated { padding: 10px 18px; }
	.kr-article .alignleft, .kr-article .alignright { float: none; margin: 0; }
	.kr-nav-toggle { display: grid; place-items: center; }
	.kr-nav {
		display: none;
		position: absolute;
		top: 64px; left: 0; right: 0;
		flex-direction: column;
		align-items: stretch;
		padding: 8px 12px 12px;
		background: var(--kr-header);
		border-bottom: 1px solid #e5e5e8;
	}
	.kr-header.is-open .kr-nav { display: flex; }
	.kr-nav a { padding: 10px 12px; font-size: 15px; }
	.kr-hero { height: auto; min-height: 380px; }
	.kr-hero::after { background: linear-gradient(90deg, rgba(var(--kr-dark-rgb), .88), rgba(var(--kr-dark-rgb), .55)); }
	.kr-hero__body { padding: 32px 20px; }
	.kr-hero h1 { font-size: 42px; line-height: 42px; }
	.kr-pagehead h1 { font-size: 30px; line-height: 34px; }
	.kr-row { gap: 8px; padding: 0 12px; }
	.kr-row__date { width: 52px; font-size: 11px; }
	.kr-row__hu { display: none; }
	.kr-row__round { display: none; }
	.kr-next__teams { align-items: flex-start; }
	.kr-next__team { flex-direction: column; align-items: flex-start; gap: 6px; flex: 1; }
	.kr-next__team--away { align-items: flex-end; text-align: right; }
	.kr-next__team--away .kr-code { order: -1; }
	.kr-next__team b { font-size: 16px; line-height: 20px; white-space: normal; }
	.kr-next__time { padding-top: 4px; }
	.kr-squad th, .kr-squad td, .kr-matches th, .kr-matches td, .kr-comps th, .kr-comps td { padding-left: 5px; padding-right: 5px; }
	.kr-squad th:first-child, .kr-squad td:first-child, .kr-matches th:first-child, .kr-matches td:first-child, .kr-comps th:first-child, .kr-comps td:first-child { padding-left: 12px; }
	.kr-squad th:last-child, .kr-squad td:last-child, .kr-matches th:last-child, .kr-matches td:last-child, .kr-comps th:last-child, .kr-comps td:last-child { padding-right: 12px; }
	.kr-tvhero__vs { display: none; }
	.kr-pro { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
	.kr-pro__photo { width: 112px; height: 112px; }
	.kr-pro h1 { font-size: 38px; line-height: 40px; }
	.kr-stats { grid-template-columns: repeat(2, 1fr); }
	.kr-stadium-hero { height: 300px; }
	.kr-stadium-hero__body { left: 20px; right: 20px; bottom: 20px; }
	.kr-stadium-hero h1 { font-size: 38px; line-height: 40px; }
	.kr-tvhero { padding: 24px 20px; }
	.kr-tvhero__match b { font-size: 24px; line-height: 30px; }
	.kr-footer__in { height: auto; padding-top: 24px; padding-bottom: 24px; flex-direction: column; align-items: flex-start; }
	.kr-table .hide-sm { display: none; }
}
@media (max-width: 480px) {
	.kr-quick { grid-template-columns: 1fr; }
	.kr-facts { grid-template-columns: 1fr; }
	.kr-fact { border-right: 0; }
		.kr-logo__text { font-size: 18px; }
}
