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;
}


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

.dynref-ab-note {
    margin: 0;
}

.dynref-ab-headmeta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.dynref-ab-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dynref-ab-linkchip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid var(--border, var(--grayscale-a5));
    border-radius: 8px;
    color: var(--pst-color-text-muted);
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
}

.dynref-ab-linkchip:hover {
    border-color: var(--nv-color-green, #76B900);
    color: var(--pst-color-text-base);
}

.dark .dynref-ab-linkchip {
    border-color: #333;
    background: #1c1c1c;
}

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

.dynref-ab-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-ab-pill:hover {
    border-color: var(--nv-color-green, #76B900);
}

#ab-all:checked ~ .dynref-ab-rail label[for="ab-all"],
#ab-container:checked ~ .dynref-ab-rail label[for="ab-container"],
#ab-wheel:checked ~ .dynref-ab-rail label[for="ab-wheel"],
#ab-helm:checked ~ .dynref-ab-rail label[for="ab-helm"],
#ab-crate:checked ~ .dynref-ab-rail label[for="ab-crate"] {
    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;
}

#ab-all:focus-visible ~ .dynref-ab-rail label[for="ab-all"],
#ab-container:focus-visible ~ .dynref-ab-rail label[for="ab-container"],
#ab-wheel:focus-visible ~ .dynref-ab-rail label[for="ab-wheel"],
#ab-helm:focus-visible ~ .dynref-ab-rail label[for="ab-helm"],
#ab-crate:focus-visible ~ .dynref-ab-rail label[for="ab-crate"] {
    outline: 2px solid var(--nv-color-green, #76B900);
    outline-offset: 1px;
}

#ab-container:checked ~ .dynref-ab-list > [data-cat]:not([data-cat="container"]),
#ab-wheel:checked ~ .dynref-ab-list > [data-cat]:not([data-cat="wheel"]),
#ab-helm:checked ~ .dynref-ab-list > [data-cat]:not([data-cat="helm"]),
#ab-crate:checked ~ .dynref-ab-list > [data-cat]:not([data-cat="crate"]) {
    display: none;
}

/* Heading recount: the filter is CSS-only, so the heading pre-renders one
   span per filter and the same :checked sibling selectors toggle which one
   shows. Default (All checked, or nothing checked) shows the All span. */
.dynref-ab-hspan {
    display: none;
}

.dynref-ab-hspan--all {
    display: inline;
}

#ab-container:checked ~ .dynref-panel-header .dynref-ab-hspan--all,
#ab-wheel:checked ~ .dynref-panel-header .dynref-ab-hspan--all,
#ab-helm:checked ~ .dynref-panel-header .dynref-ab-hspan--all,
#ab-crate:checked ~ .dynref-panel-header .dynref-ab-hspan--all {
    display: none;
}

#ab-container:checked ~ .dynref-panel-header .dynref-ab-hspan--container,
#ab-wheel:checked ~ .dynref-panel-header .dynref-ab-hspan--wheel,
#ab-helm:checked ~ .dynref-panel-header .dynref-ab-hspan--helm,
#ab-crate:checked ~ .dynref-panel-header .dynref-ab-hspan--crate {
    display: inline;
}

.dynref-ab-group {
    margin: 0;
    padding: 16px 0 6px;
}

.dynref-ab-row {
    /* Fixed first column so names, descriptions, and tag groups align into
       clean columns across rows. 230px fits the longest name
       (tensorrtllm-runtime + glyph ≈ 171px at 13px mono). */
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) max-content;
    gap: 10px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--border, var(--grayscale-a5));
}

.dynref-ab-row:last-child {
    border-bottom: 0;
}

.dynref-ab-name {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}

.dynref-ab-glyph {
    flex: 0 0 auto;
}

.dynref-ab-glyph--container {
    color: #76B900;
}

.dynref-ab-glyph--wheel {
    color: var(--dynref-teal-fg);
}


.dynref-ab-glyph--helm {
    color: var(--dynref-blue-fg);
}


.dynref-ab-glyph--crate {
    color: var(--dynref-violet-fg);
}


