astro-island,astro-slot,astro-static-slot{display:contents}

/* Dark-mode variable re-bind.
   The shared NVIDIA theme defines the dark values of --pst-color-text-base,
   --pst-color-text-muted, and --pst-color-surface only under
   html[data-theme="dark"], but Fern's theme toggle flips dark mode with the
   .dark *class* and does NOT set data-theme. So in real dark mode these three
   resolve to their LIGHT values (#1a1a1a text, #666 muted, #f7f7f7 surface),
   which our components use for text/panels — rendering dark-on-dark. Re-bind
   them under .dark so they track the class. !important is required: the
   theme's light-default selector outranks a bare .dark. Scoped safely because
   this stylesheet only loads on the Reference pages. (--nv-color-bg-default
   never flips even with data-theme; those surfaces keep their own .dark
   background overrides below.) */
.dark {
    --pst-color-text-base: #eee !important;
    --pst-color-text-muted: #999 !important;
    --pst-color-surface: #1a1a1a !important;
}

/* Shared tint tokens — single source for the green (supported/stable) and
   amber (early-access/caveat/experimental) families used by chips, badges,
   the feature heatmap, and the copied state. Change them here, not inline. */
:root {
    --dynref-green-bg: rgba(118, 185, 0, 0.16);
    --dynref-green-border: rgba(118, 185, 0, 0.38);
    --dynref-green-fg: #4D7C0F;
    --dynref-amber-bg: rgba(239, 159, 39, 0.14);
    --dynref-amber-border: rgba(239, 159, 39, 0.35);
    --dynref-amber-fg: #854F0B;
    --dynref-amber-dash: rgba(185, 122, 23, 0.7);
    --dynref-blue-bg: rgba(37, 99, 235, 0.1);
    --dynref-blue-border: rgba(37, 99, 235, 0.28);
    --dynref-blue-fg: #1D4ED8;
    --dynref-cuda-purple-bg: rgba(147, 51, 234, 0.1);
    --dynref-cuda-purple-border: rgba(147, 51, 234, 0.3);
    --dynref-cuda-purple-fg: #7E22CE;
    --dynref-orange-bg: rgba(233, 84, 32, 0.12);
    --dynref-orange-border: rgba(233, 84, 32, 0.3);
    --dynref-orange-fg: #C7401C;
    --dynref-violet-bg: rgba(124, 58, 237, 0.12);
    --dynref-violet-border: rgba(124, 58, 237, 0.3);
    --dynref-violet-fg: #6D28D9;
}

.dark {
    --dynref-green-bg: rgba(118, 185, 0, 0.22);
    --dynref-green-border: rgba(118, 185, 0, 0.46);
    --dynref-green-fg: #A3E635;
    --dynref-amber-bg: rgba(239, 159, 39, 0.16);
    --dynref-amber-border: rgba(239, 159, 39, 0.4);
    --dynref-amber-fg: #FAC775;
    --dynref-amber-dash: rgba(239, 159, 39, 0.55);
    --dynref-blue-bg: rgba(59, 130, 246, 0.18);
    --dynref-blue-border: rgba(59, 130, 246, 0.42);
    --dynref-blue-fg: #93C5FD;
    --dynref-cuda-purple-bg: rgba(168, 85, 247, 0.2);
    --dynref-cuda-purple-border: rgba(168, 85, 247, 0.46);
    --dynref-cuda-purple-fg: #D8B4FE;
    --dynref-orange-bg: rgba(233, 84, 32, 0.2);
    --dynref-orange-border: rgba(233, 84, 32, 0.42);
    --dynref-orange-fg: #FF9068;
    --dynref-violet-bg: rgba(139, 92, 246, 0.2);
    --dynref-violet-border: rgba(139, 92, 246, 0.42);
    --dynref-violet-fg: #C4B5FD;
}

