/* Läs · bakgrunder (rounds 1–5, 2026-10-20): the drawn scene behind each card, its tinted band, the quiet Steg tag
   and the progress marks. Load after las-rader.css. Design: design/Läs - bakgrunder.dc.html. */
.ls-bild { position: absolute; inset: 0; pointer-events: none; background: var(--bild-l) center / cover no-repeat; }
@media (prefers-color-scheme: dark) { .ls-bild { background-image: var(--bild-m); } }
.ls-bild ~ .ls-band { padding-top: 32px; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.ls-omslagbild { position: relative; display: block; flex: none; width: 62px; height: 62px; border-radius: 12px; overflow: hidden; }

/* Steg on a picture: an outline in the band's own light, information and not a button (round 3) */
.ls-band .ls-steg { padding: 0 5px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 5px; background: none; color: rgba(255, 255, 255, .92); font-size: 14px; font-weight: 600; line-height: 1.45; white-space: nowrap; }

/* Situations (round 4): a larger title, the task smaller and at most two lines */
.ls-sitkort .ls-band .ls-titel { font-size: 20px; font-weight: 600; line-height: 1.12; }
.ls-omrade .ls-sitkort .ls-band .ls-titel { font-size: 19px; }
.ls-sitkort .ls-band .ls-uppg { font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, .84); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* LAS-SASONG: a scene card in a two-column grid (the season page, Fler situationer) is 149 px wide at 375 px (main pads 16 px each side, the grid 16 more). Its task has room for four lines, not two (the whole task is read there:
   measured at that width, the four S1 tasks take three lines in Swedish and the English *Say who you are and talk with a neighbour for a minute* four), and the card is 232 px so the picture is not all under the band.
   A title breaks at a syllable only in a word of 8 letters or more: "våning" stays whole, "utvecklingssamtal" may break. */
.ls-grid2 .ls-sitkort .ls-art { min-height: 232px; }
.ls-grid2 .ls-sitkort .ls-band .ls-uppg { -webkit-line-clamp: 4; }
.ls-titel { hyphenate-limit-chars: 8 4 4; }

/* Progress (round 4): episodes read, a finished story only the tick; situations ◐ Lyssnad or ✓ Klar */
.ls-band .ls-antalkort, .ls-band .ls-prog { display: inline-flex; align-items: center; gap: 4px; }
.ls-band .ls-prog { margin-inline-start: auto; font-size: 14px; font-weight: 700; white-space: nowrap; }
.ls-band .ls-ikon { display: inline-flex; }

/* Skriv själv: the place instead of the emoji row */
.falt select[name="scen"] { width: 100%; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 11px; background: var(--card); color: var(--ink); font: inherit; }

/* AI-OMSLAG (2026-10-30): a learner's own cover picture (js/omslag-app.js fotoLager): the whole picture, contained, over a blurred copy of itself that fills the card;
   both are pseudo-elements over the drawn scene, which shows through when the picture cannot be fetched. */
.ls-bild.ls-foto::before, .ls-bild.ls-foto::after { content: ""; position: absolute; inset: 0; background: var(--foto) center / contain no-repeat; }
.ls-bild.ls-foto::before { background-size: cover; filter: blur(12px) brightness(.85); transform: scale(1.15); }
.ls-bild.ls-foto { overflow: hidden; }
