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-hero-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 16px;
}

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

.dynref-hero-selector-wrap {
    display: grid;
    gap: 5px;
    min-width: min(100%, 220px);
}

.dynref-hero-selector {
    min-height: 38px;
    padding: 6px 34px 6px 10px;
    border: 1px solid var(--border, var(--grayscale-a5));
    border-radius: 8px;
    background: var(--pst-color-surface);
    color: var(--pst-color-text-base);
    font: inherit;
    font-size: 14px;
}

.dark .dynref-hero-selector {
    background: #1d1d1d;
    border-color: #3a3a3a;
}

.dynref-hero-meta {
    margin: -4px 0 16px;
}

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

.dynref-hero-backends {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.dynref-hero-backend {
    padding: 12px 14px;
    border: 1px solid var(--border, var(--grayscale-a5));
    border-radius: 10px;
}

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

.dynref-hero-backend-name {
    display: block;
    color: var(--pst-color-text-base);
    font-size: 14px;
    font-weight: 600;
}

.dynref-hero-pin {
    display: block;
    margin: 4px 0 2px;
    color: var(--pst-color-text-base);
    font-size: 15px;
}

.dynref-hero-dependency {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 8px;
    align-items: baseline;
    margin-top: 6px;
}

.dynref-hero-cuda-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 7px;
    margin-top: 8px;
}

.dynref-hero-reqs {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 8px 12px;
    align-items: baseline;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border, var(--grayscale-a5));
}

.dynref-hero-req-values {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 4px;
}

.dynref-hero-empty {
    margin: 8px 0 0;
    color: var(--pst-color-text-muted);
    font-size: 12px;
}

@media (max-width: 520px) {
    .dynref-hero-selector-wrap { width: 100%; }
    .dynref-hero-reqs { grid-template-columns: 1fr; gap: 4px; }
}


.dynref-heat-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--pst-color-text-muted);
}

.dynref-heat-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dynref-heat-swatch {
    display: inline-block;
    box-sizing: border-box;
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.dynref-heat-swatch--yes {
    background: var(--dynref-green-bg);
    border: 1px solid var(--dynref-green-border);
}
.dark .dynref-heat-swatch--yes {
    background: var(--dynref-green-bg);
    border-color: var(--dynref-green-border);
}

.dynref-heat-swatch--caveat {
    background: var(--dynref-amber-bg);
    border: 1px solid var(--dynref-amber-border);
}
.dark .dynref-heat-swatch--caveat {
    background: var(--dynref-amber-bg);
    border-color: var(--dynref-amber-border);
}

.dynref-heat-swatch--wip {
    background: transparent;
    border: 1.5px dashed #b97a17;
}

.dynref-heat-swatch--no { background: #ececec; }
.dark .dynref-heat-swatch--no { background: #242424; }

.dynref-heat-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(64px, 1fr));
    gap: 6px;
    font-size: 13px;
}

.dynref-heat-colhead {
    align-self: end;
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--pst-color-text-base);
}

