/* Article 18 only. Tokens come from vi.css. */
.tool .fs { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.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 .fs.asset { gap: 6px; border-top: 0; padding-top: 0; }
.tool .fs.asset legend { font-family: var(--f-body); font-size: var(--t-sm); font-weight: 600; margin-bottom: 2px; }
.tool .trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tool .mini { display: grid; gap: 4px; min-width: 0; }
.tool .mini label { font-size: var(--t-xs); color: var(--ink-soft); line-height: 1.25; }
.tool .mini input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--rule-cool); border-radius: 6px; padding: 8px 8px; font: 600 1rem/1.2 var(--f-figure); color: var(--ink); background: var(--white); box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.results [hidden] { display: none !important; }
.noscript-note { margin: 10px 28px; font-size: var(--t-sm); color: var(--brick); }
.tool .controls, .tool .results { grid-template-columns: minmax(0, 1fr); }
.tool .results > *, .tool .controls > * { min-width: 0; }
.tool .field-row .unit-input { max-width: 100%; }
.results .table-wrap { background: var(--white); border-radius: var(--radius); padding: 4px 8px; margin-top: 12px; }
.results .pw-table { color: var(--ink); font-size: var(--t-sm); }
.results .pw-table caption { color: var(--ink-navy); font-size: 1rem; padding: 8px 0 4px; text-align: left; }
.results .pw-table th, .results .pw-table td { color: var(--ink); padding: 8px 6px; }
.results .pw-table thead th { color: var(--ink-soft); }
.results .pw-table td { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.results .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 4px; }
.results p#pw-read { margin: 12px 0 0; }
@media (max-width: 380px) { .results .kpis { grid-template-columns: minmax(0, 1fr); } .results .pw-table th, .results .pw-table td { padding: 8px 3px; font-size: 0.8rem; } }
@media (max-width: 520px) { .tool .field-row .unit-input { width: 100%; } .tool .unit-input input { flex: 1 1 auto; width: 100%; } }
.fig svg text.halo { paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.results .pw-table { table-layout: fixed; width: 100%; }
.results .pw-table caption { white-space: normal; }
.results .pw-table thead th { letter-spacing: 0; text-transform: none; font-size: var(--t-xs); white-space: normal; }
.results .pw-table tbody th { width: 40%; white-space: normal; overflow-wrap: normal; }
@media (max-width: 520px) {
  .results .pw-table th, .results .pw-table td { padding: 8px 3px; font-size: 0.8rem; }
  .results .pw-table tbody th { width: 38%; }
}
