/* ANR Tools documentation (2026-10-12): /docs, the node pages and the guides. Uses site.css's colours. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
                   clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- the front page ---- */
.docs-hero { padding: 72px 0 28px; border-top: 0; overflow: visible; }
.docs-hero::before { content: ""; position: absolute; inset: -20% 0 auto; height: 520px; pointer-events: none;
                     background: radial-gradient(ellipse 45% 55% at 70% 20%, rgba(240, 168, 64, 0.13), transparent 70%); }
.docs-hero .wrap { position: relative; }
.docs-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.docs-search { position: relative; max-width: 760px; margin-top: 28px; z-index: 30; }
.docs-search input { width: 100%; height: 58px; padding: 0 18px 0 52px; border-radius: 14px; border: 1px solid var(--line-hot);
                     background: var(--well) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236b7080' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='9' r='6'/%3E%3Cpath d='m14 14 4 4'/%3E%3C/svg%3E") no-repeat 18px 50%;
                     color: var(--text); font: 500 1.02rem var(--font); transition: border-color 0.15s, box-shadow 0.15s; }
.docs-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(240, 168, 64, 0.15); }
.docs-search input::placeholder { color: #565b6a; }
.docs-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); max-height: min(64vh, 560px); overflow: auto;
                background: var(--card-2); border: 1px solid var(--line-hot); border-radius: 14px; padding: 8px;
                box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8); }
.docs-results h3 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin: 10px 10px 6px; }
.docs-results a { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 9px 10px;
                  border-radius: 10px; color: var(--text); }
.docs-results a img { width: 34px; height: 34px; border-radius: 8px; background: var(--well); }
.docs-results a .res-kind { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--well);
                            color: var(--accent); font: 700 0.7rem var(--mono); border: 1px solid var(--line); }
.docs-results a b { display: block; font-weight: 600; font-size: 0.95rem; }
.docs-results a span span { display: block; color: var(--soft); font-size: 0.84rem; line-height: 1.4; overflow: hidden;
                            text-overflow: ellipsis; white-space: nowrap; }
.docs-results a:hover, .docs-results a.is-active { background: rgba(240, 168, 64, 0.1); }
.docs-results mark { background: none; color: var(--accent-hot); }
.docs-results .res-none { padding: 14px 12px; color: var(--soft); margin: 0; }
.folder-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.folder-chips button { font: 600 0.88rem var(--font); color: var(--soft); background: var(--well); border: 1px solid var(--line);
                       padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.folder-chips button span { color: var(--faint); font-weight: 500; margin-left: 2px; }
.folder-chips button:hover { border-color: var(--line-hot); color: var(--text); }
.folder-chips button.is-on { background: var(--accent-wash); border-color: rgba(240, 168, 64, 0.6); color: var(--text); }
.docs-body { padding: 8px 0 96px; border-top: 0; }
.fold { margin-top: 44px; scroll-margin-top: 96px; }
.fold[hidden] { display: none; }
.fold-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 16px; }
.fold-head h2 { font-size: 1.45rem; margin: 0; }
.fold-head p { margin: 0; font-size: 0.95rem; }
.ncards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.ncard, .gcard, .rel-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid var(--line);
                            background: var(--card); color: var(--text); transition: border-color 0.15s, transform 0.15s, background 0.15s; }
.ncard:hover, .gcard:hover, .rel-card:hover { border-color: rgba(240, 168, 64, 0.45); background: var(--card-2); transform: translateY(-1px); color: var(--text); }
.ncard[hidden] { display: none; }
.ncard img, .rel-card img { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--well); object-fit: contain; }
.ncard b, .rel-card b { display: block; font-weight: 600; line-height: 1.3; margin-bottom: 3px; }
.ncard span span, .rel-card span span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
                                        color: var(--soft); font-size: 0.87rem; line-height: 1.45; }
.gcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gcard { flex-direction: column; gap: 6px; padding: 20px;
         background: linear-gradient(160deg, rgba(240, 168, 64, 0.08), transparent 55%), var(--card); }
.gcard b { font-size: 1.05rem; }
.gcard span { color: var(--soft); font-size: 0.9rem; line-height: 1.5; }
@media (max-width: 860px) { .gcards { grid-template-columns: 1fr; } }

