/* /commands/ — page styles (shared components live in /style.css) */
.cmd-hero-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.1rem 0 .4rem; }

/* Most-used table */
.top-cmds td:nth-child(2) { white-space: nowrap; }
.top-cmds td:nth-child(3) { white-space: nowrap; color: var(--ink-3); }
.top-cmds .n { font: 600 12px var(--mono); color: var(--ink-3); width: 1%; }

/* Target diagram */
.tg .tg-cmd { font: 500 20px var(--mono); fill: var(--ink-3); }
.tg .tg-big { font: 700 26px var(--mono); fill: var(--ink); }
.tg .tg-sep { font: 700 30px var(--mono); fill: var(--ink-3); }
.tg .tg-chip { stroke-width: 2; }
.tg .tg-chip.tg-s { fill: color-mix(in srgb, var(--c1) 18%, transparent); stroke: var(--c1); }
.tg .tg-chip.tg-w { fill: color-mix(in srgb, var(--c2) 18%, transparent); stroke: var(--c2); }
.tg .tg-chip.tg-p { fill: color-mix(in srgb, var(--c3) 18%, transparent); stroke: var(--c3); }
.tg .tg-card.tg-s { stroke: var(--c1); } .tg .tg-card.tg-w { stroke: var(--c2); } .tg .tg-card.tg-p { stroke: var(--c3); }
.tg .tg-h { font: 700 15px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.tg .tg-h.tg-s { fill: var(--c1); } .tg .tg-h.tg-w { fill: var(--c2); } .tg .tg-h.tg-p { fill: var(--c3); }
.diagram .tg { min-width: 640px; }

/* Token and flags tables */
.tok-table td:first-child, .flag-table td:first-child { white-space: nowrap; }
.alias-table td:nth-child(odd) { width: 1%; white-space: nowrap; }
.alias-table td:nth-child(3) { border-left: 1px solid var(--line); }
.alias-table a { text-decoration: none; font: 14px var(--mono); }

/* Area quick tables */
.area-table td:first-child { white-space: nowrap; }
.area-table td:nth-child(2) { white-space: nowrap; }

/* Explorer */
#all-commands .viz { margin-top: 1rem; }
.filter-count { min-width: 9ch; text-align: right; }
#cmd-explorer .cmd-group > h2 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin-top: 2.2rem; }

@media (max-width: 640px) {
  .top-cmds thead { display: none; }
  .top-cmds tr { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
  .top-cmds td { border: 0; padding: 2px 10px; }
  .top-cmds td:nth-child(1) { grid-row: span 3; }
  .top-cmds td:nth-child(3) { white-space: normal; }
  .top-cmds td:nth-child(2) { white-space: normal; }
  .top-cmds .cmdline { min-width: 0; }
  .top-cmds .cmdline code { white-space: pre-wrap !important; word-break: break-word; }
  .alias-table td { padding: 6px 8px; }
  .alias-table a { font-size: 13px; }
}