.dynref-ab-link {
    color: var(--pst-color-text-base);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.dynref-ab-link:hover {
    text-decoration: underline;
    text-decoration-color: var(--nv-color-green, #76B900);
}

.dynref-ab-desc {
    margin: 0;
    color: var(--pst-color-text-muted);
    font-size: 12.5px;
    line-height: 1.4;
}

.dynref-ab-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.dynref-ab-tags .dynref-copy {
    font-family: var(--pst-font-family-monospace, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 11px;
}

/* Narrow widths: stack each row (name / description / tags in column flow).
   Last in the sheet so these override the base rules above. */
@media (max-width: 640px) {
    .dynref-ab-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .dynref-ab-tags {
        justify-content: flex-start;
    }

    .dynref-ab-headmeta {
        align-items: flex-start;
    }
}


/* 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-ea-dots {
    /* One line, always: nowrap + tight gaps sized so the four
       Images/Wheels/Helm/Crates pairs never orphan-wrap. */
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
}

.dynref-ea-dots-inline {
    display: inline-flex;
    vertical-align: middle;
}

.dynref-ea-dot-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--pst-color-text-base);
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
}

.dynref-ea-dot-item--off {
    color: var(--pst-color-text-muted);
    opacity: 0.55;
}

.dynref-ea-dot {
    box-sizing: border-box; /* 7px means 7 rendered px, border included */
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border: 1.5px solid var(--pst-color-text-muted);
    border-radius: 50%;
    background: transparent;
}

.dynref-ea-dot--on {
    border-color: #76B900;
    background: #76B900;
}


.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 tag rail stays keyboard-operable; generated :focus-visible
   rules below paint the ring on the matching pill. */

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

.dynref-tg-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid var(--border, var(--grayscale-a5));
    border-radius: 999px;
    background: transparent;
    color: var(--pst-color-text-base);
    font-family: var(--pst-font-family-monospace, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    cursor: pointer;
}

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

#tg-t0:checked ~ .dynref-tg-rail label[for="tg-t0"],
#tg-t1:checked ~ .dynref-tg-rail label[for="tg-t1"],
#tg-t2:checked ~ .dynref-tg-rail label[for="tg-t2"],
#tg-t3:checked ~ .dynref-tg-rail label[for="tg-t3"],
#tg-t4:checked ~ .dynref-tg-rail label[for="tg-t4"],
#tg-t5:checked ~ .dynref-tg-rail label[for="tg-t5"],
#tg-t6:checked ~ .dynref-tg-rail label[for="tg-t6"],
#tg-t7:checked ~ .dynref-tg-rail label[for="tg-t7"],
#tg-t8:checked ~ .dynref-tg-rail label[for="tg-t8"],
#tg-t9:checked ~ .dynref-tg-rail label[for="tg-t9"],
#tg-t10:checked ~ .dynref-tg-rail label[for="tg-t10"],
#tg-t11:checked ~ .dynref-tg-rail label[for="tg-t11"],
#tg-t12:checked ~ .dynref-tg-rail label[for="tg-t12"] {
    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;
}

#tg-t0:focus-visible ~ .dynref-tg-rail label[for="tg-t0"],
#tg-t1:focus-visible ~ .dynref-tg-rail label[for="tg-t1"],
#tg-t2:focus-visible ~ .dynref-tg-rail label[for="tg-t2"],
#tg-t3:focus-visible ~ .dynref-tg-rail label[for="tg-t3"],
#tg-t4:focus-visible ~ .dynref-tg-rail label[for="tg-t4"],
#tg-t5:focus-visible ~ .dynref-tg-rail label[for="tg-t5"],
#tg-t6:focus-visible ~ .dynref-tg-rail label[for="tg-t6"],
#tg-t7:focus-visible ~ .dynref-tg-rail label[for="tg-t7"],
#tg-t8:focus-visible ~ .dynref-tg-rail label[for="tg-t8"],
#tg-t9:focus-visible ~ .dynref-tg-rail label[for="tg-t9"],
#tg-t10:focus-visible ~ .dynref-tg-rail label[for="tg-t10"],
#tg-t11:focus-visible ~ .dynref-tg-rail label[for="tg-t11"],
#tg-t12:focus-visible ~ .dynref-tg-rail label[for="tg-t12"] {
    outline: 2px solid var(--nv-color-green, #76B900);
    outline-offset: 1px;
}

/* The default "none" radio has no pill — while it holds keyboard focus the
   hint row carries the ring so focus is never invisible. */
#tg-none:focus-visible ~ .dynref-tg-cards > .dynref-tg-hint {
    outline: 2px solid var(--nv-color-green, #76B900);
    outline-offset: 1px;
}

.dynref-tg-card {
    display: none;
    padding: 14px 16px;
    border: 1px solid var(--border, var(--grayscale-a5));
    border-radius: 8px;
    background: #fcfcfc;
}

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

