/* SCA Portal design system — extracted from the Claude Design mockup
   (SCA Portal v3.dc.html). One font, Montserrat; slate palette; 12px cards;
   6px badges. Identifiers and secrets keep a system monospace stack.

   Units: type and the controls that wrap it are in rem/em, so the browser's
   own font-size setting is honoured (WCAG 1.4.4 beyond zoom); layout widths,
   radii and hairlines stay in px — they follow zoom like everything else.
   Root is 16px, so .75rem is the 12px floor no text goes under (only the
   unread-count badge does, at 11px). */

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/static/fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #1d4ed8;
  --blue-hover: #1a56db;
  --blue-soft: #eff6ff;
  --blue-line: #bfdbfe;      /* the tag chip's boundary on --blue-soft */
  --navy: #0a1c40;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --faint: #94a3b8;          /* on the navy sidebar only: 2.56:1 on white */
  --faint-light: #5f6b7f;    /* the light-surface counterpart, 5.39:1 on white */
  --line: #e2e8f0;
  --input-line: #7c8796;     /* a field's only boundary: 3.64:1, WCAG 1.4.11 */
  --line-soft: #f1f5f9;
  --bg: #f1f5f9;
  --surface: #fff;
  --surface-alt: #f8fafc;
  --ok-fg: #047857; --ok-bg: #e6f4ea;
  --prog-fg: #1d4ed8; --prog-bg: #eff6ff;
  --err-fg: #991b1b; --err-bg: #fee2e2; --err-line: #fecaca;
  --warn-fg: #92400e; --warn-bg: #fef3c7;
  --neutral-fg: #475569; --neutral-bg: #f1f5f9;
  --font: Montserrat, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { font-size: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
input, textarea, select, button { font-family: var(--font); }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,78,216,.12);
}
.mono { font-family: var(--mono); }

