/*
Theme Name: Tabellen 2026
Theme URI: https://tabellen.se
Author: Dennis Andersson
Description: A theme for Tabellen.se
Requires at least: 5.3
Tested up to: 6.3
Requires PHP: 5.6
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tabellen
*/
/* =================================== RESETS =================================== */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, menu, nav, output, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
}
*,
*::before,
*::after{
	box-sizing:border-box;
}
/* =================================== FONTS =================================== */
@font-face {
	font-family: 'Poppins';
	src: url('assets/font/Poppins-Light.ttf');
	font-weight: 300;
	font-display: swap;
}
@font-face {
	font-family: 'Poppins';
	src: url('assets/font/Poppins-Regular.ttf');
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: 'Poppins';
	src: url('assets/font/Poppins-Medium.ttf');
	font-weight: 500;
	font-display: swap;
}
@font-face {
	font-family: 'Poppins';
	src: url('assets/font/Poppins-SemiBold.ttf');
	font-weight: 600;
	font-display: swap;
}
@font-face {
	font-family: 'Poppins';
	src: url('assets/font/Poppins-Bold.ttf');
	font-weight: 700;
	font-display: swap;
}
/* =================================== COLOR VARIABLES =================================== */
:root {
	color-scheme: only light;
	
	--primary-h: 220;
	--primary-s: 40%;
	--primary-l: 70%;
	--primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
	
	--football-h: 156;
	--football-s: 100%;
	--football-l: 44%;
	--football: hsl(var(--football-h), var(--football-s), var(--football-l));
	--football-ultra-light: hsl(var(--football-h), 79%, 95%);
	--football-light: hsl(var(--football-h), 50%, 75%);
	--football-trans-ultra-light: hsla(var(--football-h), var(--football-s), var(--football-l), 0.1);
	--football-trans-light: hsla(var(--football-h), var(--football-s), var(--football-l), 0.2);
	
	--hockey-h: 193;
	--hockey-s: 100%;
	--hockey-l: 60%;
	--hockey: hsl(var(--hockey-h), var(--hockey-s), var(--hockey-l));
	--hockey-ultra-light: hsl(var(--hockey-h), 79%, 95%);
	--hockey-light: hsl(var(--hockey-h), 79%, 88%);
	--hockey-trans-ultra-light: hsla(var(--hockey-h), var(--hockey-s), var(--hockey-l), 0.1);
	--hockey-trans-light: hsla(var(--hockey-h), var(--hockey-s), var(--hockey-l), 0.2);
	
	--handball-h: 330;
	--handball-s: 100%;
	--handball-l: 70%;
	--handball: hsl(var(--handball-h), var(--handball-s), var(--handball-l));
	--handball-ultra-light: hsl(var(--handball-h), 79%, 95%);
	--handball-light: hsl(var(--handball-h), 79%, 88%);
	--handball-trans-ultra-light: hsla(var(--handball-h), var(--handball-s), var(--handball-l), 0.1);
	--handball-trans-light: hsla(var(--handball-h), var(--handball-s), var(--handball-l), 0.2);
	
	--basketball-h: 17;
	--basketball-s: 100%;
	--basketball-l: 65%;
	--basketball: hsl(var(--basketball-h), var(--basketball-s), var(--basketball-l));
	--basketball-ultra-light: hsl(var(--basketball-h), 79%, 95%);
	--basketball-light: hsl(var(--basketball-h), 79%, 88%);
	--basketball-trans-ultra-light: hsla(var(--basketball-h), var(--basketball-s), var(--basketball-l), 0.1);
	--basketball-trans-light: hsla(var(--basketball-h), var(--basketball-s), var(--basketball-l), 0.2);
	
	--tennis-h: 60;
	--tennis-s: 85%;
	--tennis-l: 60%;
	--tennis: hsl(var(--tennis-h), var(--tennis-s), var(--tennis-l));
	--tennis-ultra-light: hsl(var(--tennis-h), 79%, 95%);
	--tennis-light: hsl(var(--tennis-h), 79%, 88%);
	--tennis-trans-ultra-light: hsla(var(--tennis-h), var(--tennis-s), var(--tennis-l), 0.1);
	--tennis-trans-light: hsla(var(--tennis-h), var(--tennis-s), var(--tennis-l), 0.2);
	
	--americanfootball-h: 31;
	--americanfootball-s: 70%;
	--americanfootball-l: 60%;
	--americanfootball: hsl(var(--americanfootball-h), var(--americanfootball-s), var(--americanfootball-l));
	--americanfootball-ultra-light: hsl(var(--americanfootball-h), 79%, 95%);
	--americanfootball-light: hsl(var(--americanfootball-h), 79%, 88%);
	--americanfootball-trans-ultra-light: hsla(var(--americanfootball-h), var(--americanfootball-s), var(--americanfootball-l), 0.1);
	--americanfootball-trans-light: hsla(var(--americanfootball-h), var(--americanfootball-s), var(--americanfootball-l), 0.2);
	
	--base-h: 220;
	--base-s: 100%;
	--base-l: 12%;
	--base: hsl(var(--base-h), var(--base-s), var(--base-l));
	--base-trans: hsla(var(--base-h), var(--base-s), var(--base-l), 0);
	--base-trans-ultra-light: hsla(var(--base-h), var(--base-s), var(--base-l), 0.05);
	--base-trans-light: hsla(var(--base-h), var(--base-s), var(--base-l), 0.1);
	--base-trans-medium: hsla(var(--base-h), var(--base-s), var(--base-l), 0.25);
	--base-trans-dark: hsla(var(--base-h), var(--base-s), var(--base-l), 0.5);
	--base-trans-ultra-dark: hsla(var(--base-h), var(--base-s), var(--base-l), 0.75);
	
	--base-ultra-light: hsl(var(--base-h), 30%, 95%);
	--base-ultra-light-trans: hsla(var(--base-h), 30%, 95%, 0.9);
	
	--base-light: hsl(var(--base-h), 25%, 87%);
	--base-light-trans: hsla(var(--base-h), 30%, 91%, 0.9);
	
	--base-medium: hsl(var(--base-h), 13%, 56%);
	--base-medium-trans: hsla(var(--base-h), 13%, 56%, 0.9);
	
	--base-dark: hsl(var(--base-h), 32%, 29%);
	--base-dark-trans: hsla(var(--base-h), 32%, 29%, 0.9);
	
	--base-ultra-dark: hsl(var(--base-h), 52%, 21%);
	--base-ultra-dark-trans: hsla(var(--base-h), 52%, 21%, 0.9);
	
	--accent: hsl(0, 100%, 60%);
	--accent-light: hsl(0, 100%, 85%);
	--accent-ultra-light: hsl(0, 100%, 95%);
	
	--white: hsl(0, 0%, 100%);
	--white-trans-50: hsla(0, 0%, 100%, 0.5);
	--white-trans-20: hsla(0, 0%, 100%, 0.2);
	
	--promotion-1-h: 150;
	--promotion-1-s: 75%;
	--promotion-1-l: 50%;
	--promotion-1: hsl(var(--promotion-1-h), var(--promotion-1-s), var(--promotion-1-l));
	--promotion-1-light: hsla(var(--promotion-1-h), var(--promotion-1-s), var(--promotion-1-l), 0.1);
	--promotion-1-medium: hsla(var(--promotion-1-h), var(--promotion-1-s), var(--promotion-1-l), 0.5);
	
	--promotion-2-h: 200;
	--promotion-2-s: 75%;
	--promotion-2-l: 50%;
	--promotion-2: hsl(var(--promotion-2-h), var(--promotion-2-s), var(--promotion-2-l));
	--promotion-2-light: hsla(var(--promotion-2-h), var(--promotion-2-s), var(--promotion-2-l), 0.1);
	--promotion-2-medium: hsla(var(--promotion-2-h), var(--promotion-2-s), var(--promotion-2-l), 0.5);

	--promotion-3-h: 250;
	--promotion-3-s: 75%;
	--promotion-3-l: 50%;
	--promotion-3: hsl(var(--promotion-3-h), var(--promotion-3-s), var(--promotion-3-l));
	--promotion-3-light: hsla(var(--promotion-3-h), var(--promotion-3-s), var(--promotion-3-l), 0.1);
	--promotion-3-medium: hsla(var(--promotion-3-h), var(--promotion-3-s), var(--promotion-3-l), 0.5);

	/* The renderer (common StandingsListRenderer) uses promotion-1..4 before relegation-1/2. With four
	   descriptions the last is usually relegation, so promotion-4 is red. */
	--promotion-4-h: 0;
	--promotion-4-s: 75%;
	--promotion-4-l: 50%;
	--promotion-4: hsl(var(--promotion-4-h), var(--promotion-4-s), var(--promotion-4-l));
	--promotion-4-light: hsla(var(--promotion-4-h), var(--promotion-4-s), var(--promotion-4-l), 0.1);
	--promotion-4-medium: hsla(var(--promotion-4-h), var(--promotion-4-s), var(--promotion-4-l), 0.5);
	
	--relegation-1-h: 40;
	--relegation-1-s: 75%;
	--relegation-1-l: 50%;
	--relegation-1: hsl(var(--relegation-1-h), var(--relegation-1-s), var(--relegation-1-l));
	--relegation-1-light: hsla(var(--relegation-1-h), var(--relegation-1-s), var(--relegation-1-l), 0.1);
	--relegation-1-medium: hsla(var(--relegation-1-h), var(--relegation-1-s), var(--relegation-1-l), 0.5);
	
	--relegation-2-h: 0;
	--relegation-2-s: 75%;
	--relegation-2-l: 50%;
	--relegation-2: hsl(var(--relegation-2-h), var(--relegation-2-s), var(--relegation-2-l));
	--relegation-2-light: hsla(var(--relegation-2-h), var(--relegation-2-s), var(--relegation-2-l), 0.1);
	--relegation-2-medium: hsla(var(--relegation-2-h), var(--relegation-2-s), var(--relegation-2-l), 0.5);
	
	--relegation-3-h: 0;
	--relegation-3-s: 75%;
	--relegation-3-l: 25%;
	--relegation-3: hsl(var(--relegation-3-h), var(--relegation-3-s), var(--relegation-3-l));
	--relegation-3-light: hsla(var(--relegation-3-h), var(--relegation-3-s), var(--relegation-3-l), 0.1);
	--relegation-3-medium: hsla(var(--relegation-3-h), var(--relegation-3-s), var(--relegation-3-l), 0.5);
}
.post-type-football,
.sport-item--football .sport-item__link:focus,
.sport-item--football .sport-item__link:hover {
	--primary: var(--football);
}
.post-type-hockey,
.sport-item--hockey .sport-item__link:focus,
.sport-item--hockey .sport-item__link:hover {
	--primary: var(--hockey);
}
.post-type-handball,
.sport-item--handball .sport-item__link:focus,
.sport-item--handball .sport-item__link:hover {
	--primary: var(--handball);
}
.post-type-basketball,
.sport-item--basketball .sport-item__link:focus,
.sport-item--basketball .sport-item__link:hover {
	--primary: var(--basketball);
}
.post-type-tennis,
.sport-item--tennis .sport-item__link:focus,
.sport-item--tennis .sport-item__link:hover {
	--primary: var(--tennis);
}
.post-type-americanfootball,
.sport-item--americanfootball .sport-item__link:focus,
.sport-item--americanfootball .sport-item__link:hover {
	--primary: var(--americanfootball);
}
/* =================================== FONT VARIABLES =================================== */
:root {
/* 
	--fs-xxs: clamp(0.5rem, 0.37vw + 0.39rem, 0.625rem);
	--fs-xs: clamp(0.625rem, 0.55vw + 0.4rem, 0.75rem);
	--fs-s: clamp(0.75rem, 0.74vw + 0.4rem, 0.88rem);
	--fs-m: clamp(0.875rem, 0.74vw + 0.53rem, 1rem);
	--fs-l: clamp(1rem, 1.1vw + 0.54rem, 1.25rem);
	--fs-xl: clamp(1.25rem, 2.206vw + 0.588rem, 2rem);
	--fs-xxl: clamp(1.375rem, 3.68vw + 0.15rem, 2.5rem);
 */
	/* Input 1rem or 1px */
	--unit: 1rem;

	
	--fs-xxl-min: 1.375;
	--fs-xxl-max: 2.5;
	
	--fs-xl-min: 1.25;
	--fs-xl-max: 2;
	
	--fs-l-min: 1;
	--fs-l-max: 1.25;
	
	--fs-m-min: 0.85;
	--fs-m-max: 1;
	
	--fs-s-min: 0.7;
	--fs-s-max: 0.875;
	
	--fs-xs-min: 0.625;
	--fs-xs-max: 0.75;
	
	--fs-xxs-min: 0.5;
	--fs-xxs-max: 0.625;

	--space-xs-min: 0.25;
	--space-xs-max: 0.375;
	
	--space-s-min: 0.5;
	--space-s-max: 0.75;
	
	--space-m-min: 0.75;
	--space-m-max: 1.5;
	
	--space-l-min: 1.5;
	--space-l-max: 3;
	
	--space-xl-min: 2;
	--space-xl-max: 3.5;
		
	--section-padding-x-min: var(--space-m-min);
	--section-padding-x-max: var(--space-l-max);
		
	--header-height-min: 3.5;
	--header-height-max: 5;

	--radius-s-min: 0.25;
	--radius-s-max: 0.5;
	
	--radius-m-min: 0.5;
	--radius-m-max: 1;
	
	/* Input without the units */
	--min-viewport: 30;
	--max-viewport: calc(61.25 + var(--section-padding-x-max) * 2);
		
	/* Auto-calcs */
	--viewport-range: calc(var(--max-viewport) - var(--min-viewport));
	
	/* CSS variable: --fs-xxl */
	--fs-xxl-font-range: calc(var(--fs-xxl-max) - var(--fs-xxl-min));
	--fs-xxl-fluid-slope: calc(var(--fs-xxl-font-range) / var(--viewport-range));
	--fs-xxl-fluid-neg-offset: calc(-1 * var(--min-viewport) * var(--fs-xxl-fluid-slope));
	--fs-xxl-fluid-base: calc(var(--fs-xxl-fluid-neg-offset) + var(--fs-xxl-min));
	--fs-xxl: clamp( calc(var(--fs-xxl-min) * var(--unit)), calc(var(--fs-xxl-fluid-base) * var(--unit) + var(--fs-xxl-fluid-slope) * 100vw), calc(var(--fs-xxl-max) * var(--unit)));
	
	/* CSS variable: --fs-xl */
	--fs-xl-font-range: calc(var(--fs-xl-max) - var(--fs-xl-min));
	--fs-xl-fluid-slope: calc(var(--fs-xl-font-range) / var(--viewport-range));
	--fs-xl-fluid-neg-offset: calc(-1 * var(--min-viewport) * var(--fs-xl-fluid-slope));
	--fs-xl-fluid-base: calc(var(--fs-xl-fluid-neg-offset) + var(--fs-xl-min));
	--fs-xl: clamp( calc(var(--fs-xl-min) * var(--unit)), calc(var(--fs-xl-fluid-base) * var(--unit) + var(--fs-xl-fluid-slope) * 100vw), calc(var(--fs-xl-max) * var(--unit)));
	
	/* CSS variable: --fs-l */
	--fs-l-font-range: calc(var(--fs-l-max) - var(--fs-l-min));
	--fs-l-fluid-slope: calc(var(--fs-l-font-range) / var(--viewport-range));
	--fs-l-fluid-neg-offset: calc(-1 * var(--min-viewport) * var(--fs-l-fluid-slope));
	--fs-l-fluid-base: calc(var(--fs-l-fluid-neg-offset) + var(--fs-l-min));
	--fs-l: clamp( calc(var(--fs-l-min) * var(--unit)), calc(var(--fs-l-fluid-base) * var(--unit) + var(--fs-l-fluid-slope) * 100vw), calc(var(--fs-l-max) * var(--unit)));
	
	/* CSS variable: --fs-m */
	--fs-m-font-range: calc(var(--fs-m-max) - var(--fs-m-min));
	--fs-m-fluid-slope: calc(var(--fs-m-font-range) / var(--viewport-range));
	--fs-m-fluid-neg-offset: calc(-1 * var(--min-viewport) * var(--fs-m-fluid-slope));
	--fs-m-fluid-base: calc(var(--fs-m-fluid-neg-offset) + var(--fs-m-min));
	--fs-m: clamp( calc(var(--fs-m-min) * var(--unit)), calc(var(--fs-m-fluid-base) * var(--unit) + var(--fs-m-fluid-slope) * 100vw), calc(var(--fs-m-max) * var(--unit)));
	
	/* CSS variable: --fs-s */
	--fs-s-font-range: calc(var(--fs-s-max) - var(--fs-s-min));
	--fs-s-fluid-slope: calc(var(--fs-s-font-range) / var(--viewport-range));
	--fs-s-fluid-neg-offset: calc(-1 * var(--min-viewport) * var(--fs-s-fluid-slope));
	--fs-s-fluid-base: calc(var(--fs-s-fluid-neg-offset) + var(--fs-s-min));
	--fs-s: clamp( calc(var(--fs-s-min) * var(--unit)), calc(var(--fs-s-fluid-base) * var(--unit) + var(--fs-s-fluid-slope) * 100vw), calc(var(--fs-s-max) * var(--unit)));
	
	/* CSS variable: --fs-xs */
	--fs-xs-font-range: calc(var(--fs-xs-max) - var(--fs-xs-min));
	--fs-xs-fluid-slope: calc(var(--fs-xs-font-range) / var(--viewport-range));
	--fs-xs-fluid-neg-offset: calc(-1 * var(--min-viewport) * var(--fs-xs-fluid-slope));
	--fs-xs-fluid-base: calc(var(--fs-xs-fluid-neg-offset) + var(--fs-xs-min));
	--fs-xs: clamp( calc(var(--fs-xs-min) * var(--unit)), calc(var(--fs-xs-fluid-base) * var(--unit) + var(--fs-xs-fluid-slope) * 100vw), calc(var(--fs-xs-max) * var(--unit)));
	
	/* CSS variable: --fs-xxs */
	--fs-xxs-font-range: calc(var(--fs-xxs-max) - var(--fs-xxs-min));
	--fs-xxs-fluid-slope: calc(var(--fs-xxs-font-range) / var(--viewport-range));
	--fs-xxs-fluid-neg-offset: calc(-1 * var(--min-viewport) * var(--fs-xxs-fluid-slope));
	--fs-xxs-fluid-base: calc(var(--fs-xxs-fluid-neg-offset) + var(--fs-xxs-min));
	--fs-xxs: clamp( calc(var(--fs-xxs-min) * var(--unit)), calc(var(--fs-xxs-fluid-base) * var(--unit) + var(--fs-xxs-fluid-slope) * 100vw), calc(var(--fs-xxs-max) * var(--unit)));

	/* CSS variable: --space-xs */
	--space-xs-font-range: calc(var(--space-xs-max) - var(--space-xs-min));
	--space-xs-fluid-slope: calc(var(--space-xs-font-range) / var(--viewport-range));
	--space-xs-fluid-neg-offset: calc(-1 * var(--min-viewport) * var(--space-xs-fluid-slope));
	--space-xs-fluid-base: calc(var(--space-xs-fluid-neg-offset) + var(--space-xs-min));
	--space-xs: clamp( calc(var(--space-xs-min) * var(--unit)), calc(var(--space-xs-fluid-base) * var(--unit) + var(--space-xs-fluid-slope) * 100vw), calc(var(--space-xs-max) * var(--unit)));

	/* CSS variable: --space-s */
	--space-s-font-range: calc(var(--space-s-max) - var(--space-s-min));
	--space-s-fluid-slope: calc(var(--space-s-font-range) / var(--viewport-range));
	--space-s-fluid-neg-offset: calc(-1 * var(--min-viewport) * var(--space-s-fluid-slope));
	--space-s-fluid-base: calc(var(--space-s-fluid-neg-offset) + var(--space-s-min));
	--space-s: clamp( calc(var(--space-s-min) * var(--unit)), calc(var(--space-s-fluid-base) * var(--unit) + var(--space-s-fluid-slope) * 100vw), calc(var(--space-s-max) * var(--unit)));

	/* CSS variable: --space-m */
	--space-m-font-range: calc(var(--space-m-max) - var(--space-m-min));
	--space-m-fluid-slope: calc(var(--space-m-font-range) / var(--viewport-range));
	--space-m-fluid-neg-offset: calc(-1 * var(--min-viewport) * var(--space-m-fluid-slope));
	--space-m-fluid-base: calc(var(--space-m-fluid-neg-offset) + var(--space-m-min));
	--space-m: clamp( calc(var(--space-m-min) * var(--unit)), calc(var(--space-m-fluid-base) * var(--unit) + var(--space-m-fluid-slope) * 100vw), calc(var(--space-m-max) * var(--unit)));

	/* CSS variable: --space-l */
	--space-l-font-range: calc(var(--space-l-max) - var(--space-l-min));
	--space-l-fluid-slope: calc(var(--space-l-font-range) / var(--viewport-range));
	--space-l-fluid-neg-offset: calc(-1 * var(--min-viewport) * var(--space-l-fluid-slope));
	--space-l-fluid-base: calc(var(--space-l-fluid-neg-offset) + var(--space-l-min));
	--space-l: clamp( calc(var(--space-l-min) * var(--unit)), calc(var(--space-l-fluid-base) * var(--unit) + var(--space-l-fluid-slope) * 100vw), calc(var(--space-l-max) * var(--unit)));

	/* CSS variable: --space-xl */
	--space-xl-font-range: calc(var(--space-xl-max) - var(--space-xl-min));
	--space-xl-fluid-slope: calc(var(--space-xl-font-range) / var(--viewport-range));
	--space-xl-fluid-neg-offset: calc(-1 * var(--min-viewport) * var(--space-xl-fluid-slope));
	--space-xl-fluid-base: calc(var(--space-xl-fluid-neg-offset) + var(--space-xl-min));
	--space-xl: clamp( calc(var(--space-xl-min) * var(--unit)), calc(var(--space-xl-fluid-base) * var(--unit) + var(--space-xl-fluid-slope) * 100vw), calc(var(--space-xl-max) * var(--unit)));

	/* CSS variable: --section-padding-x */
	--section-padding-x-font-range: calc(var(--section-padding-x-max) - var(--section-padding-x-min));
	--section-padding-x-fluid-slope: calc(var(--section-padding-x-font-range) / var(--viewport-range));
	--section-padding-x-fluid-neg-offset: calc(-1 * var(--min-viewport) * var(--section-padding-x-fluid-slope));
	--section-padding-x-fluid-base: calc(var(--section-padding-x-fluid-neg-offset) + var(--section-padding-x-min));
	--section-padding-x: clamp( calc(var(--section-padding-x-min) * var(--unit)), calc(var(--section-padding-x-fluid-base) * var(--unit) + var(--section-padding-x-fluid-slope) * 100vw), calc(var(--section-padding-x-max) * var(--unit)));

	/* CSS variable: --header-height */
	--header-height-font-range: calc(var(--header-height-max) - var(--header-height-min));
	--header-height-fluid-slope: calc(var(--header-height-font-range) / var(--viewport-range));
	--header-height-fluid-neg-offset: calc(-1 * var(--min-viewport) * var(--header-height-fluid-slope));
	--header-height-fluid-base: calc(var(--header-height-fluid-neg-offset) + var(--header-height-min));
	--header-height: clamp( calc(var(--header-height-min) * var(--unit)), calc(var(--header-height-fluid-base) * var(--unit) + var(--header-height-fluid-slope) * 100vw), calc(var(--header-height-max) * var(--unit)));

	/* CSS variable: --radius-s */
	--radius-s-font-range: calc(var(--radius-s-max) - var(--radius-s-min));
	--radius-s-fluid-slope: calc(var(--radius-s-font-range) / var(--viewport-range));
	--radius-s-fluid-neg-offset: calc(-1 * var(--min-viewport) * var(--radius-s-fluid-slope));
	--radius-s-fluid-base: calc(var(--radius-s-fluid-neg-offset) + var(--radius-s-min));
	--radius-s: clamp( calc(var(--radius-s-min) * var(--unit)), calc(var(--radius-s-fluid-base) * var(--unit) + var(--radius-s-fluid-slope) * 100vw), calc(var(--radius-s-max) * var(--unit)));

	/* CSS variable: --radius-m */
	--radius-m-font-range: calc(var(--radius-m-max) - var(--radius-m-min));
	--radius-m-fluid-slope: calc(var(--radius-m-font-range) / var(--viewport-range));
	--radius-m-fluid-neg-offset: calc(-1 * var(--min-viewport) * var(--radius-m-fluid-slope));
	--radius-m-fluid-base: calc(var(--radius-m-fluid-neg-offset) + var(--radius-m-min));
	--radius-m: clamp( calc(var(--radius-m-min) * var(--unit)), calc(var(--radius-m-fluid-base) * var(--unit) + var(--radius-m-fluid-slope) * 100vw), calc(var(--radius-m-max) * var(--unit)));


	--fw-light: 300;
	--fw-regular: 400;
	--fw-medium: 500;
	--fw-semibold: 600;
	--fw-bold: 700;
}
/* =================================== SPACE VARIABLES =================================== */
:root {
	/* --section-padding-x: clamp(0.81rem, 13.89vw + -5.51rem, 3rem); */
	/* --header-height: clamp(3.5rem, 3vw + 2.6rem, 5rem); */
	/* --hero-small-height: calc(var(--fs-s) + var(--fs-xs) + var(--fs-xs) * 0.75 + var(--btn-padding) * 2 + var(--space-s) * 2); */
	--toc-height: calc(var(--fs-s) * 3.5);
	--hero-small-height: var(--toc-height);

/* 
	--radius-s: clamp(0.25rem, 0.74vw + 0.03rem, 0.5rem);
	--radius-m: clamp(0.5rem, 1.47vw + 0.06rem, 1rem);
 */
	
	--box-shadow-m: var(--base-trans-light) 0 var(--fs-xs) var(--fs-s) 0;
	
	--btn-padding: 0.5625em;

	--content-width: 980px;
	--sidebar-width: 300px;
	--main-gap: var(--space-l);
	--container-width: calc(var(--content-width) + var(--main-gap) + var(--sidebar-width));
	--sticky-top: 0px;
}
/* =================================== ADMIN BAR =================================== */
.admin-bar {
	--sticky-top: 32px;
}
@media screen and (max-width: 600px) {
	.admin-bar {
		--sticky-top: 0px;
	}
}
@media screen and (min-width: 601px) and (max-width: 782px) {
	.admin-bar {
		--sticky-top: 46px;
	}
}
/* =================================== FOCUS =================================== */
* {
	-webkit-tap-highlight-color: transparent;
}
:root {
	--focus-width: 2px;
	--focus-offset: 2px;
}
:focus {
	--focus-color: var(--primary);

	outline-style: solid;
	outline-color: var(--focus-color);
	outline-width: var(--focus-width);
	outline-offset: var(--focus-offset);
}
/* =================================== DOCUMENT =================================== */
html {
	font-family: 'Poppins', sans-serif;
	/* scroll-behavior: smooth; */
}
body {
	background-color: var(--base-ultra-light);
	color: var(--base);
	font-size: var(--fs-m);
	line-height: 1.375;
	overflow-x: clip;
}
img {
	display: block;
	max-width: 100%;
}
a {
	text-decoration: none;
	color: var(--primary);
}
button {
	font-family: inherit;
	background: transparent;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: var(--fs-m);
	cursor: pointer;
}
.btn {
	--btn-color: var(--base);
	--btn-text-color: var(--white);

	display: inline-flex;
	justify-self: flex-start;
	align-items: center;
	gap: 0.5em;
	padding: var(--btn-padding) var(--space-m);
	background-color: var(--btn-color);
	color: var(--btn-text-color);
	font-size: var(--fs-m);
	font-weight: var(--fw-medium);
	line-height: 1;
	white-space: nowrap;
	border: 1px solid var(--btn-color);
	border-radius: var(--radius-s);
}
.btn--primary {
	--btn-color: var(--primary);
	--btn-text-color: var(--base);
}
.btn--base {
	--btn-color: var(--base);
	--btn-text-color: var(--white);
}
.btn--base-ultra-light {
	--btn-color: var(--base-ultra-light);
	--btn-text-color: var(--base);
}
.btn--base-light {
	--btn-color: var(--base-light);
	--btn-text-color: var(--base);
}
.btn--base-medium {
	--btn-color: var(--base-medium);
	--btn-text-color: var(--white);
}
.btn--base-dark {
	--btn-color: var(--base-dark);
	--btn-text-color: var(--white);
}
.btn--base-ultra-dark {
	--btn-color: var(--base-ultra-dark);
	--btn-text-color: var(--white);
}
.btn--white {
	--btn-color: var(--white);
	--btn-text-color: var(--base);
}
.btn--outline {
	--btn-color: transparent;
	--btn-text-color: var(--btn-color);
}
.btn--back::before {
	--arrow-color: var(--btn-text-color);
	--arrow-width: calc(var(--fs-xs) * 0.625);
	--arrow-weight: 2px;

	content: '';
	display: block;
	width: var(--arrow-width);
	height: var(--arrow-width);
	border-right: var(--arrow-weight) solid var(--arrow-color);
	border-bottom: var(--arrow-weight) solid var(--arrow-color);
	transform: rotate(135deg);
}
.btn--load-more {
	justify-self: center;
}
.btn:hover {
	--focus-color: var(--primary);

	outline-style: solid;
	outline-color: var(--focus-color);
	outline-width: var(--focus-width);
	outline-offset: var(--focus-offset);
}
.btn--outline:hover {
	background-color: var(--primary);
	color: var(--base);
	border-color: var(--primary);
}
.btn--white:hover {
	background-color: var(--primary);
	color: var(--base);
	border-color: var(--primary);
}