/* Visually-hidden but focusable — the hiding rule for the CSS-only filter/
   switch radios. NOT display:none: undisplayed inputs can never receive
   keyboard focus, which made the pill rails mouse-only. A clipped 1px input
   keeps keyboard support (Tab reaches the group's checked radio, arrow keys
   switch within the group) while each component's generated :focus-visible
   sibling rules paint the focus ring on the matching label pill. */
.dynref-vh {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Card container shared by every reference component. */
.dynref-panel {
    margin: 24px 0;
    padding: 20px 22px;
    border: 1px solid var(--border, var(--grayscale-a5));
    border-radius: 12px;
    background: var(--pst-color-surface);
}

.dark .dynref-panel {
    background: #161616;
    border-color: #2b2b2b;
}

/* Light mode uses a darkened green — 12px bold #76B900 on white is ~2.2:1,
   below AA. Dark mode restores the brand green. */
.dynref-eyebrow {
    margin: 0 0 6px;
    color: #527D00;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dark .dynref-eyebrow {
    color: var(--nv-color-green, #76B900);
}

.dynref-label {
    color: var(--pst-color-text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dynref-mono {
    font-family: var(--pst-font-family-monospace, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 0.9em;
    font-variant-numeric: tabular-nums;
}

.dynref-muted {
    color: var(--pst-color-text-muted);
    font-size: 13px;
}

/* Section header helpers. */
.dynref-panel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

.dynref-h {
    margin: 0;
    color: var(--pst-color-text-base);
    font-size: 15px;
    font-weight: 600;
}

/* Shared surface tone for nested content blocks (import blocks, package
   groups, monospace signatures) — one dark/light pair so every reference
   component reads as one system. */
:root {
    --dynref-nested-bg: rgba(120, 120, 120, 0.06);
    --dynref-nested-border: var(--border, var(--grayscale-a5));
}

.dark {
    --dynref-nested-bg: #161616;
    --dynref-nested-border: #2b2b2b;
}

/* Shared "index page title" for the reference landing components. 20px keeps
   the compact-index visual density. */
.dynref-index-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 12px;
}

.dynref-index-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--pst-color-text-base);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.dynref-index-meta {
    margin: 0;
    color: var(--pst-color-text-muted);
    font-size: 12.5px;
}

.dynref-index-meta a {
    color: inherit;
    text-decoration: underline;
}

/* Category chips — palette replicated from main.css .dynamo-chip-*. */
.dynref-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    margin: 0.15rem 0.1rem;
    min-height: 24px;
    padding: 2px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

/* NVIDIA green — GPU generations. */
.dynref-chip--gpu {
    background: var(--dynref-green-bg);
    color: var(--dynref-green-fg);
    border-color: var(--dynref-green-border);
}


/* Ubuntu — brand orange. */
.dynref-chip--ubuntu {
    background: var(--dynref-orange-bg);
    color: var(--dynref-orange-fg);
    border-color: var(--dynref-orange-border);
}


/* CentOS — violet. */
.dynref-chip--centos {
    background: var(--dynref-violet-bg);
    color: var(--dynref-violet-fg);
    border-color: var(--dynref-violet-border);
}


/* CPU architecture — blue. */
.dynref-chip--arch {
    background: var(--dynref-blue-bg);
    color: var(--dynref-blue-fg);
    border-color: var(--dynref-blue-border);
}


/* Experimental modifier — dashed border marks experimental/preview entries,
   matching the heatmap's dashed-amber "experimental" encoding. Composes with
   any chip color variant. */
.dynref-chip--exp {
    border-style: dashed;
}

/* Amber — experimental/preview entries (pairs with --exp for the dashed
   treatment so "experimental" reads identically everywhere). */
.dynref-chip--amber {
    background: var(--dynref-amber-bg);
    color: var(--dynref-amber-fg);
    border-color: var(--dynref-amber-border);
}


/* CUDA toolkit — purple, kept distinct from the blue/cyan family. */
.dynref-chip--cuda {
    background: var(--dynref-cuda-purple-bg);
    color: var(--dynref-cuda-purple-fg);
    border-color: var(--dynref-cuda-purple-border);
}


/* Semantic badges — green = stable/promoted/supported, amber = early-access/
   caveat, gray = neutral/patch, red = deprecated, blue = info/version-tag. */
.dynref-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.dynref-badge--green {
    background: var(--dynref-green-bg);
    color: var(--dynref-green-fg);
    border-color: var(--dynref-green-border);
}


.dynref-badge--amber {
    background: var(--dynref-amber-bg);
    color: var(--dynref-amber-fg);
    border-color: var(--dynref-amber-border);
}


.dynref-badge--gray {
    background: rgba(120, 120, 120, 0.1);
    color: #5F5E5A;
    border-color: rgba(120, 120, 120, 0.28);
}

.dark .dynref-badge--gray {
    background: #242424;
    color: #a8a8a8;
    border-color: #383838;
}

.dynref-badge--red {
    background: rgba(226, 75, 74, 0.1);
    color: #A32D2D;
    border-color: rgba(226, 75, 74, 0.3);
}

.dark .dynref-badge--red {
    background: rgba(226, 75, 74, 0.16);
    color: #F09595;
    border-color: rgba(226, 75, 74, 0.4);
}

/* Work-in-progress / experimental — dashed amber, matching the heatmap's
   experimental cell encoding. */
.dynref-badge--wip {
    background: transparent;
    color: var(--dynref-amber-fg);
    border: 1.5px dashed var(--dynref-amber-dash);
}

.dark .dynref-badge--wip {
    color: var(--dynref-amber-fg);
    border-color: var(--dynref-amber-dash);
}

.dynref-badge--blue {
    background: var(--dynref-blue-bg);
    color: var(--dynref-blue-fg);
    border-color: var(--dynref-blue-border);
}


/* Click-to-copy affordance. Used as
   <button className="dynref-copy dynref-badge dynref-badge--blue" type="button"
           data-dynref-copy="...">label</button>
   custom.js copies data-dynref-copy to the clipboard on click and toggles
   .dynref-copied for 1.2s; the state flip to the green palette is the only
   feedback — no icons. Background/border/color inherit from the badge variant. */
.dynref-copy {
    cursor: pointer;
    font: inherit;
    font-family: var(--pst-font-family-monospace, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 11.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dynref-copy:hover {
    border-color: currentColor;
}

.dynref-copy:focus-visible {
    outline: 2px solid var(--nv-color-green, #76B900);
    outline-offset: 1px;
}

/* Clipboard glyph makes the copy affordance discoverable; flips to a check
   while the .dynref-copied state (set by custom.js) is active. */
.dynref-copy::before {
    content: "⧉";
    margin-right: 5px;
    font-size: 11px;
    opacity: 0.55;
}

.dynref-copy:hover::before {
    opacity: 1;
}

.dynref-copy.dynref-copied::before {
    content: "✓";
    opacity: 1;
}

.dynref-copy.dynref-copied {
    background: var(--dynref-green-bg);
    color: var(--dynref-green-fg);
    border-color: var(--dynref-green-border);
}


.dynref-grid-note {
    margin-top: 12px;
    color: var(--pst-color-text-muted);
    font-size: 12px;
}

/* Outline badge modifier — same tint family, transparent fill. Distinguishes
   adjacent-but-different states (e.g. Promoted vs Recipe-in-GA greens). */
.dynref-badge--outline {
    background: transparent;
}

/* Panels rendered as the first content of an accordion sit too far below the
   summary with their default 24px margin. */
details .dynref-panel,
details .dynref-vm-scroll,
details .dynref-cuda-wrap {
    margin-top: 8px;
}


.dynref-rh-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px 16px;
}

.dynref-rh-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--pst-color-text-base);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.2;
}

.dynref-rh-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.dynref-rh-link {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border: 1px solid var(--border, var(--grayscale-a5));
    border-radius: 999px;
    color: var(--pst-color-text-muted);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.dark .dynref-rh-link {
    border-color: #383838;
}

.dynref-rh-link:hover {
    border-color: var(--pst-color-text-muted);
    color: var(--pst-color-text-base);
}

.dynref-rh-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

/* All tiles share the neutral border — semantic color lives in the number
   only. Rendered as <a> when the tile deep-links; same box either way. */
.dynref-rh-tile {
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--border, var(--grayscale-a5));
    border-radius: 10px;
    text-decoration: none;
}

.dark .dynref-rh-tile {
    background: #1d1d1d;
    border-color: #2e2e2e;
}

a.dynref-rh-tile:hover {
    border-color: var(--pst-color-text-muted);
}

.dynref-rh-num {
    display: block;
    color: var(--pst-color-text-base);
    font-size: 18px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}

.dynref-rh-num--amber {
    color: var(--dynref-amber-fg);
}

.dynref-rh-tilelabel {
    display: block;
    margin-top: 2px;
    color: var(--pst-color-text-muted);
    font-size: 11px;
}


.dynref-up-from {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

/* Informational, not interactive — no border or background. */
.dynref-up-fromver {
    color: var(--pst-color-text-muted);
    font-size: 12.5px;
}

.dynref-up-strip {
    margin-top: 4px;
}

.dynref-up-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
    padding: 5px 0;
}

/* Single shared label column — pin rows, flattened NIXL rows, CUDA, and
   Driver all align on it. */
.dynref-up-rowlabel {
    flex: 0 0 112px;
    color: var(--pst-color-text-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.dynref-up-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--pst-font-family-monospace, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    white-space: nowrap;
}

/* Source — always neutral; also the target style for unchanged pairs. */
.dynref-up-pill--src {
    background: rgba(120, 120, 120, 0.08);
    color: var(--pst-color-text-muted);
    border-color: rgba(120, 120, 120, 0.25);
}

.dark .dynref-up-pill--src {
    background: #242424;
    color: #a8a8a8;
    border-color: #383838;
}

/* Target — green tint, only when the value actually changes. */
.dynref-up-pill--dst {
    background: var(--dynref-green-bg);
    color: var(--dynref-green-fg);
    border-color: var(--dynref-green-border);
}

.dynref-up-arrow {
    margin: 0 6px;
    color: var(--pst-color-text-muted);
}

.dynref-up-unchanged {
    margin-left: 8px;
    color: var(--pst-color-text-muted);
    font-size: 11px;
}

.dynref-up-rowbadge {
    margin-left: 8px;
}

.dynref-up-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border, var(--grayscale-a5));
}

.dynref-up-footerlabel {
    color: var(--pst-color-text-base);
    font-size: 12.5px;
    font-weight: 500;
}

/* Reading-list link chips — blue family, matching the badge--blue palette. */
.dynref-up-read {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 10px;
    border: 1px solid var(--dynref-blue-border);
    border-radius: 999px;
    background: var(--dynref-blue-bg);
    color: var(--dynref-blue-fg);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.dynref-up-read:hover {
    border-color: currentColor;
}


/* Inputs are hidden by the shared .dynref-vh (visually hidden, focusable)
   class so the backend rail stays keyboard-operable; the :focus-visible
   rules below paint the ring on the matching pill. */

.dynref-pe-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.dynref-pe-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid var(--border, var(--grayscale-a5));
    border-radius: 999px;
    background: transparent;
    color: var(--pst-color-text-base);
    font-size: 12.5px;
    line-height: 1;
    cursor: pointer;
}

.dynref-pe-pill:hover {
    border-color: var(--nv-color-green, #76B900);
}

#pe-sglang:checked ~ .dynref-pe-rail label[for="pe-sglang"],
#pe-trtllm:checked ~ .dynref-pe-rail label[for="pe-trtllm"],
#pe-vllm:checked ~ .dynref-pe-rail label[for="pe-vllm"] {
    border-color: var(--nv-color-green, #76B900);
    box-shadow: 0 0 0 1px var(--nv-color-green, #76B900);
    background: rgba(118, 185, 0, 0.08);
    font-weight: 700;
}

#pe-sglang:focus-visible ~ .dynref-pe-rail label[for="pe-sglang"],
#pe-trtllm:focus-visible ~ .dynref-pe-rail label[for="pe-trtllm"],
#pe-vllm:focus-visible ~ .dynref-pe-rail label[for="pe-vllm"] {
    outline: 2px solid var(--nv-color-green, #76B900);
    outline-offset: 1px;
}

/* Pre-rendered script blocks and Copy-all buttons: hidden by default, the
   checked backend's pair shows. Payload and visible text come from the same
   string, so they always match. */
.dynref-pe-script,
.dynref-pe-copyall {
    display: none;
}

#pe-sglang:checked ~ .dynref-pe-script[data-backend="sglang"],
#pe-trtllm:checked ~ .dynref-pe-script[data-backend="trtllm"],
#pe-vllm:checked ~ .dynref-pe-script[data-backend="vllm"] {
    display: block;
}

#pe-sglang:checked ~ .dynref-panel-header .dynref-pe-copyall[data-backend="sglang"],
#pe-trtllm:checked ~ .dynref-panel-header .dynref-pe-copyall[data-backend="trtllm"],
#pe-vllm:checked ~ .dynref-panel-header .dynref-pe-copyall[data-backend="vllm"] {
    display: inline-flex;
}

/* Prominent green-tinted Copy all — composes with .dynref-copy for the
   click-to-copy binder, glyph, and copied-state feedback. */
.dynref-pe-copyall {
    align-items: center;
    padding: 8px 14px;
    border: 1px solid var(--dynref-green-border);
    border-radius: 8px;
    background: var(--dynref-green-bg);
    color: var(--dynref-green-fg);
    font-size: 12.5px;
    font-weight: 700;
}

.dynref-pe-copyall:hover {
    border-color: var(--nv-color-green, #76B900);
    box-shadow: 0 0 0 1px var(--nv-color-green, #76B900);
}

.dynref-pe-script {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--border, var(--grayscale-a5));
    border-radius: 8px;
    background: #fcfcfc;
    color: var(--pst-color-text-base);
    font-family: var(--pst-font-family-monospace, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 12px;
    line-height: 1.7;
    white-space: pre;
    overflow-x: auto;
}

.dark .dynref-pe-script {
    background: #0f0f0f;
    border-color: #2b2b2b;
}


.dynref-sc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin: 24px 0;
}

/* Panel recipe, card-sized. */
.dynref-sc-card {
    display: flex;
    flex-direction: column;
    padding: 16px 18px;
    border: 1px solid var(--border, var(--grayscale-a5));
    border-radius: 12px;
    background: var(--pst-color-surface);
}

.dark .dynref-sc-card {
    background: #161616;
    border-color: #2b2b2b;
}

.dynref-sc-title {
    margin: 8px 0 0;
    color: var(--pst-color-text-base);
    font-size: 14px;
    font-weight: 600;
}

.dynref-sc-body {
    margin: 6px 0 0;
    color: var(--pst-color-text-muted);
    font-size: 12.5px;
    line-height: 1.55;
}

.dark .dynref-sc-body {
    color: #a8a8a8;
}

.dynref-sc-more {
    display: inline-block;
    margin-top: 10px;
    color: var(--nv-color-green-2, #538300);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.dark .dynref-sc-more {
    color: #76B900;
}

.dynref-sc-more:hover {
    text-decoration: underline;
}

/* Area chip — badge-sized, self-contained, uniformly blue (system rule:
   area badges are blue, as on known-issues). Shared --dynref-blue-* tokens
   from ReferenceStyles flip for dark mode on their own. */
.dynref-sc-chip {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 22px;
    padding: 2px 9px;
    border: 1px solid var(--dynref-blue-border);
    border-radius: 999px;
    background: var(--dynref-blue-bg);
    color: var(--dynref-blue-fg);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}