#tg-t0:checked ~ .dynref-tg-cards > [data-tg="t0"],
#tg-t1:checked ~ .dynref-tg-cards > [data-tg="t1"],
#tg-t2:checked ~ .dynref-tg-cards > [data-tg="t2"],
#tg-t3:checked ~ .dynref-tg-cards > [data-tg="t3"],
#tg-t4:checked ~ .dynref-tg-cards > [data-tg="t4"],
#tg-t5:checked ~ .dynref-tg-cards > [data-tg="t5"],
#tg-t6:checked ~ .dynref-tg-cards > [data-tg="t6"],
#tg-t7:checked ~ .dynref-tg-cards > [data-tg="t7"],
#tg-t8:checked ~ .dynref-tg-cards > [data-tg="t8"],
#tg-t9:checked ~ .dynref-tg-cards > [data-tg="t9"],
#tg-t10:checked ~ .dynref-tg-cards > [data-tg="t10"],
#tg-t11:checked ~ .dynref-tg-cards > [data-tg="t11"],
#tg-t12:checked ~ .dynref-tg-cards > [data-tg="t12"] {
    display: block;
}

/* Default state: the hidden "none" radio is checked and only the hint shows. */
.dynref-tg-hint {
    display: none;
    margin: 0;
    padding: 14px 16px;
    border: 1px dashed var(--border, var(--grayscale-a5));
    border-radius: 8px;
}

#tg-none:checked ~ .dynref-tg-cards > .dynref-tg-hint {
    display: block;
}

.dynref-tg-cardhead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.dynref-tg-tagname {
    color: var(--pst-color-text-base);
    font-size: 13px;
    font-weight: 700;
}

.dynref-tg-rows {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dynref-tg-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 12.5px;
    line-height: 1.45;
}

.dynref-tg-key {
    flex: 0 0 76px;
    color: var(--pst-color-text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dynref-tg-val {
    color: var(--pst-color-text-base);
    overflow-wrap: anywhere;
}

.dynref-tg-link {
    color: var(--nv-color-green-2, #538300);
    font-weight: 600;
    text-decoration: none;
}

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

.dynref-tg-link:hover {
    text-decoration: underline;
}

.dynref-tg-note {
    margin: 0;
}

/* Chip visuals come from .dynref-up-read (UpgradePanelStyles) so the
   breaking-changes/known-issues links read identically to the Deprecations
   reading list; only the container layout lives here. */
.dynref-tg-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}


.dynref-tl {
    margin: 20px 0;
}

.dynref-tl-item {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 0 12px;
}

.dynref-tl-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dynref-tl-node {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    margin-top: 4px;
    border-radius: 50%;
}

.dynref-tl-node--stable {
    background: #76B900;
}

.dynref-tl-node--patch {
    background: #b5b5b5;
}

.dark .dynref-tl-node--patch {
    background: #3d3d3d;
}

.dynref-tl-node--preview {
    background: transparent;
    border: 2px dashed #C77E1B;
}

.dark .dynref-tl-node--preview {
    border-color: #FAC775;
}

.dynref-tl-line {
    flex: 1;
    width: 2px;
    margin-top: 4px;
    background: var(--border, var(--grayscale-a5));
}

.dynref-tl-body {
    min-width: 0;
    padding-bottom: 18px;
}

.dynref-tl-item:last-child .dynref-tl-body {
    padding-bottom: 0;
}

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

.dynref-tl-version {
    color: var(--pst-color-text-base);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.dynref-tl-version:hover {
    text-decoration: underline;
    text-decoration-color: var(--nv-color-green, #76B900);
}

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

.dynref-tl-gh {
    color: var(--pst-color-text-muted);
    font-size: 11.5px;
    text-decoration: none;
}

.dynref-tl-gh:hover {
    text-decoration: underline;
    text-decoration-color: var(--nv-color-green, #76B900);
}

.dynref-tl-sum {
    margin: 4px 0 0;
    color: var(--pst-color-text-muted);
    font-size: 12.5px;
    line-height: 1.45;
}

.dynref-tl-crates {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border, var(--grayscale-a5));
}

.dynref-tl-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    font-size: 12.5px;
}

.dynref-tl-table th {
    padding: 4px 16px 6px 0;
    border-bottom: 1px solid var(--border, var(--grayscale-a5));
    color: var(--pst-color-text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
}

.dynref-tl-table td {
    padding: 6px 16px 6px 0;
    border-bottom: 1px solid var(--border, var(--grayscale-a5));
    color: var(--pst-color-text-base);
}

.dynref-tl-table tbody tr:last-child td {
    border-bottom: 0;
}

.dynref-tl-table td.dynref-tl-cell-muted {
    color: var(--pst-color-text-muted);
}