.dynref-heat-score {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    font-weight: 400;
    color: #5a8c00;
}
.dark .dynref-heat-score { color: #76B900; }

.dynref-heat-feature {
    align-self: center;
    min-width: 0;
    color: var(--pst-color-text-base);
}

.dynref-heat-cell {
    position: relative;
    box-sizing: border-box;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dynref-heat-cell--titled {
    cursor: help;
}

.dynref-heat-cell--titled:focus-visible {
    outline: 2px solid var(--dynref-blue-fg);
    outline-offset: 2px;
}

.dynref-heat-cell--yes {
    background: var(--dynref-green-bg);
    border: 1px solid var(--dynref-green-border);
    color: var(--dynref-green-fg);
}
.dark .dynref-heat-cell--yes {
    background: var(--dynref-green-bg);
    border-color: var(--dynref-green-border);
    color: var(--dynref-green-fg);
}

.dynref-heat-cell--caveat {
    background: var(--dynref-amber-bg);
    border: 1px solid var(--dynref-amber-border);
    color: var(--dynref-amber-fg);
}
.dark .dynref-heat-cell--caveat {
    background: var(--dynref-amber-bg);
    border-color: var(--dynref-amber-border);
    color: var(--dynref-amber-fg);
}

.dynref-heat-cell--wip {
    background: transparent;
    border: 1.5px dashed #b97a17;
    color: #B97A17;
}
.dark .dynref-heat-cell--wip { color: #EF9F27; }

.dynref-heat-cell--no { background: #ececec; }
.dark .dynref-heat-cell--no { background: #242424; }

.dynref-heat-dash { color: var(--pst-color-text-muted); }

.dynref-heat-note-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    margin-left: 3px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
}

.dynref-heat-tooltip {
    position: absolute;
    z-index: 10;
    bottom: calc(100% + 8px);
    left: 50%;
    width: min(280px, calc(100vw - 48px));
    padding: 8px 10px;
    border: 1px solid var(--border, var(--grayscale-a5));
    border-radius: 7px;
    background: var(--pst-color-surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    color: var(--pst-color-text-base);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    transform: translate(-50%, 3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
}

.dark .dynref-heat-tooltip {
    background: #202020;
    border-color: #3a3a3a;
}

.dynref-heat-tooltip::after {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 8px;
    content: "";
}

.dynref-heat-cell[data-backend="SGLang"] .dynref-heat-tooltip {
    left: 0;
    transform: translate(0, 3px);
}

.dynref-heat-cell[data-backend="vLLM"] .dynref-heat-tooltip {
    right: 0;
    left: auto;
    transform: translate(0, 3px);
}

.dynref-heat-cell--titled:hover,
.dynref-heat-cell--titled:focus-visible {
    z-index: 9;
}

.dynref-heat-cell--titled:hover .dynref-heat-tooltip,
.dynref-heat-cell--titled:focus-visible .dynref-heat-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.dynref-heat-cell--titled[data-backend="SGLang"]:hover .dynref-heat-tooltip,
.dynref-heat-cell--titled[data-backend="SGLang"]:focus-visible .dynref-heat-tooltip,
.dynref-heat-cell--titled[data-backend="vLLM"]:hover .dynref-heat-tooltip,
.dynref-heat-cell--titled[data-backend="vLLM"]:focus-visible .dynref-heat-tooltip {
    transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
    .dynref-heat-tooltip { transition: none; }
}


.dynref-fi-legend {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: var(--pst-color-text-muted);
    font-size: 12px;
}

.dynref-fi-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dynref-fi-swatch {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 4px;
}

.dynref-fi-swatch--yes {
    background: var(--dynref-green-bg);
    border: 1px solid var(--dynref-green-border);
}

.dynref-fi-swatch--wip {
    background: transparent;
    border: 1.5px dashed #b97a17;
}

.dynref-fi-swatch--no {
    background: #ececec;
    border: 1px solid #d8d8d8;
}

.dark .dynref-fi-swatch--no {
    background: #242424;
    border-color: #333;
}

.dynref-fi-swatch--na { background: rgba(120, 120, 120, 0.16); }

.dynref-fi-scroll {
    overflow-x: auto;
    padding-bottom: 4px;
}

.dynref-fi-table {
    width: max-content;
    min-width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 6px;
    font-size: 13px;
}

.dynref-fi-table th,
.dynref-fi-table td {
    padding: 0;
    border: 0;
    background: none;
}

.dynref-fi-colhead {
    width: 74px;
    min-width: 74px;
    vertical-align: bottom;
    color: var(--pst-color-text-base);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

.dynref-fi-rowhead {
    position: sticky;
    left: 0;
    z-index: 3;
    min-width: 152px;
    padding-right: 8px;
    background: var(--pst-color-surface);
    box-shadow: 4px 0 0 var(--pst-color-surface);
    color: var(--pst-color-text-base);
    font-size: 12.5px;
    font-weight: 500;
    text-align: left;
    vertical-align: middle;
}

.dark .dynref-fi-rowhead {
    background: #161616;
    box-shadow: 4px 0 0 #161616;
}

.dynref-fi-cell {
    position: relative;
    box-sizing: border-box;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dynref-fi-cell--titled { cursor: help; }

.dynref-fi-cell--titled:focus-visible {
    outline: 2px solid var(--dynref-blue-fg);
    outline-offset: 2px;
}

.dynref-fi-cell--yes {
    background: var(--dynref-green-bg);
    border: 1px solid var(--dynref-green-border);
    color: var(--dynref-green-fg);
}

.dynref-fi-cell--wip {
    background: transparent;
    border: 1.5px dashed #b97a17;
    color: #B97A17;
}
.dark .dynref-fi-cell--wip { color: #EF9F27; }

.dynref-fi-cell--no {
    background: #ececec;
    border: 1px solid #d8d8d8;
    color: #8a8a8a;
}
.dark .dynref-fi-cell--no {
    background: #242424;
    border-color: #333;
    color: #8a8a8a;
}

.dynref-fi-cell--na {
    background: rgba(120, 120, 120, 0.08);
    color: var(--pst-color-text-muted);
}

.dynref-fi-note-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    margin-left: 3px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
}

.dynref-fi-tooltip {
    position: absolute;
    z-index: 10;
    bottom: calc(100% + 8px);
    left: 50%;
    width: min(260px, calc(100vw - 48px));
    padding: 8px 10px;
    border: 1px solid var(--border, var(--grayscale-a5));
    border-radius: 7px;
    background: var(--pst-color-surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    color: var(--pst-color-text-base);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    transform: translate(-50%, 3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
}

.dark .dynref-fi-tooltip {
    background: #202020;
    border-color: #3a3a3a;
}

/* Bridges the 8px gap so the pointer can travel from cell to tooltip without
   the tooltip closing -- the Source link inside it has to be clickable. */
.dynref-fi-tooltip::after {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 8px;
    content: "";
}

/* The matrix scrolls horizontally, so a centred tooltip on an edge column is
   clipped by the scroll box. Anchor the first columns left and the last
   columns right instead. */
.dynref-fi-cell[data-edge="start"] .dynref-fi-tooltip {
    left: 0;
    transform: translate(0, 3px);
}

.dynref-fi-cell[data-edge="end"] .dynref-fi-tooltip {
    right: 0;
    left: auto;
    transform: translate(0, 3px);
}

.dynref-fi-cell--titled:hover,
.dynref-fi-cell--titled:focus-visible {
    z-index: 9;
}

.dynref-fi-cell--titled:hover .dynref-fi-tooltip,
.dynref-fi-cell--titled:focus-visible .dynref-fi-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.dynref-fi-cell--titled[data-edge="start"]:hover .dynref-fi-tooltip,
.dynref-fi-cell--titled[data-edge="start"]:focus-visible .dynref-fi-tooltip,
.dynref-fi-cell--titled[data-edge="end"]:hover .dynref-fi-tooltip,
.dynref-fi-cell--titled[data-edge="end"]:focus-visible .dynref-fi-tooltip {
    transform: translate(0, 0);
}

.dynref-fi-tooltip a {
    color: inherit;
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .dynref-fi-tooltip { transition: none; }
}


.dynref-rsm-line {
    border-bottom: 1px solid var(--border, var(--grayscale-a5));
}

.dynref-rsm-line[open] {
    padding-bottom: 14px;
}

.dynref-rsm-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    padding: 9px 6px;
    border-radius: 6px;
    cursor: pointer;
    list-style: none;
}

.dynref-rsm-summary::-webkit-details-marker { display: none; }

.dynref-rsm-summary::before {
    content: "›";
    display: inline-block;
    width: 10px;
    color: var(--pst-color-text-muted);
    font-size: 15px;
    line-height: 1;
    transition: transform 120ms ease;
}

.dynref-rsm-line[open] > .dynref-rsm-summary::before {
    transform: rotate(90deg);
}

.dynref-rsm-summary:hover { background: rgba(118, 185, 0, 0.06); }
.dark .dynref-rsm-summary:hover { background: rgba(118, 185, 0, 0.10); }

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

.dynref-rsm-minor {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

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

.dynref-rsm-cudas { margin-left: auto; }

/* The release cell stacks version over kind/date/UCX; without this the small
 * lines crowd the version and the row loses its anchor. */
.dynref-rsm-release-version {
    display: block;
    font-variant-numeric: tabular-nums;
}

.dynref-rsm-release-meta {
    display: block;
    margin-top: 3px;
    color: var(--pst-color-text-muted);
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .dynref-rsm-cudas { margin-left: 0; }
}
