/* kig-ny.css — KIG-NY: Kom igång and the level check in their new look (Part B of the design patch-intro-kig, 2026-10-29: the band and the
   three-stage bar, the meanings preview, icons on the three ways, stacked level cards with a real sentence, the time question's card, the wide
   suggested story, part A one statement at a time). Load AFTER kom-igang.css and studiesprak.css. (Part A's file, css/intro-kig.css, is on
   another branch and holds the introduction; this one is the Kom igång half of the same design patch, so the two do not collide.)
   Tokens only: flips with prefers-color-scheme. Nothing under .85rem (14.5 px), 44 px targets, no animation or transition, logical properties only. */

/* ============================================================ 1. Kom igång and the check: the band */
/* The head of every page (top row, the three-part bar, the heading and its line) sits on a soft purple band;
   the first card of the page overlaps its lower edge. */
.kigband { background: var(--blue-soft); padding: 4px 16px 34px; display: grid; gap: 10px; }
.kigband > * { inline-size: 100%; max-inline-size: 428px; margin-inline: auto; box-sizing: border-box; }
.kigband .kigtopp { padding: 0; min-block-size: 48px; }
.kigband h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.1; text-wrap: pretty; outline: none; }
.kigband .kigvarfor { margin: 0; font-size: .95rem; line-height: 1.45; color: var(--granite); }
.kigband .kigav { margin: 0 0 -6px; font-size: .85rem; color: var(--granite); }
.kigband + .kigkropp { margin-block-start: -22px; padding-inline: 16px; gap: 10px; }
.kigband .kigtopp .kigbar i { background: var(--paper); }   /* the check's own three-part bar sits on the band, not on paper */
.kigband .kigtopp .kigbar i.pa { background: var(--blue); }
.kigband .kigtopp .kigbak, .kigband .kigtopp .kighoppa { color: var(--granite); }
/* The last page keeps its centred layout; the stage bar sits under its top row. */
.kigovre { background: var(--blue-soft); padding: 4px 16px 14px; display: grid; gap: 10px; }
.kigovre > * { inline-size: 100%; max-inline-size: 428px; margin-inline: auto; box-sizing: border-box; }
.kigovre .kigtopp { padding: 0; min-block-size: 48px; }

/* The three stages the introduction promises (hj.nu1–3), on every page of Kom igång. */
.kigetapp { display: grid; gap: 7px; }
.kigetapp .kigbar { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.kigetapp .kigbar i { block-size: 6px; background: var(--paper); transition: none; } /* the old bar eased its colour: this page has no motion (the choice page carries this bar too) */
.kigetapp .kigbar i.pa { background: var(--blue); }
.kigetapp > span { font-size: .85rem; font-weight: 600; color: var(--blue-ink, var(--blue)); }

/* Cards on paper, lifted off the band. */
.kig .kiginstdel, .kig .kigvag, .kig .kigstegkort button, .kig .kigminkort, .kig .kvkort, .stpkort-a {
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 18px; box-shadow: 0 8px 22px rgba(60, 30, 80, .08); }
@media (prefers-color-scheme: dark) { .kig .kiginstdel, .kig .kigvag, .kig .kigstegkort button, .kig .kigminkort, .kig .kvkort, .stpkort-a { box-shadow: none; } }
.kig .kiginstdel { padding: 12px 14px; gap: 8px; }
.kig .kiginstdel h2 { font-size: 1rem; }
.kig .kigseg.tva button { min-block-size: 44px; }

/* ============================================================ 2. the first settings: the meanings preview */
.kigprov { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 12px; align-items: baseline; padding: 8px 12px; border-radius: 12px; background: var(--blue-soft); }
.kigprovord { grid-row: 1 / 3; font-family: var(--serif); font-size: 1.15rem; }
.kigprov > span:nth-child(2) { font-size: .95rem; }
.kigprovandra { font-size: .85rem; line-height: 1.35; color: var(--granite); }
.kiginstdel .swrad { min-block-size: 52px; border-block-start: 1px solid var(--line); }

/* ============================================================ 3. Vilken nivå är du på? */
.kig .kigvag { display: grid; grid-template-columns: 52px minmax(0, 1fr) 20px; align-items: center; gap: 14px; min-block-size: 84px; padding: 14px; }
.kigikon { inline-size: 52px; block-size: 52px; border-radius: 14px; background: var(--blue-soft); color: var(--blue-ink, var(--blue)); display: grid; place-items: center; }
.kig .kigvag > svg { color: var(--granite); }
[dir="rtl"] .kig .kigvag > svg { transform: scaleX(-1); }

/* ============================================================ 4. Välj din nivå: stacked cards with a real sentence */
.kigstegkort { display: grid; gap: 8px; }
.kigstegkort button { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; color: var(--ink); text-align: start; font: inherit; }
.kigstegkort button[aria-checked="true"] { border: 2px solid var(--blue); padding: 11.5px 13.5px; background: var(--blue-soft); }
.kignr { display: grid; }
.kignr b { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--blue-ink, var(--blue)); }
.kignr span { font-size: .85rem; color: var(--granite); }
[aria-checked="true"] .kignr span { color: var(--blue-ink, var(--blue)); font-weight: 600; }
.kigstegtext { display: grid; gap: 6px; }
[aria-checked="true"] .kigstegtext { padding-inline-end: 30px; }
.kigprovrad { font-family: var(--serif); font-size: 1.02rem; line-height: 1.4; }
.kigstegtext .kigom { margin: 0; max-inline-size: none; font-size: .9rem; line-height: 1.45; }
.kigstegtext .kigomnot { font-size: .85rem; line-height: 1.4; color: var(--granite); text-wrap: pretty; }
.kigstegbock { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; inline-size: 24px; block-size: 24px; border-radius: 50%; background: var(--blue); color: var(--on-blue); display: grid; place-items: center; }