.scroll-nav {
	--btn-color: var(--base);
	--arrow-color: var(--white);
	
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	background-color: var(--btn-color);
	height: calc(var(--fs-m) + (var(--btn-padding) * 2) + 2px);
	width: calc(var(--fs-m) + (var(--btn-padding) * 2) + 2px);
	border-radius: var(--radius-s);
}
.scroll-nav::after {
	--arrow-width: calc(var(--fs-xs) * 0.625);
	--arrow-weight: 2px;

	content: '';
	display: block;
	width: var(--arrow-width);
	height: var(--arrow-width);
	border-right: var(--arrow-weight) solid var(--arrow-color);
	border-bottom: var(--arrow-weight) solid var(--arrow-color);
	transform: rotate(-45deg);
}
.scroll-nav--left::after {
	transform: rotate(135deg);
}
.scroll-nav--right::after {
	transform: rotate(-45deg);
}
.scroll-nav--base {
	--btn-color: var(--base);
	--arrow-color: var(--white);
}
.scroll-nav--base-dark {
	--btn-color: var(--base-dark);
	--arrow-color: var(--white);
}
.scroll-nav--base-medium {
	--btn-color: var(--base-medium);
	--arrow-color: var(--white);
}
.scroll-nav--base-light {
	--btn-color: var(--base-light);
	--arrow-color: var(--base);
}
.scroll-nav--base-ultra-light {
	--btn-color: var(--base-ultra-light);
	--arrow-color: var(--base);
}
.scroll-nav--white {
	--btn-color: var(--white);
	--arrow-color: var(--base);
}
.scroll-nav--primary {
	--btn-color: var(--primary);
	--arrow-color: var(--base);
}
.scroll-nav--outline {
	--arrow-color: var(--btn-color);
	
	background-color: transparent;
	border: 1px solid var(--btn-color);
}
.scroll-nav:not(.disabled):hover {
	outline-style: solid;
	outline-color: var(--primary);
	outline-width: var(--focus-width);
	outline-offset: var(--focus-offset);
}
.scroll-nav.disabled {
	cursor: auto;
	opacity: 0.4;
}

