/*
 * Fælles typografi for sidens indhold (sifa-online.dk), Christian 21/11-2026.
 * Indlæses efter sifa-online.full.min.css og sifa-online.extra2.css.
 * Kun indholdet (#content), ikke topbjælke, menu og footer, og kun almindelig
 * tekst: p og li uden klasse (komponenter som vinderlisten og spilkort røres ikke). :where() giver
 * lav specificitet, så komponenter med egne klasser (fx bonusbanneret)
 * beholder deres størrelser. rem = 10px på sitet, derfor px og clamp().
 */
:where(#content) p:where(:not([class])),
:where(#content) li:where(:not([class])),
:where(#content) td,
:where(#content) th { font-size: 20px; line-height: 1.5; }
:where(#content) li:where(:not([class])) + li { margin-top: .15em; }
:where(#content) p:where(:not([class])) { margin: 0 0 .6em; }

:where(#content) h1 { font-size: clamp(34px, 26px + 2.2vw, 56px); line-height: 1.1; margin: .4em 0 .5em; letter-spacing: .01em; }
:where(#content) h2 { font-size: clamp(26px, 22px + 1vw, 36px); line-height: 1.15; margin: 1.2em 0 .4em; }
:where(#content) h3 { font-size: clamp(21px, 19px + .4vw, 26px); line-height: 1.2; margin: 1em 0 .3em; }
:where(#content) h4 { font-size: 20px; line-height: 1.25; margin: 1.1em 0 .3em; }
:where(#content) :where(h1, h2, h3, h4) + p { margin-top: 0; }
/* Ingen luft over en overskrift, der står først i sin boks, også efter en lukkeknap (×) */
:where(#content) :where(h1, h2, h3, h4):first-child,
:where(#content) :where(.close) + h1, :where(#content) :where(.close) + h2,
:where(#content) :where(.close) + h3, :where(#content) :where(.close) + h4 { margin-top: 0; }
/* Sidste afsnit i en boks skal ikke skubbe boksens kant ned */
:where(#content) :where(.alert, .card) > p:last-child { margin-bottom: 0; }
/* Brødtekst 20 px på mobil, op til 24 px på store skærme, og læsbar linjelængde */
:where(#content) p:where(:not([class])),
:where(#content) li:where(:not([class])),
:where(#content) td,
:where(#content) th { font-size: clamp(20px, 14px + .65vw, 24px); }
:where(#content) p:where(:not([class])),
:where(#content) li:where(:not([class])) { max-width: 75ch; }