/* ============================================================ 5. the time question */
.kigmin small { font-size: .85rem; }              /* was .72rem, 12 px */
.kigminkort { padding: 14px; display: grid; gap: 10px; }
.kigminkort .kigsant, .kigminkort .kigtips { margin: 0; }
.kigminkort .kigmin button { min-block-size: 118px; justify-content: flex-start; padding: 12px 6px; }
.kigminkort .kigmin b { font-size: 2rem; }

/* ============================================================ 6. Välj en berättelse: the suggested story is wide */
.kig .kvrek { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; border-width: 2px; border-color: var(--blue-ink, var(--blue)); }
.kvrek .kvbild { inline-size: 100%; block-size: 146px; border-radius: 0; }
.kvrek .kvtext { padding: 12px 14px 14px; gap: 4px; }
.kvrek .kvtitel { font-size: 1.15rem; }

/* ============================================================ 7. the check, part A: one statement at a time */
.stpkort-a { padding: 16px; display: grid; gap: 14px; }
.stpaprickar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stpaprickar > span { display: flex; gap: 4px; }
.stpaprickar i { inline-size: 8px; block-size: 6px; border-radius: 3px; background: var(--line); }
.stpaprickar i.pa { background: var(--blue); }
.stpaprickar i.nu { inline-size: 18px; background: var(--blue); }
.stpaprickar small { font-size: .85rem; color: var(--granite); }
.stpapast { margin: 4px 0 6px; font-family: var(--serif); font-size: 1.45rem; line-height: 1.28; text-wrap: pretty; outline: none; }
.stpasvar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stpasvar button { display: grid; justify-items: center; gap: 6px; min-block-size: 80px; padding: 12px 4px; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; }
.stpasvar button svg { color: var(--blue-ink, var(--blue)); }
.stpasvar button[aria-checked="true"] { border: 2px solid var(--blue); padding: 11.5px 3.5px; background: var(--blue-soft); color: var(--blue-ink, var(--blue)); font-weight: 700; }
.stpahoppa { justify-self: center; white-space: nowrap; min-block-size: 44px; padding-inline: 12px; background: transparent; border: 0; color: var(--granite); font-size: .9rem; }

/* ============================================================ 8. Nästa stays on the screen */
/* The band made every page taller; where a page is longer than the phone (the first settings with the switch on, the four level cards, the time question) the button row stays at the foot of the sheet while the page scrolls under it. */
.kigsida > .kigfot { position: sticky; inset-block-end: 0; background: var(--paper); z-index: 1; padding-block-start: 10px; padding-block-end: 16px; }
.kigmin span { font-size: .85rem; }               /* the unit under the number: was .8rem, 13.6 px */
/* Nothing under .85rem (14.5 px) on these pages: the small lines of the old sheet are raised. */
.kig .integritetlank, .kigsenare, .kiginstdel > p, .kigav, .kigbyt, .kignot, .kigtips, .kigsant { font-size: .85rem; }

/* ============================================================ 9. four tiles in Min profil */
/* Steg 4 is the fourth tile of the row in Min profil. A tile never overflows its box, and where four do not fit (a narrow window, 200 % zoom) they go two by two. */
.kigsteg button span { overflow-wrap: anywhere; text-align: center; }
@media (max-width: 300px) { .kigsteg { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kigprovandra[lang="vi"] { line-height: 1.45; } /* stacked diacritics clip at 1.35 in some system fonts (docs/design/betyd-chips.md 3.3) */
