/* Skolelær: the website. One look, the same as the videos and worksheets: lined paper, graphite, Bob's red, blue, green
   and pencil yellow, rounded display type. Layout: one centred column (1240 px), bands for sections, cards for lessons. */
:root {
  --paper: #f7f3ea; --page: #fffdf8; --ink: #2f2a26; --soft: #5f574f; --faint: #ece4d6; --line: rgba(70,110,170,.13);
  --red: #c9452f; --red-ink: #a8361f; --blue: #2d6fa5; --green: #2e7d4f; --yellow: #e2b04e; --tip: #fff6dc; --tip-line: #d9b24f;
  --t-brok: #f3c9bf; --t-plus: #c9dcee; --t-minus: #cfe5d6; --t-geo: #eadcf4; --t-ur: #d9e4f5; --t-tal: #f6e3b4; --t-gange: #e4d7f0; --t-funk: #cfe7e4;
  --display: "Baloo 2", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
  --body: "Nunito Sans", "Helvetica Neue", Helvetica, system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
body { background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); margin: 0 }
a { color: var(--blue) } a:hover { color: #1f557f }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0; text-wrap: balance }
p { margin: 0 }
img, video { max-width: 100%; display: block }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)) }
.band { padding-block: 64px }
.band.white { background: var(--page) }
.band.dark { background: var(--ink); color: var(--page) }
.eyebrow { font: 800 13px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--red) }
.dark .eyebrow { color: var(--yellow) }
.lead { font-size: 20px; color: var(--soft); max-width: 34em }
.dark .lead { color: #e9e1d4 }
.muted { color: var(--soft); font-size: 15px }

/* header */
.top { background: var(--paper); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; border-bottom: 1.5px solid transparent }
.top.scrolled { border-bottom-color: #e3d9c8 }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding-block: 16px }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 27px var(--display) }
.menu { display: flex; flex-wrap: wrap; gap: 4px 20px; flex: 1 1 auto; font-weight: 700; font-size: 16px }
.menu a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2.5px solid transparent }
.menu a[aria-current="page"] { border-bottom-color: var(--red) }
.menu a.info { font-weight: 600; font-size: 15px; color: var(--soft) }          /* the pages that only tell about Skolelær stand back */
.bund, .mere, .apptop, .bund .kunapp { display: none }
/* the menu at the bottom (a phone, an upright tablet, and always inside the SkoleLog app): the same measures as SkoleLog's own tab bar
   (Stig 2026-11-16: ours was too tall): a row of 50px, tucked partly into the home indicator's strip instead of sitting on top of all of it */
:root { --bundluft: max(calc(env(safe-area-inset-bottom, 0px) - 10px), 6px) }
.bund { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; height: calc(50px + var(--bundluft)); padding: 0 max(6px, env(safe-area-inset-right, 0px)) var(--bundluft) max(6px, env(safe-area-inset-left, 0px));
  background: rgba(255,253,248,.97); border-top: 1px solid #e3d9c8 }
.bund a, .bund button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; padding: 4px 0 0; border: 0; background: none; color: var(--soft); font: 700 11px/1 var(--body);
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none }
.bund .pille { display: grid; place-items: center; width: 54px; height: 28px; border-radius: 999px; transition: background-color .2s }
.bund svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.bund a[aria-current], .bund button.her, .bund button[aria-expanded="true"] { color: var(--red-ink) }
.bund a[aria-current] .pille, .bund button.her .pille, .bund button[aria-expanded="true"] .pille { background: #f6e1d6 }
.bund a[aria-current] svg { stroke-width: 2.3 }
.bund .prik { position: absolute; top: 5px; left: calc(50% + 8px); width: 10px; height: 10px; border-radius: 50%; background: var(--red); border: 2px solid var(--page) }
.lang { color: var(--soft); font-weight: 700; font-size: 15px; text-decoration: none }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: 800 17px var(--body); text-decoration: none; cursor: pointer; border: 2px solid var(--ink) }
.btn.red { background: var(--red); border-color: var(--red); color: var(--page) } .btn.red:hover { background: var(--red-ink); color: var(--page) }
.btn.ink { background: var(--ink); color: var(--page) } .btn.ink:hover { color: var(--page); background: #1d1916 }
.btn.plain { background: var(--page); color: var(--ink) }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: 15px }

/* hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 36px 72px }
.hero .text { flex: 999 1 480px; min-width: 0; display: grid; gap: 20px }
.hero h1 { font-size: clamp(42px, 5.6vw, 74px); letter-spacing: -.015em }
.hero .row { display: flex; flex-wrap: wrap; gap: 12px }

/* the hero stage: a phone with Bob drawing, the free worksheet tilted behind it, two notes in Bob's red pencil */
.stage { flex: 1 1 380px; max-width: 470px; position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 30px 0 10px }
.sheet-back { position: absolute; width: 60%; left: -6%; top: 28%; transform: rotate(-7deg); border-radius: 6px; box-shadow: 0 18px 40px -20px rgba(60,40,20,.55); background: var(--page) }
.device { position: relative; width: 100%; aspect-ratio: 9 / 19.5; border-radius: 48px; padding: 11px; background: #1f1b18;
  box-shadow: inset 0 0 0 2px #4a433d, inset 0 0 0 4px #1f1b18, 0 40px 70px -30px rgba(40,25,10,.55), 0 12px 24px -12px rgba(40,25,10,.35) }
.device::before, .device::after { content: ""; position: absolute; width: 4px; border-radius: 3px; background: #2c2622 }
.device::before { left: -4px; top: 22%; height: 9% } .device::after { right: -4px; top: 28%; height: 14% }
/* an iPhone screen is taller than the 9:16 video, so the whole video sits in the middle (nothing cut away: Bob stands
   near the right edge), with the status bar above it and the home bar below, in the video's own paper colours */
.screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; display: flex; flex-direction: column; background: linear-gradient(#f6f0e4 50%, #ece0cc 50%) }
.device video { display: block; width: 100%; aspect-ratio: 9 / 16; height: auto; flex: none }
/* full screen shows the whole 9:16 video, with bars at the sides on a wide screen */
video:fullscreen { object-fit: contain; aspect-ratio: auto; background: #000 }
video:-webkit-full-screen { object-fit: contain; aspect-ratio: auto; background: #000 }
.stage .device { width: 262px; max-width: 78%; transform: rotate(3deg) translateX(24%) }
.statusbar { flex: 1.25; display: flex; justify-content: space-between; align-items: center; padding: 0 9% 0 11%; color: #1f1b18; font: 700 14px var(--body); background: #f6f0e4 }
.statusbar svg { fill: currentColor; color: #1f1b18 }
.homebar { flex: 1; position: relative; background: #ece0cc }
.homebar::after { content: ""; position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 36%; height: 5px; border-radius: 3px; background: #1f1b18 }
/* the camera island sits in the status bar, above the video, never on it */
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 32%; height: 25px; border-radius: 14px; background: #121010; z-index: 1 }
.sound { position: relative; z-index: 2; transform: translateX(24%); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--red); color: var(--page); font: 800 15px var(--body); cursor: pointer; box-shadow: 0 8px 18px -8px rgba(120,30,10,.6) }
.sound:hover { background: var(--red-ink) }
.scribble { position: absolute; z-index: 2; font: 800 19px/1.15 var(--display); color: var(--red); display: flex; gap: 4px; align-items: flex-start }
.scribble.s1 { left: -4%; top: 0; transform: rotate(-4deg) }
.scribble.s2 { left: -12%; bottom: 9%; white-space: nowrap; transform: rotate(-3deg); flex-direction: column; align-items: flex-start; color: var(--blue) }

/* steps (a real order: watch, fetch, practise) */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; counter-reset: s }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start }
.steps li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--page); font: 800 22px var(--display); display: grid; place-items: center }
.steps h3 { font-size: 23px }
.steps p { color: var(--soft) }

/* lesson cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 24px }
.card { display: grid; gap: 10px; align-content: start; text-decoration: none; color: var(--ink); background: var(--page); border-radius: 20px; padding: 12px; box-shadow: 0 10px 24px -18px rgba(60,40,20,.55); transition: transform .15s }
.card:hover { transform: translateY(-3px); color: var(--ink) }
@media (prefers-reduced-motion: reduce) { .card { transition: none } .card:hover { transform: none } }
.poster { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 9 / 16; background: var(--paper) }
.poster img { width: 100%; height: 100%; object-fit: cover }
.poster .time { position: absolute; right: 10px; bottom: 10px; background: rgba(47,42,38,.86); color: var(--page); font-size: 13px; font-weight: 800; padding: 3px 9px; border-radius: 999px; font-variant-numeric: tabular-nums }
.chips { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; font-weight: 800 }
.chip { padding: 4px 10px; border-radius: 999px; background: var(--faint); color: var(--soft) }
.chip.Brøker { background: var(--t-brok); color: var(--ink) } .chip.Plus { background: var(--t-plus); color: var(--ink) } .chip.Minus { background: var(--t-minus); color: var(--ink) } .chip.Geometri { background: var(--t-geo); color: var(--ink) } .chip.Klokken { background: var(--t-ur); color: var(--ink) } .chip.Tal { background: var(--t-tal); color: var(--ink) } .chip.Gange { background: var(--t-gange); color: var(--ink) } .chip.Funktioner { background: var(--t-funk); color: var(--ink) }
.chip.udkast { background: var(--ink); color: var(--page) }
.card h3 { font-size: 21px; padding: 0 4px } .card p { font-size: 14.5px; line-height: 1.45; color: var(--soft); padding: 0 4px 6px }

/* the riddle sheets (#gaader) */
.poster.a4 { aspect-ratio: 600 / 849; background: #fff }
.grid.gaader { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 980px }
@media (max-width: 560px) { .grid.gaader { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px } .card.gaade .hent { font-size: 14px; padding: 8px 12px } }
.gaade-aabn { display: grid; gap: 10px; color: inherit; text-decoration: none }
.gaade-knapper { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px 4px }
/* the reader: one case on the whole screen (#gaader/<serie>/<nr>) */
.laeser-aaben, .laeser-aaben body { overflow: hidden }
.laeser { position: fixed; inset: 0; z-index: 200; background: #2f2a26; display: grid; grid-template-rows: auto minmax(0, 1fr); color: #fffdf8 }
.laeser-top { display: flex; align-items: center; gap: 8px; padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left)); background: #2f2a26; flex-wrap: wrap }
.laeser-luk { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fffdf8; color: #2f2a26; font: 800 30px/1 var(--display); text-decoration: none; flex: none }
.laeser-titel { flex: 1 1 140px; min-width: 0; display: grid; line-height: 1.15 } .laeser-titel b { font: 800 20px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis } .laeser-titel span { font-size: 13px; opacity: .75 }
.laeser-knap { font: 800 15px var(--body); border-radius: 999px; padding: 10px 14px; border: 2px solid #fffdf8; background: transparent; color: #fffdf8; text-decoration: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center }
.laeser-knap.mork { background: #fffdf8; color: #2f2a26 } .laeser-knap[aria-pressed="true"] { background: #e2b04e; border-color: #e2b04e; color: #2f2a26 }
.laeser-flade { overflow: auto; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 8px max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); cursor: zoom-in; -webkit-overflow-scrolling: touch; overscroll-behavior: contain }
.laeser-flade img { max-width: 100%; max-height: 100%; object-fit: contain; min-height: 0; border-radius: 6px; box-shadow: 0 10px 40px -10px rgba(0,0,0,.7); background: #fff; transition: transform .35s }
.laeser-flade.zoom { display: block; cursor: zoom-out } .laeser-flade.zoom img { max-width: none; max-height: none; width: max(220%, 1400px / 1.3) }
@media (min-width: 900px) { .laeser-flade.zoom img { width: 100% } }
.laeser-flade.vendt img { transform: rotate(180deg) }
.laeser-pil { position: fixed; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; background: rgba(255,253,248,.92); color: #2f2a26; display: grid; place-items: center; font: 800 38px/1 var(--display); text-decoration: none; box-shadow: 0 6px 18px -8px rgba(0,0,0,.7); padding-bottom: 6px }
.laeser-pil.venstre { left: max(8px, env(safe-area-inset-left)) } .laeser-pil.hoejre { right: max(8px, env(safe-area-inset-right)) }
.laeser-tip { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(47,42,38,.85); color: #fffdf8; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; pointer-events: none; animation: tipvaek 4s forwards }
@keyframes tipvaek { 0%, 70% { opacity: 1 } 100% { opacity: 0 } }
@media (max-width: 560px) { .laeser-knap { padding: 8px 11px; font-size: 14px } .laeser-titel { flex-basis: calc(100% - 60px) } .laeser-top > .laeser-knap:first-of-type { margin-left: 52px } }
.chip.svaer-let { background: #d8ecd9; color: var(--ink) } .chip.svaer-mellem { background: #f6e3a8; color: var(--ink) } .chip.svaer-svær { background: #f3c9bd; color: var(--ink) }
.gaade-top { padding-bottom: 8px }

/* library */
.lib { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-block: 16px 80px }
.filters { flex: 1 1 230px; display: grid; gap: 22px }
.filters .label { font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase }
.filters input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--ink); font: 16px var(--body); background: var(--page); color: var(--ink) }
.pills { display: flex; flex-wrap: wrap; gap: 8px }
.pill { font: 800 15px var(--body); padding: 9px 14px; border-radius: 999px; border: 2px solid var(--ink); background: var(--page); color: var(--ink); cursor: pointer; min-height: 44px }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--page) }
.soon { background: var(--page); border: 2px dashed #b9ad9a; border-radius: 16px; padding: 16px; font-size: 15px; color: var(--soft) }
.results { flex: 999 1 620px; min-width: 0; display: grid; gap: 16px }

/* one lesson */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--soft); padding-top: 4px }
.lesson { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-block: 24px 56px }
.lesson .player { flex: 1 1 300px; max-width: 390px; display: grid; gap: 10px }
/* when the text drops under the video (a tablet held upright, a narrow window), the video stands in the middle, not alone on the left */
@media (max-width: 960px) { .lesson .player { margin-inline: auto } }
.lesson .player .note { font-size: 14px; color: var(--soft); text-align: center }
.lesson .info { flex: 999 1 500px; min-width: 0; display: grid; gap: 22px }
.lesson h1 { font-size: clamp(38px, 4.6vw, 60px) }
.box { background: var(--page); border-radius: 22px; padding: 24px; display: grid; gap: 14px }
.box h2 { font-size: 25px }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px }
.level { border: 2px solid var(--ink); border-radius: 16px; padding: 14px 16px; display: grid; gap: 4px; align-content: start }
.level .tag { font-weight: 800; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase }
.level:nth-child(1) .tag { color: var(--green) } .level:nth-child(2) .tag { color: #9a6d10 } .level:nth-child(3) .tag { color: var(--red) }
.level b { font: 800 21px var(--display) } .level span:last-child { font-size: 15px; color: var(--soft); line-height: 1.45 }
.tip { background: var(--tip); border: 2px solid var(--tip-line); border-radius: 22px; padding: 24px; display: grid; gap: 8px }
.tip h2 { font-size: 25px }
.sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px }
.sheets img { border-radius: 8px; box-shadow: 0 8px 22px -14px rgba(60,40,20,.6); width: 100%; aspect-ratio: 794 / 1123; object-fit: cover; background: var(--page) }

/* sign-up */
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px }
.panel { border-radius: 22px; padding: 30px; display: grid; gap: 12px; align-content: start }
.panel.line { background: var(--page); border: 2px solid var(--ink) }
.panel.yellow { background: var(--yellow) }
.panel h2 { font-size: 30px }

.bob { display: flex; flex-wrap: wrap; gap: 40px; align-items: center }
.bob .text { flex: 999 1 460px; min-width: 0; display: grid; gap: 14px }
.bob .pics { flex: 1 1 320px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
.bob .pics img { border-radius: 14px; aspect-ratio: 9 / 16; object-fit: cover; width: 100% }

footer { border-top: 1.5px solid #e3d9c8; padding-block: 28px; font-size: 14px; color: var(--soft) }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px }

/* below about 960 px the text and the phone cannot stand side by side: a one-line header that scrolls away (the menu
   as one row you can swipe), and the hero as one centred stage: the phone on the right, the worksheet visible on the
   left, the notes beside them, never on the phone or off the screen */
@media (max-width: 960px) {
  .top { position: static }
  .top .wrap { padding-block: 12px; gap: 8px 16px }
  .lang { display: none }
  /* the menu is the bar at the bottom of the screen (.bund), always there; the row of links under the logo and "Find en lektion" are gone */
  .menu, .top .btn.ink { display: none }
  .top #konto { margin-left: auto }
  body { padding-bottom: calc(50px + var(--bundluft)) }
  .bund { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60 }
  .mere:not([hidden]) { display: grid; position: fixed; right: max(8px, env(safe-area-inset-right, 0px)); bottom: calc(58px + var(--bundluft)); z-index: 61; min-width: 230px; max-width: calc(100vw - 16px); padding: 8px;
    background: var(--page); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 0 10px 30px rgba(47,42,38,.25) }
  .mere a { display: flex; align-items: center; min-height: 46px; padding: 8px 14px; border-radius: 10px; color: var(--ink); font-weight: 700; text-decoration: none }
  .mere a:active { background: var(--faint) }
  #merekonto { display: grid } #merekonto:not(:empty) { border-bottom: 1.5px solid var(--faint); margin-bottom: 6px; padding-bottom: 6px } #merekonto a { font-weight: 800 }
  body .fbknap { bottom: calc(62px + var(--bundluft)) }
  .hero .text { flex-basis: 100% }
  .stage { flex: 1 1 100%; width: 100%; max-width: 560px; margin: 0 auto; align-items: flex-end; padding: 44px 0 0; gap: 18px }
  .stage .device { width: 54%; max-width: 290px; transform: rotate(2deg); margin-right: 4% }
  .sheet-back { width: 44%; left: 2%; top: 20%; transform: rotate(-6deg) }
  .scribble.s1 { left: auto; right: 52%; top: 0; white-space: nowrap }
  .scribble.s2 { left: 2%; top: auto; bottom: 104px; max-width: 40% }
  .sound { transform: none; align-self: center }
}
@media (max-width: 560px) {
  .band { padding-block: 44px }
  .hero { padding-block: 20px 48px; gap: 28px }
  .logo { font-size: 24px }
  .hero h1 { font-size: 36px }
  .hero .lead { font-size: 17px }
  .hero .row .btn { flex: 1 1 auto; min-height: 46px; padding: 10px 16px; font-size: 16px }
  .stage { padding-top: 36px }
  .stage .device { width: 56%; max-width: 230px; border-radius: 38px; padding: 9px; margin-right: 3% }
  .stage .screen { border-radius: 30px } .stage .statusbar { font-size: 11px } .stage .statusbar svg { width: 44px } .stage .homebar::after { bottom: 6px; height: 4px }
  .stage .island { top: 8px; height: 19px }
  .sheet-back { left: 1%; top: 22% }
  .scribble { font-size: 15px }
  .scribble.s1 { right: 44% }
  .scribble.s1 svg { width: 60px; height: 76px }
  .scribble.s2 svg { width: 54px; height: 40px }
  .scribble.s2 { bottom: 90px }
  .sheets { grid-template-columns: 1fr 1fr; gap: 8px }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
  .card { padding: 8px; border-radius: 16px }
  .card h3 { font-size: 17px } .card p { display: none }
}
/* the newest lessons on the front page: always one full row (two on a phone), the cards that do not fit are hidden */
.grid.nyeste { grid-template-columns: repeat(5, minmax(0, 1fr)) }
@media (max-width: 1100px) { .grid.nyeste { grid-template-columns: repeat(4, minmax(0, 1fr)) } .grid.nyeste > :nth-child(n+5) { display: none } }
@media (max-width: 820px) { .grid.nyeste { grid-template-columns: repeat(3, minmax(0, 1fr)) } .grid.nyeste > :nth-child(n+4) { display: none } }
@media (max-width: 560px) { .grid.nyeste { grid-template-columns: repeat(2, minmax(0, 1fr)) } .grid.nyeste > :nth-child(4) { display: grid } }

/* the online sheet of a lesson: ove.html in a frame that grows with it */
.ove-band { display: grid; gap: 18px; padding-block: 40px 56px }
.ove-head { display: grid; gap: 6px; max-width: 46em }
.ove-head h2 { font-size: 34px }
.ove-frame { width: 100%; min-height: 420px; border: 0; display: block; background: transparent }
@media (max-width: 560px) { .ove-head h2 { font-size: 27px } }
.udklip { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: -10px }
.udklip .muted { flex: 1 1 220px }
/* the overview at the top of #spil: every game as a small card, the picture starts the game */
.spilvalg { display: grid; gap: 12px; padding-block: 30px 44px }
.spilvalg h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -.015em }
.spilgitter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; margin-top: 10px }
.spilkort { display: grid; gap: 2px; align-content: start; justify-items: start; min-width: 0 }
.spilkort .billede { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; border-radius: 18px; overflow: hidden; border: 2px solid var(--ink); background: var(--faint); box-shadow: 0 5px 0 rgba(47,42,38,.12); transition: transform .15s }
.spilkort .billede:hover { transform: translateY(-3px) }
.spilkort img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38% }
.spilnu { position: absolute; right: 8px; bottom: 8px; padding: 5px 14px; border-radius: 999px; background: var(--red); color: var(--page); font: 800 15px var(--body) }
.spilkort h2 { font-size: 22px; margin-top: 8px; overflow-wrap: anywhere }
.spilkort p { margin: 0; color: var(--soft); font-size: 15px; line-height: 1.3 }
.spilkort button { border: 0; background: none; padding: 6px 0; min-height: 36px; font: 700 15px var(--body); color: var(--blue); text-decoration: underline; cursor: pointer }
@media (max-width: 960px) { .spilgitter { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
@media (max-width: 560px) { .spilvalg { padding-block: 14px 30px; gap: 6px } .spilvalg .lead { display: none } .spilgitter { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin-top: 6px }
  .spilkort { gap: 0 } .spilkort h2 { font-size: 19px; margin-top: 7px } .spilkort p { font-size: 14px } .spilkort .billede { border-radius: 14px } .spilkort button { min-height: 30px; padding: 3px 0; font-size: 14px }
  .spilnu { right: 6px; bottom: 6px; padding: 3px 12px; font-size: 14px } }
@media (prefers-reduced-motion: reduce) { .spilkort .billede { transition: none } .spilkort .billede:hover { transform: none } }
/* the games (#spil): a picture of the game in the phone, and a short list of facts */
.device img.spilbillede { display: block; width: 100%; height: 100%; object-fit: cover }
.device video.spilbillede { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover }
.fakta { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--soft); font-size: 17px; max-width: 34em }
/* the library (#bibliotek): search, age and topics on top, the lessons below */
.bib-top { display: grid; gap: 14px; padding-top: 24px }
.bib-top h1 { font-size: 52px }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
.sogrk { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px }
.sogfelt { flex: 1 1 340px; position: relative; display: block }
.sogfelt svg { position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--soft); pointer-events: none }
.sogfelt input { width: 100%; min-height: 54px; padding: 12px 16px 12px 48px; border-radius: 16px; border: 2px solid var(--ink); font: 17px var(--body); background: var(--page); color: var(--ink) }
.sogfelt input:focus { outline: 3px solid var(--yellow); outline-offset: 2px }
.aldre { display: flex; background: var(--faint); border-radius: 14px; padding: 4px; gap: 2px; flex: 0 1 auto; overflow-x: auto }
.aldre button { font: 800 15px var(--body); border: 0; background: transparent; color: var(--soft); padding: 0 14px; min-height: 44px; border-radius: 11px; cursor: pointer; white-space: nowrap }
.aldre button[aria-pressed="true"] { background: var(--page); color: var(--ink); box-shadow: 0 2px 6px -2px rgba(60,40,20,.35) }
.emner { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px }
.emne { display: grid; justify-items: center; gap: 4px; padding: 12px 4px 10px; border-radius: 18px; border: 2px solid transparent; background: var(--page); color: var(--ink); cursor: pointer; font: inherit; box-shadow: 0 8px 18px -14px rgba(60,40,20,.55); transition: transform .12s }
.emne:hover { transform: translateY(-2px) }
.emne[aria-pressed="true"] { border-color: var(--ink); background: #fff }
.emne .ik { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--faint) }
.emne .ik svg { width: 38px; height: 38px }
.emne .nv { font: 800 15px var(--body) } .emne .n { font: 700 12.5px var(--body); color: var(--soft) }
.emne[data-emne="Geometri"] .n { color: var(--red-ink) }
.ik.Tal { background: var(--t-tal) } .ik.Plus { background: var(--t-plus) } .ik.Minus { background: var(--t-minus) } .ik.Gange { background: var(--t-gange) }
.ik.Brøker { background: var(--t-brok) } .ik.Klokken { background: var(--t-ur) } .ik.Funktioner { background: var(--t-funk) } .ik.Geometri { background: var(--t-geo) } .ik.Økonomi { background: #e4f0dc }
.chip.Økonomi { background: #e4f0dc; color: var(--ink) }
.bib-liste { display: grid; gap: 14px; padding-block: 18px 80px }
.resrk { display: flex; align-items: center; gap: 14px; min-height: 32px }
.nulstil { font: 800 14px var(--body); background: none; border: 0; color: var(--red-ink); text-decoration: underline; cursor: pointer; padding: 6px 2px }
@media (max-width: 1000px) { .emner { grid-template-columns: repeat(5, minmax(0, 1fr)) } }
@media (max-width: 560px) {
  .bib-top h1 { font-size: 40px }
  .aldre { flex: 1 1 100% } .aldre button { flex: 1; padding: 0 8px; font-size: 14px }
  /* a phone: the topics are one row that the finger swipes sideways, so the lessons start high on the screen */
  .emner { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; margin-inline: -20px; padding: 2px 20px 10px; scrollbar-width: none }
  .emner::-webkit-scrollbar { display: none }
  .emne { flex: 0 0 84px; scroll-snap-align: start; padding: 9px 2px 7px; border-radius: 16px } .emne .ik { width: 44px; height: 44px; border-radius: 13px } .emne .ik svg { width: 32px; height: 32px }
  .emne .nv { font-size: 13.5px }
}
@media (prefers-reduced-motion: reduce) { .emne { transition: none } .emne:hover { transform: none } }
/* Leg med Bob (#bob on the front page): the real pencil on lined paper, js/legebob.js */
.bob .legebob { flex: 1.4 1 420px; display: grid; gap: 10px }
.legebob .papir { position: relative; aspect-ratio: 4 / 3.2; max-height: 560px; border-radius: 20px; overflow: hidden; background: #fffdf8; box-shadow: 0 18px 40px -22px rgba(0,0,0,.6); touch-action: none; user-select: none; -webkit-user-select: none }
.legebob canvas { position: absolute; inset: 0; display: block; cursor: grab } .legebob canvas:active { cursor: grabbing }
.legebob .boble { position: absolute; left: 0; top: 0; max-width: 180px; background: #fffdf8; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 14px; padding: 6px 11px 5px; font: 800 15px/1.25 var(--body); pointer-events: none; opacity: 0; transition: opacity .25s }
.legebob .boble.vis { opacity: 1 }
.legebob .knapper { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end }
.legebob .knapper button { font: 800 14px var(--body); background: var(--page); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 0 14px; min-height: 40px; cursor: pointer }
.legebob .knapper .vend { background: #f3b6a8 } .dark .legebob .knapper button { border-color: var(--page) }
.legehint { font-weight: 700 }
#bob { scroll-margin-top: 80px }
.bob:has(.legebob) .text { flex: 1 1 360px }
@media (max-width: 960px) { .bob .legebob { order: -1; flex-basis: 100% } .legebob .papir { aspect-ratio: 1 / 1; max-height: 60vh } #bob { scroll-margin-top: 12px } }

/* ---------- login with Skolelog (js/konto.js) ---------- */
.arbejdstitel { font: 600 11px var(--body); color: var(--soft); align-self: flex-end; margin: 0 0 6px -4px }
#konto { display: flex; align-items: center; gap: 12px }
.konto-til .top .lang { display: none }
#konto:empty { display: none }
#konto + .btn.ink { margin-left: 0 }
.kontochip { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); text-decoration: none; background: var(--page); border: 1.5px solid var(--faint); border-radius: 99px; padding: 4px 12px 4px 4px }
.kontolink { font-weight: 800; color: var(--blue); background: none; border: 0; font-size: 15px; padding: 4px 0; cursor: pointer }
.kprik { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font: 800 14px var(--display); flex: none }
.klogfor { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 18px } .klogfor .muted { margin-left: auto }
.kprik.stor { width: 48px; height: 48px; font-size: 24px }
.konto { padding-block: 32px 64px; display: grid; gap: 18px }
.konto.smal { max-width: 560px }
.konto h1 { font-size: 40px }
.konto h2 { font-size: 22px }
.nudge { display: grid; gap: 12px; padding-top: 18px } .nudgekort { border-color: #2f6b5a; box-shadow: 0 10px 24px -18px rgba(47,107,90,.6) }
.nudgespm { font-weight: 800; margin: 0 } .nudgemere { margin: 0 }
.nudgekort { gap: 8px; padding: 14px } .nudgekort .kbob { align-items: center } .nudgekort .kbob img { width: 30px }
.kkort { background: var(--page); border: 1.5px solid var(--faint); border-radius: 18px; padding: 18px; display: grid; gap: 10px; justify-items: start }
.btn.sl { background: #2f6b5a; color: #fff; border-color: #2f6b5a }
.btn.sl:hover { background: #255646 }
.kfejl { background: #fbe3dd; color: #8e2d1c; border-radius: 12px; padding: 10px 14px; margin: 0 }
.kbob { display: flex; gap: 14px; align-items: flex-end }
.kbob img { width: 52px; height: auto }
.kbob p { background: var(--page); border: 1.5px solid var(--faint); border-radius: 16px 16px 16px 4px; padding: 10px 14px; margin: 0 }
.klabel { font-weight: 800; font-size: 14px }
.kkode { font: 800 30px var(--display); letter-spacing: 6px; text-transform: uppercase; width: 100%; max-width: 300px; padding: 8px 14px; border: 2px solid var(--faint); border-radius: 14px; background: #fff }
.kboern { display: grid; gap: 12px }
.kbarn { display: flex; gap: 14px; align-items: center; text-align: left; background: #fff; border: 2px solid var(--faint); border-radius: 18px; padding: 14px; cursor: pointer; font: inherit; color: var(--ink) }
.kbarn:hover, .kbarn[aria-pressed="true"] { border-color: var(--blue) }
.kbarn b { font: 800 22px var(--display); display: block }
.kbarn .muted { display: block; font-size: 14px }
.ovb { display: grid; gap: 14px; max-width: 720px }
.ovtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap }
.kfaner { display: flex; gap: 8px; flex-wrap: wrap }
.kfaner button { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--faint); background: #fff; border-radius: 99px; padding: 4px 14px 4px 4px; font: 800 16px var(--body); cursor: pointer; color: var(--ink) }
.kfaner button[aria-pressed="true"] { border-color: var(--ink) }
.ktal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px }
.ktal div { background: var(--page); border: 1.5px solid var(--faint); border-radius: 16px; padding: 10px; text-align: center }
.ktal b { font: 800 28px var(--display); display: block; font-variant-numeric: tabular-nums }
.ktal span { font-size: 13px; color: var(--soft) }
.kdaghoved { display: flex; justify-content: space-between; width: 100%; align-items: center; gap: 8px }
.kakt { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 0; border-top: 1.5px solid var(--faint); font-size: 15px }
.kchip { font-size: 12px; font-weight: 800; border-radius: 99px; padding: 2px 10px; white-space: nowrap; align-self: center }
.kchip.ok { background: #dcefe3; color: var(--green) }
.kchip.vent { background: #fbe7c7; color: #8a5a0a }
.btn.small { padding: 8px 14px; font-size: 15px }
.kpapir { display: flex; gap: 12px; align-items: center; width: 100%; padding: 8px 0; border-top: 1.5px solid var(--faint) }
.kpapir img { width: 46px; height: 64px; object-fit: cover; border: 1px solid var(--faint); border-radius: 4px; background: #fff }
.kpapir > span { flex: 1 }
.kpapir input { width: 24px; height: 24px; accent-color: var(--green) }
.kdlg { border: 0; border-radius: 22px; padding: 0; max-width: min(560px, calc(100vw - 24px)); width: 100%; box-shadow: 0 20px 50px rgba(47,42,38,.3) }
.kdlg::backdrop { background: rgba(31,28,26,.45) }
.klog { display: grid; gap: 10px; padding: 22px }
.klog fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: 14px; flex-wrap: wrap }
.klog legend { margin-bottom: 6px }
.kvalg { display: inline-flex; gap: 8px; align-items: center; font-weight: 700 }
.klog select, .klog textarea { font: inherit; font-size: 15px; border: 1.5px solid var(--faint); border-radius: 12px; padding: 10px; background: #fff; color: var(--ink); width: 100% }
.kknapper { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px }
.fbknap { position: fixed; left: 14px; bottom: 14px; z-index: 50; background: var(--ink); color: #fff; border: 0; border-radius: 99px; padding: 9px 16px; font: 800 14px var(--body); cursor: pointer; box-shadow: 0 6px 18px rgba(47,42,38,.25) }
@media (max-width: 640px) { #konto { margin-left: 0 } .konto h1 { font-size: 32px } .ktal b { font-size: 22px } }

/* ---------- how far each child is in the lessons (js/konto.js: the tab Lektioner in the overview, and Min side) ---------- */
.ovb.bred { max-width: 1000px }
.fgfaner { display: flex; gap: 8px; flex-wrap: wrap }
.fgfaner button { background: var(--page); border: 1.5px solid #d8cdb9; border-radius: 99px; padding: 6px 16px; font: 800 15px var(--body); color: var(--ink); cursor: pointer }
.fgfaner button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--page) }
.fghoved { display: flex; align-items: center; gap: 12px; flex-wrap: wrap }
.fgtilbage { justify-self: start; text-decoration: underline }
.fgdel { display: grid; gap: 10px; margin-top: 14px }
.fgbjaelke { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: #e6dece; width: 100% }
.fgbjaelke i { display: block } .fgbjaelke .kan { background: var(--green) } .fgbjaelke .gang { background: var(--yellow) }
.fgtal { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14.5px; font-weight: 700; color: var(--soft) }
.fgtal span { display: inline-flex; align-items: center; gap: 6px }
.fgtal b { color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums }
.fgprik { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #b9ae9c; background: var(--page); display: inline-grid; place-items: center; flex: none }
.fgprik.gang { border-color: #c2912f; background: linear-gradient(90deg, var(--yellow) 50%, var(--page) 50%) }
.fgprik.kan { border-color: var(--green); background: var(--green) }
.fgprik.kan::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg) }
.fgprik.lille { width: 14px; height: 14px } .fgprik.lille.kan::after { display: none }
.fggitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px }
.fgkort { position: relative; display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: center; text-align: left; text-decoration: none; color: var(--ink); font: inherit; background: var(--page); border: 0; border-radius: 18px; padding: 10px; box-shadow: 0 10px 22px -18px rgba(60,40,20,.6); cursor: pointer }
.fgkort:hover { color: var(--ink) }
.fgkort img { width: 78px; height: 96px; border-radius: 12px; object-fit: cover; object-position: 50% 42%; background: var(--faint) }
.fgkort b { display: block; font: 800 17px/1.15 var(--display) }
.fgemne { font: 800 11.5px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--soft) }
.fgny { position: absolute; top: -7px; left: -5px; background: var(--red); color: #fff; font: 800 12px var(--body); border-radius: 99px; padding: 2px 10px; letter-spacing: .04em }
.fgpips { display: flex; gap: 4px; margin-top: 6px }
.fgpips i { width: 15px; height: 15px; border-radius: 50%; border: 2px solid #b9ae9c; background: var(--page) }
.fgpips i.on { background: var(--green); border-color: var(--green) }
.fgnaeste { display: block; margin-top: 5px; font-size: 14px; font-weight: 800; color: var(--blue) }
.fgmere { justify-self: start; background: var(--page); border: 1.5px solid #d8cdb9; border-radius: 99px; padding: 6px 18px; font: 800 15px var(--body); color: var(--ink); cursor: pointer }
.fgkanliste { display: flex; flex-wrap: wrap; gap: 8px }
.fgkanliste > * { display: inline-flex; align-items: center; gap: 8px; background: var(--page); border: 0; border-radius: 99px; padding: 5px 14px 5px 6px; font: 700 15px var(--body); color: var(--ink); text-decoration: none; cursor: pointer; box-shadow: 0 6px 14px -12px rgba(60,40,20,.6) }
.fgboern { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px }
.fgbarn { display: grid; gap: 10px; background: var(--page); border: 0; border-radius: 20px; padding: 16px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; box-shadow: 0 10px 22px -18px rgba(60,40,20,.6) }
.fgbarn .navn { display: flex; align-items: center; gap: 12px } .fgbarn .navn b { font: 800 24px var(--display) }
.fgbarn .se { font-weight: 800; color: var(--blue); text-decoration: underline }
.fgtavle { background: var(--page); border-radius: 20px; padding: 6px 14px 10px; box-shadow: 0 10px 22px -18px rgba(60,40,20,.6) }
.fgraekke { display: grid; grid-template-columns: 1fr repeat(var(--n), 34px); gap: 4px; align-items: center; width: 100%; background: none; border: 0; border-top: 1.5px solid var(--faint); padding: 9px 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer }
.fgraekke.hoved { border-top: 0; padding-bottom: 4px; position: sticky; top: calc(var(--fgtop, 0px) + env(safe-area-inset-top, 0px)); background: var(--page); z-index: 2; cursor: default }
.fgraekke > .c { display: grid; place-items: center }
.fgraekke .t { display: flex; align-items: center; gap: 10px; min-width: 0 }
.fgraekke .t img { width: 36px; height: 44px; border-radius: 7px; object-fit: cover; object-position: 50% 42%; flex: none; background: var(--faint) }
.fgraekke .t b { display: block; line-height: 1.2; font-size: 15.5px }
.fgraekke .nyt { color: var(--red); font: 800 11.5px var(--body); letter-spacing: .06em; text-transform: uppercase }
.fgemnehoved { margin: 16px 0 2px; font: 800 13px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--red) }
.fgforklar { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--soft); font-weight: 700 }
.fgforklar span { display: inline-flex; align-items: center; gap: 6px }
.fgdl .oe { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center }
.fgdl .oe img { width: 84px; height: 104px; border-radius: 12px; object-fit: cover; object-position: 50% 42% }
.fgdl h2 { font-size: 22px }
.fgdl ul { list-style: none; padding: 0; margin: 0 }
.fgdl li, .fgdl label { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 0; border-top: 1.5px solid var(--faint); font-weight: 700 }
.fgdl label { justify-content: flex-start; cursor: pointer }
.fgdl li .ok { color: var(--green) } .fgdl li .nej { color: var(--soft); font-weight: 400 }
.fgdl input { width: 22px; height: 22px; accent-color: var(--green); flex: none }
@media (max-width: 560px) { .fggitter { grid-template-columns: 1fr } .fgraekke { grid-template-columns: 1fr repeat(var(--n), 28px) } }

/* a thing to print for the wall (the counting board at the bottom of the library): its picture and a button */
.printband { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px }
.printbillede { flex: 0 1 260px; display: block; transform: rotate(-2deg); border-radius: 6px; overflow: hidden; box-shadow: 0 16px 34px -18px rgba(60,40,20,.6) } .printbillede img { display: block; width: 100% }
.printband .text { flex: 1 1 320px; display: grid; gap: 14px; justify-items: start } .printband h2 { font-size: 40px } .printband .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px }
@media (max-width: 560px) { .printbillede { flex-basis: 190px; margin-inline: auto } .printband h2 { font-size: 30px } }

/* ---------- Skolelær inside the SkoleLog app (html.iapp, set in index.html; Stig 2026-11-16: there it must be an app, not a website;
   sketch in skitser/app/) ---------- */
/* the frame: a short top, the page in the middle is the only thing that scrolls (no rubber band, so the menu stays put), the tabs at the bottom */
html.iapp, html.iapp body { height: 100%; overflow: hidden; overscroll-behavior: none }
html.iapp body { display: flex; flex-direction: column; padding-bottom: 0 }
.iapp .top, .iapp footer, .iapp .fbknap, .iapp .mere, .iapp .bund .ikkeapp, .iapp #nudge.ude { display: none !important }
.iapp #app { order: 1; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: none; -webkit-overflow-scrolling: touch }
.iapp .bund { order: 2; display: grid; position: static; flex: none; grid-template-columns: repeat(5, minmax(0, 1fr)) } .iapp .bund .kunapp { display: flex }
.iapp.barn .bund { grid-template-columns: repeat(4, minmax(0, 1fr)) } .iapp.barn .bund .voksen { display: none }
.iapp .apptop { display: flex; align-items: center; gap: 10px; flex: none; min-height: 54px; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 6px max(16px, env(safe-area-inset-left, 0px)) }
.apptop .aptitel { flex: 1; min-width: 0; font-size: 26px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical }
.apptop .aptitel.lille { font-size: 19px }
.apptop #aptilbage { flex: none; font-weight: 800; font-size: 16px; color: var(--blue); text-decoration: none; padding: 8px 2px 8px 0 }
.apptop #apkonto { flex: none } .apptop .kontochip { font-size: 15px }
.iapp .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
.aplad { padding: 40px 16px; text-align: center }
/* Hjem: go on where you left, what is new, the games and the riddles */
.ahjem { display: grid; gap: 22px; padding-block: 6px 28px; grid-template-columns: minmax(0, 1fr) }
.afort { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 2px solid var(--ink); border-radius: 18px; background: var(--page); color: var(--ink); text-decoration: none; box-shadow: 0 4px 0 rgba(47,42,38,.12); max-width: 560px }
.afort img, .akort img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; background: var(--faint) }
.afort img { border-radius: 10px; border: 1px solid var(--faint) }
.afort:hover, .akort:hover { color: var(--ink) }
.afort small { display: block; font: 800 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--red) } .afort b { display: block; font: 800 19px/1.15 var(--display); margin: 1px 0 6px }
.aspil { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--red) } .aspil svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px }
.ahoved { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px } .ahoved h2 { font-size: 22px } .ahoved a { font-weight: 800; font-size: 15px; color: var(--blue); white-space: nowrap }
.araekke { display: flex; gap: 12px; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-left: 16px } .araekke::-webkit-scrollbar { display: none }
.akort { position: relative; flex: none; width: 140px; display: grid; gap: 4px; align-content: start; color: var(--ink); text-decoration: none; scroll-snap-align: start }
.akort img { border-radius: 14px; border: 2px solid var(--ink) } .akort.spil img { aspect-ratio: 3 / 2 } .akort.gaade img { object-position: 50% 4% }
.akort b { font: 800 16px/1.15 var(--display) } .akort > span { font-size: 13px; color: var(--soft); line-height: 1.25 }
.akort .fgny { position: absolute; left: 7px; top: 7px }
@media (min-width: 700px) { .akort { width: 170px } }
/* Lektioner: search, the subjects as a row of small buttons, and the lessons as a short list */
.iapp .bib-top { padding-top: 2px; gap: 10px } .iapp .bib-top h1, .iapp .bib-top .lead, .iapp .emne .ik, .iapp .emne .n { display: none }
.iapp .sogrk { margin-top: 0 }
.iapp .emner { display: flex; gap: 8px; overflow-x: auto; margin-inline: -16px; padding: 2px 16px; scrollbar-width: none } .iapp .emner::-webkit-scrollbar { display: none }
.iapp .emne { flex: none; display: block; padding: 7px 14px; min-height: 40px; border: 2px solid var(--ink); border-radius: 999px; box-shadow: none } .iapp .emne:hover { transform: none }
.iapp .emne[aria-pressed="true"] { background: var(--ink); color: var(--page) }
.iapp .bib-liste { padding-block: 8px 28px; gap: 8px }
.iapp #liste { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px }
.iapp #liste .card { grid-template-columns: 84px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 12px; row-gap: 3px; align-items: center; padding: 8px; border-radius: 16px; border: 1.5px solid var(--faint); box-shadow: none }
.iapp #liste .card .poster { grid-row: 1 / 4; aspect-ratio: 4 / 3; border-radius: 9px } .iapp #liste .card .poster img { object-position: 50% 30% } .iapp #liste .card .time, .iapp #liste .card p { display: none }
.iapp #liste .card h3 { grid-row: 1; grid-column: 2; font-size: 17px; padding: 0; align-self: end } .iapp #liste .card .chips { grid-row: 2; grid-column: 2; font-size: 11.5px } .iapp #liste .card .chip { padding: 2px 8px }
.iapp #liste .card .fgpips { grid-row: 3; grid-column: 2 }
/* a lesson: the video, the two things to do, and the tasks on the screen */
.iapp .crumbs, .iapp .lesson h1, .iapp .lesson .lead, .iapp .lesson .note, .iapp .lesson .box, .iapp .lesson .tip, .iapp .ove-head p, .iapp .ove-head .eyebrow, .iapp .lesson ~ .band { display: none }
/* the video without the drawn phone round it, and no taller than half the screen, so the things to do are seen under it */
.iapp .lesson .device { width: auto; aspect-ratio: auto; padding: 0; border-radius: 16px; background: none; box-shadow: none; display: flex; justify-content: center } .iapp .lesson .device::before, .iapp .lesson .device::after, .iapp .lesson .island, .iapp .lesson .statusbar, .iapp .lesson .homebar { display: none }
.iapp .lesson .screen { border-radius: 16px; overflow: hidden; border: 2px solid var(--ink); display: block; height: auto; width: auto; background: #000 } .iapp .lesson .screen video { display: block; height: min(52dvh, 480px); width: auto; max-width: 100%; aspect-ratio: 9 / 16 }
.iapp .lesson .player { flex: 1 1 100%; max-width: none }
.iapp .lesson { gap: 16px; padding-block: 4px 20px } .iapp .lesson .info { gap: 12px; flex-basis: 300px } .iapp .lesson .player { margin-inline: auto }
.iapp .lesson .info .btn { width: 100%; max-width: 420px } .iapp .lesson .info > div { gap: 8px !important }
/* on a wide screen inside SkoleLog (a computer, a tablet on its side; Stig 2026-11-19: it looked silly with the video alone in the
   middle and the buttons pinned to the left): the video on the left as tall as the screen allows, the title, text and the two
   things to do beside it, and the tasks under both in the same width */
/* narrower (a phone, a tablet held upright): everything under the video in one centred column */
@media (max-width: 819px) {
  .iapp .lesson .info { justify-items: center; width: 100%; max-width: 560px; margin-inline: auto }
  .iapp .lesson .info > * { justify-content: center; width: 100% }
  .iapp .lesson .info > div:has(> .btn.red) { flex-direction: column; gap: 4px !important }          /* the sheet's button with "PDF, 2 sider A4" under it */
  .iapp .lesson .info .btn { max-width: 460px }
}
@media (min-width: 820px) {
  .iapp .lesson { flex-wrap: nowrap; gap: 36px; max-width: 1080px; margin-inline: auto; padding-block: 12px 24px }
  .iapp .lesson .player { flex: none; margin-inline: 0 }
  .iapp .lesson .screen video { height: min(70dvh, 620px) }
  .iapp .lesson .info { flex: 1 1 auto; align-content: start; gap: 16px }
  .iapp .lesson h1 { display: block; font-size: clamp(32px, 3.4vw, 46px) } .iapp .lesson .lead { display: block; font-size: 17px }
  .iapp .lesson .info .btn { max-width: none }
  .iapp .lesson ~ .ove-band, .iapp .ove-band { max-width: 1080px; margin-inline: auto }
}
.apstatus { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700 }
.iapp .ove-band { padding-block: 8px 28px; gap: 10px } .iapp .ove-head h2 { font-size: 22px }
/* Spil and Gåder: only the things to pick */
.iapp .spilvalg { padding-block: 4px 28px } .iapp .spilvalg > .eyebrow, .iapp .spilvalg > h1, .iapp .spilvalg > .lead, .iapp .spilkort button, .iapp .spilvalg ~ section { display: none }
.iapp .gaade-top, .iapp .gaade-top + .band h2, .iapp .card.gaade p, .iapp .card.gaade .chips { display: none }
.iapp .gaade-top + .band { background: none; padding-block: 4px 28px }
/* Forælder, and who is learning */
.iapp #ovb .ovtop h1 { display: none }
.iapp .konto { padding-block: 6px 28px } .iapp .konto h1 { font-size: 26px } .iapp .konto.smal .kkort { display: none }
.iapp #nudge { padding: 0 }
.apsmaa { display: flex; gap: 20px; justify-content: center; padding-top: 6px } .apsmaa a, .apsmaa button { border: 0; background: none; padding: 8px 0; font: 700 14px var(--body); color: var(--soft); text-decoration: underline; cursor: pointer }
.iapp #taelletavle { padding-block: 22px 28px } .iapp .printband { gap: 18px } .iapp .printband h2 { font-size: 24px } .iapp .printband .lead { font-size: 16px } .iapp .printbillede { flex-basis: 150px; margin-inline: 0 }

/* the parent's overview, Dage og log (Stig 2026-11-16: calm): the week, three numbers, one line a day, the rest on the day */
.ovuge { background: #fff; border-radius: 20px; padding: 16px 16px 14px; box-shadow: 0 8px 22px -18px rgba(60,40,20,.5) }
.ovuge .titel { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px }
.ovuge .titel b { font: 800 19px var(--display) }
.ovuge .titel span { font-size: 13px; color: var(--soft) }
.dage7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 12px; font-weight: 800; color: var(--soft) }
.dage7 .senere { opacity: .4 }
.dage7 i { display: block; width: 28px; height: 28px; margin: 5px auto 0; border-radius: 50%; border: 2px solid var(--faint) }
.dage7 i.ja { background: var(--green); border-color: var(--green) }
.dage7 i.lidt { border-color: var(--green) }
.dage7 i.idag { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink) }
.ovuge .tre { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; border-top: 1px solid var(--faint); padding-top: 12px; text-align: center }
.ovuge .tre b { display: block; font: 800 24px/1.1 var(--display) }
.ovuge .tre span { font-size: 12.5px; color: var(--soft) }
.ovliste { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 22px -18px rgba(60,40,20,.5) }
.ovraek { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; border: 0; border-bottom: 1px solid var(--faint); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer }
.ovraek:last-child { border-bottom: 0 }
.ovraek:hover { background: #fdfaf3 }
.ovraek .d { width: 70px; flex: none; font-weight: 800; font-size: 15px }
.ovraek .h { flex: 1; font-size: 14.5px; color: var(--soft); line-height: 1.35 }
.ovraek .s { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: #e3f1e8; color: var(--green) }
.ovraek .st { flex: none; font-size: 12.5px; color: var(--soft) }
.ovraek .pil { color: #b9ad98; font-weight: 800 }
.ovforkl { font-size: 12.5px; color: var(--soft); text-align: center; margin: -4px 0 0 }
.ovsam { margin: 0 } .ovsam .kontolink { font-size: inherit }
.ovja p { margin: 8px 0 }
.flue { display: flex; gap: 10px; align-items: center; background: var(--paper); border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 15px; margin-top: 4px }
.flue input { width: 20px; height: 20px; accent-color: var(--green) }
/* a sheet from the bottom on a phone: one day opened, and the lesson's log button */
.kdlg.nedefra .klog { display: grid; gap: 12px }
@media (max-width: 640px) {
  .kdlg.nedefra { margin: auto 0 0; max-width: 100vw; border-radius: 22px 22px 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom) }
}
.kdlg .greb { width: 42px; height: 5px; border-radius: 3px; background: var(--faint); margin: -6px auto 0 }
.dagd .dtop { display: flex; justify-content: space-between; align-items: center; gap: 10px }
.dkort { background: var(--paper); border-radius: 16px; padding: 12px 14px }
.lbl { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--soft); margin: 0 0 4px }
.dlin { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--faint); font-size: 14.5px }
.dlin:last-child { border-bottom: 0 }
.dlin span { color: var(--soft); text-align: right }
.dlin.hel span { text-align: left }
.dstat { margin: 0; border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 14px; background: var(--paper); color: var(--soft) }
.dstat.ok { background: #e3f1e8; color: #24563a }
.kontolink.fortryd { color: var(--red); justify-self: center }
.tryk h2 { margin: 0 } .tryk p { margin: 0 }
.tryk .allerede { background: #e3f1e8; color: #24563a; border-radius: 12px; padding: 9px 12px; font-size: 14px }
.tryk .valg { display: flex; flex-wrap: wrap; gap: 8px }
.tryk .valg button { border: 2px solid var(--faint); background: #fff; border-radius: 99px; padding: 7px 14px; font: 800 15px var(--body); color: var(--ink); cursor: pointer }
.tryk .valg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff }
.tryk textarea { width: 100%; border: 2px solid var(--faint); border-radius: 14px; padding: 10px 12px; font: 16px/1.4 var(--body); resize: vertical }
.tryk .kamera { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; font: 800 15px var(--body); color: var(--blue); cursor: pointer; justify-self: start }
.tryk .kamera i { width: 30px; height: 30px; border-radius: 10px; background: #e6eef6; display: grid; place-items: center; font-style: normal }
.tryk .kamera[aria-pressed="true"] i { background: var(--blue); color: #fff }
.tryk .kamera[aria-pressed="true"] i::before { content: "✓" } .tryk .kamera[aria-pressed="true"] i { font-size: 0 } .tryk .kamera[aria-pressed="true"] i::before { font-size: 15px }

/* the code from a sheet (Stig 2026-11-16, scripts/koder.mjs): the icon by the child's name in the app folds out four boxes */
.iapp .apptop .apkode:not([hidden]) { display: grid }
.apkode { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid #e4dccd; background: #fff; color: var(--ink); place-items: center; padding: 0; cursor: pointer; box-shadow: 0 2px 6px -3px rgba(60,40,20,.4) }
.apkode svg { width: 70%; height: 70% }
.apkode.paa { background: var(--ink); border-color: var(--ink); color: #fff } .apkode.paa svg path:first-child { fill: var(--ink) }
.apkodefelt { flex: none; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)) }
.akode { background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; padding: 9px 12px 12px }
.akhoved { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px }
.akhoved label { font: 800 16px var(--display) }
.akluk { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--soft); padding: 0 4px; cursor: pointer }
.akodefelt { position: relative }
.akodefelt input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; caret-color: transparent; z-index: 1 }
.akodefelt span { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px }
.akodefelt i { height: 46px; border: 2.5px solid var(--faint); border-radius: 12px; display: grid; place-items: center; font: 800 24px var(--display); font-style: normal; color: var(--ink); background: #fff }
.akodefelt i:not(:empty) { border-color: var(--ink) }
.akodefelt i.her { border-color: var(--blue); box-shadow: 0 0 0 3px #d6e6f3 }
.akodefejl { margin: 8px 0 0; color: var(--red); font-weight: 700; font-size: 14px }
.frakode { grid-column: 1 / -1; margin: 0 0 12px; background: #e6eef6; color: #1f4d75; border-radius: 12px; padding: 9px 13px; font-weight: 700; font-size: 14.5px }
/* what Bob says in the video (Stig 2026-11-16): folded away, to read along */
.tale summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px }
.tale summary::-webkit-details-marker { display: none }
.tale summary::after { content: ""; width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); margin: -4px 6px 0 0; transition: transform .15s; flex: none }
.tale[open] summary::after { transform: rotate(-135deg); margin-top: 4px }
.tale .taletekst { display: grid; gap: 4px; margin-top: 12px }
.tale h3 { font: 800 17px var(--display, inherit); margin: 8px 0 0 }
.tale p { margin: 0; color: var(--soft, #5f574f) }

/* the topic pages (/matematik/<emne>/) and the questions and answers (/spoergsmaal/), js/site.js */
.emneside { display: grid; gap: 22px; padding-top: 18px }
.emnetop { display: flex; align-items: center; gap: 18px }
.emnetop .ik, .emnelinks .ik { display: grid; place-items: center; background: var(--faint) }
.emnetop .ik { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 22px } .emnetop .ik svg { width: 54px; height: 54px }
.emneside h1 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -.01em }
.emneside .lead { max-width: 44em }
.emneinfo ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: 17px }
.emnelinks { display: flex; flex-wrap: wrap; gap: 10px }
.emnelinks a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 16px; background: var(--page); color: var(--ink); font: 800 16px var(--body); text-decoration: none; box-shadow: 0 8px 18px -14px rgba(60,40,20,.55) }
.emnelinks a:hover { background: #fff }
.emnelinks .ik { width: 38px; height: 38px; border-radius: 11px } .emnelinks .ik svg { width: 28px; height: 28px }
.emnerlaes { display: grid; gap: 14px; margin-top: 34px } .emnerlaes h2 { font-size: 24px }
.spilkort h3 { font-size: 22px; margin-top: 8px; overflow-wrap: anywhere }
.faq { display: grid; gap: 12px }
.faq details { background: var(--page); border-radius: 18px; padding: 18px 22px }
.faq summary { cursor: pointer; list-style: none } .faq summary::-webkit-details-marker { display: none }
.faq summary h2, .faq summary h3 { display: inline; font-size: 21px }
.faq details p { margin: 10px 0 0; color: var(--soft); font-size: 17px; line-height: 1.5; max-width: 46em }
.apptop .aptitel { font-family: var(--display); font-weight: 800; line-height: 1.08; text-wrap: balance }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px } footer nav a { color: var(--soft) }
@media (max-width: 640px) { .emnetop { align-items: flex-start; gap: 12px } .emnetop .ik { flex-basis: 52px; width: 52px; height: 52px; border-radius: 15px } .emnetop .ik svg { width: 38px; height: 38px } .emneside h1 { font-size: 32px } }
/* the conversation with Skolelær in the feedback window (js/konto.js, /api/beskeder) */
.fbknap.ny { background: var(--red) } .fbknap.ny::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; margin-right: 8px; vertical-align: 1px }
.samtale { display: grid; gap: 10px; max-height: min(46vh, 420px); overflow: auto; padding: 4px 2px }
.besked { max-width: 86%; border-radius: 18px; padding: 10px 14px 8px; background: var(--faint) } .besked.familie { justify-self: end; background: #e3ecf6 }
.besked.os { justify-self: start; background: var(--tip); border: 1.5px solid var(--tip-line) }
.besked b { font-size: 14px } .besked p { margin: 2px 0 4px; white-space: pre-wrap; line-height: 1.45 } .besked small { color: var(--soft); font-size: 12px }
.nytsvar { margin-bottom: 18px }
