/* Article 02 · article-specific styling. Uses tokens from vi.css only. */
.fig-title { font-family: var(--f-display); font-size: var(--t-h3); font-weight: 600; margin: 0 0 12px; color: var(--ink-navy); line-height: 1.2; }
.fig.wide, .fig.case { max-width: 52rem; }
.case .data-table th[scope="row"] { text-align: left; font-weight: 600; width: 46%; }
.case .data-table td.amt { text-align: left; }

/* layers chart */
.layers .seg-nogrowth, .sw-nogrowth { fill: var(--slate); }
.layers .seg-analyst { fill: var(--teal); }
.layers .seg-market { fill: var(--gold); }
.layers .seg-label { fill: var(--white); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.layers .seg-market + text, .layers text.seg-label:nth-of-type(3) { fill: var(--ink-navy); }
.layers .mark-line { stroke: var(--ink-navy); stroke-width: 1.5; stroke-dasharray: 3 3; }
.layers .val { fill: var(--ink-navy); font-size: 12.5px; font-weight: 650; paint-order: stroke; stroke: var(--white); stroke-width: 3px; stroke-linejoin: round; }
.layers .cat { fill: var(--ink); font-size: 12.5px; }
.layers rect.seg-nogrowth[width="12"], .layers rect.seg-analyst[width="12"], .layers rect.seg-market[width="12"] { rx: 2; }

/* grids */
.iso-grid th, .iso-grid td { white-space: nowrap; }
.iso-grid td.hit { background: #CFE8EA; color: var(--ink-navy); font-weight: 700; }
.iso-grid td.own { background: #FBF5E8; }
.legend-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--t-xs); color: var(--ink-soft); margin: 10px 0 24px; max-width: none; }
.legend-line .key { width: 14px; height: 14px; border: 1px solid var(--rule-cool); display: inline-block; }
.legend-line .key-hit { background: #CFE8EA; }
.legend-line .key-own { background: #FBF5E8; margin-left: 10px; }

/* gap map */
.gap-map { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); counter-reset: gm; }
.gap-map li { position: relative; border: 1px solid var(--rule); border-top: 3px solid var(--teal); padding: 14px 16px 14px; background: var(--paper); max-width: none; }
.gap-map li:nth-child(4) { border-top-color: var(--brick); }
.gap-map .gm-no { position: absolute; top: 12px; right: 14px; font-family: var(--f-display); font-size: 1.6rem; color: var(--gold-text); line-height: 1; }
.gap-map h4 { margin: 0 0 6px; font-family: var(--f-display); font-size: 1.15rem; color: var(--ink-navy); padding-right: 32px; }
.gap-map p { margin: 0 0 6px; font-size: var(--t-sm); line-height: 1.5; max-width: none; }
.gap-map .gm-q { color: var(--ink); }
.gap-map .gm-s { color: var(--ink-soft); }
@media (min-width: 700px) { .gap-map { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* tool */
.tool-set { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.tool-set legend { font-weight: 700; font-size: var(--t-sm); color: var(--ink-navy); padding: 0 0 8px; letter-spacing: 0.02em; }
.tool-bars .bar-ng { fill: var(--slate); }
.tool-bars .bar-you { fill: var(--teal); }
.tool-bars .bar-px { fill: var(--gold); }
.tool-bars .cat { fill: var(--ink-soft); font-size: 13px; }
.tool-bars .val { fill: var(--ink); font-size: 14px; font-weight: 650; }
@media (min-width: 900px) {
  .tool-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.unit-input input { width: 5.4em; }
.field-row label { flex: 1 1 11rem; }

.fig { max-width: 52rem; }
.tool-col { display: grid; align-content: start; min-width: 0; }
.tool-col .chart-area { border-top: 0; }
.tool-bars { max-width: 460px; }
.layers { max-width: 560px; }

.case .data-table, .case .data-table td, .case .data-table th { white-space: normal; min-width: 0; }
.case .data-table { width: 100%; }
@media (max-width: 520px) { .case .data-table th[scope="row"] { width: 42%; } }
