/* Scoped comparison board: the same semantic table becomes mobile theme cards. */
.vc-data-note { padding: .8rem 1rem; border-left: 3px solid var(--link); background: var(--bg-2); border-radius: 0 var(--r) var(--r) 0; }
.vc-data-note p { margin: .25rem 0; font-size: .85rem; }
.vc-periods { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.vc-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-top: 1.25rem; }
.vc-overview > div { display: flex; align-items: baseline; gap: .75rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); }
.vc-overview strong { font-family: var(--mono); font-size: 1.65rem; font-variant-numeric: tabular-nums; }
.vc-overview span { font-size: .8rem; color: var(--ink-dim); }
.vc-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem; padding: 1rem; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--r); margin: 1.2rem 0 .75rem; }
.vc-filters label { display: flex; flex: 1 1 130px; flex-direction: column; gap: .4rem; margin: 0; min-width: 0; font-size: .8rem; }
.vc-filters .vc-query { flex: 2 1 220px; }
.vc-filters input, .vc-filters select { margin: 0; width: 100%; }
.vc-guide { margin-top: .75rem; font-size: .85rem; }
.vc-guide > summary { cursor: pointer; color: var(--link); min-height: 44px; padding: .65rem 0; }
.vc-guide dl { display: grid; grid-template-columns: max-content 1fr; gap: .75rem 1.5rem; background: var(--bg-2); padding: 1rem; border: 1px solid var(--line-strong); border-radius: var(--r); margin: .5rem 0; }
.vc-guide dt { font-weight: 600; color: var(--ink); }
.vc-guide dd { margin: 0; color: var(--ink-dim); line-height: 1.7; }
.vc-results-heading { margin-top: 1.25rem; }
.vc-results-heading p { font-size: .85rem; margin: 0; }
.value-chain-table { table-layout: fixed; }
.value-chain-table th:nth-child(1) { width: 24%; }
.value-chain-table th:nth-child(2), .value-chain-table th:nth-child(3) { width: 25%; }
.value-chain-table th:nth-child(4) { width: 26%; }
.value-chain-table td { padding: 1rem .85rem; vertical-align: top; }
.vc-theme > a { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: var(--ink); font-size: .95rem; font-weight: 600; }
.vc-theme > a span { color: var(--link); }
.vc-theme > a:hover { color: var(--link); }
.vc-metric { margin: .45rem 0 0; color: var(--ink-faint); font-size: .75rem; white-space: normal; line-height: 1.6; }
.vc-risk-heading { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; min-height: 32px; }
.vc-risk-heading strong { font-size: .85rem; }
.vc-share-track { width: 100%; max-width: 170px; height: 4px; border-radius: 4px; background: var(--surface-2); margin-top: .5rem; overflow: hidden; }
.vc-share-track > span { display: block; height: 100%; border-radius: inherit; }
.vc-mapping summary { min-height: 44px; padding: .65rem 0; color: var(--ink-dim); cursor: pointer; font-size: .8rem; }
.vc-mapping summary::marker { color: var(--link); }
.vc-mapping ul { list-style: none; padding: 0; margin: .35rem 0; font-size: .75rem; line-height: 1.7; }
@media (max-width: 760px) {
  .vc-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .vc-overview > div { padding: .75rem; gap: .5rem; }
  .vc-overview strong { font-size: 1.4rem; }
  .vc-overview span { font-size: .75rem; }
  .vc-filters { gap: .75rem; }
  .vc-filters .vc-query { flex-basis: 100%; }
  .vc-filters .filter-actions { width: 100%; }
  .vc-guide dl { grid-template-columns: 1fr; gap: .35rem; }
  .vc-guide dt:not(:first-child) { margin-top: .5rem; }
  .value-chain-table { display: block; width: 100%; overflow: visible; border: 0; background: none; white-space: normal; }
  .value-chain-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .value-chain-table tbody { display: grid; gap: .75rem; }
  .value-chain-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); }
  .value-chain-table tbody td { display: block; border: 0; padding: .75rem; min-width: 0; }
  .value-chain-table .vc-theme { grid-column: 1 / -1; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
  .vc-theme .vc-metric { margin: 0; }
  .value-chain-table .vc-mapping { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: .25rem; padding-bottom: .25rem; }
  .vc-concentration::before { content: attr(data-label); display: block; color: var(--ink-faint); font-size: .75rem; margin-bottom: .6rem; }
  .vc-risk-heading { display: grid; gap: .5rem; justify-items: start; }
}