/* ---- node pages and guides: a side menu and the page ---- */
.docs { padding: 28px 0 96px; border-top: 0; }
.docs-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.docs-side { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow: auto; padding-right: 6px;
             scrollbar-width: thin; scrollbar-color: var(--line-hot) transparent; }
.side-find input { width: 100%; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
                   background: var(--well); color: var(--text); font: 500 0.9rem var(--font); }
.side-find input:focus { outline: none; border-color: var(--accent); }
.side-head { margin: 20px 0 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.side-head[hidden], .side-list li[hidden] { display: none; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--soft); font-size: 0.9rem; line-height: 1.4; }
.side-list a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.side-list a.is-current { color: var(--text); background: var(--accent-wash); box-shadow: inset 2px 0 0 var(--accent); }
.docs-browse { display: none; }
.docs-main { min-width: 0; }
@media (max-width: 980px) {
  .docs-grid { grid-template-columns: 1fr; gap: 0; }
  .docs-browse { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 44px; padding: 0 16px;
                 border-radius: 12px; border: 1px solid var(--line-hot); background: var(--card); color: var(--text);
                 font: 600 0.95rem var(--font); cursor: pointer; margin-bottom: 16px; }
  .docs-browse::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft);
                        transform: rotate(45deg); margin-top: -4px; transition: transform 0.2s; }
  .docs-browse[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: 4px; }
  .docs-side { display: none; position: static; max-height: none; margin-bottom: 24px; padding: 12px 16px 16px;
               border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
  .docs-side.is-open { display: block; }
}

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.88rem; color: var(--faint); margin-bottom: 18px; }
.crumbs a { color: var(--soft); }
.crumbs a:hover { color: var(--text); }
.node-head { display: flex; gap: 20px; align-items: center; }
.node-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 6px; }
.node-head .lead { margin: 0; max-width: 760px; font-size: 1.08rem; }
.node-icon { flex: none; width: 64px; height: 64px; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
             padding: 6px; object-fit: contain; }
.guide-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; }
.chips li { font-size: 0.82rem; color: var(--soft); background: var(--well); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.chips a { color: var(--soft); }
.chips a:hover { color: var(--text); }
.menu-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 14px; font-size: 0.9rem; }
.menu-path span:not(.faint) { color: var(--text); font-weight: 500; }
.menu-path i { color: var(--faint); font-style: normal; }
.menu-path .copy-node { margin-left: auto; height: 34px; font-size: 0.85rem; }
@media (max-width: 640px) { .menu-path .copy-node { margin-left: 0; } .node-head { align-items: flex-start; } .node-icon { width: 52px; height: 52px; } }

.on-page { position: sticky; top: 72px; z-index: 8; display: flex; gap: 4px; overflow-x: auto; margin: 26px 0 0; padding: 10px 0;
           background: rgba(13, 14, 18, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
           border-bottom: 1px solid var(--line); scrollbar-width: none; }
.on-page::-webkit-scrollbar { display: none; }
.on-page a { flex: none; padding: 6px 12px; border-radius: 999px; color: var(--soft); font-size: 0.88rem; font-weight: 500; }
.on-page a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.on-page a.is-on { color: var(--accent-ink); background: var(--accent); }
.dsec { padding: 40px 0 0; border: 0; scroll-margin-top: 130px; }
.dsec h2 { font-size: 1.45rem; margin-bottom: 14px; }
.dsec > p { color: var(--soft); max-width: 820px; }
.dsec > p b, .inputs p b, .qs b, .ticks b, .good b, .ref b { color: var(--text); font-weight: 600; }

/* inputs: the node drawn as in Nuke, and what each input is for */
.dg { display: block; width: 100%; max-width: 680px; height: auto; margin: 4px 0 18px; overflow: visible; }
.dg-pill { fill: var(--card-2); stroke: var(--line-hot); stroke-width: 1.4; transition: fill 0.15s, stroke 0.15s; }
.dg-in.is-optional .dg-pill { stroke-dasharray: 4 3; }
.dg-in text { fill: var(--text); font: 600 13px var(--font); pointer-events: none; }
.dg-in { cursor: pointer; outline: none; }
.dg-wire { fill: none; stroke: #4a4f5e; stroke-width: 1.6; transition: stroke 0.15s; }
.dg-in.is-optional .dg-wire { stroke-dasharray: 5 4; }
.dg-in.is-hot .dg-pill, .dg-in:focus-visible .dg-pill { fill: rgba(240, 168, 64, 0.14); stroke: var(--accent); }
.dg-in.is-hot .dg-wire { stroke: var(--accent); }
.dg marker path { fill: #6b7080; }
.dg-node { fill: #1f2029; stroke: var(--accent); stroke-width: 1.5; }
.dg-node-label { fill: var(--text); font: 700 14px var(--font); }
.dg-out-label { fill: var(--faint); font: 600 12px var(--font); }
.inputs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.in { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); transition: border-color 0.15s, background 0.15s; }
.in.is-hot { border-color: rgba(240, 168, 64, 0.6); background: var(--card-2); }
.in-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.in p { margin: 0; color: var(--soft); font-size: 0.93rem; }
.tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint);
       border: 1px solid var(--line-hot); border-radius: 999px; padding: 2px 8px; }
.tag-need { color: var(--accent); border-color: rgba(240, 168, 64, 0.5); }
.out { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); color: var(--soft); max-width: none; }
@media (max-width: 760px) { .inputs { grid-template-columns: 1fr; } }

