/*
Theme Name: F1Radar
Theme URI: https://nexodigital.dk/
Author: Busekist Media / Nexo Digital
Description: Formel 1-stillinger, hold, kørere og løbskalender med data fra API-Sports Formula-1. Kører-, hold- og Grand Prix-sider oprettes og udgives manuelt én ad gangen. Selvhostede skrifter (Titillium Web og JetBrains Mono).
Version: 1.2.3
Requires at least: 6.2
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: f1radar
*/

/* ---------------------------------------------------------------- Skrifter */
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/titillium-web-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/titillium-web-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/titillium-web-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/titillium-web-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 900; font-display: swap; src: url("assets/fonts/titillium-web-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Titillium Web"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/titillium-web-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Titillium Web"; font-style: italic; font-weight: 600; font-display: swap; src: url("assets/fonts/titillium-web-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Titillium Web"; font-style: italic; font-weight: 700; font-display: swap; src: url("assets/fonts/titillium-web-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); }

/* ---------------------------------------------------------------- Farver og mål */
:root {
	--f1r-red: #ee0f1f;
	--f1r-bg: #030304;
	--f1r-header: #060709;
	--f1r-card: #111114;
	--f1r-box: #1c1d20;
	--f1r-hover: #18181c;
	--f1r-active: #202125;
	--f1r-border: #262629;
	--f1r-line: #1c1d1f;
	--f1r-fg: #f5f5f5;
	--f1r-muted: #909299;
	--f1r-sans: "Titillium Web", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f1r-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--f1r-wrap: 1040px;
	--f1r-gutter: 24px;
	--f1r-radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--f1r-bg);
	color: var(--f1r-fg);
	font-family: var(--f1r-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
button, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--f1r-red); outline-offset: 2px; }

.f1r-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--f1r-red); color: #fff; padding: 8px 12px; }
.f1r-skip:focus { left: 8px; top: 8px; }

