﻿.data-page-wrap{max-width:1180px;margin:0 auto;padding:16px 14px;color:#111827;background:#fff}
.data-breadcrumbs{font-size:13px;color:#6b7280;margin:0 0 12px}
.data-breadcrumbs a{color:#2563eb;text-decoration:none}
.data-breadcrumbs a:hover{text-decoration:underline}
.data-page-header h1{margin:0;font-size:38px;line-height:1.08;letter-spacing:-0.02em;color:#111827}
.data-meta-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:10px 0 14px}
.insight-summary{margin:0 0 8px;font-size:15px;line-height:1.55;color:#0f172a;background:#f8fbff;border:1px solid #dbeafe;padding:10px 12px;border-radius:8px}
.last-updated{font-size:14px;color:#4b5563}
.source-badges{display:flex;flex-wrap:wrap;gap:8px}
.source-badge{font-size:12px;font-weight:600;padding:6px 11px;border-radius:999px;background:#eef2ff;color:#1e40af;border:1px solid #c7d2fe}
.freshness-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:700}
.freshness-dot{width:8px;height:8px;border-radius:999px;background:#2563eb;box-shadow:0 0 0 0 rgba(37,99,235,.5);animation:pulseDot 2s infinite}

.dataset-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin:8px 0 14px}
.dataset-tabs{display:flex;flex-wrap:wrap;gap:8px}
.dataset-tab{display:inline-flex;align-items:center;padding:7px 12px;border:1px solid #d1d5db;border-radius:999px;background:#fff;color:#1f2937;font-size:13px;font-weight:600;text-decoration:none}
.dataset-tab.is-active{background:#1a73e8;color:#fff;border-color:#1a73e8}
.dataset-actions{display:flex;gap:8px;flex-wrap:wrap}
.dataset-action{display:inline-flex;align-items:center;padding:8px 12px;border:1px solid #d1d5db;border-radius:8px;background:#fff;color:#111827;font-size:13px;font-weight:600;text-decoration:none}
.dataset-action:hover{border-color:#93c5fd;background:#f8fbff}

.summary-map-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:12px;align-items:start;margin:8px 0 14px}
.highlights-section{margin:0}
.highlights-section h2{margin:0 0 10px;font-size:22px}
.highlights-subtitle{margin:14px 0 8px;font-size:16px;color:#374151}
.highlights-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.highlight-card{border:1px solid #dbe3ee;background:#fff;border-radius:8px;padding:8px 10px}
.highlight-card{transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease}
.highlight-card h3{margin:0;font-size:12px;color:#334155;font-weight:600}
.highlight-card p{margin:4px 0 0;font-size:20px;font-weight:700;color:#111827}
.highlight-card.is-bottom p{color:#7f1d1d}
.highlight-card:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(15,76,129,.10);border-color:#b6c7de}

.data-chart-section,.data-map-section,.data-table-section{margin:14px 0}
.data-chart-section h2,.data-map-section h2,.data-table-section h2{margin:0 0 8px;font-size:36px;line-height:1.05;letter-spacing:-0.02em;color:#1f2937;font-weight:500}
#data-page-chart,#data-page-map{height:420px;border:1px solid #e5e7eb;border-radius:12px;padding:6px;background:#fff}
.data-chart-section,.data-map-section,.data-table-section,.highlights-section{position:relative}
.data-chart-section::before,.data-table-section::before{content:"";position:absolute;left:0;top:-4px;width:64px;height:3px;border-radius:999px;background:linear-gradient(90deg,#0f4c81,#1d70b8);opacity:.85}
.summary-map-layout #data-page-map{height:520px}
.map-scale-note{margin:6px 2px 0;font-size:12px;color:#4b5563}

.table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px}
.table-year-tabs{display:flex;flex-wrap:wrap;gap:6px}
.table-year-tab{display:inline-flex;align-items:center;padding:4px 9px;border:1px solid #cfd8e3;border-radius:4px;background:#f8fafc;color:#1f2937;text-decoration:none;font-size:12px;font-weight:600;line-height:1.2}
.table-year-tab.is-active{background:#0f4c81;border-color:#0f4c81;color:#fff}
.table-controls{display:flex;justify-content:flex-end;margin:0}
#data-table-search{width:100%;max-width:220px;padding:7px 10px;border:1px solid #c7d2df;border-radius:4px;font-size:13px}
#data-table-search:focus{outline:none;border-color:#60a5fa;box-shadow:0 0 0 3px #dbeafe}

.table-scroll-wrap{overflow-x:auto;border:1px solid #cfd8e3;border-radius:6px}
.data-page-table{width:100%;border-collapse:collapse;min-width:760px;background:#fff}
.data-page-table th,.data-page-table td{padding:7px 8px;border-bottom:1px solid #e2e8f0;font-size:13px;white-space:nowrap}
.data-page-table th{position:sticky;top:0;z-index:4;background:#0f4c81;color:#fff;font-weight:700;cursor:pointer;letter-spacing:.02em;text-transform:uppercase;font-size:11px}
.data-page-table th[data-sort-direction="asc"]::after{content:" ▲";font-size:10px}
.data-page-table th[data-sort-direction="desc"]::after{content:" ▼";font-size:10px}
.data-page-table tbody tr:nth-child(odd){background:#fff}
.data-page-table tbody tr:nth-child(even){background:#f8fafc}
.data-page-table tbody tr:hover{background:#eef4fb}
.data-page-table td a{color:#0b4f8a;text-decoration:none;font-weight:600}
.data-page-table td a:hover{text-decoration:underline}

.rank-badge{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:#1d70b8;color:#fff;font-size:11px;font-weight:700}
.data-unavailable{padding:14px;border:1px solid #fecaca;background:#fef2f2;color:#991b1b;border-radius:10px}

.data-analysis-content{margin-top:22px}
.data-sources-section h2{font-size:34px;line-height:1.05;letter-spacing:-0.02em;font-weight:500;margin:16px 0 8px}
.sources-list{padding-left:18px;margin:0}
.sources-list li{margin-bottom:4px;color:#374151}
.movers-section{margin:14px 0}
.movers-section h2{margin:0 0 8px;font-size:26px;color:#1f2937}
.movers-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.mover-card{border:1px solid #dbe3ee;border-radius:8px;background:#fff;padding:8px 10px}
.mover-card h3{margin:0;font-size:12px;color:#334155}
.mover-card p{margin:4px 0 0;font-size:20px;font-weight:800}
.mover-card.is-up p{color:#0f766e}
.mover-card.is-down p{color:#b91c1c}
.verification-section{margin:16px 0 6px;padding:12px;border:1px solid #dbe3ee;border-radius:10px;background:#fafcff}
.verification-section h2{margin:0 0 6px;font-size:22px;color:#1f2937}
.verification-section p{margin:0 0 8px;color:#334155;font-size:14px;line-height:1.5}
.verification-meta{display:flex;flex-wrap:wrap;gap:12px;font-size:13px;color:#475569}

/* Lightweight reveal animation */
.reveal-init{opacity:0;transform:translateY(12px)}
.reveal-in{opacity:1;transform:translateY(0);transition:opacity .45s ease, transform .45s ease}

@keyframes pulseDot{
  0%{box-shadow:0 0 0 0 rgba(37,99,235,.45)}
  70%{box-shadow:0 0 0 7px rgba(37,99,235,0)}
  100%{box-shadow:0 0 0 0 rgba(37,99,235,0)}
}

@media (prefers-reduced-motion: reduce){
  .freshness-dot{animation:none}
  .highlight-card,.reveal-in{transition:none}
  .highlight-card:hover{transform:none;box-shadow:none}
}

@media (max-width:1024px){
  .summary-map-layout{grid-template-columns:1fr}
  .summary-map-layout #data-page-map{height:360px}
  .highlights-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .movers-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:900px){
  .data-page-header h1,.data-chart-section h2,.data-map-section h2,.data-table-section h2,.data-sources-section h2{font-size:30px}
  #data-page-chart,#data-page-map{height:320px}
  .highlights-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .table-toolbar{flex-direction:column;align-items:stretch}
  .table-controls{justify-content:flex-start}
  #data-table-search{max-width:100%}
  .data-page-table th:first-child,.data-page-table td:first-child{position:sticky;left:0;z-index:3;border-right:1px solid #d1d5db}
  .data-page-table th:first-child{z-index:5;background:#0f4c81}
  .data-page-table td:first-child{background:#fff;font-weight:700}
  .data-page-table tbody tr:nth-child(even) td:first-child{background:#f9fafb}
  .data-page-table tbody tr:hover td:first-child{background:#eff6ff}
  .movers-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .highlights-grid{grid-template-columns:1fr}
  .movers-grid{grid-template-columns:1fr}
}