.country {
	display: flex;
	align-items: center;
}
.country::before {
	--image-size: 24px;
	
    content: '';
    flex-shrink: 0;
    width: var(--image-size);
    height: var(--image-size);
    margin-right: 0.75em;
    background-size: auto 100%;
    background-repeat: no-repeat;
}

.skip-link {
	position: fixed;
	top: calc(var(--sticky-top) + 1rem);
	left: 1rem;
	margin-top: calc(0px - var(--header-height));
	transition: transform ease-in 250ms;
	z-index: 4;
}
.skip-link:focus {
	transform: translateY(var(--header-height));
}
.sr-only {
	position: absolute !important;
	inline-size: 1px !important;
	block-size: 1px !important;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}
.container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
}
/* =================================== SITE HEADER =================================== */
.site-header {
	position: -webkit-sticky;
	position: sticky;
	top: var(--sticky-top);
	padding: 0 var(--section-padding-x);
	background-color: var(--base);
	color: var(--white);
	z-index: 3;
}
.site-header__container {
	display: flex;
	gap: var(--space-s);
	justify-content: space-between;
	min-height: var(--header-height);
}
.site-header .site-logo {
	flex-shrink: 0;
}
.site-header .sport-nav {
	margin-right: auto;
}
.site-header .main-nav {
	flex-shrink: 0;
	margin-left: auto;
	padding: var(--space-s) 0;
}
@media (max-width: 767px) {
/* 
	.site-header .sport-nav {
		position: fixed;
		height: var(--header-height);
		bottom: 0;
		left: 0;
		right: 0;
		background-color: var(--base);
		z-index: 3;
	}
 */

	.site-header {
		padding: 0;
		top: calc(var(--sticky-top) - var(--header-height));
	}
	.site-header__container {
		display: grid;
		gap: 0;
		grid-template-columns: var(--section-padding-x) minmax(0, 1fr) auto var(--section-padding-x);
		grid-template-rows: var(--header-height) var(--header-height);
	}
	.site-header .site-logo {
		grid-row: 2;
		grid-column: 2;
	}
	.site-header .main-nav,
	.site-header__button {
		grid-row: 2;
		grid-column: 3;
	}
	.site-header .sport-nav {
		grid-row: 1;
		grid-column: 1 / -1;
		width: 100%;
		border-bottom: 1px solid var(--base-dark);
	}

}
@media (min-width: 768px) {
/* 
	.site-header:has(~ #main-content .hero--fixed.hero--small) {
		transform: translateY(calc(0px - var(--header-height)));
		transition: all 300ms ease-in;
	}
	.site-header.slide-down {
		transform: translateY(0) !important;
	}
 */
	.site-header .sport-nav {
		margin-left: var(--space-l);
	}
}
/* =================================== SITE LOGO =================================== */
.site-logo {
	--logo-height: 28px;
	
	display: flex;
	align-items: center;
}
.site-logo__link {
	display: block;
}
.site-logo__image {
	display: block;
	height: var(--logo-height);
	width: auto;
}
@media (min-width: 768px) and (max-width: 1024px) {
	.site-logo {
		--logo-height: 32px;
	}
}
@media (min-width: 1025px) {
	.site-logo {
		--logo-height: 36px;
	}
}
/* =================================== SPORT NAV =================================== */
.sport-nav {
	display: grid;
}
.sport-list {
	--number-of-sports: 6;
	--gap: var(--space-s);

	display: grid;
	grid-template-columns: repeat(var(--number-of-sports), minmax(0, 1fr));
	gap: var(--gap);
	list-style: none;
	padding: var(--space-s) 0;
}
.sport-item__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	background-color: var(--base-dark);
	color: var(--base-light);
	font-size: var(--fs-xxs);
	font-weight: var(--fw-regular);
	border-radius: var(--radius-s);
	padding: var(--space-xs) 0.75em;
}
.sport-item__link[aria-current="true"] {
	background-color: var(--base);
	color: var(--primary);
}
.sport-item__link:hover {
	--focus-color: var(--primary);

	outline-style: solid;
	outline-color: var(--focus-color);
	outline-width: var(--focus-width);
	outline-offset: var(--focus-offset);
}
.sport-item__icon {
	display: block;
	flex-shrink: 0;
	width: var(--icon-size);
	height: var(--icon-size);
	background-image: url('assets/img/sport-icons-24x24-02.png');
	background-size: auto 200%;
	background-repeat: no-repeat;
}
.sport-item--football .sport-item__icon {
	background-position: 0 0;
}
.sport-item--hockey .sport-item__icon {
	background-position: 20% 0;
}
.sport-item--handball .sport-item__icon {
	background-position: 40% 0;
}
.sport-item--basketball .sport-item__icon {
	background-position: 60% 0;
}
.sport-item--tennis .sport-item__icon {
	background-position: 80% 0;
}
.sport-item--americanfootball .sport-item__icon {
	background-position: 100% 0;
}
.sport-item__link[aria-current="true"] .sport-item__icon {
	background-position-y: 100%;
}
.sport-item__title {
	width: 100%;
	margin-top: var(--space-xs);
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
@media (max-width: 767px) {
	.sport-list {
		--gap: var(--space-xs);
		
		padding: var(--gap);
	}
	.sport-item {
		--icon-size: 20px;
	}
	.sport-item__link {
		padding: var(--space-xs);
		gap: 0.25em;
	}
}
@media (min-width: 768px) and (max-width: 1024px) {
	.sport-item {
		--icon-size: 22px;
	}
	.sport-item__link {
		padding: var(--space-xs);
	}
}
@media (min-width: 1025px) {
	.sport-item {
		--icon-size: 24px;
	}
	.sport-item__link {
		min-width: 72px;
	}
}
/* =================================== HEADER BUTTON =================================== */
.site-header__button {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	background: var(--base-dark);
	border: none;
	margin: var(--space-s) 0;
	padding: 0 var(--space-m);
	font-weight: 400;
	border-radius: var(--radius-s);
	box-sizing: content-box;
	cursor: pointer;
	color: #fff;
	font-size: var(--fs-s);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--white);
}
.site-header__button-label {
	display: flex;
}
.site-header__button--back::before {
	--arrow-width: var(--fs-xxs);
	--arrow-weight: 2px;
	--arrow-color: var(--white);
	
	content: '';
	display: block;
	width: var(--arrow-width);
	height: var(--arrow-width);
	border-right: var(--arrow-weight) solid var(--arrow-color);
	border-bottom: var(--arrow-weight) solid var(--arrow-color);
	transform: rotate(-225deg);
	margin-right: 0.5em;
}
.site-header__button:hover {
	outline-style: solid;
	outline-color: var(--primary);
	outline-width: var(--focus-width);
	outline-offset: var(--focus-offset);
}
/* =================================== MAIN CONTENT =================================== */
#main-content {
	scroll-margin-top: calc(var(--sticky-top) + var(--header-height));
}
/* =================================== HERO =================================== */
.hero {
	display: grid;
	align-content: flex-end;
	position: relative;
	background-color: var(--base);
	color: var(--white);
	padding: 0 var(--section-padding-x);
	overflow: hidden;
	isolation: isolate;
}
.hero::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	right: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(0deg, var(--base-trans) 0%, var(--base-ultra-dark) 100%);
}
@supports (-webkit-mask-image: none) {
	.hero::after {
		content: '';
		position: absolute;
		right: 0;
		bottom: 0;
		width: var(--background-size);
		height: calc(var(--background-size) * 1.5);
		background-color: var(--primary);
		-webkit-mask-image: url('assets/img/tabellen-pattern.svg');
		mask-image: url('assets/img/tabellen-pattern.svg');
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		-webkit-mask-position: center;
		mask-position: center;
		-webkit-mask-size: contain;
		mask-size: contain;
		transform: translate(var(--background-position), 25%);
		z-index: -1;
	}
}
.hero__container {
	position: relative;
	display: grid;
}
@media (max-width: 767px) {
	.hero {
		--background-size: 400px;
		--background-position: 47.5%;
	}
}
@media (min-width: 768px) and (max-width: 1024px) {
	.hero {
		--background-size: 600px;
		--background-position: 45%;
	}
}
@media (min-width: 1025px) {
	.hero {
		--background-size: 780px;
		--background-position: 28%;
	}
}
	/* =================================== HERO TITLE =================================== */
	.hero__title {
		font-size: var(--title-size);
		font-weight: var(--title-weight);
		line-height: 1.25;
		text-overflow: ellipsis;
		overflow: hidden;
	}
	/* =================================== HERO IMAGE =================================== */
	.hero__image-wrapper {
		display: flex;
		justify-content: center;
		align-items: center;
		width: var(--image-wrapper-size);
		height: var(--image-wrapper-size);
		background-color: var(--image-wrapper-color);
		border-radius: var(--image-border-radius);
	}
	.hero__image {
		width: var(--image-size);
		height: var(--image-size);
		object-fit: contain;
	}
	/* =================================== HERO META =================================== */
	.hero__meta {
		display: flex;
		align-items: center;
		list-style: none;
		font-size: var(--fs-s);
		line-height: 24px;
		white-space: nowrap;
		overflow: hidden;
	}
	.hero__meta > * {
		flex-shrink: 0;
	}
	.hero__meta > .country {
		flex-shrink: 1;
		overflow: hidden;
	}
	.hero__meta > .country > span {
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.hero__meta > *::after {
		content: ' | ';
		flex-shrink: 0;
		display: inline-block;
		margin: 0 0.5em;
	}
	.hero__meta > *:last-child::after {
		display: none;
	}
	/* =================================== HERO TAB NAV =================================== */
	.hero__tab-nav .tab-nav__list {
		flex-wrap: nowrap;
	}
	@media (max-width: 767px) {
		.hero__tab-nav {
			margin: calc(0px - var(--space-s)) 0;
		}
		.hero__tab-nav .tab-nav__list {
			overflow: auto;
			padding: var(--space-s) var(--section-padding-x);
		}
	}
/* =================================== HERO LARGE =================================== */
.hero--large {
	--image-size: clamp(3rem, 9.56vw + 0.13rem, 6.25rem);
	--image-wrapper-size: calc(var(--image-size) * 1.6);
	--image-border-radius: var(--radius-m);
	--title-size: var(--fs-xxl);
	--title-weight: 700;
}
.hero--large .menu-toggle {
	display: none;
}
@media (max-width: 767px) {
	.hero--large .hero__container {
		padding: var(--space-l) 0;
	}
}
@media (min-width: 768px) {
	.hero--large .hero__container {
		padding: var(--space-xl) 0;
	}
}
/* =================================== HERO DEFAULT LARGE =================================== */
@media (max-width: 767px) {
	.hero--default.hero--large {
		padding: 0;
	}
	.hero--default.hero--large .hero__container {
		grid-template-columns: var(--section-padding-x) auto var(--space-m) minmax(0, 1fr) var(--section-padding-x);
		grid-template-rows: auto minmax(0, 1fr) auto;
	}
	.hero--default.hero--large .hero__image-wrapper {
		grid-row: 1 / 3;
		grid-column: 2 / 3;
	}
	.hero--default.hero--large .hero__title {
		grid-row: 2 / 3;
		grid-column: 4 / 5;
	}
	.hero--default.hero--large .hero__meta {
		grid-row: 1 / 2;
		grid-column: 4 / 5;
	}
	.hero--default.hero--large .hero__tab-nav {
		grid-row: 3 / 4;
		grid-column: 1 / -1;
		margin-top: calc(var(--space-l) - var(--space-s));
	}
}
@media (min-width: 768px) {
	.hero--default.hero--large .hero__container {
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-rows: auto minmax(0, 1fr) auto;
		column-gap: var(--space-l);
		row-gap: var(--space-s);
	}
	.hero--default.hero--large .hero__image-wrapper {
		grid-row: 1 / -1;
		grid-column: 1 / 2;
	}
	.hero--default.hero--large .hero__title {
		grid-row: 2 / 3;
		grid-column: 2 / -1;
	}
	.hero--default.hero--large .hero__meta {
		grid-row: 1 / 2;
		grid-column: 2 / -1;
	}
	.hero--default.hero--large .hero__tab-nav {
		grid-row: 3 / 4;
		grid-column: 2 / -1;
	}
}
/* =================================== HERO FIXED =================================== */
.hero--fixed {
	position: sticky;
	top: calc(var(--sticky-top) - var(--hero-height) + var(--header-height) + var(--hero-small-height));
	z-index: 2;
}
/* 
.hero--fixed.hero--small .hero__container {
	animation: heroFixed ease-in 200ms forwards;
}
@keyframes heroFixed {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
 */
/* =================================== HERO SMALL =================================== */
.hero--small {
	--hero-small-icon-size: clamp(1.5rem, 1.47vw + 1.06rem, 2rem);
	--image-size: 100%;
	--image-wrapper-size: calc(var(--hero-small-height) - var(--space-s) * 2);
	--image-border-radius: 0;
	--title-size: var(--fs-s);
	--title-weight: 600;

	height: var(--hero-height); /* Value of custom property is set by javascript */
	background-color: var(--white);
	color: var(--base);
	border-bottom: 1px solid var(--base-light);
	/* transition: all 200ms ease-in; */
}
.hero--small::before,
.hero--small::after {
	display: none;
}
.hero--small .hero__container > * {
	display: none;
}
.hero--small .hero__container {
	align-items: center;
	height: var(--hero-small-height);
}
.hero--small .hero__title {
	font-size: var(--fs-m);
	align-items: center;
}
.hero--small .tab-nav__list {
	flex-wrap: nowrap;
}
.hero--small .tab-nav__link {
	font-size: var(--fs-xs);
}
.hero--small .menu-toggle {
	display: flex;
	grid-row: 1;
	grid-column: -1;
}
/* =================================== HERO LEAGUE SMALL =================================== */
.hero--league.hero--small .hero__title,
.hero--league.hero--small .hero__image-wrapper {
	display: flex;
}

@media (max-width: 767px) {
	.hero--league.hero--small {
		padding: 0;
	}
	.hero--league.hero--small .hero__image-wrapper {
		z-index: 2;
	}
	.hero--league.hero--small .hero__tab-nav .tab-nav__list {
		padding-left: var(--space-m);
	}
	.hero--league.hero--small .hero__container {
		grid-template-rows: minmax(0, 1fr) auto;
		grid-template-columns: var(--section-padding-x) auto var(--space-m) minmax(0, 1fr) auto var(--section-padding-x);
	}
	.hero--league.hero--small .hero__image-wrapper {
		grid-row: 1 / 3;
		grid-column: 2 / 3;
	}
	.hero--league.hero--small .hero__title {
		grid-row: 1 / 2;
		grid-column: 4 / 5;
	}
	.hero--league.hero--small .hero__tab-nav {
		grid-row: 2 / 3;
		grid-column: 3 / 6;
	}
	.hero--league.hero--small .menu-toggle {
		grid-row: 1 / 2;
		grid-column: 5 / 6;
	}
}
@media (min-width: 768px) {
	.hero--league.hero--small .hero__container {
		grid-template-rows: minmax(0, 1fr) auto;
		grid-template-columns: auto minmax(0, 1fr);
		column-gap: var(--space-m);
	}
	.hero--league.hero--small .hero__image-wrapper {
		grid-row: 1 / 3;
		grid-column: 1 / 2;
	}
	.hero--league.hero--small .hero__title {
		grid-row: 1 / 2;
		grid-column: 2 / 3;
	}
	.hero--league.hero--small .hero__tab-nav {
		grid-row: 2 / 3;
		grid-column: 2 / 3;
	}
}
/* =================================== HERO LEAGUE =================================== */
.hero--league {
	--image-wrapper-color: var(--white);
}
/* =================================== HERO START =================================== */
.hero--start {
	--image-wrapper-color: var(--base);
}

/* =================================== TAB NAV =================================== */
.tab-nav {
	display: flex;
	align-items: center;
}
.tab-nav__container {
	display: grid;
	gap: var(--space-s);
}
.tab-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-s);
	list-style: none;
}
.tab-nav__list::-webkit-scrollbar {
	display: none;
}
.tab-nav__item > .country {
	display: flex;
	align-items: center;
	padding-top: 0;
	padding-bottom: 0;
	padding-left: var(--space-s);
	padding-right: var(--space-s);
	height: calc(var(--fs-m) + (var(--btn-padding) * 2) + 2px);
}
.tab-nav__item > .country::before {
	content: '';
	display: block;
	width: 24px;
	height: 24px;
	background-size: auto 100%;
	margin-right: var(--space-xs);
}
.tab-nav__link {
	background-color: var(--base-dark);
	border-color: transparent;
}
.tab-nav__link.active {
	background-color: var(--primary);
	color: var(--base);
}
.tab-nav--full {
	background: var(--base);
	padding: 0 var(--section-padding-x);
	border-top: 1px solid var(--base-dark);
}
.tab-nav--full .tab-nav__list {
	padding: var(--space-s) 0;
}
@media (max-width: 1024px) {
	.tab-nav--full {
		padding: 0;
	}
	.tab-nav--full .tab-nav__list {
		flex-wrap: nowrap;
		overflow-x: auto;
	}
	.tab-nav--full .tab-nav__item:first-child {
		margin-left: var(--section-padding-x);
	}
	.tab-nav--full .tab-nav__item:last-child {
		margin-right: var(--section-padding-x);
	}
}
/* =================================== FEATURED SECTION =================================== */
.featured-section {
	background: var(--base);
	color: var(--white);
	padding: var(--space-m) 0 var(--space-s);
	border-top: 1px solid var(--base-dark);
}
.featured-section__container {
	position: relative;
	display: grid;
	max-width: calc(var(--container-width) + (var(--section-padding-x) * 2));
	margin: 0 auto;
}
.featured-section__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 var(--section-padding-x);
}
.featured-section__heading {
	font-size: var(--fs-l);
	font-weight: var(--fw-semibold);
	text-transform: uppercase;
}
.featured-section__nav {
	display: flex;
	gap: var(--space-xs);
}
.featured-section__grid {
	padding: var(--space-m) var(--section-padding-x);
}
@media (max-width: 767px) {
	.featured-section__nav-link {
		display: none;
	}
}
/* =================================== FEATURED GRID =================================== */
.featured-grid {
	--featured-grid-items: 3;
	--featured-grid-gap: var(--space-s);

	display: grid;
	gap: var(--featured-grid-gap);
}
.featured-grid:not(.featured-grid--scrollable) {
	grid-template-columns: repeat(var(--featured-grid-items), minmax(0, 1fr));
}
.featured-grid--scrollable {
	grid-auto-flow: column;
	grid-auto-columns: calc(100% / var(--featured-grid-items) - var(--featured-grid-gap) + (var(--featured-grid-gap) / var(--featured-grid-items)));
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scroll-snap-type: inline mandatory;
}
.featured-grid--scrollable::-webkit-scrollbar {
	display: none;
}
.featured-grid--scrollable {
	-webkit-mask-image: linear-gradient(to right, transparent, black var(--section-padding-x), black calc(100% - var(--section-padding-x)), transparent);
	mask-image: linear-gradient(to right, transparent, black var(--section-padding-x), black calc(100% - var(--section-padding-x)), transparent);
}
/* FEATURED GRID MODIFIERS */
@media (max-width: 767px) {
	.featured-grid--scrollable {
		--featured-grid-items: 3.5;
	}
}
@media (min-width: 768px) and (max-width: 1024px) {
	.featured-grid--scrollable {
		--featured-grid-items: 5;
	}
}
@media (min-width: 1025px) and (max-width: 1279px) {
	.featured-grid--scrollable {
		--featured-grid-items: 6;
	}
}
@media (min-width: 1280px) {
	.featured-grid--scrollable {
		--featured-grid-items: 7;
	}
}
/* =================================== FEATURED CARD =================================== */
.featured-card {
	--background-color: var(--white);
	--text-color: var(--base);
	--image-size: clamp(2.5rem, 5.88vw + 0.74rem, 4.5rem);
	--padding: var(--space-m);
	--gap: var(--space-s);
	
	position: relative;
	display: grid;
	align-content: start;
	gap: var(--gap);
	border-radius: var(--radius-s);
	scroll-snap-align: center;
}
.featured-card__image-wrapper {
	display: flex;
	justify-content: center;
	order: -1;
	background-color: var(--background-color);
	padding: calc(var(--image-size) * 0.375);
	border-radius: var(--radius-s);
	transition: transform 125ms ease-in;
}
.featured-card__image {
	width: var(--image-size);
	height: var(--image-size);
	object-fit: contain;
}
.featured-card__link {
	color: var(--text-color);
	align-self: center;
	font-size: var(--fs-xs);
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
}
.featured-card__link::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}
.featured-card__link:focus {
	outline: none;
}
.featured-card:hover .featured-card__image-wrapper,
.featured-card:focus-within .featured-card__image-wrapper {
	--focus-color: var(--primary);

	background-color: var(--white);
	outline-style: solid;
	outline-color: var(--focus-color);
	outline-width: var(--focus-width);
	outline-offset: var(--focus-offset);
}