.f1r-wrap { width: 100%; max-width: calc(var(--f1r-wrap) + 2 * var(--f1r-gutter)); margin: 0 auto; padding: 0 var(--f1r-gutter); }
.f1r-main { flex: 1 0 auto; padding: 24px 0 80px; }
.f1r-mono { font-family: var(--f1r-mono); }
.f1r-stack { display: flex; flex-direction: column; gap: 20px; }
.f1r-home.f1r-stack { gap: 24px; }
.f1r-stack > * { min-width: 0; }
.f1r-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------------------------------------------------------------- Header */
.f1r-header { background: var(--f1r-header); border-bottom: 1px solid var(--f1r-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .f1r-header { top: 32px; }
.f1r-header__inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.f1r-logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.f1r-badge {
	display: inline-flex; align-items: center; justify-content: center;
	height: 32px; padding: 0 10px; background: var(--f1r-red);
	transform: skewX(-12deg); flex: none;
}
.f1r-badge > span { transform: skewX(12deg); font-weight: 700; font-style: italic; font-size: 14px; line-height: 1; letter-spacing: .02em; color: #fff; }
.f1r-logo__text { font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; white-space: nowrap; }
.f1r-nav { display: flex; align-items: center; gap: 28px; }
.f1r-nav a { position: relative; color: var(--f1r-muted); font-size: 14px; font-weight: 600; padding: 3px 0 5px; transition: color .15s; white-space: nowrap; }
.f1r-nav a:hover { color: var(--f1r-fg); }
.f1r-nav a.is-active { color: var(--f1r-fg); padding-bottom: 11px; }
.f1r-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 2px; background: var(--f1r-red); }

/* ---------------------------------------------------------------- Footer */
.f1r-footer { background: var(--f1r-header); border-top: 1px solid var(--f1r-line); }
.f1r-footer__inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 24px; }
.f1r-footer__brand { display: flex; align-items: center; gap: 12px; color: var(--f1r-muted); font-size: 12px; }
.f1r-footer__nav { display: flex; gap: 20px; font-size: 12px; color: var(--f1r-muted); }
.f1r-footer__nav a:hover { color: var(--f1r-fg); }

/* ---------------------------------------------------------------- Kort */
.f1r-card { background: var(--f1r-card); border: 1px solid var(--f1r-border); border-radius: var(--f1r-radius); overflow: hidden; }
.f1r-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; height: 43px; border-bottom: 1px solid var(--f1r-border); }
.f1r-card__title { font-size: 14px; font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.f1r-card__link { color: var(--f1r-red); font-size: 12px; font-weight: 600; }
.f1r-card__link:hover { text-decoration: underline; }
.f1r-card__body { padding: 16px; }

.f1r-bar { width: 4px; height: 20px; border-radius: 2px; flex: none; display: inline-block; }

/* Lister med rækker */
.f1r-list > li { border-top: 1px solid var(--f1r-border); }
.f1r-list > li:first-child { border-top: 0; }
.f1r-row { display: flex; align-items: center; gap: 12px; padding: 0 16px; min-height: 48px; transition: background .15s; }
a.f1r-row:hover { background: var(--f1r-hover); }
.f1r-list__num { font-family: var(--f1r-mono); color: var(--f1r-muted); font-size: 14px; width: 24px; flex: none; }
.f1r-list__main { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.f1r-list__name { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f1r-list__sub { color: var(--f1r-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f1r-list__date { font-family: var(--f1r-mono); color: var(--f1r-muted); font-size: 12px; white-space: nowrap; }
.f1r-list__pts { font-family: var(--f1r-mono); font-weight: 700; font-size: 15px; text-align: right; min-width: 32px; }
.f1r-list__team { color: var(--f1r-muted); font-size: 13px; white-space: nowrap; }
a.f1r-list__name:hover, .f1r-list__team a:hover { text-decoration: underline; }
.f1r-empty { padding: 24px 16px; color: var(--f1r-muted); }

/* ---------------------------------------------------------------- Forside */
.f1r-hero { position: relative; min-height: 454.5px; border: 1px solid #1a1a1b; border-radius: var(--f1r-radius); overflow: hidden; display: flex; align-items: center; background: #060709; }
.f1r-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.f1r-hero.has-custom::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,3,4,.95) 0%, rgba(3,3,4,.75) 40%, rgba(3,3,4,.15) 100%); }
.f1r-hero__body { position: relative; z-index: 1; padding: 64px 40px; max-width: 640px; }
.f1r-hero__kicker { color: var(--f1r-red); font-size: 12px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; }
.f1r-hero__title { margin-top: 12px; font-size: 72px; line-height: .9; font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: -.01em; }
.f1r-hero__text { margin-top: 15px; color: var(--f1r-muted); font-size: 16px; line-height: 1.5; max-width: 448px; }
.f1r-btn { margin-top: 27px; display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 20px; background: var(--f1r-red); color: #fff; font-weight: 700; font-size: 14px; transition: filter .15s; }
.f1r-btn:hover { filter: brightness(1.1); }

.f1r-next { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: var(--f1r-card); border-left: 4px solid var(--f1r-red); border-radius: var(--f1r-radius); margin-top: -1px; margin-bottom: -10px; }
a.f1r-next:hover { background: var(--f1r-hover); }
.f1r-next__meta { color: var(--f1r-muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 16.5px; }
.f1r-next__name { margin-top: 2px; font-size: 18px; font-weight: 700; font-style: italic; line-height: 24px; }
.f1r-next__date { font-family: var(--f1r-mono); color: var(--f1r-muted); font-size: 14px; white-space: nowrap; }

.f1r-row--gp .f1r-list__num { width: 20px; }
.f1r-row--gp .f1r-list__name { font-size: 16px; }

.f1r-home > .f1r-grid2 { margin-top: -2px; }

/* ---------------------------------------------------------------- Sidehoveder */
.f1r-pagehead { margin-bottom: 20px; }
.f1r-h1 { font-size: 36px; line-height: 1.1; font-weight: 700; font-style: italic; text-transform: uppercase; }
.f1r-lead { margin-top: 4px; color: var(--f1r-muted); font-size: 14px; line-height: 20px; }
.f1r-eyebrow { font-family: var(--f1r-mono); color: var(--f1r-red); font-size: 12px; line-height: 16px; margin-bottom: 0; }
.f1r-back { display: flex; width: fit-content; align-items: center; gap: 4px; color: var(--f1r-muted); font-size: 12px; line-height: 16px; margin-top: 6px; margin-bottom: 14px; }
.f1r-back svg { width: 12px; height: 12px; }
.f1r-back:hover { color: var(--f1r-fg); }

/* ---------------------------------------------------------------- Tabeller */
.f1r-table-wrap { overflow-x: auto; }
.f1r-table-wrap.is-scroll { max-height: 420px; overflow-y: auto; }
.f1r-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--f1r-muted); padding: 12px 16px; line-height: 16px; border-bottom: 1px solid var(--f1r-border); white-space: nowrap; background: var(--f1r-card); position: sticky; top: 0; z-index: 1; }
.f1r-table td { padding: 12px 16px; border-top: 1px solid var(--f1r-border); white-space: nowrap; font-size: 14px; line-height: 20px; }
.f1r-table tbody tr:first-child td { border-top: 0; }
.f1r-table tr[data-href] { cursor: pointer; transition: background .15s; }
.f1r-table tr[data-href]:hover { background: var(--f1r-hover); }
.f1r-table .c-pos { font-family: var(--f1r-mono); color: var(--f1r-muted); width: 48px; }
.f1r-table .c-num, .f1r-table .c-r { text-align: right; font-family: var(--f1r-mono); }
.f1r-table th.c-num, .f1r-table th.c-r, .f1r-table th.c-pts { text-align: right; font-family: var(--f1r-sans); }
.f1r-table .c-pts { text-align: right; font-family: var(--f1r-mono); font-weight: 700; }
.f1r-table .c-team { color: var(--f1r-muted); }
.f1r-table .c-team a:hover, .f1r-name:hover { text-decoration: underline; }
.f1r-namecell { display: flex; align-items: center; gap: 12px; }
.f1r-name { font-weight: 600; }
.f1r-abbr { font-family: var(--f1r-mono); font-weight: 700; color: var(--f1r-muted); font-size: 12px; }

.f1r-table--seasons td { padding-top: 10px; padding-bottom: 10px; }
.f1r-table--seasons th { padding-top: 8px; padding-bottom: 8px; }
.f1r-table--seasons .c-season { font-family: var(--f1r-mono); font-weight: 700; }
.f1r-table--seasons .c-place { font-weight: 700; }
.f1r-table--seasons .c-place.is-top { color: var(--f1r-red); }
.f1r-table--seasons .c-muted { color: var(--f1r-muted); }
.f1r-table--seasons .c-strong { font-weight: 700; }
.f1r-table--seasons tr.is-current td { background: var(--f1r-active); }
.f1r-wait { color: var(--f1r-muted); cursor: help; }
.f1r-live { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 3px; background: rgba(238,15,31,.15); color: var(--f1r-red); font-size: 10px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }

@media (min-width: 721px) {
	.f1r-table--seasons { table-layout: fixed; }
	.f1r-table--seasons th:nth-child(1) { width: 32.84%; }
	.f1r-table--seasons th:nth-child(2) { width: 12.54%; }
	.f1r-table--seasons th:nth-child(3) { width: 10.66%; }
	.f1r-table--seasons th:nth-child(4) { width: 13.89%; }
	.f1r-table--seasons th:nth-child(5) { width: 15.81%; }
	.f1r-table--drivers { table-layout: fixed; }
	.f1r-table--drivers .c-pos { width: 3.18%; }
	.f1r-table--drivers .c-name { width: 38.15%; }
	.f1r-table--drivers .c-team { width: 22.3%; }
	.f1r-table--drivers .c-num:nth-child(4) { width: 11.5%; }
	.f1r-table--drivers .c-num:nth-child(5) { width: 10.07%; }
}
.f1r-table .c-name .f1r-bar { height: 20px; }

/* ---------------------------------------------------------------- Konstruktørstilling */
.f1r-row--team { min-height: 80px; align-items: center; gap: 16px; }
.f1r-row--team .f1r-list__num { width: 19px; }
.f1r-row--team .f1r-bar { height: 20px; }
.f1r-teams__main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 14px 0; }
.f1r-teams__name { font-weight: 600; font-size: 16px; line-height: 24px; }
.f1r-teams__drivers { color: var(--f1r-muted); font-size: 12px; line-height: 16px; }
.f1r-progress { display: block; margin-top: 8px; height: 4px; border-radius: 2px; background: var(--f1r-box); overflow: hidden; }
.f1r-progress > span { display: block; height: 100%; border-radius: 2px; }
.f1r-teams__pts { font-family: var(--f1r-mono); font-weight: 700; font-size: 16px; min-width: 60px; text-align: right; }

/* ---------------------------------------------------------------- Kalender */
.f1r-row--cal { min-height: 68px; gap: 0; padding-top: 14px; padding-bottom: 14px; }
.f1r-row--cal.is-next { background: var(--f1r-active); border-left: 4px solid var(--f1r-red); }
.f1r-row--cal.is-cancelled { opacity: .5; }
.f1r-cal__round { font-family: var(--f1r-mono); color: var(--f1r-muted); font-size: 12px; width: 31.5px; margin-right: 16px; flex: none; }
.f1r-cal__date { font-family: var(--f1r-mono); font-weight: 700; font-size: 14px; width: 64px; flex: none; margin-right: 16px; line-height: 20px; }
.f1r-cal__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.f1r-cal__name { font-weight: 600; font-size: 16px; line-height: 24px; }
.f1r-cal__circuit { color: var(--f1r-muted); font-size: 12px; line-height: 16px; }
.f1r-cal__right { flex: none; margin-left: 12px; }
.f1r-cal__state { color: var(--f1r-muted); font-size: 12px; }
.f1r-podium { display: flex; gap: 12px; font-family: var(--f1r-mono); font-size: 12px; }
.f1r-podium__p { color: var(--f1r-muted); }
.f1r-tag { display: inline-block; background: var(--f1r-red); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 4px 8px; white-space: nowrap; }

/* ---------------------------------------------------------------- Stat-bokse */
.f1r-stat__label { color: var(--f1r-muted); font-size: 11px; text-transform: uppercase; line-height: 1.4; }
.f1r-stat__value { font-family: var(--f1r-mono); font-weight: 700; font-size: 20px; line-height: 23px; margin-top: 2px; }
.f1r-boxes { display: grid; gap: 12px; }
.f1r-boxes--6 { grid-template-columns: repeat(6, 1fr); }
.f1r-boxes--5 { grid-template-columns: repeat(5, 1fr); }
.f1r-boxes .f1r-stat { background: var(--f1r-box); border-radius: 2px; padding: 10px 12px; min-width: 0; }
.f1r-boxes--profile .f1r-stat__value { font-family: var(--f1r-sans); font-size: 14px; line-height: 15px; }

/* ---------------------------------------------------------------- Grand Prix */
.f1r-pagehead--gp { margin-bottom: 24px; }
.f1r-gp__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.f1r-gp .f1r-card__head, .f1r-profile .f1r-card__head { height: 45px; }
.f1r-trackgrid { display: grid; grid-template-columns: repeat(3, 1fr); }
.f1r-stat--cell { padding: 14px 16px; border-right: 1px solid var(--f1r-border); border-bottom: 1px solid var(--f1r-border); }
.f1r-stat--cell:nth-child(3n) { border-right: 0; }
.f1r-trackinfo { padding: 11px 16px; }
.f1r-trackinfo__desc { color: var(--f1r-muted); font-size: 14px; }
.f1r-trackinfo__rec { margin-top: 7.5px; color: var(--f1r-muted); font-size: 12px; }
.f1r-trackinfo__rec .f1r-mono { color: var(--f1r-fg); }
.f1r-row--result { min-height: 37px; }
.f1r-row--result .f1r-list__name, .f1r-row--winner .f1r-list__name { font-size: 14px; }
.f1r-row--result .f1r-list__num { width: 20px; }
.f1r-row--result .f1r-list__pts { min-width: 40px; }
.f1r-row--sched { min-height: 41px; justify-content: space-between; }
.f1r-schedule__label { font-size: 14px; }
.f1r-row--sched.is-main .f1r-schedule__label { font-weight: 700; }
.f1r-schedule__time { font-family: var(--f1r-mono); color: var(--f1r-muted); font-size: 12px; white-space: nowrap; }
.f1r-row--winner { min-height: 37px; }
.f1r-winner__year { font-family: var(--f1r-mono); color: var(--f1r-muted); font-size: 14px; width: 36px; flex: none; }

/* ---------------------------------------------------------------- Kører/hold */
.f1r-hero2 { position: relative; overflow: hidden; background: var(--f1r-card); border: 1px solid var(--f1r-border); border-left: 8px solid var(--team, var(--f1r-red)); border-radius: var(--f1r-radius); padding: 38px 24px 32px 25px; }
.f1r-hero2__num { position: absolute; right: -8px; top: 12px; font-size: 128px; line-height: 1; font-weight: 700; font-style: italic; color: var(--team); opacity: .15; pointer-events: none; font-family: var(--f1r-sans); }
.f1r-hero2__kicker { position: relative; color: var(--f1r-muted); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.f1r-hero2__kicker a:hover { color: var(--f1r-fg); }
.f1r-hero2__title { position: relative; margin-top: 6px; font-size: 48px; line-height: 1.05; font-weight: 700; font-style: italic; text-transform: uppercase; }
.f1r-hero2__sub { position: relative; margin-top: -2px; color: var(--f1r-muted); font-size: 14px; line-height: 20px; }
.f1r-hero2__stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 512px; gap: 12px; margin-top: 23px; }
.f1r-hero2--team { padding-top: 32.5px; padding-bottom: 32.5px; }
.f1r-hero2--team .f1r-hero2__title { margin-top: 3.5px; }
.f1r-hero2--team .f1r-hero2__stats { grid-template-columns: repeat(3, 1fr); max-width: 448px; margin-top: 21px; }
.f1r-hero2__stats .f1r-stat { background: var(--f1r-box); border-radius: 2px; padding: 10px 12px; }

.f1r-chart__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.f1r-chart__label { color: var(--f1r-muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.f1r-select { position: relative; display: inline-block; }
.f1r-select select { appearance: none; -webkit-appearance: none; background: var(--f1r-bg); border: 1px solid var(--f1r-border); border-radius: 4px; padding: 5px 28px 5px 10px; font-size: 13px; line-height: 19.5px; cursor: pointer; }
.f1r-select::after { content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.f1r-chart__legend { display: flex; gap: 16px; margin-top: 14px; line-height: 16px; color: var(--f1r-muted); font-size: 12px; }
.f1r-chart__legend span { display: inline-flex; align-items: center; gap: 6px; }
.f1r-chart__sq { width: 10px; height: 10px; display: inline-block; }
.f1r-chart__ln { width: 16px; height: 2px; background: var(--f1r-red); display: inline-block; }
.f1r-chart { margin-top: 16px; height: 284px; }
.f1r-chartcard .f1r-card__body { padding: 13px 16px 16px; }
.f1r-chart__svg { display: block; overflow: visible; }
.f1r-chart__grid { stroke: var(--f1r-border); stroke-width: 1; }
.f1r-chart__tick { fill: var(--f1r-muted); font-size: 10.5px; font-family: var(--f1r-sans); }
.f1r-chart__line { fill: none; stroke: var(--f1r-red); stroke-width: 2; stroke-linejoin: round; }
.f1r-chart__dot { fill: var(--f1r-red); }

.f1r-row--res { min-height: 45px; }
.f1r-res__date { font-family: var(--f1r-mono); color: var(--f1r-muted); font-size: 12px; width: 68px; flex: none; }
.f1r-row--res .f1r-list__name { font-size: 14px; }
.f1r-res__pos { font-family: var(--f1r-mono); font-weight: 700; font-size: 14px; }
.f1r-res__pos.is-top { color: var(--f1r-red); }
.f1r-res__pts { font-family: var(--f1r-mono); color: var(--f1r-muted); font-size: 14px; width: 52px; text-align: right; }

.f1r-dcard { display: flex; flex-direction: column; padding: 17.5px 20px 19px; transition: background .15s; }
a.f1r-dcard:hover { background: var(--f1r-hover); }
.f1r-dcard__num { font-size: 40px; font-weight: 900; font-style: italic; line-height: 40px; }
.f1r-dcard__name { margin-top: 10px; font-size: 20px; line-height: 28px; font-weight: 900; }
.f1r-dcard__country { color: var(--f1r-muted); font-size: 12px; }
.f1r-dcard__line { margin-top: 14px; font-family: var(--f1r-mono); font-size: 14px; }

.f1r-prose { color: var(--f1r-muted); font-size: 14px; line-height: 1.625; padding: 20px; }
.f1r-prose p + p { margin-top: 16px; }
.f1r-prose a { color: var(--f1r-fg); text-decoration: underline; }
.f1r-prose h2, .f1r-prose h3 { color: var(--f1r-fg); font-style: italic; text-transform: uppercase; margin: 24px 0 8px; }
.f1r-prose ul, .f1r-prose ol { list-style: disc; padding-left: 20px; margin: 12px 0; }
.f1r-prose img { border-radius: var(--f1r-radius); }
.f1r-figure { margin-bottom: 24px; }
.f1r-figure img { width: 100%; border-radius: var(--f1r-radius); }
.f1r-pager { margin-top: 24px; color: var(--f1r-muted); }
.f1r-pager .page-numbers { padding: 4px 8px; }
.f1r-pager .current { color: var(--f1r-fg); }
.f1r-row--post { min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.f1r-row--post .f1r-list__main { flex-direction: column; align-items: flex-start; gap: 0; }

/* ---------------------------------------------------------------- Udvidede sektioner (kører/hold) */
.f1r-boxes--4 { grid-template-columns: repeat(4, 1fr); }
.f1r-boxes--3 { grid-template-columns: repeat(3, 1fr); }
.f1r-boxes--7 { grid-template-columns: repeat(7, 1fr); }
.f1r-boxes--6 .f1r-stat.is-wide { grid-column: span 2; }
.f1r-card__note { color: var(--f1r-muted); font-size: 12px; }


.f1r-duel__names { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 4px; font-weight: 700; font-size: 15px; line-height: 20px; }
.f1r-duel__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f1r-duel__name.is-a { border-left: 3px solid var(--team); padding-left: 8px; }
.f1r-duel__name.is-b { border-right: 3px solid #5c5d63; padding-right: 8px; text-align: right; }
.f1r-duel__name a:hover { text-decoration: underline; }
.f1r-duel__vs { color: var(--f1r-muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; flex: none; }
.f1r-duel__rows { padding: 4px 16px 12px; }
.f1r-duel__row { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; gap: 16px; padding: 7px 0; }
.f1r-duel__val { font-family: var(--f1r-mono); font-size: 16px; font-weight: 700; color: var(--f1r-muted); }
.f1r-duel__val.is-right { text-align: right; }
.f1r-duel__val.is-win { color: var(--f1r-fg); }
.f1r-duel__mid { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f1r-duel__label { text-align: center; color: var(--f1r-muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; line-height: 14px; }
.f1r-duel__bar { display: block; height: 6px; border-radius: 3px; background: #3a3b40; overflow: hidden; }
.f1r-duel__bar > span { display: block; height: 100%; background: var(--team); border-right: 2px solid var(--f1r-card); }

.f1r-table--res .c-date { font-family: var(--f1r-mono); color: var(--f1r-muted); font-size: 12px; }
.f1r-table--res .c-gp { white-space: normal; }
.f1r-table--res .c-place { font-family: var(--f1r-mono); font-weight: 700; }
.f1r-table--res .c-place.is-top { color: var(--f1r-red); }
.f1r-table--res .c-muted, .f1r-table .c-muted { color: var(--f1r-muted); }
.f1r-chip { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 3px; background: var(--f1r-box); color: var(--f1r-muted); font-size: 10px; line-height: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; white-space: nowrap; }
.f1r-chip--fl { color: #c08cff; background: rgba(160, 90, 255, .14); }
.f1r-dnf { color: var(--f1r-muted); font-weight: 700; }
.f1r-delta { font-family: var(--f1r-mono); font-size: 12px; color: var(--f1r-muted); }
.f1r-delta.is-up { color: #3ecf8e; }
.f1r-delta.is-down { color: #ff5c66; }
@media (min-width: 721px) {
	.f1r-table--res { table-layout: fixed; }
	.f1r-table--res .c-date { width: 96px; }
	.f1r-table--res th.c-r { width: 80px; }
}

.f1r-row--hist { min-height: 44px; }
.f1r-hist__years { font-family: var(--f1r-mono); color: var(--f1r-muted); font-size: 13px; width: 96px; flex: none; }
.f1r-row--lineup { min-height: 52px; padding-top: 8px; padding-bottom: 8px; }
.f1r-lineup__main { flex-direction: column; align-items: flex-start; gap: 0; }
.f1r-lineup__drivers { font-weight: 600; font-size: 14px; line-height: 20px; }
a.f1r-lineup__driver:hover { text-decoration: underline; }
.f1r-lineup__sep { color: var(--f1r-muted); font-weight: 400; }
.f1r-lineup__res { font-family: var(--f1r-mono); color: var(--f1r-muted); font-size: 12px; white-space: nowrap; }

/* ---------------------------------------------------------------- Mobil */
@media (max-width: 900px) {
	.f1r-gp__grid { grid-template-columns: 1fr; }
	.f1r-boxes--6 { grid-template-columns: repeat(3, 1fr); }
	.f1r-boxes--5 { grid-template-columns: repeat(3, 1fr); }
	.f1r-boxes--7 { grid-template-columns: repeat(4, 1fr); }
	.f1r-boxes--6 .f1r-stat.is-wide { grid-column: span 1; }
}
@media (max-width: 720px) {
	:root { --f1r-gutter: 16px; }
	.f1r-grid2 { grid-template-columns: 1fr; }
	.f1r-hero { min-height: 380px; }
	.f1r-hero__body { padding: 40px 20px; }
	.f1r-hero__title { font-size: 52px; }
	.f1r-hero__text { font-size: 17px; }
	.f1r-hero2__title { font-size: 34px; }
	.f1r-hero2__num { font-size: 96px; }
	.f1r-hero2__stats { grid-template-columns: repeat(2, 1fr); }
	.f1r-hero2--team .f1r-hero2__stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.f1r-hero2--team .f1r-stat { padding: 8px 10px; }
	.f1r-hero2 { padding: 28px 16px 24px 18px; }
	.f1r-hero2--team { padding: 24px 16px 24px 18px; }
	.f1r-h1 { font-size: 28px; }
	.f1r-next { flex-direction: column; align-items: flex-start; gap: 4px; }
	.f1r-row--gp { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; row-gap: 0; }
	.f1r-row--gp .f1r-list__main { flex-direction: column; gap: 0; flex-basis: calc(100% - 32px); }
	.f1r-row--gp .f1r-list__date { font-size: 11px; width: 100%; padding-left: 32px; }
	.f1r-cal__right { display: none; }
	.f1r-row--cal.is-next .f1r-cal__right { display: block; }
	.f1r-row--cal.is-next .f1r-tag { font-size: 9px; padding: 3px 5px; white-space: normal; max-width: 120px; }
	.f1r-table .c-team, .f1r-table--drivers .c-num { display: none; }
	.f1r-table--seasons .c-muted, .f1r-table--seasons th:nth-child(3) { display: none; }
	.f1r-table--seasons th, .f1r-table--seasons td { padding-left: 8px; padding-right: 8px; }
	.f1r-table--seasons th { letter-spacing: .02em; }
	.f1r-table--seasons .f1r-live { margin-left: 4px; padding: 1px 4px; }
	.f1r-table th, .f1r-table td { padding-left: 12px; padding-right: 12px; }
	.f1r-row--result .f1r-list__team { display: none; }
	.f1r-boxes--6, .f1r-boxes--5, .f1r-boxes--4, .f1r-boxes--7, .f1r-boxes--3 { grid-template-columns: repeat(2, 1fr); }
	.f1r-table--res .c-opt { display: none; }
	.f1r-duel__row { grid-template-columns: 44px 1fr 44px; gap: 10px; }
	.f1r-hist__years { width: 84px; }
	.f1r-lineup__res { display: none; }
	.f1r-trackgrid { grid-template-columns: repeat(2, 1fr); }
	.f1r-stat--cell:nth-child(3n) { border-right: 1px solid var(--f1r-border); }
	.f1r-stat--cell:nth-child(2n) { border-right: 0; }
	.f1r-footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
	.f1r-logo__text { display: none; }
	.f1r-nav { gap: 16px; }
	.f1r-nav a { font-size: 14px; }
	.f1r-teams__pts { min-width: 44px; }
	.f1r-res__date { width: 60px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
