/* sportsresultater.dk - resultattavlens nattemørke, ravgule tal og kridthvide linjer */
@font-face { font-family: "Big Shoulders"; src: url("/assets/fonts/big-shoulders-display-vf.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-vf.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Red Hat Mono"; src: url("/assets/fonts/red-hat-mono-vf.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --nat: #0e1318;
  --panel: #18212b;
  --panel-2: #222d39;
  --rav: #ffb000;
  --rav-dyb: #b87c00;
  --bane: #2f9e5b;
  --kridt: #f2f4ef;
  --kridt-2: #e4e8e1;
  --hvid: #ffffff;
  --blaek: #121a22;
  --graa: #55606b;
  --linje: #cdd3cc;
  --display: "Big Shoulders", "Public Sans", sans-serif;
  --tekst: "Public Sans", system-ui, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--kridt); color: var(--blaek); font-family: var(--tekst); font-size: 1.04rem; line-height: 1.62; }
a { color: #1d6e40; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--rav); outline-offset: 2px; }
::selection { background: var(--rav); color: var(--nat); }

.ramme { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.skjult { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spring { position: absolute; left: 1rem; top: -4rem; background: var(--rav); color: var(--nat); padding: 0.5rem 0.9rem; z-index: 10; font-weight: 700; }
.spring:focus { top: 0.75rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em; line-height: 0.98; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 9vw, 5.6rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); margin: 2.2em 0 0.5em; }
h3 { font-size: 1.45rem; margin: 0 0 0.6rem; }
p { margin: 0 0 1em; }
.overtekst { font-family: var(--mono); font-size: 0.85rem; font-weight: 500; color: var(--graa); margin-bottom: 0.9rem; }
.indledning { font-size: clamp(1.1rem, 2.2vw, 1.26rem); line-height: 1.55; max-width: 46ch; }

/* Top */
.top { background: var(--nat); color: var(--kridt); }
.top-ind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 0.85rem; }
.ordmaerke { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--kridt); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.65rem; text-transform: uppercase; line-height: 1; }
.logo-tal { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: var(--rav); background: var(--panel); padding: 0.3rem 0.5rem; border-radius: 4px; letter-spacing: 0.04em; }
.logo-tal i { font-style: normal; opacity: 0.6; }
.menu { display: flex; flex-wrap: wrap; gap: 0.15rem 1.15rem; }
.menu a { color: #c3ccd4; text-decoration: none; font-weight: 600; font-size: 0.96rem; padding-block: 0.3rem; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--hvid); border-bottom-color: #4c5a68; }
.menu a[aria-current="page"] { color: var(--rav); border-bottom-color: var(--rav); }

/* Knapper */
.knapper { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.knap { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: 0.6rem 1.3rem; background: var(--rav); color: var(--nat); font: inherit; font-weight: 800; text-decoration: none; border: 2px solid var(--rav); border-radius: 4px; cursor: pointer; transition: background-color 0.15s; }
.knap:hover { background: #ffc640; border-color: #ffc640; color: var(--nat); }
.knap-lys { background: transparent; color: var(--kridt); border-color: #59656f; }
.knap-lys:hover { background: var(--panel-2); color: var(--hvid); border-color: var(--kridt); }
.tekstside .knap-lys { color: var(--blaek); border-color: var(--blaek); }
.tekstside .knap-lys:hover { background: var(--blaek); color: var(--kridt); }

/* Forside */
.helt { background: var(--nat); color: #d6dde3; padding-block: clamp(2.5rem, 7vw, 5rem); }
.helt h1 { color: var(--hvid); }
.helt .overtekst { color: #8b98a4; }
.helt-ind { display: grid; gap: 2.5rem; align-items: center; }
.tavle { background: #05080b; border-radius: 10px; padding: 1.2rem 1.4rem; box-shadow: inset 0 0 0 1px #26313d, 0 24px 50px -30px #000; font-family: var(--mono); max-width: 26rem; width: 100%; justify-self: center; }
.tavle-raekke { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; border-bottom: 1px solid #1c252f; }
.tavle-hold { color: var(--kridt); font-weight: 600; font-size: clamp(1.1rem, 3.5vw, 1.5rem); letter-spacing: 0.12em; }
.tavle-tal { color: var(--rav); font-weight: 700; font-size: clamp(2.8rem, 9vw, 4rem); line-height: 1; text-shadow: 0 0 18px rgb(255 176 0 / 0.45); font-variant-numeric: tabular-nums; }
.tavle-ur { display: flex; justify-content: space-between; padding-top: 0.7rem; color: var(--bane); font-weight: 600; letter-spacing: 0.1em; font-size: 0.95rem; }

.sektion { padding-block: clamp(2.5rem, 6vw, 4rem); }
.sektion > .ramme > h2:first-child { margin-top: 0; }
.kort-gitter { display: grid; gap: 1rem; }
.kort { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.3rem 1.3rem 1.4rem; background: var(--hvid); color: var(--blaek); text-decoration: none; border-radius: 8px; box-shadow: 0 1px 0 var(--linje); transition: transform 0.15s, box-shadow 0.15s; }
.kort:hover { transform: translateY(-2px); box-shadow: 0 1px 0 var(--linje), 0 14px 26px -18px rgb(14 19 24 / 0.5); color: var(--blaek); }
.kort-nr { font-family: var(--mono); font-weight: 700; color: var(--bane); font-size: 0.9rem; }
.kort-titel { font-family: var(--display); font-weight: 800; font-size: 1.7rem; text-transform: uppercase; line-height: 1; }
.sektion-lys { background: var(--kridt-2); }
.to-spalter { display: grid; gap: 2rem; align-items: start; }
.to-spalter h2 { margin-top: 0; }
.punkter { padding-left: 1.3rem; margin: 0; }
.punkter li { margin-bottom: 0.7rem; }
.punkter li::marker { font-family: var(--mono); font-weight: 700; color: var(--bane); }
.note { background: var(--nat); color: #cfd6dc; border-radius: 8px; padding: 1.5rem; }
.note h3 { color: var(--rav); }
.note p { margin: 0; }

/* Tekstsider */
.tekstside { padding-block: clamp(2rem, 6vw, 4rem) 4rem; }
.side-top { max-width: 48rem; margin-bottom: 1.5rem; }
.artikel { max-width: 44rem; }
.artikel ul, .artikel ol { padding-left: 1.3rem; }
.artikel li { margin-bottom: 0.55rem; }
.formel { font-family: var(--mono); font-weight: 600; background: var(--nat); color: var(--rav); display: inline-block; padding: 0.45rem 0.8rem; border-radius: 4px; }
.lille-tekst { font-size: 0.9rem; color: var(--graa); }

.tabel-wrap { overflow-x: auto; margin: 0.8rem 0 1.2rem; }
table { border-collapse: collapse; width: 100%; background: var(--hvid); border-radius: 8px; overflow: hidden; }
th, td { padding: 0.5rem 0.7rem; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--kridt-2); }
thead th { background: var(--nat); color: var(--kridt); font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1rem; }
.tal-tabel td { font-family: var(--mono); }
.stilling td { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.stilling td:first-child { text-align: left; color: var(--graa); }
.stilling tbody th { font-weight: 700; }
.stilling thead th:nth-child(n+3) { text-align: right; }
.stilling .point { font-weight: 700; color: var(--blaek); background: #fff3d6; }
.stilling tbody tr:first-child td:first-child { color: var(--bane); font-weight: 700; }

/* Værktøj */
.vaerktoej { background: var(--hvid); border-radius: 12px; padding: clamp(1rem, 3vw, 1.8rem); margin: 1rem 0 2.5rem; box-shadow: 0 1px 0 var(--linje), 0 18px 36px -28px rgb(14 19 24 / 0.6); }
.v-indstillinger { display: grid; gap: 1rem 2rem; padding-bottom: 1.2rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--kridt-2); }
.felt { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 700; font-size: 0.95rem; }
textarea, select, input[type="number"] { font: inherit; font-weight: 400; color: var(--blaek); background: var(--kridt); border: 1.5px solid var(--linje); border-radius: 6px; padding: 0.5rem 0.65rem; }
textarea { font-family: var(--mono); font-size: 0.95rem; resize: vertical; min-height: 7rem; width: 100%; }
select { min-height: 2.75rem; }
.v-valg { display: flex; flex-direction: column; gap: 0.9rem; }
.tjek-valg { display: flex; gap: 0.55rem; align-items: center; font-weight: 600; min-height: 2.75rem; cursor: pointer; }
.tjek-valg input { width: 1.2rem; height: 1.2rem; accent-color: var(--bane); }
.opsummering { font-family: var(--mono); font-weight: 600; color: var(--bane); margin: 0; }
.v-to { display: grid; gap: 1.8rem; }
.v-to > div { min-width: 0; }
.kampe { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.kamp { display: grid; grid-template-columns: 2.2rem 1fr 3.4rem 0.6rem 3.4rem 1fr; align-items: center; gap: 0.4rem; padding: 0.3rem 0; border-bottom: 1px dashed var(--kridt-2); }
.kamp-runde { font-family: var(--mono); font-size: 0.8rem; color: var(--graa); }
.kamp-hold { font-weight: 600; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.kamp-ude { text-align: left; }
.kamp-streg { text-align: center; color: var(--graa); }
.kamp-maal { width: 100%; min-height: 2.6rem; text-align: center; font-family: var(--mono); font-weight: 700; padding: 0.3rem; -moz-appearance: textfield; }
.kamp-maal::-webkit-outer-spin-button, .kamp-maal::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.runder { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.runde { background: var(--kridt); border-radius: 8px; padding: 1rem 1.1rem; }
.runde h3 { font-size: 1.3rem; color: var(--bane); margin-bottom: 0.4rem; }
.runde ul { list-style: none; padding: 0; margin: 0; }
.runde li { padding: 0.35rem 0; border-bottom: 1px solid var(--kridt-2); font-weight: 600; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.runde li:last-child { border-bottom: 0; }
.runde .mod { color: var(--graa); font-weight: 400; }
.runde .fri { color: var(--graa); font-weight: 400; font-style: italic; }

/* Fod */
.bund { background: var(--nat); color: #aeb8c1; padding-block: 2rem; margin-top: 0; }
.bund-ind { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: baseline; }
.bund-navn { font-family: var(--display); font-weight: 800; color: var(--kridt); font-size: 1.35rem; text-transform: uppercase; margin: 0; }
.bund-navn span { display: block; font-family: var(--tekst); font-weight: 400; text-transform: none; font-size: 0.9rem; color: #8b98a4; }
.bund nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; }
.bund a { color: #d6dde3; text-decoration: none; }
.bund a:hover { color: var(--rav); }

@media (min-width: 760px) {
  .helt-ind { grid-template-columns: 1.3fr 1fr; }
  .kort-gitter { grid-template-columns: repeat(2, 1fr); }
  .to-spalter { grid-template-columns: 1.3fr 1fr; }
  .v-indstillinger { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .kort-gitter { grid-template-columns: repeat(4, 1fr); }
  .v-to { grid-template-columns: 1fr 1.15fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 480px) {
  .kamp { grid-template-columns: 1fr 2.9rem 0.5rem 2.9rem 1fr; gap: 0.3rem; }
  .kamp-runde { display: none; }
}
