/* ============================================================
   SPECTRUM — DESIGN SYSTEM
   Single source of truth for colours, typography, spacing,
   borders, components and layout conventions.

   Apply to every page via:
     <link rel="stylesheet" href="spectrum-design-system.css">

   GOLDEN RULE: No hardcoded hex values or px values for colour/
   spacing anywhere outside this file. Always reference a token.
   ============================================================ */


/* ── 1. RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


/* ── 2. DESIGN TOKENS (CSS custom properties) ────────────── */
:root {

  /* Background layers */
  --bg:        #0F1116;   /* page background                  */
  --card:      #1B1D23;   /* sidebar, topbar, cards, modals    */
  --bar:       #16181F;   /* table headers                    */
  --s2:        #22242C;   /* hover states in nav              */
  --surface:   #141D26;   /* expanded detail panels           */

  /* Borders */
  --b1:        rgba(217, 217, 217, 0.65);   /* standard content border  */
  --b2:        rgba(217, 217, 217, 0.90);   /* hover / focus border     */
  --b-subtle:  rgba(217, 217, 217, 0.10);   /* sidebar + topbar only    */

  /* Text */
  --t1:        #ffffff;   /* primary text                     */
  --t2:        #BFBFBF;   /* secondary / muted text           */

  /* Accent — primary brand colour (light green) */
  --ac:        #3effa2;
  --ac2:       rgba(62, 255, 162, 0.12);    /* accent bg weak           */
  --ac3:       rgba(62, 255, 162, 0.25);    /* accent bg medium / border*/
  --ac-bg:     #0E2E1E;                     /* accent bg solid          */
  --wrap-border: #71F2C7;                   /* expanded row outline     */

  /* Status — Red (overdue, critical) */
  --rd:        #FF5C4D;
  --rd-bg:     #3D1F20;

  /* Status — Amber (due soon, warning) */
  --am:        #F5A623;
  --am-bg:     #3A2A0E;

  /* Status — Green (legacy / dark green — see usage note below) */
  --gn:        #2DB870;
  --gn-bg:     #0E2E1E;

  /* Status — Light blue-grey (neutral / informational / in-progress / in-review) */
  --lbg:       #9FB3C8;
  --lbg-bg:    rgba(159, 179, 200, 0.12);
  --lbg3:      rgba(159, 179, 200, 0.30);

  /* Status — Blue (legacy) */
  --bl:        #8090FF;
  --bl-bg:     rgba(128, 144, 255, 0.12);

  /* Spacing scale */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-7:   28px;
  --space-8:   32px;

  /* Border radius */
  --radius-sm:  5px;
  --radius-md:  7px;
  --radius-lg:  10px;

  /* Typography */
  --font:       'DM Sans', system-ui, sans-serif;
  --font-mono:  'DM Mono', monospace;
  --font-size-xs:   9px;
  --font-size-sm:   11px;
  --font-size-base: 13px;
  --font-size-md:   14px;
  --font-size-lg:   20px;
  --font-size-xl:   32px;

  /* Layout */
  --sidebar-width:  220px;
  --topbar-padding: 14px 28px;
  --body-padding:   32px 40px;
  --content-max-width: 1080px;
  --section-gap:    22px;
}


/* ── 3. BASE ──────────────────────────────────────────────── */
html, body   { height: 100%; overflow: hidden; }
body         { font-family: var(--font); background: var(--bg); color: var(--t1); font-size: var(--font-size-base); }
.shell       { display: flex; height: 100vh; overflow: hidden; }


/* ── 4. SIDEBAR ───────────────────────────────────────────── */
.sb {
  width: var(--sidebar-width); flex-shrink: 0; background: var(--card);
  border-right: 1px solid var(--b-subtle);
  display: flex; flex-direction: column; overflow: hidden;
}
.sb-logo { display: flex; align-items: center; justify-content: center; padding: 24px 18px 16px; }
.nav { flex: 1; padding: 10px; overflow-y: auto; }
.nav-group { margin-bottom: 18px; }
.nav-gl {
  font-size: var(--font-size-xs); font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--t2); padding: 0 8px 7px;
}
.ni {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px;
  border-radius: var(--radius-md); font-size: 12px; font-weight: 500;
  color: var(--t2); cursor: pointer; transition: all 0.12s; text-decoration: none;
}
.ni i { font-size: 15px; flex-shrink: 0; }
.ni:hover { background: var(--s2); color: var(--t1); }
.ni.on { background: var(--s2); color: var(--t1); font-weight: 600; }
.ni.on > i:first-child { color: var(--ac); }


