@import "tailwindcss";

:root {
  --ink: #eef5ff;
  --muted: #8da0b8;
  --line: rgba(148, 174, 207, 0.17);
  --panel: #101b29;
  --panel-2: #142234;
  --accent: #4f8cff;
  --positive: #ff6978;
  --negative: #45d4b0;
}

* { box-sizing: border-box; }
html { background: #07101a; color-scheme: dark; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 2%, rgba(37, 96, 165, .23), transparent 32rem),
    linear-gradient(180deg, #08121e 0%, #07101a 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
main { width: min(1300px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid rgba(90, 146, 255, .55); color: #a8c7ff;
  font: 700 13px/1 ui-monospace, monospace; letter-spacing: .08em;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: .08em; }
.brand small { margin-top: 5px; color: var(--muted); font: 10px/1 ui-monospace, monospace; letter-spacing: .12em; }
nav { display: flex; gap: 30px; color: var(--muted); font-size: 14px; }
nav a { padding: 31px 0 27px; border-bottom: 2px solid transparent; }
nav a:hover, nav .active { color: white; border-color: var(--accent); }

.hero { display: flex; justify-content: space-between; gap: 40px; padding: 56px 0 36px; }
.eyebrow { margin: 0 0 16px; color: #6fa5ff; font: 700 11px/1.3 ui-monospace, monospace; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(36px, 4.5vw, 60px); line-height: 1; letter-spacing: -.04em; }
.lede { margin: 24px 0 0; color: var(--muted); font-size: 17px; }
.date-panel { min-width: 270px; align-self: end; border-left: 1px solid var(--line); padding: 4px 0 5px 28px; }
.date-panel span, .date-panel small { display: block; color: var(--muted); }
.date-panel span { font-size: 12px; letter-spacing: .1em; }
.date-panel strong { display: block; margin: 10px 0; font: 600 30px/1 ui-monospace, monospace; }
.date-panel small { font-size: 12px; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: rgba(16, 27, 41, .74); }
.metric { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px; padding: 20px 24px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric div span, .metric div small { display: block; }
.metric div span { color: #7ba9ff; font: 700 14px/1 ui-monospace, monospace; }
.metric div small { margin-top: 7px; color: var(--muted); }
.metric strong { font: 600 25px/1 ui-monospace, monospace; }
.metric em { min-width: 70px; text-align: right; font: normal 600 15px/1 ui-monospace, monospace; }
.up { color: var(--positive); }
.down { color: var(--negative); }

.report-browser { padding: 42px 0; }
.report-switcher { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.report-switcher h2 { margin: 0; font-size: 28px; }
.report-tabs { display: grid; grid-template-columns: repeat(3, minmax(128px, 1fr)); gap: 8px; }
.report-tab {
  min-width: 128px; padding: 13px 16px; border: 1px solid var(--line); color: var(--muted);
  background: rgba(16, 27, 41, .72); font: inherit; text-align: left; cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.report-tab:hover { border-color: rgba(117, 164, 255, .5); color: var(--ink); }
.report-tab:focus-visible { outline: 2px solid #8db5ff; outline-offset: 2px; }
.report-tab.active { border-color: rgba(95, 151, 255, .75); color: white; background: rgba(41, 81, 139, .42); }
.report-tab span, .report-tab small { display: block; }
.report-tab span { color: #85afff; font: 700 14px/1 ui-monospace, monospace; letter-spacing: .1em; }
.report-tab small { margin-top: 6px; font-size: 12px; }
.report-panels { width: min(1040px, 100%); margin: 24px auto 0; }
.report-card { overflow: hidden; border: 1px solid var(--line); background: rgba(16, 27, 41, .78); }
.report-card[hidden] { display: none; }
.card-heading, .card-footer { display: flex; justify-content: space-between; align-items: center; }
.card-heading { padding: 23px 26px; border-bottom: 1px solid var(--line); }
.card-heading div { display: flex; align-items: center; gap: 16px; }
.card-index { color: #5f7590; font: 12px/1 ui-monospace, monospace; }
.card-heading h2 { margin: 0; font-size: 19px; }
.card-heading > span { color: #79a8ff; font: 700 13px/1 ui-monospace, monospace; letter-spacing: .1em; }
.image-toolbar { display: none; }
.report-image-scroll { overflow-x: auto; background: #edf2f8; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.report-image { display: block; width: 100%; background: #edf2f8; }
.report-card img { display: block; width: 100%; height: auto; image-rendering: auto; }
.card-footer { padding: 17px 26px; color: var(--muted); font-size: 13px; }
.card-footer a { color: #8db5ff; }
.card-footer > span:last-child { display: flex; gap: 20px; }

.archive-callout { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin: 18px 0 64px; padding: 40px; border: 1px solid var(--line); background: linear-gradient(110deg, rgba(27, 47, 72, .9), rgba(13, 25, 39, .8)); }
.archive-callout h2 { margin: 0; font-size: 30px; }
.archive-callout p:last-child { margin: 14px 0 0; color: var(--muted); }
.button { flex: 0 0 auto; padding: 14px 18px; border: 1px solid rgba(117, 164, 255, .45); color: #b7d1ff; font-size: 14px; }
.button:hover { background: rgba(79, 140, 255, .14); }

footer { display: flex; justify-content: space-between; gap: 25px; padding: 24px 0 42px; border-top: 1px solid var(--line); color: #6f829a; font-size: 12px; }
footer a { color: #8fb8ff; }

.archive-page { min-height: 70vh; padding: 68px 0; }
.archive-page h1 { font-size: clamp(36px, 5vw, 60px); }
.coverage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 36px; border: 1px solid var(--line); background: var(--line); }
.coverage-grid article { padding: 20px; background: #0d1825; }
.coverage-grid strong, .coverage-grid span, .coverage-grid small { display: block; }
.coverage-grid strong { color: #8db5ff; font: 700 13px/1.3 ui-monospace, monospace; }
.coverage-grid span { margin-top: 12px; font: 600 16px/1.2 ui-monospace, monospace; }
.coverage-grid small { margin-top: 7px; color: var(--muted); }
.archive-year { margin-top: 28px; border-top: 1px solid var(--line); }
.archive-year summary { display: flex; justify-content: space-between; align-items: center; padding: 22px 6px; cursor: pointer; list-style: none; }
.archive-year summary::-webkit-details-marker { display: none; }
.archive-year summary strong { font: 600 24px/1 ui-monospace, monospace; }
.archive-year summary span { color: var(--muted); font-size: 13px; }
.archive-list { margin-top: 42px; border-top: 1px solid var(--line); }
.archive-year .archive-list { margin-top: 0; }
.archive-row { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 30px; padding: 25px 6px; border-bottom: 1px solid var(--line); }
.archive-row strong { font: 600 19px/1 ui-monospace, monospace; }
.archive-row span { color: var(--muted); }
.archive-row em { color: #8eb7ff; font-style: normal; }

@media (max-width: 900px) {
  .image-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 14px; border-bottom: 1px solid var(--line); color: #6f829a; background: #0d1723; font-size: 12px; }
  .image-toolbar button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(117, 164, 255, .42); color: #a9c7ff; background: rgba(79, 140, 255, .1); font: inherit; cursor: pointer; }
  .image-toolbar button:focus-visible { outline: 2px solid #8db5ff; outline-offset: 2px; }
  .report-image { width: 1100px; max-width: none; }
  .report-image-scroll.fit .report-image { width: 100%; }
}

@media (max-width: 760px) {
  main { width: min(100% - 26px, 1500px); }
  .site-header { align-items: flex-start; padding: 18px 0; }
  .brand small { display: none; }
  nav { gap: 18px; }
  nav a { padding: 10px 0; }
  .hero { display: block; padding: 50px 0 32px; }
  .lede { line-height: 1.7; }
  .date-panel { margin-top: 34px; padding-left: 18px; }
  .metrics { grid-template-columns: 1fr; }
  .metric, .metric:last-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .report-switcher { display: block; }
  .report-tabs { margin-top: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report-tab { min-width: 0; padding: 12px 10px; }
  .report-tab small { font-size: 11px; white-space: nowrap; }
  .report-panels { margin-top: 16px; }
  .card-heading, .card-footer { padding: 18px; }
  .archive-callout { display: block; padding: 28px; }
  .archive-callout .button { display: inline-block; margin-top: 26px; }
  footer { display: block; line-height: 1.8; }
  footer span { display: block; }
  .archive-row { grid-template-columns: 1fr auto; }
  .archive-row span { grid-column: 1 / -1; grid-row: 2; }
  .coverage-grid { grid-template-columns: 1fr; }
}