/* FEATURED CARD MODIFIERS */
.featured-grid--small .featured-card,
.featured-card--small {
	--image-size: clamp(2rem, 5.88vw + 0.74rem, 3rem);
	--padding: var(--space-s);
	--gap: var(--space-xs);
}
.featured-grid--light .featured-card,
.featured-card--light {
	--background-color: var(--base-ultra-light);
	--text-color: var(--base-light);
}
.featured-grid--light .featured-card:hover,
.featured-card--light:hover {
	--background-color: var(--white);
	--text-color: var(--white);
}
.featured-section .featured-card:hover .featured-card__image-wrapper {
	transform: scale(1.05);
}

/* =================================== LINK LIST =================================== */
.link-list {
	--font-size: var(--fs-m);
	--padding: 0.875em 1.25em;
	--gap: var(--space-s);
	--background-color: var(--white);
	--text-color: var(--base);

	display: grid;
	align-content: start;
	gap: var(--gap);
	list-style: none;
}
.link-list__item {
	display: grid;
}
.link-list__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75em;
	padding: var(--padding);
	font-size: var(--font-size);
	line-height: 24px;
	border-radius: var(--radius-s);
	background-color: var(--background-color);
	color: var(--text-color);
	overflow: hidden;
}
.link-list__link::after {
	--arrow-width: calc(1em * 0.425);
	--arrow-weight: 2px;
	--arrow-color: var(--text-color);

	content: '';
	flex-shrink: 0;
	display: block;
	width: var(--arrow-width);
	height: var(--arrow-width);
	border-right: var(--arrow-weight) solid var(--arrow-color);
	border-bottom: var(--arrow-weight) solid var(--arrow-color);
	transform: rotate(-45deg);
}
.link-list__title {
	flex-grow: 1;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
/* LINK LIST MODIFIERS */
.link-list--small {
	--font-size: var(--fs-s);
	--padding: 0.625em 1.25em;
	--gap: var(--space-xs);
}
.link-list--base {
	--background-color: var(--base);
	--text-color: var(--white);
}
.link-list--base-ultra-light {
	--background-color: var(--base-ultra-light);
}
.link-list--base-light {
	--background-color: var(--base-light);
}
.link-list--base-dark {
	--background-color: var(--base-dark);
	--text-color: var(--white);
}
.link-list--base-ultra-dark {
	--background-color: var(--base-ultra-dark);
	--text-color: var(--white);
}
.link-list__link:hover {
	--focus-color: var(--primary);

	outline-style: solid;
	outline-color: var(--focus-color);
	outline-width: var(--focus-width);
	outline-offset: var(--focus-offset);
}
/* =================================== ACCORDION LIST =================================== */
.accordion-list {
	--background-color: var(--white);
	--text-color: var(--base);
	--transition-duration: 300ms;
	
	display: grid;
	align-content: start;
	gap: var(--space-s);
	list-style: none;
}
.accordion-list__item {
	display: grid;
	align-content: start;
	align-self: start;
	background-color: var(--background-color);
	border-radius: var(--radius-s);
	overflow: hidden;
}
.accordion-list__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-align: left;
	line-height: 24px;
	padding: 0.875em 1.25em;
	color: var(--text-color);
	border-radius: var(--radius-s);
	overflow: hidden;
	outline-style: none;
}
.accordion-list__toggle::after {
	--arrow-width: calc(var(--fs-xs) * 0.625);
	--arrow-weight: 2px;

	content: '';
	flex-shrink: 0;
	width: var(--arrow-width);
	height: var(--arrow-width);
	border-right: var(--arrow-weight) solid var(--text-color);
	border-bottom: var(--arrow-weight) solid var(--text-color);
	transition: transform ease-out 125ms;
}
.accordion-list__toggle::after {
	transform: rotate(45deg);
}
.accordion-list__title {
	flex-grow: 1;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.accordion-list__content > * {
	padding: var(--space-s);
	padding-top: 0;
}
	
/* ACCORDION OPEN AND CLOSE */
.accordion-list__content {
	display: none;
	height: 0;
	transition: height var(--transition-duration) ease;
}
.accordion-list__content > * {
	opacity: 0;
	transition: opacity var(--transition-duration) ease;
}
.accordion-list__toggle[aria-expanded="true"] + .accordion-list__content > * {
	opacity: 1;
}
.no-js .accordion-list__content {
	display: block;
	height: auto;
}
.no-js .accordion-list__content > * {
	opacity: 1;
}

.accordion-list__item:has(.accordion-list__toggle:hover),
.accordion-list__item:focus-within {
	outline-style: solid;
	outline-color: var(--primary);
	outline-width: var(--focus-width);
	outline-offset: var(--focus-offset);
}
.accordion-list__item:has(.accordion-list__toggle[aria-expanded="true"]) {
	outline-color: var(--base-trans-medium);
}
.accordion-list__item:has(.accordion-list__toggle[aria-expanded="true"]:hover) {
	outline-color: var(--primary);
}
/* =================================== WRAPPER =================================== */
.wrapper {
	--wrapper-columns:
		minmax(var(--section-padding-x), 1fr) 
		minmax(auto, var(--content-width)) 
		minmax(0, var(--main-gap))
		minmax(0, var(--sidebar-width)) 
		minmax(var(--section-padding-x), 1fr);

	display: grid;
	grid-template-columns: var(--wrapper-columns);
	padding: var(--space-l) 0;
	isolation: isolate;
}
.wrapper > * {
	grid-column: 2 / -2;
}
@media (max-width: 767px) {
	.wrapper .sidebar {
		margin-top: var(--space-xl);
	}
}
@media (min-width: 768px) and (max-width: 1023px) {

}
@media (min-width: 1024px) and (max-width: 1423px) {

}
@media (min-width: 1424px) {
	.wrapper .content {
		grid-column: 2 / 3;
	}
	.wrapper .sidebar {
		grid-column: 4 / 5;
	}
}
/* =================================== CONTENT =================================== */
.content {
	display: flex;
	flex-direction: column;
	row-gap: var(--space-l);
}
.toc-nav + .content {
	margin-top: var(--space-l);
}
/* =================================== TOC NAV =================================== */
.toc-nav {
	display: grid;
	grid-template-columns: var(--wrapper-columns);
	grid-column: 1 / -1;
	position: sticky;
	top: calc(var(--sticky-top) + var(--header-height));
	z-index: 2;
	width: 100%;
	overflow-x: auto;
	height: var(--toc-height);
	margin-top: calc(0px - var(--space-l));
	font-size: var(--fs-s);
	background-color: var(--base-ultra-light);
}
.hero--fixed ~ .wrapper .toc-nav {
	top: calc(var(--sticky-top) + var(--header-height) + var(--hero-small-height));
}
.toc-nav::-webkit-scrollbar {
	display: none;
}
.toc-nav__list {
	grid-column: 2 / -2;
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	list-style: none;
	box-shadow: inset 0 -1px 0 var(--base-light);
}
.toc-nav__item {
	display: flex;
}
.toc-nav__link {
	background-color: var(--white);
	color: var(--base);
	border-color: var(--base-light);
	font-size: var(--fs-s);
}
.toc-nav__list:has(.active) .toc-nav__link {
	color: var(--base-medium);
}
/* 
@media (pointer: coarse) {
	.toc-nav__link:hover {
		outline: none;
	}
}
 */
.toc-nav__link:hover,
.toc-nav__link:focus {
	--focus-color: var(--base-medium);
	
	outline-offset: calc(1px - var(--focus-offset));
}
.toc-nav__link.active {
	--focus-color: var(--primary);
	
	color: var(--base) !important;
	outline-style: solid;
	outline-color: var(--focus-color);
	outline-width: var(--focus-width);
	outline-offset: calc(1px - var(--focus-offset));
}
/* 
.toc-nav__link {
	display: flex;
	align-items: center;
	color: var(--base);
	font-weight: var(--fw-regular);
	white-space: nowrap;
}
.toc-nav__link:hover {
	box-shadow: inset 0 -4px var(--base-medium);
	outline: none;
}
.toc-nav__link.active,
.toc-nav__link:focus {
	box-shadow: inset 0 -4px var(--primary);
	outline: none;
}
.toc-nav__link:focus:hover {
	box-shadow: inset 0 -4px var(--base);
}
 */
@media screen and (min-width: 1424px) {
	.toc-nav__list {
		grid-column: 2 / 3;
	}
}
@media screen and (min-width: 481px) {
	.toc-nav {
		background-color: transparent;
	}
	.toc-nav__list {
		background-color: var(--base-ultra-light);
	}
}
.no-js .toc-nav {
	position: relative;
	top: 0 !important;
}
/* =================================== SECTION =================================== */
.section {
	:has(> &) {
		container-type: inline-size;
	}

	display: grid;
	align-content: start;
	gap: var(--space-l);
}
.section:focus {
	outline: none;
}
.section {
	scroll-margin-top: calc(var(--sticky-top) + var(--toc-height) + var(--space-l));
}
.hero--fixed ~ .wrapper section {
	scroll-margin-top: calc(var(--sticky-top) + var(--header-height) + var(--hero-small-height) + var(--toc-height) + var(--space-l));
}
.section:has(.pr:first-child) {
	scroll-margin-top: calc(var(--sticky-top) + var(--header-height) + var(--hero-small-height) + var(--toc-height) + var(--space-l));
	
	@media screen and (max-width: 688px) {
		scroll-margin-top: calc(var(--sticky-top) + var(--header-height) + var(--hero-small-height) + var(--toc-height) + var(--space-l) - 320px);
	}
	@media screen and (min-width: 689px) and (max-width: 1075px) {
		scroll-margin-top: calc(var(--sticky-top) + var(--header-height) + var(--hero-small-height) + var(--toc-height) + var(--space-l) - 360px);
	}
	@media screen and (min-width: 1076px) {
		scroll-margin-top: calc(var(--sticky-top) + var(--header-height) + var(--hero-small-height) + var(--toc-height) + var(--space-l) - 240px);
	}
}
.section__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--space-m);
}
.section__title {
	font-size: var(--fs-xl);
	font-weight: var(--fw-semibold);
	line-height: 1;
	white-space: nowrap;
}
.section__block {
	display: grid;
	gap: var(--space-m);
}
.section__block-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.section__block-title {
	position: relative;
	display: flex;
	align-items: center;
	font-size: var(--fs-m);
	font-weight: var(--fw-medium);
	line-height: 1;
	scroll-margin-top: calc(var(--sticky-top) + var(--header-height) + var(--toc-height) + var(--space-l));
}
.section__block-link {
	color: var(--base);
}
.section__block-link:hover {
	text-decoration: underline;
}
.section__block-link::after {
    --arrow-width: 0.5em;
    --arrow-weight: 0.125em;
    --arrow-color: var(--base);
    content: '';
    flex-shrink: 0;
    display: block;
    width: var(--arrow-width);
    height: var(--arrow-width);
    border-right: var(--arrow-weight) solid var(--arrow-color);
    border-bottom: var(--arrow-weight) solid var(--arrow-color);
    transform: rotate(-45deg);
    margin-left: 0.5em;
}
.timestamp {
	font-size: var(--fs-xxs);
	text-align: right;
	text-wrap: balance;
}
.show-more-btn {
	justify-self: center;
}
/* =================================== DAY NAV =================================== */
.day-nav {
	display: flex;
	gap: var(--space-s);
	align-items: center;
	font-size: var(--fs-s);
	line-height: 1;
}
.day-nav__link {
	border: 1px solid var(--base-light);
}
/* =================================== MATCH CARD =================================== */
.match-list {
	:has(> &) {
		container-type: inline-size;
	}
	
	display: grid;
	gap: var(--space-s);
	list-style: none;

	@container (min-width: 800px) {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
	@container (min-width: 1200px) {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
	}
}
.match-card {
	--match-card-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr);
	--match-card-rows: minmax(calc(var(--description-size) * 2.5), 1fr) auto minmax(calc(var(--description-size) * 2.5), 1fr);
	--logo-size: clamp(1.5rem, 1.47vw + 1.06rem, 2rem);
	--description-size: var(--fs-xxs);

	container-type: inline-size;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	grid-template-rows: var(--match-card-rows);
	color: var(--base);
	text-align: center;
	line-height: 1;
	background-color: var(--white);
	border-radius: var(--radius-m);
}
.match-card:last-child {
	border-bottom: none;
}
.match-card__teams {
	display: grid;
	align-items: center;
	grid-template-columns: var(--match-card-columns);
	grid-template-rows: var(--match-card-rows);
	border-radius: var(--radius-m);
	color: var(--base);
	border: 1px solid var(--base-light);
	font-size: var(--fs-s);
	grid-column: 1 / -1;
	grid-row: 1 / -1;
	z-index: 1;
}
.match-card__teams:hover {
	--focus-color: var(--primary);

	outline-style: solid;
	outline-color: var(--focus-color);
	outline-width: var(--focus-width);
	outline-offset: var(--focus-offset);
}
.match-card__team {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5em;
	grid-row: 1 / -1;
	padding: 1.5em 0;
	line-height: 1;
	overflow-wrap: break-word;
	word-wrap: break-word;
	hyphens: auto;
	text-wrap: balance;
}
.match-card__team::before {
	content: '';
	flex-grow: 0;
	flex-shrink: 0;
	display: block;
	width: var(--logo-size);
	height: var(--logo-size);
	background-image: url('https://theme.tabellen.se/img/team-logos/_no-logo/no-logo.png');
	background-size: auto 100%;
	background-repeat: no-repeat;
}
.match-card__team--home {
	grid-column: 1 / 2;
}
.match-card__team--away {
	grid-column: 3 / 4;
}
.match-card__score,
.match-card__time {
	grid-column: 2 / 3;
	grid-row-start: 2;
	text-align: center;
}
.match-card__score {
	display: grid;
	gap: var(--space-xs);
	grid-template-columns: 1fr auto 1fr;
}
.match-card__score,
.match-card__time {
	font-size: var(--fs-l);
	font-weight: var(--fw-medium);
	line-height: 1;
}
.match-card__score-item,
.match-card__time {
	display: flex;
	align-items: center;
	justify-content: center;
}
.match-card__score-item {
	border: 1px solid var(--base-light);
	border-radius: var(--radius-s);
	padding: 0.25em;
	min-width: 1.75em;
}
.match-card__score-divider {
	align-self: center;
}
.match-card__description {
	display: flex;
	align-items: center;
	justify-content: center;
	grid-row-start: 3;
	grid-column: 1 / -1;
	font-size: var(--description-size);
	color: var(--base-dark);
}
.match-card--live .match-card__score {
	color: var(--accent);
}
.match-card--live .match-card__score-item {
	/* background-color: var(--accent-ultra-light); */
	border-color: var(--accent-light);
}

