/* Languages, the home-language sheet, the not-ready screen, the offline banner and the help link
 * (27 Oct 2026). Same tokens as styles.css / station.css. Every control is at least 56 px tall. */

.flag { display: inline-block; flex: none; width: 30px; height: 20px; border-radius: 3px; vertical-align: middle; }
/* station.css draws every svg as an outline icon (stroke: currentColor); a flag is filled shapes only. */
svg.flag { fill: none; stroke: none; stroke-width: 0; }

/* One button that names the current language and opens the full list. */
.langbtn { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 18px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.22); color: var(--text); font-size: 17px; font-weight: 700; text-align: left; }
.langbtn.wide { width: 100%; }
.langbtn .lb-k { color: var(--muted); font-weight: 600; }
.langbtn .lb-go { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 15px; }
#auth-lang { max-width: 440px; margin: 0 auto 14px; }
.shell .langbtn.wide { margin-top: 12px; }
.menu button[data-lang-open] { display: flex; align-items: center; gap: 10px; }

/* The list in both sheets: big rows, flag + the language's own name. */
.langlist { display: grid; gap: 8px; margin: 14px 0 6px; }
.langlist button { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 18px; border-radius: 14px;
  background: rgba(255,255,255,.05); border: 2px solid rgba(255,255,255,.18); color: var(--text); font-size: 19px; font-weight: 700; text-align: left; }
.langlist button .flag { width: 36px; height: 24px; }
.langlist button .ln-sub { margin-left: auto; color: var(--muted); font-size: 14px; font-weight: 600; }
.langlist button[aria-checked="true"], .langlist button[aria-current="true"] { border-color: var(--green); background: rgba(34,211,107,.14); }
.langlist button[aria-checked="true"]::after, .langlist button[aria-current="true"]::after { content: "\2713"; margin-left: 10px; color: var(--green); font-size: 22px; }
.langlist button[aria-checked="true"] .ln-sub, .langlist button[aria-current="true"] .ln-sub { margin-left: auto; }
.langsheet { max-height: 94vh; overflow-y: auto; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
#hl-ok { margin-top: 14px; }

/* The home's language on the gateway page and the scanner. */
.homelang { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; margin: 4px 0 12px; padding: 0 16px; border-radius: 14px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text); font-size: 16px; font-weight: 700; text-align: left; }
.homelang .hl-k { color: var(--muted); font-weight: 600; }
.homelang .hl-change { margin-left: auto; color: var(--t-cyan, #22d3ee); text-decoration: underline; text-underline-offset: 3px; }
.homelang.unset { border: 2px solid var(--amber); }
.homelang.small { min-height: 48px; margin: 8px 0 0; background: rgba(0,0,0,.45); border-color: rgba(255,255,255,.35); font-size: 15px; }

.hl-preview { margin: 8px 0 4px; }
.hl-preview-h { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.hl-labels { display: flex; flex-wrap: wrap; gap: 8px; }
.hl-labels canvas, .hl-labels img { width: 142px; height: 48px; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.3); image-rendering: pixelated; }

/* Not ready (EU before its organizations exist). */
.notready { text-align: left; }
.notready h2 { font-size: 24px; line-height: 1.25; }
.notready a.go { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* No connection. */
.offline-banner { position: sticky; top: 0; z-index: 60; display: grid; gap: 6px; padding: 12px 16px; background: var(--t-red, #d7263d); color: #fff; font-size: 15px; line-height: 1.4; }
.offline-banner b { font-size: 18px; }
.offline-banner .ghost { justify-self: start; min-height: 48px; padding: 0 18px; color: #fff; border-color: rgba(255,255,255,.8); }

/* "How it works" in the header: a ? that always fits, and the words when there is room. */
.helplink { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 10px; border-radius: 12px; color: var(--text);
  text-decoration: none; font-size: 14px; font-weight: 700; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.helplink .q { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--text); color: var(--ink); font-weight: 900; font-size: 15px; }
@media (max-width: 400px) { .helplink .helptext { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .helplink { padding: 0 11px; } }
.menu a.menulink { display: flex; align-items: center; min-height: 52px; padding: 0 16px; border-radius: 10px; color: var(--text); font-size: 17px; font-weight: 600; text-decoration: none; }
.menu a.menulink:hover, .menu a.menulink:focus-visible { background: rgba(255,255,255,.08); }

.sc-buttons.wrap { display: flex; flex-wrap: wrap; }
#s-phoneprint-test { margin-top: 10px; }
