:root {
  color-scheme: light;
  --bg: #f4f7f8;
  --ink: #172126;
  --muted: #637178;
  --panel: #ffffff;
  --line: #d9e1e4;
  --accent: #126c63;
  --accent-2: #8a4b24;
  --good: #147a48;
  --bad: #b13a32;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
}

h2 {
  font-size: 18px;
}

h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.status-pill {
  min-width: 130px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  background: #f7fafb;
}

main {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 24px clamp(14px, 3vw, 32px) 36px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric {
  min-height: 96px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric span,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  font-size: 26px;
  line-height: 1;
}

.panel {
  padding: 18px;
  margin-bottom: 18px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.event-list,
.official-list,
.quote-list,
.research-list {
  display: grid;
  gap: 10px;
}

.event,
.official,
.quote,
.research,
.strategy-box {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.event strong,
.official strong,
.quote strong,
.research strong {
  display: block;
  font-size: 14px;
}

.event p,
.official p,
.quote p,
.research p,
.strategy-box p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.official {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  background: #d9e1e4;
  border: 1px solid var(--line);
}

.avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 800;
}

.research {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(160px, 1fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr);
  gap: 12px;
  align-items: start;
}

.quote-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.quote-price {
  font-size: 20px;
  font-weight: 800;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e7f0ef;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
}

.gain {
  color: var(--good);
}

.loss {
  color: var(--bad);
}

a {
  color: var(--accent-2);
}

footer {
  padding: 18px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 880px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-grid,
  .two-col,
  .research {
    grid-template-columns: 1fr;
  }
}
