:root {
  --bg: #0b101b;
  --surface: #131b2e;
  --surface-alt: #19233c;
  --border: #263454;
  --text: #e6edf7;
  --muted: #9fb0cc;
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.18);
  --danger: #fb7185;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero {
  background: linear-gradient(160deg, #11192c 0%, #1b162a 100%);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
}

.period {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
}

.intro {
  margin: 0 0 1.5rem;
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.global-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.global-summary div {
  background: rgba(19, 27, 46, 0.8);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.global-summary span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.global-summary strong {
  font-size: 1.35rem;
  color: var(--accent);
}

.download {
  display: inline-block;
  background: var(--accent);
  color: #0b101b;
  font-weight: 700;
  text-decoration: none;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  font-size: 0.92rem;
}

.download:hover {
  filter: brightness(1.08);
}

.zone-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.75rem 0 1rem;
}

.zone-nav a {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.zone-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.reading-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1.5rem;
}

.zone-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.zone-heading h2 {
  margin: 0 0 0.25rem;
  font-size: 1.45rem;
}

.zone-heading p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin: 0 0 1.35rem;
}

.metrics div {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.metrics dt {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.metrics dd {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.metrics dd span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

thead th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(25, 35, 60, 0.5);
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.strong-mag {
  color: var(--danger);
  font-weight: 700;
}

.bar-cell {
  min-width: 190px;
}

.bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.bar {
  display: inline-block;
  height: 0.65rem;
  background: linear-gradient(90deg, var(--accent), #fb7185);
  border-radius: 999px;
  min-width: 4px;
}

.bar-val {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
}

.footer {
  padding: 2rem 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer a {
  color: var(--accent);
}
