/* Article 12 only. Tokens come from vi.css. */
.tool .fs { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
.tool .fs legend { padding: 0; margin: 0 0 4px; font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; color: var(--ink-navy); }
.tool .fs + .fs { border-top: 1px solid var(--rule-cool); padding-top: 16px; }
.tool select { width: 100%; max-width: 100%; border: 1px solid #9FB0BF; border-radius: var(--radius); background: var(--white); color: var(--ink); font: 600 var(--t-sm)/1.2 var(--f-body); padding: 8px 10px; }
.tool .field-row select { width: 100%; flex: none; height: 44px; }
.results [hidden] { display: none !important; }
.noscript-note { margin: 10px 28px; font-size: var(--t-sm); color: var(--brick); }
.results .bridge-table { width: 100%; font-size: var(--t-sm); background: transparent; color: var(--on-dark); border-collapse: collapse; }
.results .bridge-table th, .results .bridge-table td { background: transparent; color: var(--on-dark); border-bottom: 1px solid rgba(185, 200, 212, 0.25); padding: 6px 6px; text-align: left; vertical-align: top; }
.results .bridge-table thead th { color: var(--on-dark-soft); font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; }
.results .bridge-table td.amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.results .bridge-table td.note { color: var(--on-dark-soft); font-size: var(--t-xs); }
.results .flag { margin: 0; padding: 10px 12px; border-left: 3px solid var(--gold); background: rgba(196, 154, 69, 0.14); color: var(--on-dark); }
.results .flag + .flag { margin-top: 8px; }
.results .flag--double { border-left-color: #D98A6E; background: rgba(156, 79, 54, 0.26); }
.results .flag--ok { border-left-color: #5CC2CC; background: rgba(92, 194, 204, 0.12); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 900px) { .tool-grid .results { position: sticky; top: 64px; align-self: start; max-height: calc(100vh - 80px); overflow-y: auto; } }
@media (max-width: 520px) {
  .results .bridge-table td.note { display: none; }
  .results .bridge-table thead th:nth-child(3) { display: none; }
}
#bridge-workbench.tool { overflow: visible; }
