/* AI 供應鏈月營收。沿用 styles.css 的色彩 token；本站只有深色主題（color-scheme: dark）。
   圖表由伺服器端輸出 inline SVG，顏色寫在這裡以便之後統一調整。 */
:root {
  --rev-pos: var(--gold-soft);
  --rev-neg: #d08a7a;
}

.rev-section,
.rev-source,
.rev-teaser {
  min-width: 0;
}

.rev-muted,
.rev-note-hidden,
.rev-unit,
.rev-code,
.rev-figure figcaption {
  color: rgba(233, 221, 197, 0.68);
  font-size: 0.86rem;
  line-height: 1.7;
}

.rev-figure {
  margin: 14px 0 0;
  min-width: 0;
  color: var(--paper-warm);
}

.rev-chart {
  display: block;
  width: 100%;
  max-width: 40rem;
  height: auto;
  overflow: visible;
  font-family: var(--font-body);
}

.rev-chart .rev-pos {
  fill: var(--rev-pos);
}

.rev-chart .rev-neg {
  fill: var(--rev-neg);
}

.rev-chart .rev-axis {
  stroke: var(--paper-warm);
}

.rev-chart .rev-axis-label {
  fill: var(--mist-gray);
}

.rev-figure figcaption {
  max-width: 44rem;
  margin-top: 8px;
}

.rev-table-wrap {
  margin: 18px 0 0;
  overflow-x: auto;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-soft);
  -webkit-overflow-scrolling: touch;
}

.rev-table-wrap:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

.rev-table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.6;
}

.rev-table th,
.rev-table td {
  padding: 0.6rem 0.9rem 0.6rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

.rev-table tbody tr:last-child th,
.rev-table tbody tr:last-child td {
  border-bottom: 0;
}

.rev-table thead th {
  color: var(--mist-gray);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.rev-table tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.rev-table td {
  color: rgba(233, 221, 197, 0.88);
}

.rev-table .rev-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rev-table .rev-num:last-child {
  padding-right: 0;
}

.rev-unit,
.rev-code {
  display: block;
  font-weight: 400;
  letter-spacing: 0;
}

.rev-table .rev-pos-text {
  color: var(--rev-pos);
}

.rev-table .rev-neg-text {
  color: var(--rev-neg);
}

.rev-table .rev-missing {
  color: var(--mist-gray);
}

.rev-notes ul {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
  padding-left: 1.25rem;
}

.rev-notes li {
  max-width: 72ch;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.rev-notes h3 {
  margin: 20px 0 4px;
  font-family: var(--font-display);
  font-weight: 600;
}

.rev-teaser ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 12px;
  padding-left: 1.25rem;
}

.rev-teaser a {
  border-bottom: 1px solid var(--line-strong);
  color: var(--paper-warm);
}

.rev-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .rev-table {
    font-size: 0.86rem;
  }
}