/* ── 5. MAIN / TOPBAR ─────────────────────────────────────── */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--topbar-padding); border-bottom: 1px solid var(--b-subtle);
  background: var(--card); flex-shrink: 0;
}
.tb-page-title { font-size: var(--font-size-lg); font-weight: 800; color: var(--t1); letter-spacing: -0.01em; padding-left: 4px; }
.tb-right { display: flex; gap: 8px; align-items: center; }
.tb-user { display: flex; align-items: center; gap: 9px; }
.tb-user-name { font-size: 12px; font-weight: 600; color: var(--t2); }
/*
  Organisationsvaelgeren i topbjaelken (opgave 42 del 2 b). Navnet ER
  `tb-user-name`, og med flere medlemskaber er det en native <select> UDEN
  ramme i samme typografi. Reglerne hang foer paa `.org-chip select`; chippen
  er vaek med opgave 42, og de hoerer derfor her, hos den klasse, der nu
  baerer navnet. Farve, stoerrelse og vaegt kommer af `.tb-user-name` selv.
*/
select.tb-user-name {
  background: none; border: none; outline: none;
  font-family: inherit; cursor: pointer;
}
select.tb-user-name:focus-visible { outline: 1px solid var(--b2); border-radius: var(--radius-sm); }
select.tb-user-name option { background: var(--card); color: var(--t1); }
/*
  A445 · opgave 56 del B (E4). I en enhed staar moderen under navnet som en
  lille linje (*del af {moder}*) og ikke i sidetitlen, saa intet afkortes ved
  390 px (fund F1). `.tb-org` stabler de to.
*/
.tb-org { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; min-width: 0; }
.tb-del-af { font-size: 10px; font-weight: 500; color: var(--t2); white-space: nowrap; }
.tb-icon-btn {
  background: none; border: 1px solid var(--b-subtle); color: var(--t2);
  width: 30px; height: 30px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 15px;
}
.tb-icon-btn:hover { color: var(--t1); border-color: var(--b2); }


/* ── 6. AVATARS — image with neutral fallback ─────────────── */
/*
  RULE: Avatars always try to show a profile image first.
  If no image is available, fall back to a circle filled with
  the LIGHT BLUE-GREY tone (--lbg-bg / --lbg3 / --lbg), showing
  initials. Never fall back to the green accent — green is
  reserved for action/completion (see section 9).
*/
.av, .av-sm, .cmt-av, .appr-av {
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 800; flex-shrink: 0; overflow: hidden;
  background: var(--lbg-bg); border: 1px solid var(--lbg3); color: var(--lbg);
}
.av img, .av-sm img, .cmt-av img, .appr-av img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.av    { width: 28px; height: 28px; font-size: 9px; }
.av-sm, .cmt-av, .appr-av { width: 24px; height: 24px; }


/* ── 7. BODY / CONTENT CONTAINER ──────────────────────────── */
.body {
  flex: 1; overflow-y: auto; padding: var(--body-padding);
  display: flex; flex-direction: column; align-items: center;
}
.body-inner {
  width: 100%; max-width: var(--content-max-width);
  display: flex; flex-direction: column; gap: var(--section-gap);
}