@container (min-width: 600px) {
	.match-card__team {
		gap: 1em;
	}
	.match-card__team--home {
		flex-direction: row-reverse;
	}
	.match-card__team--away {
		flex-direction: row;
	}
}
/* =================================== MATCH CARD TENNIS =================================== */
/* Tennis match in the match lists (TennisMatchRenderer): the players in two rows to the left and the
   score (game score while playing, games per set and sets won) in the same rows to the right. */
.match-card--tennis {
	--icon-size: 24px;
	--tennis-row-gap: var(--space-xs);

	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto;
	text-align: left;
}
.match-card--tennis .match-card__teams {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	gap: var(--tennis-row-gap);
	padding: var(--space-s);
}
.match-card__player {
	display: flex;
	align-items: center;
	gap: var(--space-s);
	min-height: var(--icon-size);
	line-height: 1.1;
	white-space: normal;
	overflow-wrap: break-word;
	hyphens: auto;
	text-wrap: balance;
}
.match-card__player::before {
	content: '';
	flex-shrink: 0;
	width: var(--icon-size);
	height: var(--icon-size);
	background-image: url('https://theme.tabellen.se/img/team-logos/_no-logo/no-logo.png');
	background-size: auto 100%;
	background-repeat: no-repeat;
}
.match-card__player--winner {
	font-weight: var(--fw-semibold);
}
.match-card__tennis-score,
.match-card--tennis .match-card__time,
.match-card--tennis .match-card__description {
	grid-column: 2;
	grid-row: 1;
	align-self: center;
	padding: var(--space-s);
	padding-left: 0;
	font-size: var(--fs-s);
}
.match-card--tennis .match-card__time {
	font-weight: var(--fw-medium);
}
.match-card__set-rows {
	display: grid;
	gap: var(--tennis-row-gap);
}
.match-card__set-row {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--space-s);
	height: var(--icon-size);
}
.match-card__games {
	display: flex;
	align-items: center;
	gap: 0.75em;
	height: 100%;
	padding-inline: 0.75em;
	border-radius: var(--radius-s);
	background-color: var(--base-ultra-light);
}
.match-card__tiebreak {
	display: none;
}
.match-card__set {
	min-width: 1ch;
	font-weight: var(--fw-semibold);
	text-align: center;
}
.match-card__point {
	min-width: 2ch;
	text-align: center;
}
.match-card__point.serve,
.match-card--live .match-card__game:last-child {
	color: var(--accent);
	font-weight: var(--fw-semibold);
}
/* =================================== TV WIDGET (temporary) =================================== */
.tv-widget {
	.area {
		display: flex;
		flex-direction: column;
		gap: var(--space-m);
	}
	.section-heading {
		font-size: var(--fs-l);
		font-weight: var(--fw-semibold);
		line-height: 1;
	}
}
/* =================================== TV MATCH CARD (temporary) =================================== */
.tv-match {
	:has(> &) {
		display: grid;
		grid-template-columns: 1fr;
		gap: var(--space-s);
	}
}
.tv-match {
	--channel-height: calc(var(--fs-l) * 1.5);
	--league-logo-size: 32px;
	--progress-height: 2px;

	container-type: inline-size;
	display: grid;
	position: relative;
	background-color: var(--white);
	border-radius: var(--radius-m);
	font-size: var(--fs-s);
	line-height: 1;
}
.tv-match > * {
	grid-column: 1 / -1;
	grid-row: 1 / -1;
}
/* The match link (the teams) covers the whole card. */
.tv-match__link {
	color: inherit;
	text-decoration: none;

	&::after {
		content: '';
		position: absolute;
		inset: 0;
		z-index: 1;
		border: 1px solid var(--base-light);
		border-radius: var(--radius-m);
	}
	&:hover::after,
	&:focus-visible::after {
		--focus-color: var(--primary);

		outline-style: solid;
		outline-color: var(--focus-color);
		outline-width: var(--focus-width);
		outline-offset: var(--focus-offset);
	}
	&:focus-visible {
		outline: none;
	}
}
/* Finished matches are hidden until shown with the "Visa avslutade matcher" button. */
.tv-match.inactive:not(.show) {
	display: none;
}
#tv-show-earlier {
	justify-self: center;
	margin-bottom: var(--space-s);

	&[hidden] {
		display: none;
	}
}
.tv-match-header,
.tv-match-footer {
	padding: 1.5em;
}
.tv-match-header,
.tv-match-footer,
.tv-match-footer .inner {
	display: grid;
	grid-template-columns: calc(var(--fs-l) * 3) 1fr;
	grid-template-rows: 1em var(--league-logo-size);
	row-gap: 1em;
	column-gap: 1.5em;
}
.tv-match-header .league-logo {
	display: flex;
	justify-content: center;
	height: var(--league-logo-size);
	grid-column: 1;
	grid-row: 2;
}
.tv-match-header .league-logo::before {
	content: '';
	display: flex;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	width: var(--league-logo-size);
	height: var(--league-logo-size);
}
.tv-match-header .inner {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	grid-column: 2;
	grid-row: 1 / 3;
	overflow: hidden;
}
.tv-match-header .tv-primary,
.tv-match-header .tv-secondary {
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}
.tv-match-header .tv-secondary {
	font-size: var(--fs-xs);
	color: var(--base-medium);
}
.tv-match-footer .inner {
	grid-column: 1 / -1;
	grid-row: 1;
}
.tv-match-footer .time {
	grid-column: 1;
	grid-row: 1;
	font-weight: var(--fw-medium);
	font-size: var(--fs-l);
	text-align: center;
}
.tv-match.ongoing .tv-match-footer .time {
	color: var(--accent);
}
.tv-match-footer .channels {
	grid-column: 2;
	grid-row: 1;
}
.tv-match-footer .progress {
	grid-row: 2;
	grid-column: 2 / -1;
	align-self: flex-end;
	height: var(--progress-height);
	background-color: var(--base-light);
}
.tv-match-footer .progress .completed {
	height: 100%;
	background-color: var(--accent);
}

