/* HP-2.19: Läs as rows, the Visa alla pages, the saga page and the name sheet.
   Design: "Läs och sagan · runda 2b" (design/ in the bundle). Tokens from app.css and las-story-ny.css;
   three local ones below. One motion since LAS-KOMPAKT, the loop of a cut line of Fortsätt (.ls-gt), which joins the three lists of app.css (stilla, dold, reduced motion). */
:root { --ls-scrim: rgba(20, 22, 26, .62); --ls-band: linear-gradient(to bottom, rgba(16, 18, 22, 0), rgba(16, 18, 22, .86) 18px); --ls-here-ink: #9c4210; }
@media (prefers-color-scheme: dark) { :root { --ls-here-ink: #f0a070; } }

/* Buttons in these views start plain (app.css paints every button purple). */
:where(.ls-las, .ls-sida, .ls-saga, .ls-ark, .ls-lenrad) button { background: none; color: inherit; padding: 0; border: 0; border-radius: 0; text-align: inherit; cursor: pointer; }
[dir="rtl"] :is(.ls-pil, .ls-spela) { transform: scaleX(-1); }

/* ---- shared pieces ---- */
.ls-kicker { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ls-titel { font-family: var(--serif); font-weight: 500; line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; }
.ls-kort { position: relative; display: flex; flex-direction: column; gap: 6px; flex: none; min-width: 0; }
.ls-art { position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; overflow: hidden; border-radius: 14px; color: #fff; text-align: start; background: linear-gradient(150deg, hsl(var(--h, 210) 55% 86%), hsl(var(--h2, 250) 55% 74%)); }
.ls-kort > .ls-art { flex: 1; outline: 1px solid var(--line); outline-offset: -1px; }
@media (prefers-color-scheme: dark) { .ls-art { background: linear-gradient(150deg, hsl(var(--h, 210) 30% 24%), hsl(var(--h2, 250) 30% 33%)); } }
/* The text sits on a dark band inside the card: white on at least .84 black is above 9:1 on the lightest ground, in light and dark. */
.ls-band { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 26px 11px 11px; background: var(--ls-band); color: #fff; font-size: 15px; line-height: 1.3; }
.ls-band > * { display: block; }
.ls-band .ls-titel { font-size: 19px; }
.ls-band .ls-uppg, .ls-band .ls-kalla, .ls-band .ls-lage, .ls-band .ls-rad2 { color: #fff; }
.ls-band .ls-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: #fff; font-size: 14px; }
.ls-band .ls-antalkort { margin-inline-start: auto; white-space: nowrap; font-weight: 700; }
.ls-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ls-band .ls-tagg { border-color: #fff; color: #fff; }
/* The content symbols (cover emoji, or a default per kind): decorative, sized by the art box (cqh/cqw) so they sit inside it. */
.ls-sym { position: absolute; inset: 0; overflow: hidden; pointer-events: none; container-type: size; }
.ls-sym > span { position: absolute; line-height: 1; font-size: min(46cqh, 38cqw); }
.ls-sym > span:first-child { top: 7cqh; inset-inline-end: 9cqw; transform: rotate(-10deg); }
.ls-sym.n1 > span:first-child { inset-inline-end: 12cqw; top: 8cqh; font-size: min(52cqh, 42cqw); }
.ls-sym > span:nth-child(2) { top: 36cqh; inset-inline-start: 7cqw; font-size: min(32cqh, 28cqw); transform: rotate(9deg); }
.ls-meny { position: absolute; z-index: 2; top: 4px; inset-inline-end: 4px; width: 44px; height: 44px; display: grid; place-items: center; }
.ls-meny > span { width: 34px; height: 34px; border-radius: 50%; background: var(--ls-scrim); color: #fff; display: grid; place-items: center; }
.ls-steg { padding: 1px 7px; border-radius: 6px; background: var(--blue-soft); color: var(--blue-ink); font-size: 14px; font-weight: 700; }
.ls-egen { position: absolute; z-index: 1; top: 10px; inset-inline-start: 10px; padding: 1px 8px; border-radius: 6px; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 700; }
/* DAGLIG-NAL: the cover's top-left corner holds Egen and the daily pin side by side */
.ls-horn { position: absolute; z-index: 2; top: 10px; inset-inline-start: 10px; display: flex; align-items: center; gap: 6px; }
.ls-horn > .ls-egen { position: static; }
.ls-nal { display: inline-grid; place-items: center; inline-size: 26px; block-size: 26px; border-radius: 50%; background: var(--card); color: var(--blue-ink, var(--blue)); }
.ls-tagg.ls-nal, .nvar.ls-nal { inline-size: auto; block-size: auto; padding: 2px 5px; border-radius: 6px; background: none; }
.ls-uppg { font-size: 14px; line-height: 1.35; }

/* Kort / Hel (radio group), used by the reader's picker (Fortsätt has no pair since LAS-KOMPAKT). */
.ls-len { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.ls-len [role="radio"] { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 6px 8px; border: 1.5px solid var(--blue-ink, var(--blue)); border-radius: 12px; background: var(--card); font-size: 16px; font-weight: 600; line-height: 1.25; text-align: center; }
.ls-len [role="radio"][aria-checked="true"] { border-width: 2px; padding: 5.5px 7.5px; }
.ls-len .ls-chk { display: none; width: 18px; height: 18px; flex: none; color: var(--blue-ink, var(--blue)); }
.ls-len [aria-checked="true"] .ls-chk { display: block; }

/* Chips (Dina egna types, Fler situationer status and Steg): wrap, never scroll sideways. */
.ls-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ls-chip { min-height: 44px; display: inline-flex; align-items: center; gap: 5px; padding: 0 11.5px !important; border-radius: 999px !important; border: 1.5px solid var(--granite) !important; color: var(--ink); font-size: 14px; font-weight: 600; }
.ls-chip[aria-pressed="true"] { padding: 0 !important; padding-inline: 9px 11px !important; border: 2px solid var(--blue-ink, var(--blue)) !important; background: var(--blue-soft) !important; color: var(--blue-ink, var(--blue)); font-weight: 700; }
.ls-chip .ls-chk { display: none; width: 14px; height: 14px; }
.ls-chip[aria-pressed="true"] .ls-chk { display: block; }

/* ---- 1 · Läs ---- */
.ls-las { display: flex; flex-direction: column; }
/* Fortsätt (LAS-KOMPAKT, docs/design/las-fortsatt-kompakt.md 17, Linh 2026-10-21 after her iPhone check): ONE box (white; the soft Idag lilac from LAS-HUVUD-2, below), a labelled region with the heading Fortsätt big on top, and the story row and the situation row flat inside it with a 1 px line between.
   The box takes the width main leaves (W - 34 px: 341 at 375), 16 px past the line the other headings use, because width is what the lines are short of. A row is 66 px: the picture 48 px at the start, two lines (201 px wide at 375 px, 186 at 360),
   the end slot 44 px. One action = one button (.ls-krad); two = a div (.ls-krad) with .ls-kopen (picture and text, reaching the box's start edge so the pressed state fills the row) and .ls-kgo (the end button). Line 1 is a symbol (.ls-typ) and the title. */
.ls-fort, .ls-fortslut { margin: 0; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
/* LAS-HUVUD-2 (Linh, 2026-10-21, after her iPhone check; las-fortsatt-kompakt.md "Revision 2026-10-21"): the box with rows stands out from the rest of Läs by the Idag zone's own soft fill (--blue-soft, css/idag.css) and its own hairline (--blue-line), not by a vivid colour or a gradient.
   Nothing inside it is painted over: the rows have no fill, so the fade of a moving line (a mask that ends in transparent) ends in this fill; a pressed row goes one step deeper (--blue-line, as --sunk was on white); the loading blocks do the same. A finished season's box (.ls-fortslut) keeps the white card, because the lilac end-of-season card inside it is what stands out there. */
.ls-fort { background: var(--blue-soft); border-color: var(--blue-line); }
.ls-fort button.ls-krad:active, .ls-fort .ls-kopen:active { background: var(--blue-line); }
.ls-fort > .ls-skel.krad { background: var(--blue-line); }
.ls-frub { margin: 0; padding: 12px 14px 6px; font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.ls-krad { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 66px; margin: 0; padding: 9px 14px; background: none; border: 0; border-radius: 0; color: var(--ink); font: inherit; text-align: start; }
.ls-krad + .ls-krad { border-top: 1px solid var(--line); }
.ls-kopen { flex: 1; min-width: 0; align-self: stretch; display: flex; align-items: center; gap: 8px; margin-block: -9px; margin-inline-start: -14px; padding: 9px 0; padding-inline-start: 14px; background: none; border: 0; border-radius: 0; color: inherit; font: inherit; text-align: start; }
.ls-kbild { position: relative; flex: none; width: 48px; height: 48px; margin-inline-end: 2px; overflow: hidden; border-radius: 10px; background: linear-gradient(150deg, hsl(var(--h, 210) 55% 86%), hsl(var(--h2, 250) 55% 74%)); }
@media (prefers-color-scheme: dark) { .ls-kbild { background: linear-gradient(150deg, hsl(var(--h, 210) 30% 24%), hsl(var(--h2, 250) 30% 33%)); } }
.ls-ktext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ls-l1 { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.ls-krad .ls-typ { flex: none; display: block; margin-top: 2px; color: var(--blue-ink, var(--blue)); } /* the book or the bubble: outside the line that moves, 2 px down to sit on the first line's middle */
.ls-krad .ls-titel { flex: 1; min-width: 0; font-size: 18px; line-height: 1.2; color: var(--ink); }
.ls-krad .ls-sub { font-size: 14px; line-height: 1.35; color: var(--granite); overflow-wrap: anywhere; hyphens: auto; }
/* The end slot: the blue disc (listen now), a ring (go on, practise), the padlock (locked, nothing to press); never colour alone, the glyph differs too. */
.ls-kgo { flex: none; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border-radius: 50%; background: none; color: var(--granite); }
.ls-kgo.spela { background: var(--blue); color: var(--on-blue); }
.ls-kgo.vidare { box-shadow: inset 0 0 0 1.5px var(--blue-ink, var(--blue)); color: var(--blue-ink, var(--blue)); }
button.ls-krad:active, .ls-kopen:active { background: var(--sunk); }
button.ls-krad:focus-visible, .ls-kopen:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.ls-kgo:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
/* A line that does not fit: with motion on (and a viewport of 360 px or more) it is cut with a 14 px fade at its end edge and js/glid.js moves its text (.ls-gt) slowly to its end, rests, back, rests, again, for as long as the box is on screen (the row and the symbol never move;
   the box off screen is paused, .ls-still). With reduced motion, Rörliga bilder off or a narrower viewport it wraps and the row grows, so nothing is hidden and nothing moves (WCAG 1.4.10; 2.2.2 rests on those two switches and on body.dold, app.css).
   The one place the brief's "no ellipsis on titles" is set aside, by Linh's request: the ellipsis shows only for the instant before the script has measured. */
@media (prefers-reduced-motion: no-preference) and (min-width: 360px) {
  body:not(.stilla) .ls-krad :is(.ls-titel, .ls-sub) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; hyphens: manual; }
  body:not(.stilla) .ls-krad .ls-glidar { text-overflow: clip; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 14px), transparent); }
  [dir="rtl"] body:not(.stilla) .ls-krad .ls-glidar { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 14px), transparent); }
  body:not(.stilla) .ls-krad .ls-glidar .ls-gt { display: inline-block; animation: ls-glid var(--glid-c, 10s) cubic-bezier(.37, 0, .63, 1) infinite; }
  body:not(.stilla) .ls-still .ls-glidar .ls-gt { animation-play-state: paused; }
}
@keyframes ls-glid { 0%, 22% { transform: none; } 50%, 72% { transform: translateX(var(--glid-d, 0px)); } 100% { transform: none; } }

.ls-rader { display: flex; flex-direction: column; gap: 26px; padding: 26px 0 30px; }
.ls-rad { display: flex; flex-direction: column; gap: 10px; }
.ls-rad > h2 { margin: 0; padding: 0 16px; font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.2; }
.ls-spar { display: flex; gap: 10px; padding: 0 16px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.ls-spar > * { flex: none; }

.ls-serie { width: 300px; gap: 8px; }
.ls-serie .ls-art { min-height: 190px; border-radius: 16px; }
.ls-serie .ls-band { padding: 26px 14px 12px; }
.ls-serie .ls-band .ls-titel { font-size: 24px; line-height: 1.1; }
.ls-serie .ls-rad2 { font-size: 15px; line-height: 1.4; }
.ls-spar:has(.ls-serie) { gap: 12px; }

.ls-affisch { width: 124px; }
.ls-affisch .ls-art { min-height: 236px; }
.ls-affisch .ls-band .ls-titel { font-size: 18px; }

.ls-sitkort { width: 210px; }
.ls-sitkort .ls-art { min-height: 200px; }
.ls-sitkort .ls-band .ls-titel { font-size: 19px; }

.ls-alla, .ls-nytile { width: 124px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-radius: 14px !important; color: var(--blue-ink, var(--blue)) !important; font-size: 16px; font-weight: 600; }
.ls-alla { border: 1.5px solid var(--granite) !important; }
.ls-alla > span { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--blue-ink, var(--blue)); display: grid; place-items: center; }
.ls-nytile { height: 236px; border: 1.5px dashed var(--granite) !important; }
.ls-nytile > span { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: var(--on-blue); display: grid; place-items: center; }
.ls-alla.h180 { height: 236px; } .ls-alla.h140 { height: 190px; border-radius: 16px !important; } .ls-alla.h112 { height: 200px; }

/* ---- 1b–1e · Visa alla pages, and the saga page's top bar ---- */
.ls-sida { display: flex; flex-direction: column; padding-bottom: 30px; }
.ls-topp { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding-block: 6px 0; padding-inline: 8px 16px; }
.ls-tillbaka { min-width: 0; min-height: 44px; display: inline-flex; align-items: center; gap: 2px; overflow-wrap: anywhere; padding: 0 !important; padding-inline: 4px 10px !important; color: var(--blue-ink, var(--blue)) !important; font-size: 17px; font-weight: 600; }
.ls-tillbaka svg { width: 20px; height: 20px; }
.ls-nyknapp { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 !important; padding-inline: 12px 16px !important; border-radius: 999px !important; background: var(--blue) !important; color: var(--on-blue) !important; font-size: 16px; font-weight: 600; }
.ls-sida > h1 { margin: 0; padding: 2px 16px 0; font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.15; }
.ls-ingress { margin: 4px 0 0; padding: 0 16px; font-size: 15px; color: var(--granite); line-height: 1.4; text-wrap: pretty; }
.ls-sida > .libtools { padding: 14px 16px 0; } /* 1c keeps today's Sortera / Filter / Rutnät-Lista markup */
/* UI-1 (3): Fler situationer (1d) has the same Sortera / Filter row and panels as 1c (the .libtools markup of app.css); here the symbols and the clear link are 44 px, the panel's rows put the label over its chips, and the chips are the page's own .ls-chip. */
.ls-sittools .libfilter { min-width: 44px; min-height: 44px; justify-content: center; }
.ls-sittools .link.small { min-height: 44px; padding: 0 10px; font-size: 15px; }
.ls-sittools .libpanel .rad { display: grid; gap: 6px; align-items: start; }
.ls-sittools .libpanel .lbl { min-width: 0; }

.ls-serielista { display: flex; flex-direction: column; gap: 18px; padding: 16px 16px 0; }
.ls-serielista .ls-serie { width: auto; }
.ls-serielista .ls-serie .ls-art { min-height: 190px; }
.ls-serielista .ls-serie .ls-band .ls-titel { font-size: 26px; }

.ls-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; padding: 16px 16px 0; }
.ls-grid2 .ls-kort { width: auto; }
.ls-grid2 .ls-affisch .ls-art { min-height: 240px; }
.ls-grid2 .ls-affisch .ls-band .ls-titel { font-size: 21px; }
.ls-sidrader.list .ls-grid2 { grid-template-columns: minmax(0, 1fr); } /* Lista keeps today's .novels.list look if preferred */

.ls-omraden { display: flex; flex-direction: column; gap: 24px; padding: 22px 16px 0; }
.ls-omrade { display: flex; flex-direction: column; gap: 10px; }
.ls-omrade > h2 { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.2; }
.ls-omrade .ls-grid2 { padding: 0; gap: 16px 12px; }
.ls-omrade .ls-sitkort .ls-art { min-height: 200px; }
.ls-omrade .ls-sitkort .ls-band .ls-titel { font-size: 18px; }

/* LAS-EGEN: Dina egna in the view of Fler berättelser. The page is the same markup, a list (ul) of the posters (.ls-grid2) or of the icon-and-text cards (.novels.list, the .ncard of las-story-ny.css), and each item holds the open
   button and, beside it, the ⋯ button of the full list: a sibling, never inside the card's button, 44 px to tap. The view toggle's two buttons are 44 px too. */
.ls-egnalista { list-style: none; margin: 0; }
.ls-egnarad { min-width: 0; display: flex; }
.ls-egnarad > .ls-kort, .ls-egnarad > .ls-listkort { flex: 1; min-width: 0; }
.ls-listkort { position: relative; }
.ls-listkort > .ncard { width: 100%; text-align: start; }
.ls-listkort .nmeta { flex-wrap: wrap; }
.novels.list .ls-listkort .nbody { padding-right: 0; padding-inline-end: 44px; } /* room for the ⋯ on the side it is on */
.ls-listkort .ls-typ, .ls-listkort .ls-kalla, .ls-listkort .ls-lage { font-size: 14px; line-height: 1.35; color: var(--granite); }
.ls-listkort .ls-typ { font-weight: 600; }
.novels.list .ls-listkort .ls-meny { top: 50%; transform: translateY(-50%); inset-inline-end: 4px; }
.novels.list .ls-listkort .ls-meny > span { border-radius: 10px; background: var(--card, var(--paper)); color: var(--granite); box-shadow: 0 1px 4px rgba(0, 0, 0, .22); } /* the old list's ⋯: a light square, not the poster's dark disc */
.ls-meny .prick { position: absolute; right: -4px; top: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: var(--on-bad); font-size: 14px; font-weight: 700; line-height: 18px; display: grid; place-items: center; }
.ls-tagg.delad { text-transform: capitalize; } /* lib.kort.delad is "delad", said in a line; as a tag of its own it is "Delad" */
.ls-sittools .seg.lv button { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0; }
.ls-not { margin: 14px 0 0; padding: 0 16px; font-size: 14px; color: var(--granite); line-height: 1.45; text-wrap: pretty; }

/* ---- 2 · The saga page ---- */
.ls-saga { display: flex; flex-direction: column; }
/* LAS-HUVUD (Linh, 2026-10-21, docs/design/las-sidhuvud.md 3): the saga page and the season page start with the Visa alla pages' back row (.ls-topp, 56 px) and under it a banner of 64 px that holds the page's name only, no picture, no kicker.
   LAS-HUVUD-2 (Linh, 2026-10-21, "the title background is too dark", las-sidhuvud.md "Revision 2026-10-21"): the band is a TINT of the scene's darkest colour (--ls-rgb, set from js/omslag-app.js bandRgb; the dark fallback when the scene has none) over the page, not a solid fill.
   Light: the colour at 13 % over --paper, the name in the colour itself, a hairline in the colour at 35 %. Dark: the colour at 70 % with a 6 % white lift over --paper, the name in --ink, a hairline of the colour mixed 70 / 30 with white (a plain white 14 % where color-mix is missing).
   The name is at least 4.5:1 on every band of the saga in both modes (tests/las-huvud.spec.mjs huvud 10 measures the nine). A longer name wraps and the banner grows. */
.ls-sidhuvud { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 64px; padding: 13px 16px; border-radius: 16px; background: rgba(var(--ls-rgb, 30, 34, 44), .13); color: rgb(var(--ls-rgb, 30, 34, 44)); outline: 1px solid rgba(var(--ls-rgb, 30, 34, 44), .35); outline-offset: -1px; }
@media (prefers-color-scheme: dark) {
  .ls-sidhuvud { background: linear-gradient(rgba(255, 255, 255, .06), rgba(255, 255, 255, .06)), rgba(var(--ls-rgb, 30, 34, 44), .7); color: var(--ink); outline-color: rgba(255, 255, 255, .14); outline-color: color-mix(in srgb, rgb(var(--ls-rgb, 30, 34, 44)) 70%, #fff); }
}
.ls-sidhuvud h1 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; }
.ls-sidhuvud h1:focus { outline: none; }
/* The hand-written name (section 4): "Caveat namn" is a Latin subset of Caveat Bold, self-hosted (SIL OFL 1.1, fonts/OFL-Caveat.txt), never preloaded and never from a font host; js/library.js asks for it once in idle time when a saga exists and gives a banner's h1 .ls-hand only
   when it has arrived, the interface is not right-to-left and the name is 28 characters or fewer, so Charter 28 px / 500 is always the complete fallback and 36 px Charter cannot appear. No letter-spacing (it breaks the joins). */
@font-face { font-family: "Caveat namn"; src: url("/fonts/caveat-namn.woff") format("woff"); font-weight: 700; font-display: swap; }
/* HAND-VI (2026-11-18): "Patrick Hand" Regular 400, the hand for a name Caveat cannot draw and for every name in the Vietnamese interface (js/serienamn.js, class ls-hand2); two files by unicode-range, SIL OFL 1.1 (fonts/OFL-PatrickHand.txt), never preloaded, never a font host. The same two rules are in the classroom's stylesheet (VAN-KLASS-1): merge into one place when both are on dev. */
@font-face { font-family: "Patrick Hand"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/patrickhand-vietnamese.woff") format("woff"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Patrick Hand"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/patrickhand-latin.woff") format("woff"); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2039-203A, U+20AC, U+2212; }
.ls-sidhuvud h1.ls-hand { font-family: "Caveat namn", var(--serif); font-size: 36px; font-weight: 700; line-height: 1.05; letter-spacing: 0; hyphens: none; text-transform: none; }
.ls-sidhuvud h1.ls-hand2 { font-family: "Patrick Hand", var(--serif); font-weight: 400; letter-spacing: 0; font-size: 32px; line-height: 1.1; hyphens: none; text-transform: none; } /* HAND-VI */
.ls-namnrad { margin: 14px 16px 0; min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 4px 0 !important; padding-inline: 14px 8px !important; background: var(--card) !important; border: 1px solid var(--line) !important; border-radius: 12px !important; font-size: 16px; text-align: start !important; }
.ls-namnrad .ls-text { flex: 1; min-width: 0; }
.ls-namnrad b { font-weight: 600; }
.ls-namnrad .ls-varde { color: var(--granite); }
.ls-namnrad svg { width: 20px; height: 20px; flex: none; color: var(--granite); }
.ls-startrad { margin: 10px 16px 0; font-size: 15px; line-height: 1.4; color: var(--granite); } /* saga.start.sida */

.ls-duarhar { display: inline-flex; align-items: center; gap: 4px; padding-block: 2px; padding-inline: 10px; border: 1.5px solid var(--yellow); border-radius: 999px; background: var(--card); color: var(--ls-here-ink); font-size: 14px; font-weight: 700; }
.ls-duarhar svg { width: 15px; height: 15px; flex: none; color: var(--yellow); }

/* ---- 3 · Namn och röst (inside the existing bottom-sheet pattern, .nyark) ---- */
.ls-ark { display: flex; flex-direction: column; gap: 14px; }
.ls-ark .ls-galler { margin-top: -10px; font-size: 16px; color: var(--granite); }
.ls-falt { display: flex; flex-direction: column; gap: 6px; }
.ls-falt label { font-size: 16px; font-weight: 600; }
.ls-falt input { min-height: 52px; padding: 0 14px; border: 1.5px solid var(--granite); border-radius: 12px; font-size: 18px; }
.ls-falt input[aria-invalid="true"] { border-color: var(--bad-ink, var(--bad)); }
.ls-falt .ls-hjalp { font-size: 14px; color: var(--granite); }
.ls-falt .ls-fel { font-size: 14px; color: var(--bad-ink, var(--bad)); }
.ls-notis { margin-top: -4px; padding: 12px 14px 2px; border-radius: 12px; background: var(--sunk); display: flex; flex-direction: column; }
.ls-notis p { margin: 0; font-size: 15px; line-height: 1.45; }
.ls-notis .ls-lankar { display: flex; flex-wrap: wrap; column-gap: 20px; }
.ls-lank { min-height: 44px; display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; color: var(--blue-ink, var(--blue)) !important; font-size: 15px; font-weight: 600; }
.ls-lank svg { width: 16px; height: 16px; }
.ls-roster { display: flex; flex-direction: column; gap: 10px; border: 0; margin: 0; padding: 0; }
.ls-roster legend { padding: 0; margin-bottom: 10px; font-size: 16px; font-weight: 600; }
.ls-rostpar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.ls-rost { border: 1.5px solid var(--granite); border-radius: 14px; padding: 10.5px; display: flex; flex-direction: column; gap: 8px; }
.ls-rost.vald { border: 2px solid var(--blue-ink, var(--blue)); padding: 10px; }
.ls-rost [role="radio"] { min-height: 44px; display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; }
.ls-rost .ls-prick { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid var(--granite); display: grid; place-items: center; }
.ls-rost [aria-checked="true"] .ls-prick { border: 0; background: var(--blue); color: var(--on-blue); }
.ls-rost .ls-prick svg { display: none; width: 15px; height: 15px; }
.ls-rost [aria-checked="true"] .ls-prick svg { display: block; }
.ls-prov { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px !important; background: var(--sunk) !important; font-size: 15px; font-weight: 600; }
.ls-prov svg { width: 14px; height: 14px; }
.ls-prov[aria-pressed="true"] { background: var(--blue-soft) !important; color: var(--blue-ink, var(--blue)) !important; } /* playing: ■ Stoppa provet */
.ls-provsager, .ls-ark .ls-provlokal { font-size: 15px; color: var(--granite); } /* the line the sample says, and the note that the device voice said it (NAMN-1) */
.ls-provfel, .ls-ark .ls-provlokal { scroll-margin-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); } /* scrolled into view above the sticky button (.ls-arkfot, 81 px, and the sheet's 22 px of padding under it, and the home bar) */
.ls-provfel { font-size: 15px; color: var(--bad-ink, var(--bad)); }
.ls-arkfot { position: sticky; bottom: 0; margin-top: -6px; padding: 10px 0 18px; border-top: 1px solid var(--line); background: var(--card); }
.ls-arkfot button { width: 100%; min-height: 52px; border-radius: 12px; font-size: 17px; font-weight: 600; } /* keeps app.css's purple fill */
.ls-arkfot .ls-forbereder { margin-top: 8px; font-size: 15px; color: var(--granite); text-align: center; }
@media (max-height: 560px) { .ls-arkfot { position: static; } } /* 200 % zoom: the sheet scrolls, the bar stops sticking */

/* ---- loading: static skeletons at final sizes, no shimmer ---- */
.ls-skel { background: var(--sunk); border-radius: 14px; }

/* ---- additions in the repo (HP-2.19 part A): what the patch's DOM needs and its CSS did not have ---- */
.lashead { padding: 12px 16px 0; margin: 0; } /* the language chip, only with two study languages */
.ls-las > .lashead + .ls-fort, .ls-las > .ls-fort:first-child { margin-top: 12px; }
.ls-tagg { padding: 1px 7px; border-radius: 6px; border: 1px solid var(--granite); font-size: 14px; font-weight: 600; color: var(--ink); }
.ls-tomtext { width: 114px; align-self: center; margin: 0; font-size: 14px; line-height: 1.35; color: var(--granite); }
.ls-meta .nkan, .ls-sitkort .nkan { font-size: 14px; }
.ls-not { margin: 14px 0 0; padding: 0 16px; font-size: 14px; color: var(--granite); line-height: 1.45; }
.ls-not .link { min-height: 44px; font-size: 14px; background: none; border: 0; padding: 0 4px; color: var(--blue-ink, var(--blue)); text-decoration: underline; }
.ls-las > .ls-not { padding: 0 16px; }
.ls-fel { margin: 12px 16px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ls-fel p { margin: 0; }
.ls-sida > .novels { padding: 16px 16px 0; }
.ls-sida > .ls-not { margin-top: 18px; }
.ls-sida > h1:focus { outline: none; }
.ls-skel.krad { height: 66px; }
.ls-fort > .ls-skel.krad { border-radius: 0; } .ls-fort > .ls-skel.krad + .ls-skel.krad { height: 67px; border-top: 1px solid var(--line); } /* the box as a skeleton: 66 and 67 with the line between, the heading above (182 px as loaded) */
.ls-skel.kort { width: 124px; height: 236px; flex: none; }
/* the icon helper sets display:block inline; the selected-state ticks need to win */
.ls-chk { display: none !important; }
.ls-chip[aria-pressed="true"] .ls-chk, .ls-len [aria-checked="true"] .ls-chk { display: block !important; }
.ls-fel .ls-forsok { min-height: 44px; padding: 0 16px; border: 1.5px solid var(--blue-ink, var(--blue)); border-radius: 10px; color: var(--blue-ink, var(--blue)); font-size: 16px; font-weight: 600; }

/* ---- additions in the repo (HP-2.19 part B): the saga page's skeleton, the Nästa head as a button, the end-of-season card, the sheet's toast ---- */
.ls-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ls-skel.topp { height: 56px; background: none; border-radius: 0; } .ls-skel.sidhuvud { height: 64px; border-radius: 16px; } .ls-skel.kort.sasong { width: 148px; height: 264px; }
.ls-saga > .ls-startrad, .ls-saga > .ls-not { margin-inline: 16px; padding: 0; }
.ls-mjuk { margin: 4px 0 0; font-size: 15px; line-height: 1.4; color: var(--granite); }
.ls-saga > .ls-mjuk { margin: 10px 16px 0; }
.ls-sasongslut { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; border-radius: 18px; background: var(--blue-soft); }
.ls-skhuvud { display: flex; flex-direction: column; gap: 2px; padding: 0 2px 4px; }
.ls-skhuvud .ls-kicker { color: var(--blue-ink, var(--blue)); }
.ls-skhuvud h3 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.15; overflow-wrap: anywhere; }
.ls-skantal { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.ls-skantal.klar { align-self: flex-start; margin-top: 4px; padding: 3px 12px 3px 8px; border: 1.5px solid var(--ok-ink, var(--ok)); border-radius: 999px; background: var(--card); color: var(--ok-ink, var(--ok)); font-size: 16px; font-weight: 700; } /* the season is done (LAS-KOMPAKT S7): the tick and the word, the count is in the spoken name */
.ls-chk-ok { color: var(--ok-ink, var(--ok)); flex: none; }
.ls-skrad { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 14px !important; border-radius: 14px !important; background: var(--card) !important; color: var(--ink) !important; text-align: start !important; }
.ls-skrad .ls-sktext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 16px; line-height: 1.3; }
.ls-skrad small { font-size: 15px; color: var(--granite); }
.ls-skrad .ls-skico { color: var(--blue-ink, var(--blue)); display: grid; }
.ls-skrad > svg { flex: none; color: var(--blue-ink, var(--blue)); }
/* ---- PULL-1: the card's next-season row (the code on the right), the end of a series, and the note that says what a pulled season is like against the learner's level (decision note 2.7, 8.6, 12d) ---- */
.ls-skkod { flex: none; font-size: 15px; font-weight: 600; color: var(--granite); white-space: nowrap; }
.ls-skslut { margin: 0; padding: 0 2px; font-size: 16px; line-height: 1.4; color: var(--ink); }
.ls-sksista, .ls-skstart { color: var(--granite); font-size: 15px; }
.ls-skatg { display: flex; flex-wrap: wrap; gap: 0 18px; padding: 0 2px; }
.ls-skatg .link { min-height: 44px; padding: 0 4px; background: none; border: 0; color: var(--blue-ink, var(--blue)); font-size: 16px; font-weight: 600; text-decoration: underline; }
.ls-skatg .link:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.ls-saga > .ls-svarare, .ls-las > .ls-svarare { margin: 10px 16px 0; font-size: 15px; line-height: 1.4; color: var(--granite); } /* PIN-2: Fortsätt's "Nästa del" on a pulled part says the same line under its box on Läs */
.ls-berrad.ls-berlast { min-height: 64px; padding-inline: 14px; border: 1.5px dashed var(--granite); background: var(--sunk); color: var(--granite); }
.ls-berrad.ls-berlast .ls-lastikon { flex: none; display: grid; }
.ls-berrad.ls-berlast .ls-titel { font-size: 17px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.ls-toast { position: fixed; inset-inline: 16px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60; margin-inline: auto; width: fit-content; max-width: 420px; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--paper); font-size: 15px; line-height: 1.35; }
.ls-ark .ls-hjalp { margin: 0; }
.ls-arkfot button { background: var(--blue); color: var(--on-blue); text-align: center; }
.ls-prov:focus-visible, .ls-rost [role="radio"]:focus-visible, .ls-lank:focus-visible, .ls-falt input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.nyark:has(.ls-ark) .nystang { width: 44px; height: 44px; }

/* ---- additions in the repo (HP-2.15): the reader's Kort / Hel picker, its confirm and its once-notice (design 4a and 4b); the pair itself is .ls-len above ---- */
.ls-lenrad { padding: 10px 0 2px; }
.ls-lenrubrik { margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--granite); }
.ls-lenrad .ls-len [role="radio"] { min-height: 48px; border-radius: 10px; font-size: 15px; }
.ls-lenrad .ls-len [aria-disabled="true"] { opacity: .6; cursor: default; }
.ls-lenrad .ls-len [role="radio"]:focus-visible, .ls-lenknappar button:focus-visible, .ls-lenstang:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.ls-lenbekr { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; background: var(--card); border: 1.5px solid var(--granite); border-radius: 12px; }
.ls-lenbekr p { margin: 0; font-size: 16px; line-height: 1.4; }
.ls-lenknappar { display: flex; flex-wrap: wrap; gap: 8px; }
.ls-lenja { min-height: 44px; padding: 0 20px; border-radius: 10px; background: var(--blue); color: var(--on-blue); font-size: 16px; font-weight: 600; }
.ls-lennej { min-height: 44px; padding: 0 18px; border: 1.5px solid var(--blue-ink, var(--blue)); border-radius: 10px; color: var(--blue-ink, var(--blue)); font-size: 16px; font-weight: 600; }
#epLenMed:empty { display: none; }
.ls-lenmed { margin: 8px 0 0; font-size: 15px; line-height: 1.4; color: var(--granite); }
.ls-lenfel { margin: 8px 0 0; display: flex; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 1.4; color: var(--bad-ink, var(--bad)); }
.ls-lenfel svg { flex: none; margin-top: 2px; }
.ls-lennotis { margin-top: 10px; display: flex; align-items: flex-start; gap: 10px; padding: 0 4px 0 12px; background: var(--blue-soft); border: 1px solid var(--blue-line, var(--line)); border-radius: 12px; font-size: 15px; line-height: 1.4; }
.ls-lennotis > svg { flex: none; margin-top: 13px; color: var(--blue-ink, var(--blue)); }
.ls-lennotis p { flex: 1; min-width: 0; margin: 0; padding: 10px 0; }
.ls-lenstang { width: 44px; height: 44px; flex: none; display: grid; place-items: center; color: var(--ink); }

/* ---- UI-1 item 4: the saga page as Fortsätt plus season cards ---- */
.ls-saga > .ls-fort, .ls-saga > .ls-fortslut { margin-top: 14px; }
.ls-fortslut > .ls-sasongslut { margin: 0 12px 12px; } /* a finished season: the heading, then the always-open end-of-season card (its lilac stands out on the white box) */
.ls-saga > .ls-rad { padding: 26px 0 0; }
.ls-saga > .ls-rad > h2 { font-size: 21px; }
.ls-saga > .ls-namnrad { margin: 26px 16px 30px; }
.ls-sasongkort { width: 148px; } /* a story card of Läs (.ls-affisch) a little wider: the part, the Steg, the count and "du är här" go in it */
.ls-sasongkort .ls-art { min-height: 264px; } /* LAS-SASONG: the band now holds the title, two lines of what the season holds and the meta line, so the card is 264 (the padlock card stretches to it) */
.ls-sasongkort .ls-band .ls-titel { font-size: 18px; }
.ls-sasongkort .ls-band { gap: 2px; } /* LAS-SASONG: tight, so the band (with the pill) stays under 60 % of the 264 */
.ls-sasongkort .ls-bild ~ .ls-band { padding-top: 24px; }
.ls-sasongkort .ls-art > .ls-duarhar { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; z-index: 2; } /* DUARHAR-POS: a tag on the cover, top left */
.ls-berrad > .ls-duarhar { position: absolute; inset-block-start: 6px; inset-inline-start: 5px; z-index: 1; max-inline-size: 86px; gap: 3px; padding-block: 2px; padding-inline: 7px; border-radius: 10px; line-height: 1.15; } /* on the 84 px thumb: 14 px as the page's smallest text, a longer label wraps inside the tag */
.ls-berrad > .ls-duarhar svg { display: none !important; } /* on the thumb the word alone: the row's yellow edge marks it too; up to 86 px it ends before the text column (96) */
.ls-sasongkort.har > .ls-art { outline: 3px solid var(--yellow); outline-offset: -3px; } /* the learner's season: the "you are here" colour, besides the pin and the words */
/* A locked season: a padlock card with only where it opens. A label, not a button: no pressed state, no focus. */
.ls-sasongkort > .ls-art.ls-last { align-items: center; justify-content: center; gap: 10px; padding: 16px 12px; text-align: center; border: 1.5px dashed var(--granite); outline: 0; background: var(--sunk); color: var(--granite); cursor: default; }
.ls-art.ls-last .ls-lastikon { display: grid; }
.ls-art.ls-last .ls-lastikon svg { width: 30px; height: 30px; }
.ls-art.ls-last .ls-lasttext { font-size: 17px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; text-wrap: balance; }
/* A card's focus ring sits inside it: the row clips what is outside, and `.ls-kort > .ls-art` above had taken the global ring away. */
.ls-art:focus-visible, .ls-kort > .ls-art:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.ls-sasongkort.har > .ls-art:focus-visible { outline-color: var(--ink); }

/* ---- LAS-SASONG: the season card and the season page (docs/design/saga-sasong-scener.md) ---- */
.ls-sasongkort .ls-haller { font-size: 14px; line-height: 1.35; color: #fff; }
/* the page: the slim header (the level chip beside the h1 in the banner), then Berättelse(r) as rows and Situationer i del N as a grid, each in its own section */
.ls-sidhuvud .ls-hrad { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
/* LAS-HUVUD-3 (Linh, 2026-10-21: "for a story in a series, maybe better to have story name at the top banner instead of Del number only, could be Del 1 <title>", las-sidhuvud.md section 13): a season with one story of its own (js/library.js sasongSida) has a
   two-line banner that is still 64 px: line 1 "Del 1" with the level chip beside it (system sans 14 px, the app's smallest size, the text colour at 85 %, the chip 16 px high), line 2 the story's title, one line with an ellipsis if it is still too wide, in the hand-written face (28 px,
   when js/library.js arHand allows) or Charter 22 px. The h1 holds the title and the hidden "Del 1 · " (its text is "Del 1 · Den blå boken"); the visible line 1 follows it in the page and is drawn first (order). Its padding and an equal negative margin give the
   clipped box room for Caveat's ascenders and descenders without taking any. A season with two stories keeps the one-line banner above. */
.ls-sidhuvud.ls-sidtva { padding-block: 8px; }
.ls-sidhuvud .ls-hrad.ls-tva { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 0; width: 100%; min-width: 0; }
.ls-tva .ls-delrad { order: -1; display: flex; align-items: center; gap: 8px; height: 16px; font-size: 14px; line-height: 16px; }
.ls-tva .ls-del { font-weight: 600; opacity: .85; }
.ls-tva .ls-steg { padding: 0 6px; font-size: 14px; line-height: 16px; }
.ls-sidhuvud .ls-tva h1 { position: relative; max-width: 100%; min-width: 0; margin-block: -4px; padding-block: 4px; font-size: 22px; line-height: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; hyphens: none; }
.ls-sidhuvud .ls-tva h1.ls-hand { font-size: 28px; line-height: 30px; }
.ls-sidhuvud .ls-tva h1.ls-hand2 { font-size: 25px; line-height: 30px; }
.ls-sasongsida > .ls-rad:last-child { padding-bottom: 30px; }
.ls-berlista, .ls-sitlista { list-style: none; margin: 0; }
.ls-berlista { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.ls-berrad { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 84px; padding-block: 8px; padding-inline: 96px 10px; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-align: start; }
.ls-tumme { position: absolute; inset-block: 0; inset-inline-start: 0; width: 84px; overflow: hidden; background: linear-gradient(150deg, hsl(var(--h, 210) 55% 86%), hsl(var(--h2, 250) 55% 74%)); }
@media (prefers-color-scheme: dark) { .ls-tumme { background: linear-gradient(150deg, hsl(var(--h, 210) 30% 24%), hsl(var(--h2, 250) 30% 33%)); } }
.ls-bertext { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.ls-berrad .ls-kicker { color: var(--granite); }
.ls-berrad .ls-titel { max-width: 100%; font-size: 20px; line-height: 1.15; } /* SASONG-RAD: the progress is under it, so the name has the row's width and is one line; a name longer than the row still wraps, never cut */
.ls-berprog { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.ls-berrad > .ls-pil { flex: none; color: var(--granite); }
.ls-berrad:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.ls-sasongsida .ls-grid2 { padding: 0 16px; }
@media (min-width: 560px) { .ls-sasongsida .ls-sitlista { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } .ls-sasongsida .ls-sitlista .ls-art { aspect-ratio: 5 / 6; } } /* SIT-OMSLAG-BRED (Linh, 2026-11-02): on a wide screen two columns made a scene card about 510 x 160 px, a strip of its picture under the band; columns of about a phone card's width, and the phone card's upright shape (156 x 187 at 390 px), keep the scene in view */
.ls-sitli { min-width: 0; display: flex; }
.ls-sitli > .ls-kort { flex: 1; min-width: 0; }
.ls-skelsas { display: flex; flex-direction: column; gap: 10px; padding: 26px 16px 0; }
.ls-skel.berrad { height: 84px; }
.ls-skelrutor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.ls-skel.sitrut { height: 200px; }