/* ── 8. CARDS / KPI BOXES ─────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--b1); border-radius: var(--radius-lg);
  padding: 20px 20px 16px; cursor: pointer; transition: border-color 0.15s;
  display: flex; flex-direction: column; gap: 10px;
}
.card:hover { border-color: var(--b2); }
.card-label {
  font-size: var(--font-size-xs); font-weight: 800; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--t2);
}
/*
  RULE: KPI numbers (.card-num) are always white (--t1), regardless
  of what the metric represents. Colour is reserved for things that
  need attention — a big neutral number is not an action signal.
*/
.card-num { font-size: var(--font-size-xl); font-weight: 300; line-height: 1; letter-spacing: -0.02em; color: var(--t1); }
.card-progress { display: flex; flex-direction: column; gap: 5px; margin-top: auto; }
.card-progress-bar { height: 3px; background: rgba(217,217,217,0.22); border-radius: 2px; overflow: hidden; }
.card-progress-fill { height: 100%; border-radius: 2px; transition: width 0.4s ease; }
.card-progress-text { font-size: var(--font-size-sm); color: var(--t2); }


/* ── 9. COLOUR = ACTION PRINCIPLE ─────────────────────────── */
/*
  THE SINGLE MOST IMPORTANT RULE ACROSS ALL SPECTRUM PAGES:

  Colour signals that something REQUIRES ACTION or carries a
  status that affects compliance/risk. Absence of colour means
  "informational only" — plain white/grey text.

  Status colour mapping:
    --rd (red)    = overdue / critical / blocking
    --am (amber)  = due soon / warning
    --lbg (light blue-grey) = neutral state — in progress, in review,
                    no-image avatar fallback, informational badges
    --ac (light green accent) = completion / success / primary CTA
                    (Mark complete, Post, Create, Publish, checked
                    checkboxes, "done" indicators)
    --gn (dark green) = LEGACY. Avoid for new completion states —
                    use --ac / --ac2 / --ac3 instead (see below).

  Examples:
    - "Open" badge:        --ac on --ac2 (action needed → light green is fine
                            as an open/active marker, NOT as a completion marker)
    - "In Progress" badge: --lbg on --lbg-bg
    - "In Review" badge:   --lbg on --lbg-bg
    - "Overdue" badge:     --rd on --rd-bg
    - "Completed" badge / checkmark: --ac on --ac2 (NOT --gn)
*/
.badge {
  display: inline-block; font-size: var(--font-size-sm); font-weight: 700;
  padding: 3px 9px; border-radius: var(--radius-sm);
}
.b-overdue { background: var(--rd-bg); color: var(--rd); border: 1px solid rgba(232,64,42,0.35); }
.b-open    { background: var(--ac2);   color: var(--ac); border: 1px solid var(--ac3); }
.b-inprog  { background: var(--lbg-bg); color: var(--lbg); border: 1px solid var(--lbg3); }
.b-review  { background: var(--lbg-bg); color: var(--lbg); border: 1px solid var(--lbg3); }
.b-done    { background: var(--ac2);   color: var(--ac); border: 1px solid var(--ac3); }
.b-notstart{ background: rgba(191,191,191,0.08); color: var(--t2); border: 1px solid rgba(191,191,191,0.2); }


/* ── 10. TABLES ───────────────────────────────────────────── */
.tbl-wrap { background: var(--card); border: 1px solid var(--b1); border-radius: var(--radius-lg); overflow: hidden; }
.tbl-head {
  display: grid; padding: 12px 20px; background: var(--bar);
  border-bottom: 1px solid var(--b1); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.th {
  font-size: var(--font-size-xs); font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--t2); display: flex; align-items: center; gap: 4px; cursor: pointer;
}
.tbl-body { overflow-y: visible; }

/*
  RULE: Within a table row, use a single consistent text colour
  (--t1) for all columns. Colour is reserved for the Status column
  only (via .badge classes above). This keeps scanability high —
  the eye is drawn to status, not to incidental colour noise.
*/
.tr { display: grid; padding: 0 20px; cursor: pointer; transition: background 0.1s; align-items: center; color: var(--t1); }
.tr:hover { background: rgba(255,255,255,0.02); }
.td { padding: 13px 0; font-size: var(--font-size-base); font-weight: 400; }


/* ── 11. EXPANDED ROW — outline, not border ──────────────── */
/*
  RULE: When a row expands inside a .tbl-wrap (which has
  overflow:hidden), use `outline` — never `border` or `box-shadow`
  — for the highlight frame. `border`/`box-shadow` get clipped on
  the left/right edges by the wrapper's overflow:hidden; `outline`
  renders outside the box model and is never clipped.
*/
.row.expanded-wrap {
  outline: 1.5px solid var(--wrap-border);
  outline-offset: -1px;
  border-top: none !important;
  border-bottom: none;
}
.row.expanded-wrap + .row { border-top: none; }