.channels {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: row-reverse;
	gap: 0.5em;
	overflow-x: clip;
}
.channel {
	height: var(--channel-height);
	aspect-ratio: 2.666 / 1;
	background-color: var(--white);
	background-size: 100% auto;
	border: 1px solid var(--base-light);
	border-radius: var(--radius-s);
}

@container (width <= 600px) {
	.tv-match-header,
	.tv-match-footer,
	.tv-match-footer .inner {
		grid-template-rows: calc(var(--fs-s) + 0.5em + var(--fs-xs)) var(--channel-height) var(--progress-height);
		column-gap: 1em;
	}
	.tv-match-header .league-logo {
		grid-row: 1 / 3;
		align-self: flex-end;
	}
	.tv-match-footer .channels {
		 grid-row: 2;
		 flex-direction: row;
		 
		&::after {
			content: '';
			position: absolute;
			width: var(--channel-height);
			height: 100%;
			background: linear-gradient(90deg, transparent, var(--white));
			right: 0;
		}
	}
	.tv-match-footer .progress {
		 grid-column: 1 / -1;
		 grid-row: 3;
	}
}
@container (width <= 300px) {
	.tv-match {
		--channel-height: calc(var(--fs-l) * 1.125);
	}
	.tv-match-header .league-logo {
		display: none;
	}
	.tv-match-footer .channels {
		grid-column: 1 / -1;
	}
}