/* quick start: steps the reader can tick */
.qs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: qs; max-width: 860px; }
.qs li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; padding: 12px 14px; border-radius: 12px;
         border: 1px solid var(--line); background: var(--card); color: var(--soft); counter-increment: qs; transition: opacity 0.2s; }
.qs-tick { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
           background: var(--accent); color: var(--accent-ink); font: 800 0.9rem var(--font); }
.qs-tick::before { content: counter(qs); }
.qs-tick[aria-pressed="true"] { background: rgba(76, 195, 138, 0.18); color: var(--good); box-shadow: inset 0 0 0 1.5px var(--good); }
.qs-tick[aria-pressed="true"]::before { content: "\2713"; }
.qs li.is-done span { opacity: 0.55; text-decoration: line-through; text-decoration-color: rgba(160, 166, 180, 0.4); }
.qs li span { padding-top: 4px; }

/* the panel, drawn as Nuke draws it */
.np-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; margin-top: 8px; }
.np { background: #1a1b21; border: 1px solid var(--line-hot); border-radius: 12px; overflow: hidden; font-size: 13px;
      box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9); }
.np-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; background: #23252d; border-bottom: 1px solid #2d303a; }
.np-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); flex: none; }
.np-title { font: 600 12.5px var(--mono); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-find { margin-left: auto; flex: 0 1 200px; }
.np-find input { width: 100%; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid #353946; background: #121318;
                 color: var(--text); font: 500 12.5px var(--font); }
.np-find input:focus { outline: none; border-color: var(--accent); }
.np-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 8px 0; background: #1f2027; border-bottom: 1px solid #2d303a; }
.np-tab { font: 600 12.5px var(--font); color: var(--soft); background: transparent; border: 1px solid transparent; border-bottom: 0;
          padding: 6px 12px 7px; border-radius: 7px 7px 0 0; cursor: pointer; }
.np-tab:hover { color: var(--text); }
.np-tab[aria-selected="true"] { color: var(--text); background: #1a1b21; border-color: #2d303a; box-shadow: inset 0 2px 0 var(--accent); margin-bottom: -1px; }
.np-pages { padding: 10px 10px 14px; max-height: 660px; overflow: auto; scrollbar-width: thin; scrollbar-color: #3a3e4c transparent; }
.np-page[hidden] { display: none; }
.np-help { margin: 2px 4px 10px; padding: 9px 11px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); color: var(--soft); font-size: 12.5px; line-height: 1.55; }
.np-row { display: grid; grid-template-columns: 158px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 30px; padding: 3px 6px;
          border-radius: 6px; cursor: pointer; outline: none; }
.np-row:hover { background: rgba(255, 255, 255, 0.035); }
.np-row:focus-visible { box-shadow: 0 0 0 1px var(--accent); }
.np-row.is-sel { background: rgba(240, 168, 64, 0.11); box-shadow: inset 0 0 0 1px rgba(240, 168, 64, 0.45); }
.np-label { text-align: right; color: #c3c7d1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-ctl { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; color: var(--text); }
.w-num { min-width: 54px; padding: 2px 7px; border-radius: 4px; background: #101116; border: 1px solid #2e313c; font: 12px var(--mono); text-align: right; }
.w-expr { color: #8fb8ff; }
.w-slider { position: relative; flex: 1 1 80px; min-width: 60px; max-width: 240px; height: 3px; border-radius: 2px; background: #2e313c; }
.w-slider i { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--accent); }
.w-check { flex: none; width: 15px; height: 15px; border-radius: 3px; border: 1px solid #4a4f5e; background: #101116; position: relative; }
.w-check.is-on { background: var(--accent); border-color: var(--accent); }
.w-check.is-on::after { content: ""; position: absolute; left: 4.5px; top: 1px; width: 4px; height: 8px; border-right: 2px solid var(--accent-ink);
                        border-bottom: 2px solid var(--accent-ink); transform: rotate(45deg); }
.w-check-label { color: #c3c7d1; }
.w-menu { position: relative; max-width: 100%; padding: 2px 24px 2px 9px; border-radius: 4px; background: #2a2c35; border: 1px solid #3c404d;
          white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-menu::after { content: ""; position: absolute; right: 9px; top: 50%; width: 5px; height: 5px; margin-top: -4px;
                 border-right: 1.5px solid var(--soft); border-bottom: 1.5px solid var(--soft); transform: rotate(45deg); }
.w-button { padding: 3px 14px; border-radius: 5px; background: #2f313b; border: 1px solid #474b5a; color: var(--text); font-weight: 500;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.np-button .np-ctl, .np-check .np-ctl { grid-column: 1 / -1; padding-left: 168px; }
.w-swatch { width: 22px; height: 15px; border-radius: 3px; border: 1px solid #4a4f5e; }
.w-axis { color: var(--faint); font: 11px var(--mono); }
.w-text { flex: 1 1 140px; min-width: 0; min-height: 22px; padding: 2px 8px; border-radius: 4px; background: #101116; border: 1px solid #2e313c;
          color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-area { white-space: pre-wrap; max-height: 4.8em; line-height: 1.5; }
.w-file { flex: none; width: 18px; height: 14px; border-radius: 2px 2px 3px 3px; background: #4a4f5e; position: relative; }
.w-file::before { content: ""; position: absolute; left: 0; top: -3px; width: 8px; height: 4px; border-radius: 2px 2px 0 0; background: #4a4f5e; }
.w-status { color: var(--soft); font-size: 12px; line-height: 1.5; white-space: pre-wrap; border-left: 2px solid #3a3e4c; padding: 1px 0 1px 8px; }
.np-group { margin: 8px 0 4px; }
.np-group-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 4px; border: 0; border-bottom: 1px solid #2d303a;
                 background: none; color: var(--text); font: 700 12.5px var(--font); text-align: left; cursor: pointer; }
.np-group-head::before { content: ""; width: 0; height: 0; border-left: 5px solid var(--soft); border-top: 4px solid transparent;
                         border-bottom: 4px solid transparent; transition: transform 0.15s; }
.np-group.is-open > .np-group-head::before { transform: rotate(90deg); }
.np-group-body { padding: 4px 0 2px; }
.np-group:not(.is-open) > .np-group-body { display: none; }
.np-note { padding: 3px 6px 3px 174px; color: var(--faint); font-size: 12px; line-height: 1.5; }
.np.is-finding .np-tabs { opacity: 0.45; pointer-events: none; }
.np.is-finding .np-page[data-title]::before { content: attr(data-title); display: block; margin: 10px 4px 4px; font: 700 11px var(--font);
                                               letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.np.is-finding .np-help, .np.is-finding .np-note { display: none; }
.np-row.is-out, .np-group.is-out, .np-page.is-out { display: none; }
.np-none { margin: 0; padding: 16px; color: var(--soft); }
.np-inspect { position: sticky; top: 140px; padding: 18px 18px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.np-inspect-empty { margin: 0; color: var(--soft); font-size: 0.93rem; }
.np-inspect .where { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin: 0 0 6px; }
.np-inspect h3 { font-size: 1.1rem; margin: 0 0 8px; }
.np-inspect .heads { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.np-inspect dd { margin: 0; }
.np-inspect dd p { color: var(--soft); font-size: 0.92rem; margin: 0 0 10px; }
.np-inspect .ref-meta { display: grid; gap: 4px; }
.np-inspect .more { font-size: 0.85rem; }
@media (max-width: 1080px) {
  .np-wrap { grid-template-columns: 1fr; }
  .np-inspect { position: static; }
  .np-inspect.is-inline { margin: 6px 0 10px; border-color: rgba(240, 168, 64, 0.45); }
}
@media (max-width: 560px) {
  .np-row { grid-template-columns: 110px minmax(0, 1fr); }
  .np-button .np-ctl, .np-check .np-ctl { padding-left: 0; }
  .np-note { padding-left: 6px; }
  .np-find { flex-basis: 130px; }
}

/* every control, to read */
.ref-tab { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: 12px; }
.ref-tab > summary { display: flex; justify-content: space-between; gap: 12px; padding: 16px 52px 16px 20px; cursor: pointer; list-style: none;
                     font-weight: 700; position: relative; }
.ref-tab > summary::-webkit-details-marker { display: none; }
.ref-tab > summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
                            border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: rotate(45deg); transition: transform 0.2s; }
.ref-tab[open] > summary::after { transform: rotate(225deg); margin-top: -1px; }
.ref-tab > summary .faint { font-weight: 500; font-size: 0.88rem; }
.ref-intro { margin: -4px 20px 8px; color: var(--soft); font-size: 0.95rem; }
.ref-section { margin: 18px 20px 0; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.ref-list { margin: 0; padding: 0 20px 8px; }
.ref { padding: 14px 0; border-top: 1px solid var(--line); scroll-margin-top: 140px; }
.ref-section + .ref-list > .ref:first-child { border-top: 0; }
.ref:target { background: linear-gradient(90deg, rgba(240, 168, 64, 0.08), transparent 70%); }
.ref dt { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.ref-label { color: var(--text); font-weight: 600; }
.ref-label:hover { color: var(--accent-hot); }
.chip { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--soft);
        background: var(--well); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.ref-name { font-size: 0.78rem; color: var(--faint); background: transparent; border: 0; padding: 0; }
.ref dd { margin: 6px 0 0; }
.ref dd p { margin: 0 0 6px; color: var(--soft); font-size: 0.94rem; }
.ref-note { padding-left: 12px; border-left: 2px solid rgba(240, 168, 64, 0.6); }
.ref-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.86rem; color: var(--faint) !important; }
.ref-meta code { font-size: 0.8rem; }

/* tips, notes, related, the pager */
.dsec .ticks { margin-top: 0; max-width: 860px; }
.dsec .ticks li { color: var(--soft); }
.good { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 860px; }
.good li { position: relative; padding: 12px 16px 12px 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); color: var(--soft); }
.good li::before { content: "i"; position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
                   font: 700 0.75rem/1 var(--font); color: var(--accent-ink); background: var(--accent); }
.rel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 760px) { .rel { grid-template-columns: 1fr; } }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { display: grid; gap: 2px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); max-width: 48%; }
.pager a:hover { border-color: rgba(240, 168, 64, 0.45); color: var(--text); }
.pager .next { text-align: right; margin-left: auto; }
.pager .faint { font-size: 0.8rem; }
.docs-help { margin-top: 28px; font-size: 0.9rem; }
.copy-node.is-done { border-color: var(--good); color: var(--good); }

/* guides */
.guide { margin-top: 28px; }
.guide h2 { scroll-margin-top: 96px; }
.guide .note { max-width: 820px; }

/* controls Nuke shows only in another mode, and custom widgets */
.np-row.np-cond { opacity: 0.5; }
.np-row.np-cond .np-label:not(:empty)::after, .np-cond .w-check-label::after { content: " *"; color: var(--accent); }
.chip-cond { color: var(--accent); border-color: rgba(240, 168, 64, 0.4); }
.np-custom .np-ctl { grid-column: 1 / -1; padding-left: 0; }
.w-custom { display: block; width: 100%; padding: 14px; border-radius: 6px; border: 1px dashed #3a3e4c; background: #15161b;
            color: var(--soft); font-size: 12.5px; text-align: center; }

/* controls on one line, as Nuke lays out toolbars and button rows */
.np-sub { display: inline-flex; align-items: center; gap: 6px; padding: 2px 3px; border-radius: 5px; cursor: pointer; outline: none; }
.np-sub:hover { background: rgba(255, 255, 255, 0.05); }
.np-sub:focus-visible { box-shadow: 0 0 0 1px var(--accent); }
.np-sub.is-sel { background: rgba(240, 168, 64, 0.16); box-shadow: inset 0 0 0 1px rgba(240, 168, 64, 0.5); }
.np-sublabel { color: #c3c7d1; margin-left: 4px; }
.np-line .np-ctl { gap: 4px 6px; }