/* Detail panel below an expanded row */
.detail-panel { background: var(--surface); border-top: none; overflow: hidden; height: 0; opacity: 0; }

/*
  RULE: Do not repeat the row's title inside the expanded detail
  panel header — the row above already shows it. The detail header
  should start directly with metadata (assignee, dates, links, etc).
*/


/* ── 12. MODALS / POP-UPS ─────────────────────────────────── */
/*
  RULE: Modal background = var(--card) — the SAME dark-blue tone
  as KPI boxes and the sidebar/topbar. Do not use a separate darker
  tone (e.g. #141D26) for modals.
*/
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65);
  display: flex; align-items: center; justify-content: center; z-index: 100;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--card); border: 1px solid var(--b1); border-radius: 12px;
  padding: 28px 32px; position: relative;
  transform: translateY(20px); transition: transform 0.3s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-title { font-size: 16px; font-weight: 800; color: var(--t1); margin-bottom: 4px; }
.modal-sub { font-size: var(--font-size-sm); color: var(--t2); margin-bottom: 20px; line-height: 1.6; }
.modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--t2); font-size: 20px; cursor: pointer; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(217,217,217,0.15); }
.modal-cancel {
  font-family: inherit; font-size: 13px; font-weight: 600; padding: 9px 20px;
  border-radius: var(--radius-md); cursor: pointer; border: 1px solid var(--b1); background: none; color: var(--t2);
}

/*
  RULE: Primary modal CTA (e.g. "Create Task", "Publish") uses the
  light green ACCENT colour (--ac / --ac2 / --ac3) — the same
  completion colour used for checkmarks and "Mark complete".
  Do NOT use --gn / --gn-bg for these buttons.
*/
.modal-confirm {
  font-family: inherit; font-size: 13px; font-weight: 700; padding: 9px 24px;
  border-radius: var(--radius-md); cursor: pointer;
  background: var(--ac2); color: var(--ac); border: 1px solid var(--ac3);
}
.modal-confirm:hover { background: rgba(62,255,162,0.22); }


/* ── 13. PRIMARY ACTION BUTTONS (general) ─────────────────── */
/*
  RULE: Any "completion" or primary creation action — buttons like
  Mark complete, Post (comment), Create, Publish, Add new — and any
  checked/done checkbox indicator, uses the light green accent:
    background: var(--ac2)
    color:      var(--ac)
    border:     1px solid var(--ac3)
  This is consistent across KPI filters, table actions, expanded
  detail panels, and modals.
*/
.btn-accent {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 13px; border-radius: var(--radius-md);
  font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  background: var(--ac2); color: var(--ac); border: 1px solid var(--ac3);
}
.btn-accent:hover { background: rgba(62,255,162,0.22); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 13px; border-radius: var(--radius-md);
  font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  background: var(--card); border: 1px solid var(--b1); color: var(--t2);
}
.btn-ghost:hover { color: var(--t1); border-color: var(--b2); }


/* ── 14. SEARCH / FILTER BAR ──────────────────────────────── */
.search {
  display: flex; align-items: center; gap: 7px; background: var(--bg);
  border: 1px solid var(--b1); border-radius: var(--radius-md); padding: 0 12px; height: 32px;
}
.search i { font-size: 13px; color: var(--t2); }
.search input { background: none; border: none; outline: none; color: var(--t1); font-size: 12px; font-family: inherit; }
.search input::placeholder { color: var(--t2); }