@keyframes scaPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes scaOverlay { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaPop { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- Public (auth) pages ---------- */
.public-page {
  min-height: 100vh;
  background: radial-gradient(120% 90% at 50% -10%, #123a86 0%, #0a1f4d 45%, #061229 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 64px 24px; color: #fff; text-align: center;
}
.public-page .hero { max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.public-page h1 { margin: 0; font: 800 clamp(2rem,7vw,2.875rem)/1.06 var(--font); letter-spacing: -.02em; }
.public-page .subnote { margin: 2px 0 0; font-size: .78125rem; color: #7e93ba; }
.public-page footer { margin-top: 80px; display: flex; gap: 26px; font-size: .75rem; }
.public-page footer a, .public-page footer span { color: #6b80a8; }
.eu-pill {
  display: inline-flex; align-items: center; gap: .8em; padding: .5em 1.1em .5em .5em;
  border-radius: 999px; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12); font-size: .78125rem; color: #c9d6ef;
}
.eu-pill .eu { display: inline-flex; padding: .25em .65em; border-radius: 999px; background: var(--blue); font: 600 .75rem var(--font); color: #fff; }
.logo { width: 96px; height: auto; opacity: .95; }
.logo-sm { width: 34px; height: 35px; flex: none; }

.btn-hero {
  display: inline-flex; align-items: center; justify-content: center; gap: .65em; padding: 1em 2em;
  border: none; border-radius: 999px; background: var(--blue); color: #fff;
  font: 600 .9375rem var(--font); cursor: pointer;
  box-shadow: 0 8px 26px rgba(29,78,216,.4); text-decoration: none;
}
.btn-hero:hover { background: var(--blue-hover); color: #fff; text-decoration: none; }
/* Sign-in providers that the email domain did not point at: present and
   usable, just not the first suggestion. Every provider is always listed —
   a list whose length varies with the input would answer, by its shape,
   a question no visitor may ask. */
.btn-hero-muted { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); box-shadow: none; }
.public-page .form-field > span { color: #c9d6ef; }

/* ---------- App shell ---------- */
.shell { display: flex; min-height: 100vh; }

/* The drawer toggle is a checkbox so the narrow-screen navigation needs no
   script: `:checked` slides the sidebar in and shows the backdrop. */
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden; }
.nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(7,12,25,.5); z-index: 40; }

.sidebar {
  width: 256px; flex: none; background: var(--navy);
  display: flex; flex-direction: column; gap: 8px; padding: 24px 10px;
  /* Pinned to the viewport: the foot stays at the bottom edge while the page
     scrolls, and a navigation taller than the screen scrolls inside. */
  position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow-y: auto;
}
.sidebar .brand { display: flex; align-items: center; gap: 4px; padding: 10px 24px; }
.sidebar .brand span { display: block; font: 600 .78125rem/1.25 var(--font); letter-spacing: .1em; color: #fff; }
/* Main navigation: groups of links, the backoffice one under a label.
   A platform role sees two groups, a member the first alone. */
.sidebar nav.main { display: flex; flex-direction: column; gap: 16px; margin-top: 10px; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label {
  padding: 0 15px 6px; font: 600 .75rem var(--font); letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint);
}
.sb-link {
  display: flex; align-items: center; gap: 10px; min-height: 2.5rem; padding: .4rem .875rem;
  border: 1px solid transparent; border-radius: 8px;
  font: 500 .8125rem var(--font); color: var(--faint); text-decoration: none;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.sb-link svg { width: 18px; height: 18px; flex: none; }
.sb-link > span:first-of-type { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-link:hover { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.38); text-decoration: none; }
.sb-link.active { font-weight: 600; color: #fff; background: #0f2d71; border-color: #0f2d71; }
.sb-link.active:hover { background: #143a8f; border-color: #143a8f; }
.sb-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-color: #fff; color: #fff; }
/* The count a backoffice entry carries: what waits on the operator. */
.nav-count {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-width: 1.375rem; height: 1.375rem; padding: 0 .35em; border-radius: 99px;
  font: 700 .75rem var(--font);
}
.nav-count-warn { background: #f0a429; color: #2a1a02; }
.nav-count-err { background: #ef4444; color: #fff; }
/* Quick access (design v3): a member's own scopes, under the main nav.
   Items are pills on the navy; the one whose page is open is `.active`. */
.sidebar nav.quick { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; min-height: 0; overflow-y: auto; padding-top: 18px; border-top: 1px solid rgba(148,163,184,.28); }
.quick-title { padding: 0 15px; font: 600 .75rem var(--font); letter-spacing: .12em; text-transform: uppercase; color: #cbd5e1; }
.quick-group { display: flex; flex-direction: column; gap: 6px; }
.quick-group-head { display: flex; align-items: center; gap: 8px; padding: 0 14px 2px; }
.quick-group-head::before { content: ""; width: 10px; flex: none; height: 1px; background: rgba(148,163,184,.3); }
.quick-group-head::after { content: ""; flex: 1; height: 1px; background: rgba(148,163,184,.3); }
.quick-group-head span { font: 600 .75rem var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.quick-list { display: flex; flex-direction: column; gap: 6px; padding: 0 14px; }
.quick-item {
  display: block; padding: .6em .9em; border-radius: 8px; font: 500 .8125rem var(--font); color: #fff;
  background: rgba(255,255,255,.07); border: 1px solid rgba(148,163,184,.28); box-shadow: 0 1px 2px rgba(0,0,0,.25);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none;
}
.quick-item:hover { color: #fff; background: rgba(255,255,255,.12); text-decoration: none; }
.quick-item.active { font-weight: 600; background: rgba(29,91,240,.42); border-color: rgba(93,141,255,.7); }
.quick-more { text-align: center; font-weight: 700; letter-spacing: 2px; color: #cbd5e1; }
.sidebar .foot { margin-top: auto; padding: 10px 24px; }
.sidebar .foot .who { display: flex; flex-direction: column; gap: 10px; padding: 10px 0; }
.sidebar .foot .user { font: 600 .75rem var(--font); color: #fff; }
.sidebar .foot .role { font: 600 .75rem var(--font); color: var(--faint); }
.sidebar .foot .rule { height: 1px; background: var(--faint); opacity: .5; }
.sidebar .foot a, .sidebar .foot .btn-logout {
  display: block; padding: 0; margin: 0; border: none; background: none; text-align: left;
  font: 600 .8125rem var(--font); color: #fff; cursor: pointer; text-decoration: none;
}
.sidebar .foot a:hover, .sidebar .foot .btn-logout:hover { color: #c9d6ef; }
.sidebar .foot form { margin: 0; }

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 64px; flex: none; background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 40px;
}
.topbar .lead { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar .crumb { font: 500 .875rem var(--font); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.burger {
  display: none; width: 2.125rem; min-height: 2.125rem; flex: none; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; color: var(--body);
}
.topbar .who { display: flex; align-items: center; gap: 10px; }

main.page { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 32px 40px 48px; container-type: inline-size; }
.page-inner { max-width: 1180px; display: flex; flex-direction: column; gap: 24px; }
.page-inner.narrow { max-width: 680px; }

/* Page tabs (design: entity page). */
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); }
.tabs [role="tab"] {
  min-height: 2.5rem; padding: 0 0 .75rem; margin-bottom: -1px; border: none; border-bottom: 2px solid transparent;
  background: transparent; font: 600 .84375rem var(--font); color: var(--muted); cursor: pointer;
}
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); }
.tabs[hidden], .page-inner > [data-tab][hidden] { display: none; }
/* The entity page's tab list, set apart from the backoffice's link tabs
   further down, which share the class. */
.tabs[role="tablist"] { gap: 32px; }
.tabs[role="tablist"] [role="tab"] { min-height: 0; padding: 12px 2px; font-size: .875rem; color: var(--faint-light); }
.tabs[role="tablist"] [role="tab"]:hover { color: var(--blue); }
.tabs[role="tablist"] [role="tab"][aria-selected="true"] { font-weight: 700; color: var(--ink); }
/* The admin tab: its cards side by side, the wide ones across the row. */
.measure { max-width: 660px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; align-items: start; }
.admin-grid > .measure { max-width: none; }
.admin-grid > .wide { grid-column: 1 / -1; }
.card.card-danger { border-color: var(--err-line); }
/* A wide table leaves the 1180px column and takes the width of the page:
   100cqw is the content box of `main.page`, and the column is left-aligned. */
.page-inner > .full-bleed { width: 100cqw; }

@media (max-width: 1040px) {
  .sidebar {
    position: fixed; top: 0; bottom: 0; left: -276px; z-index: 50; width: 256px;
    box-shadow: 0 0 60px rgba(0,0,0,.5);
    /* Closed, the drawer is out of the tab order too (WCAG 2.4.3): visibility
       flips after the slide on close, before it on open. */
    visibility: hidden; transition: left .18s ease, visibility 0s linear .18s;
  }
  .nav-toggle:checked ~ .sidebar { left: 0; visibility: visible; transition-delay: 0s; }
  .nav-toggle:checked ~ .nav-backdrop { display: block; }
  .burger { display: flex; }
  .topbar { padding: 0 20px; }
}
@media (max-width: 720px) {
  main.page { padding: 24px 20px 40px; }
}

/* ---------- Typography ---------- */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.page-head .actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
h1.title { margin: 0; font: 800 1.75rem/1.15 var(--font); color: var(--ink); }
.title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.head-block { display: flex; flex-direction: column; gap: 10px; }
p.sub { margin: 0; font: 400 .84375rem/1.55 var(--font); color: var(--muted); }
.breadcrumb { font: 500 .8125rem var(--font); color: var(--muted); }
.meta-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 400 .8125rem var(--font); color: var(--muted); }
.meta-line .role { font: 600 .8125rem var(--font); color: var(--blue); }
.meta-line dt { font-weight: 600; }
.meta-line dd { margin: 0; }
.section { display: flex; flex-direction: column; gap: 16px; }
/* A section is set off from what precedes it by a rule and some air. Not
   right under the page head or the tabs, which are no section, and not on
   the first block a tab shows (`data-tab-first`, set by the tab script).
   Cards are left alone: their own border already separates them. */
.page-inner > :not(.page-head):not(.head-block):not(.tabs) + .section:not([data-tab-first]),
.page-inner > :not(.page-head):not(.head-block):not(.tabs) + .section-head {
  padding-block-start: 1em; border-block-start: 1px solid var(--line);
}
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font: 700 1.125rem var(--font); color: var(--ink); }
/* An offer list inside the NIC pool: one level under its h2, lighter. Refs #3414. */
.section-head.section-sub h3 { margin: 0; font: 600 .9375rem var(--font); color: var(--ink); }
.section-head .rule { display: none; }
.section-head .count { font: 600 .875rem var(--font); color: var(--faint-light); }
.section-head form { margin: 0; }
.section-head .grow { flex: 1; }
h3 { margin: 0; font: 600 .8125rem var(--font); }

/* ---------- Badges (chips keep their historical class names) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .5em; padding: .33em .83em;
  border-radius: 6px; font: 600 .75rem/1.4 var(--font); white-space: nowrap;
}
.chip-ok { color: var(--ok-fg); background: var(--ok-bg); }
.chip-prog { color: var(--prog-fg); background: var(--prog-bg); }
.chip-err { color: var(--err-fg); background: var(--err-bg); }
.chip-warn { color: var(--warn-fg); background: var(--warn-bg); }
.chip-neutral { color: var(--neutral-fg); background: var(--neutral-bg); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: scaPulse 1.4s infinite; }

/* ---------- Stat tiles ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.stat {
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line); padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.stat .label { font: 500 .75rem var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.stat .value { font: 700 2rem/1 var(--font); color: var(--ink); }

/* ---------- Search ---------- */
.search {
  min-height: 2.25rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px; padding: 0 1em; margin: 0;
}
.search svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.search input {
  flex: 1; min-width: 0; border: none; background: transparent; padding: 0;
  font: 400 .8125rem var(--font); color: var(--ink); box-shadow: none; outline: none;
}
.search input:focus { box-shadow: none; }
.search input::placeholder { color: var(--faint-light); }

/* ---------- Cards & tables ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.card.pad { padding: 24px; }
/* A card that is its own section carries its title inside, as the design's
   backoffice forms do ("Assign a role", "New notification"). */
.card-title { margin: 0; font: 700 1.125rem var(--font); color: var(--ink); }
.card > .section-head:first-child { margin-bottom: 14px; }
.table-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.table-card table { width: 100%; min-width: 640px; border-collapse: collapse; }
.table-card thead tr { background: var(--line-soft); }
.table-card th {
  text-align: left; padding: 12px 24px; font: 700 .75rem var(--font);
  letter-spacing: .04em; text-transform: uppercase; color: var(--body);
  border-bottom: 1px solid var(--line);
}
.table-card th.num, .table-card td.num { text-align: right; }
.table-card td { padding: 16px 24px; border-bottom: 1px solid var(--line); font: 400 .875rem var(--font); vertical-align: middle; }
.table-card tbody tr:last-child td { border-bottom: none; }
.table-card td .primary { font: 700 .875rem var(--font); color: var(--ink); }
.table-card td .secondary { font: 400 .75rem var(--font); color: var(--faint-light); margin-top: 4px; }
.table-card td .secondary.meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-weight: 500; }
.table-card td .secondary.meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.table-card td.strong { font: 600 .875rem var(--font); color: var(--ink); }
.table-card tr.link-row:hover td { background: var(--surface-alt); }
.table-card td .cell-link { color: var(--blue); font-weight: 600; font-size: .8125rem; }
.table-card td .action-cell { display: flex; justify-content: flex-end; gap: 8px; }
.table-card td .action-cell form { margin: 0; }
/* A history that keeps growing: ten rows, then the block scrolls. The
   header stays in view; the region is focusable, so the keyboard scrolls
   it too. Refs #4018. */
.table-card.capped { max-height: 38.5rem; overflow-y: auto; }
.table-card.capped thead th { position: sticky; top: 0; background: var(--line-soft); z-index: 1; }
/* A retracted announcement: greyed by colour, named by the "Retracted" line —
   never by opacity, which drags the chips under 3:1 too. */
.row-revoked td, .row-revoked td .primary { color: var(--muted); }
.row-revoked td .primary { text-decoration: line-through; }

.empty-state {
  border: 1px dashed #cbd5e1; border-radius: 12px; padding: 24px;
  text-align: center; background: var(--surface-alt); font: 400 .8125rem/1.6 var(--font); color: var(--muted);
}
.empty-state strong { display: block; font: 600 .875rem var(--font); color: var(--ink); margin-bottom: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 2.25rem; padding: 0 1.25em;
  border-radius: 8px; font: 600 .8125rem var(--font); cursor: pointer; border: none; white-space: nowrap;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid #d1d5db; }
.btn-secondary:hover { background: var(--line-soft); color: var(--ink); }
.btn-danger { background: var(--surface); color: var(--err-fg); border: 1px solid var(--err-fg); min-height: 2rem; padding: 0 1.15em; font-size: .75rem; }
.btn-danger:hover { background: var(--err-bg); }
.btn-danger-solid { background: var(--err-fg); color: #fff; }
.btn-danger-solid:hover { background: #7f1d1d; }
.btn-disabled { background: var(--line-soft); color: var(--faint-light); border: 1px solid var(--line); cursor: not-allowed; }
.btn-lg { min-height: 2.5rem; padding: 0 1.5em; }
.btn-retry { padding: .6em 1.15em; border: 1px solid var(--err-fg); border-radius: 8px; background: var(--surface); color: var(--err-fg); font: 600 .75rem var(--font); cursor: pointer; }
.btn-block { width: 100%; }
.action-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.action-row .hint { font: 400 .8125rem/1.5 var(--font); color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { display: flex; flex-direction: column; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field > span { font: 600 .8125rem var(--font); color: var(--ink); }
.form-field .req { color: #ef4444; }
.form-field input, .form-field select, .form-field textarea {
  padding: .7em .9em; border: 1px solid var(--input-line); border-radius: 8px;
  font: 400 .875rem var(--font); color: var(--ink); outline: none; background: var(--surface);
}
.form-field input:not([type="checkbox"]):not([type="radio"]) { min-height: 2.5rem; padding: 0 .9em; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}
.form-field .muted, .form-hint { font: 400 .75rem/1.55 var(--font); color: var(--muted); }
.form-hint { margin: 0; }
.form-field .field-error { margin: 0; font: 500 .75rem/1.55 var(--font); color: var(--err-fg); }
.form-field textarea[aria-invalid="true"], .form-field input[aria-invalid="true"] { border-color: var(--err-line); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
/* Two fields side by side while the card is wide enough, stacked under. */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; align-items: start; }
.radio-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 9px; cursor: pointer; font: 400 .875rem var(--font); color: var(--body); }
.radio-row input { width: 1.0625rem; height: 1.0625rem; margin: 0; accent-color: var(--blue); }
.radio-row input:checked + span { font-weight: 600; color: var(--ink); }
.check-row { display: flex; align-items: center; gap: 9px; cursor: pointer; font: 400 .875rem var(--font); color: var(--body); }
.check-row input { width: 1.0625rem; height: 1.0625rem; margin: 0; accent-color: var(--blue); }

/* ---------- Modal dialogs ---------- */
.modal {
  width: 520px; max-width: calc(100% - 48px); max-height: calc(100vh - 48px); padding: 0; margin: auto;
  border: none; border-radius: 14px; background: var(--surface); color: var(--ink);
  box-shadow: 0 24px 60px rgba(0,0,0,.24); overflow: auto;
}
.modal.narrow { width: 480px; }
.modal[open] { animation: scaPop .2s ease; }
.modal::backdrop { background: rgba(7,12,25,.55); animation: scaOverlay .16s ease; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 28px; border-bottom: 1px solid var(--line);
}
.modal-head h2 { margin: 0; font: 700 1.125rem var(--font); color: var(--ink); }
.modal-close {
  width: 1.75rem; height: 1.75rem; flex: none; border: none; border-radius: 99px; background: var(--line-soft);
  color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.modal-close:hover { background: var(--line); }
.modal-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; }
.modal-body p { margin: 0; font: 400 .875rem/1.55 var(--font); color: var(--body); }
.modal-foot {
  display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; padding: 16px 28px;
  background: var(--surface-alt); border-top: 1px solid var(--line);
}
.modal-foot .btn { min-height: 2.5rem; padding: 0 1.5em; font-size: .875rem; }
.modal form { margin: 0; }

/* ---------- Alerts / errors ---------- */
.alert-error {
  border: 1px solid var(--err-line); background: var(--err-bg); border-radius: 8px;
  padding: 13px 15px; font: 400 .8125rem/1.55 var(--font); color: var(--err-fg);
}
.alert-error .code { font: 500 .75rem var(--mono); margin-bottom: 8px; }
.alert-success {
  display: flex; align-items: center; gap: 14px; background: var(--ok-bg);
  border: 1px solid #a7f3d0; border-radius: 8px; padding: 13px 15px;
  font: 600 .84375rem var(--font); color: var(--ok-fg);
}
/* The import card's report (axo#5258): the command's plan, one line a step. */
.alert-report {
  border: 1px solid var(--line); background: var(--surface-alt); border-radius: 8px;
  padding: 13px 15px; font: 400 .8125rem/1.55 var(--font); color: var(--body);
}
.alert-report.applied { background: var(--ok-bg); border-color: #a7f3d0; color: var(--ok-fg); }
.alert-report ul { margin: 8px 0 0; padding-left: 0; list-style: none; }
.alert-report li { margin: 2px 0; }
.alert-report code { font: 500 .75rem var(--mono); }
.err-grid { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font: 400 .84375rem/1.6 var(--font); color: var(--body); margin-bottom: 24px; }
.err-grid .k { color: var(--muted); }

/* ---------- Provider cards ---------- */
.provider-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.provider-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.provider-card .head { display: flex; align-items: center; gap: 14px; }
.provider-card .head .badge {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 10px; background: #070c19; color: #fff;
}
.provider-card .head .badge svg { width: 20px; height: 20px; }
.provider-card .head .name { flex: 1; font: 700 1.125rem var(--font); color: var(--ink); }
/* "Use the service" — the card's main action (axo#3496): full width, pinned
   to the card's foot so the two cards' buttons line up. */
.provider-card .provision-action { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; }
.provider-card .provision-action .hint { font: 400 .8125rem/1.5 var(--font); color: var(--muted); }
.provider-card .service-action { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.provider-card .service-action .hint { font: 400 .8125rem/1.5 var(--font); color: var(--muted); }
.provider-card .service-action .btn { font-size: .9375rem; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 12px 24px; font: 400 .8125rem var(--font); align-items: baseline; }
.kv .k { color: var(--muted); }
.kv > :not(.k) { font-weight: 600; color: var(--ink); }
.kv dd { margin: 0; }
.kv .ldp-secret, .kv .mono { font-weight: 500; }

/* ---------- Notifications: bell, panel, banner (axo#2775) ---------- */
.bell-wrap { position: relative; }
.bell-wrap > summary { list-style: none; cursor: pointer; }
.bell-wrap > summary::-webkit-details-marker { display: none; }
.bell {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 99px; background: var(--line); color: var(--muted);
}
.bell svg { width: 16px; height: 16px; }
.bell:hover { color: var(--ink); }
.bell-wrap[open] > .bell { color: #fff; background: var(--blue); }
.bell-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 1.0625rem; height: 1.0625rem; padding: 0 .45em; border-radius: 999px;
  background: var(--err-fg); color: #fff; font: 600 .6875rem/1.55 var(--font); text-align: center;
}
/* Zero unread: no badge at all, rather than a "0" the eye keeps catching. */
.bell-count.is-zero { display: none; }

.bell-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(380px, 90vw);
  max-height: 70vh; overflow-y: auto; z-index: 40;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 38px rgba(10,28,64,.18);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border-bottom: 1px solid var(--line-soft);
  font: 600 .78125rem var(--font); color: var(--ink);
}
.panel-head form { margin: 0; }
.panel-link { border: none; background: none; padding: 0; cursor: pointer; font: 600 .75rem var(--font); color: var(--blue); }
.panel-empty { margin: 0; padding: 22px 16px; text-align: center; font: 400 .78125rem var(--font); color: var(--faint-light); }
.panel-list { list-style: none; margin: 0; padding: 0; }
.panel-item { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
.panel-item:last-child { border-bottom: none; }
/* Unread marker: a rail, not a background wash — the severity chip already
   owns colour in this row, and two colour signals fight each other. */
.panel-item.unread { box-shadow: inset 3px 0 0 var(--blue); }
.panel-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.panel-emitter, .notif-emitter, .crit-emitter {
  font: 600 .75rem var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--faint-light);
}
.panel-title { display: block; font: 600 .8125rem var(--font); color: var(--ink); text-decoration: none; }
.panel-title:hover { color: var(--blue); }
.panel-preview { margin: 4px 0 7px; font: 400 .75rem/1.5 var(--font); color: var(--muted); }
.panel-meta { display: flex; justify-content: space-between; gap: 10px; font: 400 .75rem var(--font); color: var(--faint-light); }
.panel-all {
  display: block; padding: 12px 16px; text-align: center; border-top: 1px solid var(--line-soft);
  font: 600 .75rem var(--font); color: var(--blue); text-decoration: none;
}

/* Critical banner: not dismissible, only acknowledgeable. */
.crit-banner {
  display: flex; align-items: flex-start; flex-wrap: wrap; gap: 14px 20px;
  border: 1px solid var(--err-line); border-left: 4px solid var(--err-fg); background: var(--err-bg);
  border-radius: 8px; padding: 16px 18px; margin-bottom: 16px;
}
.crit-body { flex: 1; min-width: 260px; }
.crit-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 7px; }
.crit-target { font: 400 .75rem var(--font); color: var(--muted); }
.crit-title { margin: 0 0 5px; font: 600 .90625rem var(--font); color: var(--err-fg); }
.crit-text { font: 400 .8125rem/1.6 var(--font); color: var(--body); }
.crit-text p { margin: 0 0 8px; }
.crit-text p:last-child { margin-bottom: 0; }
.crit-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.crit-actions form { margin: 0; }
#sca-banner:empty { display: none; }

/* Simulation mode (refs #4320): on every page, above the layout. */
.simulation-banner {
  background: var(--warn-bg); color: var(--warn-fg);
  border-bottom: 1px solid var(--warn-fg);
  padding: 8px 16px; text-align: center; font: 400 .8125rem/1.5 var(--font);
}

/* Notification cards on /notifications */
.notif-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; }
.notif-card.unread { border-left: 3px solid var(--blue); }
.notif-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 9px; }
.notif-target { font: 400 .75rem var(--font); color: var(--muted); }
.notif-date { margin-left: auto; font: 400 .75rem var(--font); color: var(--faint-light); }
.notif-title { margin: 0 0 7px; font: 700 .96875rem var(--font); color: var(--ink); }
.notif-body { font: 400 .84375rem/1.65 var(--font); color: var(--body); }
.notif-body p { margin: 0 0 10px; }
.notif-body p:last-child { margin-bottom: 0; }
.notif-body ul { margin: 0 0 10px; padding-left: 20px; }
.notif-body code, .crit-text code, .form-hint code {
  padding: 1px 5px; border-radius: 5px; background: var(--line-soft); font: 500 .75rem var(--mono);
}
.notif-body a, .crit-text a { color: var(--blue); }
.notif-foot {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px;
  margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line-soft);
}
.notif-expiry { font: 400 .75rem var(--font); color: var(--faint-light); }
.notif-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.notif-actions form { margin: 0; }
.notif-ack { margin: 10px 0 0; font: 600 .75rem var(--font); color: var(--ok-fg); }
.notif-list { display: flex; flex-direction: column; gap: 12px; }

/* The bell panel is absolutely positioned against the topbar; on a narrow
   screen it would overflow the viewport, so it spans it instead. */
@media (max-width: 560px) {
  .bell-panel { position: fixed; left: 8px; right: 8px; width: auto; top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .chip .dot { animation: none; }
  .modal[open], .modal::backdrop { animation: none; }
  .sidebar { transition: none; }
  .link-card { transition: none; }
}

/* Visually hidden, still announced by screen readers. Used where a
   control's purpose is clear from its placeholder or icon but the
   accessible name would otherwise be missing. */
.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;
}

/* Link cards (design v3): the dashboard's entities, the entity page's
   organization units. The "Manage" link is stretched over its card through
   ::after, so the card is one click target while the accessible tree carries
   a single, named link per card. */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.link-card {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
  transition: box-shadow .16s ease, border-color .16s ease, transform .16s ease;
}
.link-card[hidden] { display: none; }
/* `.form-field` sets `display`, which outranks the UA's `[hidden]`. */
.form-field[hidden] { display: none; }
.link-card:has(.manage:hover), .link-card:has(.manage:focus-visible) {
  border-color: var(--blue); box-shadow: 0 10px 24px rgba(15,23,42,.1); transform: translateY(-2px);
}
.link-card .head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.link-card .head > .chip { flex: none; }
.link-card .ident { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.link-card .name { margin: 0; font: 700 .9375rem/1.35 var(--font); color: var(--ink); }
.link-card .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font: 400 .75rem var(--font); color: var(--muted); }
.link-card .meta > * { flex: none; }
/* The identifier is cut at 20 characters, always the same way: its own
   width, not whatever the role badge leaves it. The whole id is in the
   `title`. */
.link-card .meta .ident-id { flex: none; max-width: 20ch; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-card .meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
.link-card .figures-row { display: flex; align-items: flex-end; gap: 28px; }
.link-card .figures { display: flex; gap: 28px; margin: 0; }
.link-card .figures .figure { display: flex; flex-direction: column; gap: 3px; }
.link-card .figures dd { margin: 0; font: 700 1.25rem/1 var(--font); color: var(--ink); }
.link-card .figures dt { font: 500 .75rem var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.link-card .figure-flag { font: 500 .75rem var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.link-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.link-card .manage::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.link-card .manage svg { flex: none; }
.link-card .hint { font: 500 .75rem var(--font); color: var(--faint-light); }

/* ---------- Tags (#3428) ---------- */

/* The editor looks like one text field holding chips, but it is a plain
   box: each chip carries its own removal form and the add form sits
   beside them, since forms cannot nest. The box therefore has to grow the
   focus ring itself — :focus-within, on whichever control inside has the
   focus. */
.tag-field {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 12px; min-height: 2.5rem; padding: .35em .5em;
  border: 1px solid var(--input-line); border-radius: 8px;
}
.tag-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 78, 216, .12); }
.tag-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .3em .3em .3em .7em; border-radius: 6px;
  background: var(--blue-soft); border: 1px solid var(--blue-line);
  font: 600 .75rem var(--font); color: var(--blue);
}
/* A chip with nothing to remove keeps the right padding of one that has. */
.tag:not(:has(form)) { padding-right: .7em; }
/* Inherited from the parent entity: present, but not this page's to take
   off — the dashed edge says so before the tooltip does. */
.tag.inherited {
  background: var(--neutral-bg); border-style: dashed; border-color: var(--input-line);
  color: var(--neutral-fg);
}
.tag form { display: inline-flex; margin: 0; }
.tag-remove {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.125rem; height: 1.125rem; flex: none;
  border: none; border-radius: 4px; background: transparent;
  color: inherit; cursor: pointer;
}
.tag-remove:hover { background: #dbeafe; }
.tag-add { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 200px; margin: 0; }
/* The input is the box's own field: no border of its own, or the box
   would read as a field inside a field. */
.tag-add input {
  flex: 1; min-width: 120px; min-height: 2rem; padding: 0 .4em;
  border: none; background: transparent; box-shadow: none;
  font: 400 .875rem var(--font); color: var(--ink);
}
.tag-add input:focus { border: none; box-shadow: none; }
.tag-add .btn { flex: none; }
/* The keyboard hint under the box, the size of a form field's own hint. */
.tag-hint { display: block; margin-top: 8px; }

/* The chips an organization unit card carries: quieter than the editor's,
   because they are context, not the card's subject. */
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tag-chip {
  display: inline-flex; align-items: center; padding: .25em .6em; border-radius: 6px;
  background: var(--line-soft); border: 1px solid var(--line);
  font: 500 .75rem var(--font); color: var(--body);
}
.tag-chip.more { color: var(--faint-light); font-weight: 600; }

/* ---------- Backoffice (#3280) ---------- */

/* Tabs are links: the active one carries aria-current="page" and is styled
   from that attribute, so the visual state cannot drift from what is
   announced. */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab {
  display: inline-flex; align-items: center; gap: .6em; padding: .75em 1.05em; margin-bottom: -1px;
  border-bottom: 2px solid transparent; font: 600 .8125rem var(--font); color: var(--muted);
  text-decoration: none; white-space: nowrap;
}
.tab:hover { color: var(--ink); text-decoration: none; }
.tab[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.tab-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.25rem; padding: .1em .6em;
  border-radius: 999px; font: 600 .75rem/1.5 var(--font); color: var(--warn-fg); background: var(--warn-bg);
}

/* One queue entry per organization unit waiting for its OVHcloud account. */
.queue { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.queue-item { display: flex; flex-direction: column; gap: 14px; }
.queue-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.queue-title { margin: 0; font: 700 .9375rem var(--font); }
.queue-since { margin-left: auto; font: 500 .8125rem var(--font); color: var(--body); }
.queue-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 16px; margin: 0;
  font: 500 .8125rem var(--font); color: var(--ink);
}
.queue-facts dt { font: 600 .75rem var(--font); color: var(--body); text-transform: uppercase; letter-spacing: .04em; }
.queue-facts dd { margin: 4px 0 0; }
.queue-facts dd .secondary { display: block; font: 400 .75rem/1.45 var(--font); color: var(--faint-light); margin-top: 2px; }
/* The NIC pool's two figures, one per offer. */
.pool-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; margin: 0; }
.pool-stats dt { font: 600 .75rem var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--body); }
.pool-stats dd { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 0; }
.pool-stats dd strong { font: 700 1.25rem/1 var(--font); color: var(--ink); }
.pool-stats dd .secondary { font: 400 .75rem/1.5 var(--font); color: var(--faint-light); }
.queue-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
/* The two conclude buttons share a row; the one that is open takes it whole,
   so its form is not squeezed beside the other button. */
.queue-actions .conclude[open] { flex-basis: 100%; }
.queue-head .secondary { display: block; margin-top: 4px; font: 400 .75rem var(--font); color: var(--faint-light); }
.queue-head .secondary.mono { font-family: var(--mono); }

/* A conclude form folds under its button. `summary` is the button, so the
   disclosure is one keyboard stop and the form only exists once opened. */
.conclude > summary { list-style: none; display: inline-flex; width: max-content; }
.conclude > summary::-webkit-details-marker { display: none; }
.conclude[open] > summary { margin-bottom: 14px; }
.conclude-form { max-width: 660px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-alt); }
.form-group { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.form-group legend { padding: 0 6px; font: 600 .78125rem var(--font); color: var(--ink); }

/* LDP endpoints on the organization unit page. */
.ldp-secret { font: 400 .78125rem var(--mono); word-break: break-all; }
/* The button that folds a form sits in the section's head; once open it
   takes the row, so the form is not squeezed beside the title. */
.section-head > .conclude[open] { flex-basis: 100%; }

/* A fact list: the label, then one line of state, value and date, then the
   sentence that explains it (design: the log blocks of the unit page). */
.facts-card { display: flex; flex-direction: column; padding: 8px 24px 18px; }
.facts { display: flex; flex-direction: column; margin: 0; }
.fact {
  display: grid; grid-template-columns: minmax(120px, 168px) minmax(0, 1fr); gap: 6px 24px;
  padding: 14px 0; border-top: 1px solid var(--line-soft);
}
.fact:first-child { border-top: none; }
.fact dt { font: 500 .8125rem/1.5 var(--font); color: var(--faint-light); }
.fact dd { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.fact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fact-line code, .fact-note code {
  padding: .2em .5em; border-radius: 6px; background: var(--line-soft);
  font: 500 .8125rem/1.5 var(--mono); color: var(--ink); overflow-wrap: anywhere;
}
.fact-line .meta { font: 500 .8125rem/1.5 var(--font); color: var(--faint-light); }
.fact-note { margin: 0; max-width: 72ch; font: 400 .8125rem/1.55 var(--font); color: var(--body); text-wrap: pretty; }
.fact-note.err { color: var(--err-fg); }
.facts-action { margin: 0 0 8px; }
@media (max-width: 560px) { .fact { grid-template-columns: minmax(0, 1fr); } }

/* Secrets fold under a disclosure; the chevron and the verb follow it. */
.reveal { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.reveal > summary {
  list-style: none; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0;
  font: 600 .8125rem var(--font); color: var(--blue);
}
.reveal > summary::-webkit-details-marker { display: none; }
.reveal > summary .chevron { transition: transform .15s ease; }
.reveal[open] > summary .chevron { transform: rotate(90deg); }
.reveal > summary .opened, .reveal[open] > summary .closed { display: none; }
.reveal[open] > summary .opened { display: inline; }
.secrets { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 0; }
.secret {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 16px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-alt);
}
.secret dt { font: 600 .8125rem var(--font); color: var(--ink); }
.secret dd { margin: 0; font: 500 .8125rem var(--mono); color: var(--body); overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .reveal > summary .chevron { transition: none; } }
details > summary { cursor: pointer; }

/* A visible focus ring on every control, for keyboard users (WCAG 2.4.7). */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, label:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px;
}
main:focus { outline: none; }

/* Skip link (WCAG 2.4.1): the first tab stop, visible only while focused. */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: .6em 1em; border-radius: 8px; background: var(--blue); color: #fff;
  font: 600 .875rem var(--font); text-decoration: none;
}
.skip-link:focus { top: 16px; outline: 2px solid #fff; outline-offset: 2px; }
