/* ── Taiwan Pages CSS Patch ── */
.kpi-row, .kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.kpi-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px 18px;
  border: 0.5px solid #ccd9e8;
  border-left: 3px solid #8ba3c0;
}
.kpi-card.green  { border-left-color: #16a34a; }
.kpi-card.orange { border-left-color: #d97706; }
.kpi-card.red    { border-left-color: #dc2626; }
.kpi-card.blue   { border-left-color: #2563eb; }
.kpi-label {
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8ba3c0;
  margin-bottom: 6px;
}
.kpi-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 600;
  color: #1e3a5f;
  line-height: 1.2;
  margin-bottom: 4px;
}
.kpi-unit { font-family: Inter, sans-serif; font-size: 11px; color: #8ba3c0; }
.kpi-delta { font-family: Inter, sans-serif; font-size: 11px; color: #8ba3c0; }
.kpi-delta.positive { color: #16a34a; }
.kpi-delta.negative { color: #dc2626; }
.kpi-badge {
  display: inline-block;
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 4px;
}
.kpi-badge.badge-green  { background: #dcfce7; color: #16a34a; }
.kpi-badge.badge-orange { background: #fef3c7; color: #d97706; }
.kpi-badge.badge-red    { background: #fee2e2; color: #dc2626; }
.kpi-badge.badge-blue   { background: #dbeafe; color: #2563eb; }
.chart-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.chart-row.single { grid-template-columns: 1fr; }
.chart-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  border: 0.5px solid #ccd9e8;
}
.chart-card.full { grid-column: 1 / -1; }
.chart-card h3 {
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 4px;
}
.chart-subtitle {
  font-family: Inter, sans-serif;
  font-size: 11px;
  color: #8ba3c0;
  margin-bottom: 10px;
}
main.dashboard {
  padding: 20px;
  max-width: 1280px;
  margin: 0 auto;
}
.page-title {
  font-family: Inter, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 20px;
}
.page-header {
  background: #fff;
  border-bottom: 2px solid #1e3a5f;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.page-header h1 {
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 4px;
}
.subtitle, .updated {
  font-family: Inter, sans-serif;
  font-size: 11px;
  color: #8ba3c0;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
}
.section-heading, .section-label {
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1e3a5f;
  border-bottom: 2px solid #1e3a5f;
  padding-bottom: 8px;
  margin: 24px 0 14px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.summary-card {
  background: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  border: 0.5px solid #ccd9e8;
  border-left: 3px solid #8ba3c0;
}
.summary-card.orange-left { border-left-color: #d97706; }
.summary-card.red-left    { border-left-color: #dc2626; }
.summary-card h4 {
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 6px;
}
.summary-card p {
  font-family: Inter, sans-serif;
  font-size: 12px;
  color: #4a6080;
  line-height: 1.6;
}
.insight-box {
  background: #f4f7fc;
  border-left: 3px solid #1e3a5f;
  padding: 10px 14px;
  border-radius: 0 4px 4px 0;
  font-family: Inter, sans-serif;
  font-size: 12px;
  color: #1e3a5f;
  line-height: 1.7;
  margin-top: 10px;
}
.micro-card {
  background: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  border: 0.5px solid #ccd9e8;
  font-family: Inter, sans-serif;
  font-size: 12px;
  color: #1e3a5f;
}
.radar-wrap {
  position: relative;
  height: 320px;
  max-width: 480px;
  margin: 0 auto;
}
.timeline { margin: 16px 0; }
.timeline-item {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #e8f0f9;
  align-items: flex-start;
}
.timeline-item:last-child { border-bottom: none; }
.tl-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #8ba3c0;
  min-width: 70px;
  padding-top: 2px;
}
.tl-text {
  font-family: Inter, sans-serif;
  font-size: 12px;
  color: #1e3a5f;
  line-height: 1.6;
}
.timeline-item.green .tl-date { color: #16a34a; }
.timeline-item.red .tl-date   { color: #dc2626; }
.timeline-item.gray .tl-date  { color: #8ba3c0; }
.source-footer {
  font-family: Inter, sans-serif;
  font-size: 10px;
  color: #8ba3c0;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid #e8f0f9;
}
@media (max-width: 900px) {
  .chart-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .kpi-row, .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  main.dashboard { padding: 12px; }
}
@media (max-width: 380px) {
  .kpi-row, .kpi-grid { grid-template-columns: 1fr; }
}
