/* bingoupgrade.com - cream paper, magenta daubs and sunny yellow: bingo explained */
@font-face { font-family: "Young Serif"; src: url("/assets/fonts/young-serif-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-latin.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
:root {
  --bg: #fff8ec; --ink: #2a1420; --daempet: #66525c; --link: #a3195b; --accent: #f6b828; --fokus: #f6b828;
  --flade: #fcebd2; --linje: #ecd3b4; --magenta: #a3195b; --magenta-dyb: #7d1045; --gul: #f6b828; --blaa: #2b5d8a;
  --display: "Young Serif", Georgia, serif; --tekst: "Figtree", system-ui, sans-serif; --mono: "Figtree", system-ui, sans-serif;
  --knap: #a3195b; --knap-tekst: #fff8ec; --rund: 14px; --bredde: 68rem;
  --fod-bg: #4a0d2b; --fod-tekst: #f8e6ee; --fod-linje: #6b2347; --resultat-bg: #fff8ec; --felt-bg: #fffdf8;
}

/* ---- Grundlag (fælles struktur; farver og skrifter står i :root ovenfor) ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--tekst); font-size: var(--fs, 1.0625rem); line-height: 1.62; font-feature-settings: "kern" 1; text-rendering: optimizeLegibility; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; border-radius: 2px; }
.ramme { width: min(100% - 2rem, var(--bredde, 70rem)); margin-inline: auto; }
.spring { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--bg); padding: 0.5rem 0.9rem; font-weight: 700; z-index: 10; }
.spring:focus { top: 0.75rem; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; text-wrap: balance; }
h1 { margin: 0 0 0.9rem; }
h2 { margin: 2.4em 0 0.6em; }
h3 { margin: 1.7em 0 0.45em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.1em; }
li { margin-bottom: 0.4em; }
.indledning { font-size: clamp(1.1rem, 2.1vw, 1.28rem); line-height: 1.5; max-width: 44ch; }
.daempet { color: var(--daempet); }
.tal { font-family: var(--mono, inherit); font-variant-numeric: tabular-nums; }

/* Top */
.top-ind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.6rem; padding-block: 0.95rem; }
.ordmaerke { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: inherit; line-height: 1; }
.ordmaerke span span { opacity: 0.6; }
.ikon { width: 1.75rem; height: 1.75rem; flex: none; }
.menu { display: flex; flex-wrap: wrap; gap: 0.2rem 1.15rem; }
.menu a { text-decoration: none; font-weight: 600; font-size: 0.96rem; padding-block: 0.3rem; color: inherit; border-bottom: 2px solid transparent; }
.menu a:hover { border-bottom-color: currentColor; }
.menu a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Sektioner */
.sektion { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.sektion > .ramme > h2:first-child, .sektion h2.forst { margin-top: 0; }
.to-spalter { display: grid; gap: 2rem 3.5rem; }
@media (min-width: 52rem) { .to-spalter { grid-template-columns: 1fr 1fr; } }
.genveje { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.genvej { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.25rem 1.3rem 1.35rem; text-decoration: none; color: inherit; background: var(--flade); border-radius: var(--rund, 6px); }
.genvej:hover .genvej-titel { text-decoration: underline; text-underline-offset: 0.2em; }
.genvej-titel { font-family: var(--display); font-size: 1.3rem; line-height: 1.15; }
.knapper { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.knap { display: inline-block; padding: 0.75rem 1.2rem; background: var(--knap, var(--ink)); color: var(--knap-tekst, var(--bg)); text-decoration: none; font-weight: 700; border-radius: var(--rund, 6px); border: 2px solid var(--knap, var(--ink)); line-height: 1.2; }
.knap:hover { filter: brightness(1.12); }
.knap-lys { background: transparent; color: inherit; border-color: currentColor; }

/* Tekstsider */
.tekstside { padding-block: clamp(2rem, 5vw, 3.75rem) clamp(3rem, 7vw, 5rem); }
.side-top { max-width: 48rem; margin-bottom: 2.2rem; }
.artikel { max-width: var(--maal, 68ch); }
.artikel > h2:first-child { margin-top: 0; }
.fakta { background: var(--flade); padding: 1.15rem 1.35rem; border-radius: var(--rund, 6px); margin: 1.6rem 0; }
.fakta > :last-child { margin-bottom: 0; }
.fakta-titel { font-weight: 700; margin-bottom: 0.35rem; }
.tabel-wrap { overflow-x: auto; margin: 1.3rem 0 1.6rem; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: 0.98rem; }
th, td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--linje); white-space: nowrap; vertical-align: top; }
th { font-weight: 700; }
td.h, th.h { text-align: right; }
caption { text-align: left; font-weight: 700; padding-bottom: 0.4rem; }
dl.ord dt { font-weight: 700; margin-top: 1rem; }
dl.ord dd { margin: 0.2rem 0 0; }

/* Værktøjer */
.vaerktoj { background: var(--flade); border-radius: var(--rund, 6px); padding: clamp(1.1rem, 3vw, 1.8rem); margin: 1.5rem 0 2rem; }
.felter { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin-bottom: 1.2rem; }
.felt label, .felt .etiket { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.35rem; }
.felt small { display: block; color: var(--daempet); font-size: 0.85rem; margin-top: 0.3rem; }
input[type="number"], input[type="text"], select { width: 100%; font: inherit; font-size: 1rem; padding: 0.6rem 0.7rem; border: 1.5px solid var(--felt-kant, var(--linje)); border-radius: calc(var(--rund, 6px) * 0.7); background: var(--felt-bg, #fff); color: var(--ink); }
input:focus-visible, select:focus-visible { outline-offset: 1px; }
button { font: inherit; cursor: pointer; }
.resultat { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin-top: 0.4rem; }
.resultat > div { background: var(--resultat-bg, var(--bg)); padding: 0.85rem 1rem; border-radius: calc(var(--rund, 6px) * 0.8); }
.resultat dt, .resultat .r-etiket { font-size: 0.85rem; color: var(--daempet); margin: 0; }
.resultat dd, .resultat .r-tal { margin: 0.2rem 0 0; font-size: 1.45rem; font-weight: 700; font-family: var(--mono, inherit); font-variant-numeric: tabular-nums; line-height: 1.2; }
.forklaring { margin-top: 1rem; font-size: 0.97rem; }

/* Fod */
.bund { background: var(--fod-bg); color: var(--fod-tekst); padding-block: 2.2rem 2.6rem; font-size: 0.95rem; }
.bund a { color: inherit; }
.hjalp { max-width: 62ch; margin: 0 0 1.6rem; }
.bund-linje { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem; padding-top: 1.2rem; border-top: 1px solid var(--fod-linje); }
.bund-navn { margin: 0; font-weight: 700; }
.bund nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; }

@media (max-width: 30rem) {
  .menu { gap: 0.1rem 0.9rem; }
  .menu a { font-size: 0.92rem; }
  th, td { padding: 0.5rem 0.55rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.vaerktoj h2.forst, .vaerktoj > h2:first-child { margin-top: 0; }

/* ---- Tema ---- */
h1, h2, h3 { font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); line-height: 1.03; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.35rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.top { background: var(--magenta); color: #fff8ec; }
.ordmaerke { font-family: var(--display); font-size: 1.45rem; }
.ordmaerke .ikon { color: var(--gul); }
.menu a { color: #fde9f1; }
.menu a[aria-current="page"] { color: var(--gul); border-bottom-color: var(--gul); }
.helt { padding-block: clamp(2.6rem, 7vw, 5rem); background: radial-gradient(circle at 85% 20%, #ffe7a8 0, transparent 30%), var(--bg); }
.helt-ind { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .helt-ind { grid-template-columns: 1fr 1.1fr; } }
.helt h1 em { font-style: normal; color: var(--magenta); }
.billet { border-collapse: separate; border-spacing: 4px; background: var(--gul); border-radius: 10px; padding: 6px; width: 100%; max-width: 34rem; table-layout: fixed; box-shadow: 0 14px 30px rgba(122, 16, 69, 0.15); }
.billet td { background: #fffdf8; text-align: center; padding: 0; height: 3.1rem; border: 0; font-family: var(--display); font-size: 1.25rem; border-radius: 4px; white-space: nowrap; }
.billet td.tom { background: #f9dd92; }
.billet td.daub span { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(163, 25, 91, 0.82); color: #fff; }
.baller { display: flex; gap: 0.8rem; margin-top: 1.4rem; justify-content: flex-end; }
.bold { display: inline-grid; place-items: center; width: 4.2rem; height: 4.2rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 22%, var(--b, var(--magenta)) 23%); font-family: var(--display); font-size: 1.15rem; color: var(--ink); box-shadow: inset -4px -6px 0 rgba(0,0,0,.12); }
.bold.gul { --b: var(--gul); } .bold.blaa { --b: var(--blaa); }
.spil { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.spil > div { background: #fff; border-radius: var(--rund); padding: 1.2rem 1.3rem; box-shadow: 0 1px 0 var(--linje), 0 6px 18px rgba(74, 13, 43, 0.06); }
.spil .stor { font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--magenta); display: block; margin-bottom: 0.3rem; }
.genvej { background: var(--magenta); color: #fff8ec; }
.genvej:hover { background: var(--magenta-dyb); }
.genvej-titel { color: var(--gul); }
.kort75 { border-collapse: separate; border-spacing: 3px; width: auto; margin: 1rem 0 1.5rem; }
.kort75 th { background: var(--magenta); color: #fff; text-align: center; font-family: var(--display); font-weight: 400; font-size: 1.3rem; width: 3rem; border: 0; border-radius: 6px 6px 0 0; padding: 0.3rem 0; }
.kort75 td { background: #fff; text-align: center; width: 3rem; height: 2.8rem; padding: 0; border: 1px solid var(--linje); font-family: var(--display); font-size: 1.1rem; border-radius: 4px; }
.kort75 td.fri { background: var(--gul); font-family: var(--tekst); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.kald { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); list-style: none; padding: 0; }
.kald li { display: flex; gap: 0.8rem; align-items: center; background: #fff; border-radius: 999px; padding: 0.35rem 1rem 0.35rem 0.35rem; margin: 0; box-shadow: 0 1px 0 var(--linje); }
.kald b { flex: none; display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--magenta); color: #fff; font-family: var(--display); font-weight: 400; }
.opraab { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; margin-bottom: 1rem; }
.opraab .bold { width: 6rem; height: 6rem; font-size: 2rem; }
.opraab-tekst { font-family: var(--display); font-size: 1.4rem; margin: 0; }
.opraab-tekst small { display: block; font-family: var(--tekst); font-size: 0.95rem; color: var(--daempet); }
.tavle90 { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; max-width: 34rem; margin: 1rem 0; }
.tavle90 span { text-align: center; padding: 0.35rem 0; font-size: 0.9rem; background: #fff; border-radius: 4px; color: #b9a6ae; font-variant-numeric: tabular-nums; }
.tavle90 span.kaldt { background: var(--magenta); color: #fff; font-weight: 700; }
.knap-raekke { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0; }
.knap-raekke button { padding: 0.7rem 1.1rem; border-radius: var(--rund); border: 2px solid var(--magenta); background: var(--magenta); color: #fff8ec; font-weight: 700; }
.knap-raekke button.lys { background: transparent; color: var(--magenta); }
.utan-topp { padding-top: 0; }
.bund .hjalp strong { color: var(--gul); }
@media print { .top, .bund, .ikke-print, .artikel, .side-top { display: none !important; } .vaerktoj { background: none; } }
@media (max-width: 30rem) { .billet td { height: 2.4rem; font-size: 0.95rem; } .billet td.daub span { width: 1.8rem; height: 1.8rem; } .billet { border-spacing: 2px; padding: 4px; } .tavle90 span { font-size: 0.75rem; } }
.bold { background: radial-gradient(circle at 50% 50%, #fffdf8 0 40%, transparent 41%), radial-gradient(circle at 28% 22%, rgba(255,255,255,.45) 0 14%, transparent 15%), var(--b, var(--magenta)); }