/* =================================== TABLE =================================== */
table {
	--description-indicator: calc(var(--fs-s) * 0.25);
	--icon-size: 32px;
	
	width: 100%;
	background-color: var(--base-light);
	border-collapse: collapse;
	border: 1px solid var(--base-light);
	border-radius: var(--radius-m);
	font-size: var(--fs-s);
	overflow: clip;
}
thead,
tbody {
	background-color: var(--white);
}
thead tr {
	font-weight: var(--fw-medium);
	border-bottom: 1px solid var(--base-light);
}
tbody tr {
	background-color: var(--white);
	border-bottom: 1px solid var(--base-trans-light);
}
tbody tr:last-child {
	border-bottom: none;
}
th {
	position: sticky;
	top: calc(var(--sticky-top) + var(--header-height) - 1px);
	background: linear-gradient(rgba(255,255,255,0.75) 75%, rgba(255,255,255,0));
}
.hero--fixed ~ .wrapper th {
	top: calc(var(--sticky-top) + var(--header-height) + var(--hero-small-height) + var(--toc-height) - 1px);
}
.no-js th {
	position: relative;
	top: 0 !important;
}
th,
td {
	padding: 0 var(--space-s);
	text-align: center;
	white-space: nowrap;
	height: calc(var(--fs-s) * 4);
}
th:last-child,
td:last-child {
	padding-right: var(--space-m);
}
th.team,
td.team,
td.player {
	text-align: left;
	padding-left: 0;
}
td.team {
	display: flex;
	align-items: center;
	white-space: normal;
    word-wrap: break-word;
    hyphens: auto;
    text-wrap: balance;
}
td.team::before {
	content: '';
	display: flex;
	width: var(--icon-size);
	height: var(--icon-size);
	background-image: url('assets/img/no-logo.png');
	background-size: auto 100%;
	margin-right: var(--space-s);
}
tr.promotion-1 {
	box-shadow: inset var(--description-indicator) 0 var(--promotion-1);
	background-color: var(--promotion-1-light);
}
tr.promotion-2 {
	box-shadow: inset var(--description-indicator) 0 var(--promotion-2);
	background-color: var(--promotion-2-light);
}
tr.promotion-3 {
	box-shadow: inset var(--description-indicator) 0 var(--promotion-3);
	background-color: var(--promotion-3-light);
}
tr.promotion-4 {
	box-shadow: inset var(--description-indicator) 0 var(--promotion-4);
	background-color: var(--promotion-4-light);
}
tr.relegation-1 {
	box-shadow: inset var(--description-indicator) 0 var(--relegation-1);
	background-color: var(--relegation-1-light);
}
tr.relegation-2 {
	box-shadow: inset var(--description-indicator) 0 var(--relegation-2);
	background-color: var(--relegation-2-light);
}
tr.relegation-3 {
	box-shadow: inset var(--description-indicator) 0 var(--relegation-3);
	background-color: var(--relegation-3-light);
}
@media screen and (max-width: 767px) {
	table {
		--icon-size: 24px;
		
		inline-size: 100vw !important;
		max-inline-size: 100vw !important;
		margin-inline: calc(-50vw + 50%) !important;
		border-radius: 0;
		border-left: 0;
		border-right: 0;
	}
	th:last-child,
	td:last-child {
		padding-right: var(--section-padding-x);
	}
	th:first-child,
	td:first-child {
		padding-left: var(--section-padding-x);
	}
}
/* =================================== DESCRIPTION VALUES =================================== */
.descriptions {
	display: grid;
	gap: 0.5em;
	font-size: var(--fs-xs);
	color: var(--base-dark);
}
.descriptions > * {
	display: flex;
	align-items: center;
}
.descriptions > *::before {
	content: '';
	display: block;
	width: 1em;
	height: 1em;
	margin-right: 0.5em;
}
.descriptions > .promotion-1::before {
	background-color: var(--promotion-1);
}
.descriptions > .promotion-2::before {
	background-color: var(--promotion-2);
}
.descriptions > .promotion-3::before {
	background-color: var(--promotion-3);
}
.descriptions > .promotion-4::before {
	background-color: var(--promotion-4);
}
.descriptions > .relegation-1::before {
	background-color: var(--relegation-1);
}
.descriptions > .relegation-2::before {
	background-color: var(--relegation-2);
}
.descriptions > .relegation-3::before {
	background-color: var(--relegation-3);
}
/* =================================== SEASON SELECTOR =================================== */
.season-selector {
	position: relative;
	z-index: 1;
	
	.selected-season {
		list-style: none;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1em;
		text-align: left;
		line-height: 1;
		padding: 0.875em 1.25em;
		color: var(--text-color);
		border: 1px solid var(--base-medium);
		border-radius: var(--radius-s);
		overflow: hidden;
		outline-style: none;
		min-width: 10em;
		
		&:hover {
			background-color: var(--white);
		}
		[open] & {
			background: var(--white);
			border-bottom-right-radius: 0;
			border-bottom-left-radius: 0;
		}
		[open] &::before {
			content: '';
			position: fixed;
			top: 0;
			right: 0;
			bottom: 0;
			left: 0;
			z-index: 1;
		}
		
		&::after {
			--arrow-width: calc(1em * 0.425);
			--arrow-weight: 2px;
			--arrow-color: var(--base);
			
			content: '';
			flex-shrink: 0;
			display: block;
			width: var(--arrow-width);
			height: var(--arrow-width);
			border-right: var(--arrow-weight) solid var(--arrow-color);
			border-bottom: var(--arrow-weight) solid var(--arrow-color);
			transform: rotate(45deg);
		}
	}
	ul {
		position: absolute;
		list-style: none;
		background: white;
		width: 100%;
		padding-inline: 0.75em;
		max-height: 100em;
		overflow-y: auto;
		border-bottom-right-radius: var(--radius-s);
		border-bottom-left-radius: var(--radius-s);
		z-index: 1;
		
		[open] & {
			box-shadow: var(--box-shadow-m);
		}
	}
	a {
		display: flex;
		padding-block: 0.5em;
		padding-inline: 0.75em;
		border-bottom: 1px solid var(--base-ultra-light);
		color: var(--base-medium);
	}
	a:hover {
		color: var(--base);
	}
	li:last-child a {
		border-bottom: none;
	}
}
/* =================================== PLAYOFFS =================================== */
.playoff {
	--icon-size: 32px;

	.section-heading {
		font-size: var(--fs-xl);
		font-weight: var(--fw-semibold);
		line-height: 1;
		white-space: nowrap;
	}
	.match_date {
		position: relative;
		display: flex;
		align-items: center;
		font-size: var(--fs-m);
		font-weight: var(--fw-medium);
		line-height: 1;
		margin-block-start: var(--space-l);
	}
	.playoff-stage {
		display: flex;
		background-color: var(--white);
		border: 1px solid var(--base-light);
		border-radius: var(--radius-m);
		margin-block-start: var(--space-m);
	}
	.playoff-match {
		display: flex;
		flex-direction: column;
		gap: var(--space-s);
		align-items: center;
		text-align: center;
		flex-grow: 1;
		padding-block: var(--space-m);
		font-size: var(--fs-s);
		
		&:not(:last-child) {
			border-right: 1px solid var(--base-light);
		}
		
		&:has(> .winner) > *:not(.winner) .playoff-team {
			color: var(--base-medium);
		}
		&:has(> .winner) > *:not(.winner) .playoff-team::before {
			opacity: 0.25;
		}
		& > * {
			display: flex;
			flex-direction: column;
			gap: var(--space-s);
		}
		& > *:last-child {
			flex-direction: column-reverse;
		}
	}
	.playoff-team {
		display: flex;
		flex-direction: column;
		gap: 0.5em;
		line-height: 1;
	}
	.playoff-team::before {
		content: '';
		display: block;
		width: var(--icon-size);
		height: var(--icon-size);
		background-image: url('/assets/img/no-logo.png');
		background-size: auto 100%;
		background-repeat: no-repeat;
	}
   .playoff-result {
		font-size: var(--fs-l);
		line-height: 1;
		border: 1px solid var(--base-light);
		border-radius: var(--radius-s);
		padding: 0.25em;
		min-width: 1.75em;
		
		.playoff-match > *.winner & {
			border-color: var(--base);
			font-weight: var(--fw-medium);
		}
		.playoff-match > *:not(.winner) & {
			color: var(--base-medium);
		}
   }
	
	@media screen and (max-width: 767px) {
		--icon-size: 24px;
	}
}
/* =================================== SIDEBAR =================================== */
.sidebar {
	display: flex;
	flex-direction: column;
	gap: var(--space-l);
}
.sidebar__widget {
	display: flex;
	flex-direction: column;
	gap: var(--space-m);
}
.sidebar__title {
	font-size: var(--fs-l);
	font-weight: var(--fw-semibold);
	line-height: 1;
}
.sidebar__pr {
	position: sticky !important;
	top: calc(var(--sticky-top) + var(--header-height) + var(--toc-height));
}
.hero--fixed ~ .wrapper .sidebar .sidebar__pr {
	top: calc(var(--sticky-top) + var(--header-height) + var(--hero-small-height) + var(--toc-height));
}
.sidebar__pr .pr__inner {
	height: 600px;
}
@media screen and (max-width: 1024px) {
	.sidebar__pr {
		display: none;
	}
}
/* =================================== SITE FOOTER =================================== */
.site-footer {
	display: flex;
	flex-direction: column;
	gap: var(--space-xl);
	background-color: var(--base);
	background: linear-gradient(0deg, var(--base-ultra-dark) 0%, var(--base) 100%);
	color: var(--base-light);
	font-size: var(--fs-s);
	padding-block: calc(var(--space-xl) * 2);
	padding-inline: var(--section-padding-x);
}
.site-footer__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-s);
	
	&:not(:last-child) {
		border-bottom: 1px solid var(--base-dark);
		padding-block-end: var(--space-xl);
	}
}
.site-footer__heading {
	font-size: var(--fs-m);
	font-weight: var(--fw-semibold);
}
.site-footer__widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	column-gap: var(--space-m);
	row-gap: var(--space-l);
	width: 100%;
}
.site-footer__widget {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-xs);
}
.site-footer__logos-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-l);
	list-style: none;
}
.site-footer__logos-list-item {
	a {
		display: flex;
	}
	img {
		height: var(--space-m);
	}
	&:last-child img {
		height: var(--space-l);
	}
}
.site-footer__meta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-m);
}
.site-footer__copyright {
	font-size: var(--fs-xs);
	text-transform: uppercase;
	color: var(--base-medium);
	
	a {
		color: inherit;
	}
}
/* =================================== PR =================================== */
.pr {
	:has(> &) {
		container-type: inline-size;
	}

	position: relative;
	width: 100%;
}
.pr > *::before {
	content: 'Annons';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	font-size: calc(var(--fs-l) / 2);
	text-transform: uppercase;
	text-align: center;
	line-height: var(--space-m);
	letter-spacing: 1px;
	color: var(--base-trans-dark);
	transform: translateY(-100%);
}
.pr > * {
	display: none;
	position: sticky;
	top: calc(var(--sticky-top) + var(--header-height) + var(--toc-height));
	margin: 0 auto;
	background-color: var(--base-light);
}
/* min-height, not height: the ad partners also deliver taller formats (e.g. 980x600 panoramas),
   and a fixed height let them spill over the content below. */
