/* .device-list/.device-list h4/.device-item removed: the widget's own device
   list lives in shadow DOM (device-list-mixin.js injects its own stylesheet
   there), which this page-level stylesheet can never reach. These classes had
   no producer anywhere in frontend/. */

/* .why-this-works moved to security-matrix.css — its only consumer is the
   threat-modal content in lib/threat-catalog-data.js, and it needed the rest of
   a callout box (fill, border, padding) that belongs beside the #modal-body
   rules rather than here among the auth/device styles. */

/* ==================== STATUS BAR (STICKY) ==================== */
/* ==================== CODE BLOCK FORMATTING  ==================== */

pre {
    /* Literal light code island: syntax-highlight colors below are light-theme
       values, so this block deliberately does not follow the theme tokens.
       Explicit background keeps the literal dark text readable on dark themes. */
    background-color: #ffffff;
    color: #333333;
    padding: var(--spacing-md);
    border-radius: 0.5rem;
    overflow-x: auto;
    font-family: 'Fira Code', 'Monaco', 'Menlo', var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    border: 1px solid #e0e0e0;
    text-align: left;
    /* Blocks are what people copy, so they show the characters they will paste:
       Fira Code drew the snippet's `<!--` as an em-dash run (`<!——`) and would
       draw `=>` / `!==` as arrows. The face stays; only the ligatures go. */
    font-variant-ligatures: none;
}

pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    font-family: inherit;
    white-space: pre;
    word-break: normal;
    word-wrap: normal;
    display: block;
}

/* Syntax highlighting for JavaScript */
/* Keywords. The selector read `:is(.kw {` for a long time — an unclosed
   :is() that silently voided the whole rule, so keywords rendered unstyled. */
pre code :is(.kw, .keyword) { color: #0000ff; font-weight: 600; }
/* Strings */
pre code :is(.str, .string) { color: #a31515; }
/* Comments */
pre code :is(.cm, .comment) { color: #008000; }
/* Functions */
pre code :is(.fn, .function) { color: #795e26; }
/* Numbers */
pre code :is(.nb, .number) { color: #098658; }

/* Inline code (for regular code tags) */
code {
    background-color: #f0f0f0;
    /* Was #d32f2f, which pairs with #f0f0f0 at 4.37:1 — under the 4.5 AA floor
       that summary/ops/ACCESSIBILITY.md records this island as clearing. #c62828 is
       the next step down the same Material red ramp and measures 4.93:1. The
       pair stays pinned (see the code-island exemption in
       tests/frontend/theme-color-literals.spec.mjs): syntax colour is a reading
       convention, not theme data. */
    color: #c62828;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Fira Code', 'Monaco', 'Menlo', var(--font-mono);
    font-size: 0.9em;
    border: 1px solid #e0e0e0;
}

/* The inline `code` rule above adds a border the pre-code block never had and
   never asked for: `pre code` (two type selectors) already outranks the bare
   `code` rule by specificity regardless of source order, so background-color,
   color and padding there already won without being restated here — only
   border needs overriding, since the earlier pre-code rule never set one. */
pre code {
    border: none;
}

