/* SPRAK-VAL (docs/design/sprak-val.md 9 and 10): the interface language (js/sprak-val.js). The list (Inställningar's fold, Kom igång's dropdown), the
   sign-in screens' three in the corner, and Kom igång's dropdown. The chosen one is a check mark or a fill, and bold: never colour alone. The mark sits
   at the inline start, so RTL needs nothing more. */
.spmarke { flex: none; display: grid; place-items: center; inline-size: 24px; block-size: 16px; }
.spflagga { display: block; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); } /* the blue and the red are not 3:1 on every background: the outline holds the shape */
.spglob { color: var(--granite); display: grid; place-items: center; }
.spsr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spkod { letter-spacing: .02em; }

/* The list: rows of 52 px */
.splista { display: grid; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card, var(--paper)); }
.splista .sprad { display: flex; align-items: center; gap: 12px; inline-size: 100%; min-block-size: 52px; margin: 0; padding: 8px 14px; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 1rem; font-weight: 400; line-height: 1.25; text-align: start; }
.splista .sprad + .sprad { border-block-start: 1px solid var(--line); }
.splista .sprad[aria-checked="true"] { font-weight: 600; }
.splista .sprad:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.spnamn { flex: 1; min-inline-size: 0; overflow-wrap: anywhere; }
.spbock { flex: none; display: grid; place-items: center; inline-size: 18px; color: var(--blue-ink, var(--blue)); }

/* The two sign-in screens: the three side by side in the top corner, 44 px each, the chosen one filled */
.auth .spkort { position: absolute; inset-block-start: calc(.8em + env(safe-area-inset-top)); inset-inline-end: .9em; display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.spkort .spval { display: inline-flex; align-items: center; gap: 6px; min-block-size: 44px; min-inline-size: 44px; margin: 0; padding: 0 11px 0 9px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-size: .85rem; font-weight: 500; }
.spkort .spval[aria-checked="true"] { background: var(--ink); color: var(--paper); font-weight: 700; }
.spkort .spval[aria-checked="true"] .spglob { color: inherit; }

/* Kom igång: the heading and the dropdown on one line, the list opening under the dropdown over what follows */
.kigsprak { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.spmeny { position: relative; flex: none; }
.spmenyknapp { display: inline-flex; align-items: center; gap: 7px; min-block-size: 44px; margin: 0; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card, var(--paper)); color: var(--ink); font-size: .92rem; font-weight: 600; }
.spmenyknapp svg:last-child { color: var(--granite); }
.spmenyknapp[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
.spmenylista { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 6px); z-index: 5; inline-size: max-content; min-inline-size: 210px; max-inline-size: calc(100vw - 32px); border-radius: 12px; box-shadow: 0 10px 28px rgba(20, 22, 26, .22); }
.spmenylista[hidden] { display: none; }

/* Inställningar: a fold like the other rows; the list inside it keeps its 52 px (the page's 44 px floor is an id rule, installningar-vanner.css) */
#moreView #sprakRad .splista { margin-block-start: 2px; }
#moreView #sprakRad .sprad { min-block-size: 52px; }