/* ── 15. SCROLLBARS ────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--b1); border-radius: 4px; }


/* ── 16. APP FRAME · ADDED IN THE REPO (opgave 41, K1) ─────── */
/*
  The persistent frame's own pieces, taken from the drawn Company
  Admin frame (2026-08-20_spectrum_company_admin_v0_2.html), where
  they lived in the page's own <style>. They belong to the frame on
  every page, so they live here and nowhere else.

  S2-11.7: the organisation is part of the persistent frame, not
  drawn per page. With more than one membership the chip carries a
  native <select>, styled to read as the chip.
*/
.sb-logo img { width: 120px; height: auto; display: block; }
.org-chip {
  display: flex; align-items: center; gap: 7px; background: var(--bg);
  border: 1px solid var(--b-subtle); border-radius: var(--radius-md);
  padding: 5px 11px; font-size: 12px; font-weight: 600; color: var(--t1);
}
.org-chip i { font-size: 14px; color: var(--t2); }
.org-chip select {
  background: none; border: none; outline: none; color: var(--t1);
  font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.org-chip select:focus-visible { outline: 1px solid var(--b2); border-radius: var(--radius-sm); }
.org-chip option { background: var(--card); color: var(--t1); }
.tb-user-role { font-size: var(--font-size-sm); color: var(--t2); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── 17. ASSESSMENT PAGE TOKENS · ADDED IN THE REPO (opgave 42, K3) ── */
/*
  The colours Erik's drawn assessment page (demo/spectrum_assessment.html,
  21 Oct 2026) uses beyond the tokens above, lifted here so that
  vurderingen.css carries no hex value (golden rule). The page's own :root
  also set --rd #FF0000 and --am #FFB300; those are NOT adopted — the drawn
  pages disagree with each other on red and amber, and section 2 is the
  arbiter.
*/
:root {
  --ok:          #3EC878;   /* good / IG1 / full completion bar      */
  --yl:          #FFE600;   /* mid band (yellow) in score colours    */
  --grey-1:      #6B7280;   /* not applicable / muted marker         */
  --grey-2:      #9BA3AF;   /* secondary muted marker                */
  --t3:          #A9B2BD;   /* tertiary text                         */
  --bg-deep:     #14161B;   /* inset panels                          */
  --bg-deep-2:   #141820;   /* inset panels, alternate               */
  --rd-dark:     #8B3A30;   /* critical, dark                        */
  --rd-soft:     #FF9A9A;   /* critical, soft text                   */
  --bar-neutral: rgba(217,217,217,0.32);  /* progress bar, not started */
}

/* ============================================================
   END OF FILE — checklist when building/editing a new page:

   [ ] Linked this stylesheet, no hardcoded hex/px for colour/spacing
   [ ] Sidebar 220px, topbar padding 14px 28px, body padding 32px 40px
   [ ] .body-inner max-width 1080px, gap 22px (--section-gap)
   [ ] Avatars: image first, light blue-grey (--lbg) fallback w/ initials
   [ ] Status colours follow section 9 (colour = action principle)
   [ ] Table rows: single text colour (--t1), colour only in Status col
   [ ] Expanded rows use `outline`, not border/box-shadow
   [ ] Expanded detail panel does not repeat the row title
   [ ] Modals use var(--card) background
   [ ] Primary/completion buttons + checked checkboxes use --ac, not --gn
   ============================================================ */

/* ── 18. PHONE AND TABLET · THE MENU DRAWER · ADDED IN THE REPO (opgave 53) ── */
/*
  The drawn pages have no narrow form (rapport-53 B12): below 900 px the
  fixed 220 px sidebar squeezed every page until words broke letter by
  letter. Claude's answer 4 (13 November): below 900 px the sidebar is a
  drawer behind a menu button in the topbar, and the content gets the full
  width. The drawer closes on a choice, on Escape and on a tap on the
  scrim; focus is trapped while it is open (`skallen.js`).

  Above 900 px nothing here applies: the button and the scrim are hidden
  and the frame is exactly the drawn one.
*/
.tb-menu-btn { display: none; }
.sb-slor { display: none; }

@media (max-width: 899px) {
  .tb-menu-btn { display: flex; flex-shrink: 0; margin-right: 10px; }
  .topbar { padding: 10px 16px; gap: 8px; }
  .tb-page-title { flex: 1; min-width: 0; font-size: var(--font-size-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 0; }
  .tb-right { min-width: 0; }
  .tb-user-name { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .body { padding: 20px 16px; }

  .sb {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 210;
    width: min(var(--sidebar-width), 82vw);
    transform: translateX(-100%); visibility: hidden;
    transition: transform 0.22s ease, visibility 0s linear 0.22s;
  }
  .shell.skuffe-aaben .sb {
    transform: none; visibility: visible;
    transition: transform 0.22s ease, visibility 0s;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
  }
  /* `.ni` animates `all`, so it would also animate the inherited
     `visibility` for 0.12 s and refuse focus while the drawer opens. */
  .sb .ni { transition: background 0.12s, color 0.12s; }
  .shell.skuffe-aaben .sb-slor {
    display: block; position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.55);
  }
}
@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  .sb, .shell.skuffe-aaben .sb { transition: none; }
}

/* ============================================================
   VIS OG SKJUL ADGANGSKODEN (Erik, 15. november)
   `.pw-felt` omslutter feltet og `komponenter/vis_adgangskode.html`;
   `adgangskoden.js` saetter `.pw-aktiv` og viser knappen. Oejet staar
   lige saa langt fra hoejre kant som teksten fra venstre (12 px og
   rammen), som rullemenuernes pil: ikonet er 16 px i en 24 px-knap.
   ============================================================ */
.pw-felt { position: relative; }
.pw-felt.pw-aktiv > input { padding-right: 40px; }
.pw-felt.pw-aktiv > input::-ms-reveal { display: none; }
.pw-vis {
  position: absolute; right: 7.5px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; padding: 0; margin: 0;
  background: none; border: none; border-radius: var(--radius-sm);
  color: var(--t2); cursor: pointer;
}
.pw-vis[hidden] { display: none; }
.pw-vis:hover, .pw-vis[aria-pressed="true"] { color: var(--t1); }
.pw-vis:focus-visible { outline: 1px solid var(--b2); outline-offset: 1px; }
.pw-vis i { font-size: 16px; line-height: 1; }

/* Erik 18. november kl. 17.00 · sprogvaelgeren DA · EN i rammen: samme
   udseende som de offentlige siders `.sprogskift`; det andet sprog er en
   knap i en POST-formular. I topbjaelken over 900 px, i skuffen under. */
.sprogskift-rammen { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: var(--font-size-sm); font-weight: 600; letter-spacing: .04em; color: var(--t2); }
.sprogskift-rammen button { background: none; border: 0; font: inherit; letter-spacing: inherit; color: var(--t2); padding: 2px 4px; border-radius: 4px; cursor: pointer; }
.sprogskift-rammen button:hover { color: var(--t1); }
.sprogskift-rammen button:focus-visible { outline: 2px solid var(--b2); outline-offset: 2px; }
.sprogskift-rammen button[aria-current="true"] { color: var(--ac); cursor: default; }
.sprogskift-rammen .sprogskift-prik { color: var(--t3); }
.tb-sprog { display: flex; align-items: center; margin-right: 6px; }
.sb-sprog { display: none; }
@media (max-width: 899px) {
  .tb-sprog { display: none; }
  .sb-sprog { display: block; padding: 16px 14px 8px; margin-top: 8px; border-top: 1px solid var(--b1); }
}

/* Claude 19. november kl. 12.20 (opgave 66 B) · hjaelpeboksen: en HTML-boks
   i laeselig stoerrelse ved hover, fokus og tryk (`.aaben`, `skallen.js`),
   aldrig `title` og aldrig SVG-tekst. */
.hjaelp { position: relative; }
.hjaelp-boks {
  position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%);
  z-index: 60; width: max-content; max-width: min(20rem, calc(100vw - 32px));
  padding: 9px 12px; border-radius: var(--radius-md, 8px);
  background: var(--card); border: 1px solid var(--b2); box-shadow: 0 6px 18px rgba(0,0,0,.35);
  color: var(--t1); font-family: 'DM Sans', sans-serif; font-size: 12.5px;
  font-weight: 400; line-height: 1.5; letter-spacing: normal; text-transform: none;
  white-space: normal; text-align: left;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s;
}
.hjaelp:hover > .hjaelp-boks, .hjaelp:focus-within > .hjaelp-boks, .hjaelp.aaben > .hjaelp-boks,
.ctrl-bar:focus-visible .hjaelp-boks { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .hjaelp-boks { transition: none; } }