.pr-mobile {
	width: 320px;
	min-height: 320px;
}
.pr-tablet {
	width: min(640px, 100%);
	min-height: 360px;
}
.pr-desktop {
	width: 980px;
	min-height: 240px;
}
.pr-skyscraper {
	width: 300px;
	height: 600px;
}
.pr-all {
	display: flex;
	background-color: transparent;
	
	.bb-above {
		display: none !important;
	}
}
/* Which ad shows is decided by the screen width, with the same breakpoints the ad scripts load
   them with (template-parts/ads and common's AdUtils): mobile up to 688px, MPU (tablet)
   689-1075px, panorama (desktop) from 1076px, where the content column is 980px wide. */
@media screen and (max-width: 688px) {
	.pr {
		min-height: 640px;
	}
	.pr-mobile {
		display: flex;
	}
}
@media screen and (min-width: 689px) and (max-width: 1075px) {
	.pr {
		min-height: 480px;
	}
	.pr-tablet {
		display: flex;
	}
}
@media screen and (min-width: 1076px) {
	.pr {
		min-height: 480px;
	}
	.pr-desktop {
		display: flex;
	}
}
@media screen and (min-width: 1328px) {
	.pr-skyscraper {
		display: flex;
	}
}
.toc-nav ~ .section .pr > * {
	top: calc(var(--sticky-top) + var(--toc-height) + var(--space-l));
}
.hero--fixed ~ .wrapper .content .pr > * {
	top: calc(var(--sticky-top) + var(--header-height) + var(--hero-small-height) + var(--toc-height) + var(--space-l));
}

/* =================================== CONTENT PAGE =================================== */
.content-page {
	#main-content:has(> &) {
		display: flex;
		justify-content: center;
	}
	
	display: flex;
	flex-direction: column;
	padding-block: var(--space-xl);
	padding-inline: var(--section-padding-x);
	max-width: 40rem;
	gap: 1em;
	
	h1 {
		font-size: var(--fs-xl);
		font-weight: var(--fw-semibold);
	}
	h2 {
		font-size: var(--fs-l);
		font-weight: var(--fw-medium);
	}
	h3 {
		font-size: var(--fs-m);
		font-weight: var(--fw-medium);
	}
	ul, ol {
		padding-inline: 1.5em;
	}
}
/* =================================== 404 =================================== */
.hero--404 .hero__container {
	row-gap: var(--space-xs);
}
.hero__eyebrow {
	color: var(--primary);
	font-size: var(--fs-l);
	font-weight: var(--fw-medium, 500);
	letter-spacing: 0.15em;
}
.not-found {
	max-width: 40rem;
}
.not-found__text {
	font-size: var(--fs-l);
	line-height: 1.6;
}
.not-found__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-s);
}
/* =================================== TENNIS =================================== */
/* Current page in a link list (e.g. ongoing tournaments in the sidebar) */
.link-list__link[aria-current="page"] {
	--text-color: var(--base);
	--background-color: var(--primary);
}
/* Tournament dates in the hero meta list */
.hero__meta > .tournament-dates time {
	white-space: nowrap;
}
/* Tournament calendar (taxonomy.php) */
.tournament-list {
	:has(> &) {
		container-type: inline-size;
	}

	display: grid;
	gap: var(--space-s);
	list-style: none;

	@container (min-width: 800px) {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}
.tournament-card {
	display: grid;
}
.tournament-card__link {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--space-s);
	padding: var(--space-s);
	color: var(--base);
	background-color: var(--white);
	border-radius: var(--radius-m);
}
.tournament-card__link:hover {
	outline-style: solid;
	outline-color: var(--primary);
	outline-width: var(--focus-width);
	outline-offset: var(--focus-offset);
}
.tournament-card__image-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 3rem;
	height: 3rem;
	overflow: hidden;
}
.tournament-card__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.tournament-card__main {
	display: grid;
	gap: var(--space-xs);
	min-width: 0;
}
.tournament-card__title {
	font-weight: var(--fw-semibold);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tournament-card__country {
	font-size: var(--fs-xs);
}
.tournament-card__country::before {
	--image-size: 16px;
	margin-right: 0.5em;
}
.tournament-card__dates {
	display: grid;
	justify-items: end;
	gap: var(--space-xs);
	font-size: var(--fs-s);
	white-space: nowrap;
}
.tournament-card__status {
	padding: 0.25em 0.5em;
	font-size: var(--fs-xs);
	font-weight: var(--fw-semibold);
	line-height: 1;
	color: var(--base);
	background-color: var(--primary);
	border-radius: var(--radius-s);
}

/* Facts and text pages (templates/facts.php, templates/content.php) */
.section--facts .section__title,
.section--text .section__title {
	white-space: normal;
	line-height: 1.2;
}
.section--facts,
.section--text {
	min-width: 0;
}
.table--facts td,
.table--facts th {
	white-space: normal;
	height: auto;
	padding-block: var(--space-s);
}
.section__text {
	line-height: 1.6;
	max-width: 48rem;
}
.section__text p {
	margin-block-end: 0.75em;
}
.section__text strong,
.section__text b {
	font-weight: var(--fw-semibold);
}
.section__text a {
	text-decoration: underline;
}

/* InMobi's floating "Integritet" button: replaced by the "Cookie-inställningar" link in the footer. */
#qc-cmp2-persistent-link {
	display: none !important;
}
