:root {
  color-scheme: dark;
  --bg: #050505;
  --surface: #0b0b0b;
  --text: #f4f4f1;
  --muted: #8d8d88;
  --line: #292929;
  --line-strong: #444;
  --good: #8cffb4;
  --max: 1480px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
a { color: inherit; }

.event-topbar {
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 5, 5, .92);
  backdrop-filter: blur(18px);
}
.event-identity { display: flex; align-items: center; gap: 14px; text-decoration: none; font-size: .95rem; letter-spacing: .22em; }
.event-identity img { width: 34px; height: 34px; border-radius: 9px; }
.back-link, .language-link, .editor-link { color: var(--muted); text-decoration: none; font-size: .66rem; letter-spacing: .13em; }
.back-link:hover, .language-link:hover { color: var(--text); }
.event-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.language-link { border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 12px; color: var(--text); }
.editor-link { color: var(--good); }

.event-page { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 64px) 110px; }
.event-hero { min-height: 520px; display: flex; align-items: flex-end; padding: 80px 0 60px; border-bottom: 1px solid var(--line); }
.event-copy { align-self: end; }
.event-kicker, .event-section h2, dt { color: var(--muted); font-size: .69rem; font-weight: 500; letter-spacing: .15em; }
.event-kicker { margin: 0 0 24px; }
h1 { max-width: 1120px; margin: 0; font-size: clamp(3rem, 6.2vw, 6.7rem); font-weight: 420; line-height: .92; letter-spacing: -.058em; }
.event-summary { max-width: 800px; margin: 30px 0 0; color: #bebdb8; font-size: clamp(1.08rem, 1.7vw, 1.42rem); line-height: 1.55; }

.event-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(48px, 8vw, 130px); }
.event-main { min-width: 0; }
.event-section { padding: 48px 0; border-bottom: 1px solid var(--line); }
.event-section h2 { margin: 0 0 24px; }
.event-section > p { max-width: 850px; margin: 0; font-size: 1.12rem; line-height: 1.65; }
.key-points ol { margin: 0; padding: 0; list-style: none; counter-reset: points; }
.key-points li { counter-increment: points; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); font-size: clamp(1.08rem, 1.8vw, 1.35rem); line-height: 1.45; }
.key-points li::before { content: "0" counter(points); color: var(--muted); font-size: .68rem; letter-spacing: .12em; padding-top: 6px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; }
.section-heading span { color: var(--muted); font-size: .8rem; }
.evidence-list { border-top: 1px solid var(--line); }
.evidence-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) 24px; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.evidence-index, .evidence-arrow { color: var(--muted); font-size: .68rem; }
.evidence-arrow { text-align: right; font-size: 1rem; }
.evidence-copy { display: grid; gap: 9px; }
.evidence-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); font-size: .61rem; letter-spacing: .1em; }
.evidence-meta .role { border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 7px; }
.evidence-meta .role-first_party { color: var(--good); border-color: rgba(140,255,180,.38); }
.evidence-copy strong { font-size: 1.08rem; line-height: 1.35; }
.evidence-copy p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.evidence-item:hover strong { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.event-aside { padding-top: 48px; }
.event-aside dl { margin: 0; border-top: 1px solid var(--line); }
.event-aside dl div { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.event-aside dt { font-size: .6rem; }
.event-aside dd { margin: 0; font-size: 1.75rem; font-weight: 420; }
.event-aside dd small { color: var(--muted); font-size: .7rem; }
.event-aside dd.date-value { font-size: .75rem; letter-spacing: .06em; }
.provenance-section { margin-top: 26px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.provenance-section h2 { margin: 0 0 11px; color: var(--muted); font-size: .6rem; font-weight: 500; letter-spacing: .15em; }
.provenance-section strong { display: block; color: var(--good); font-size: .67rem; font-weight: 550; letter-spacing: .08em; line-height: 1.45; }
.provenance-section p { margin: 9px 0 0; color: var(--muted); font-size: .68rem; line-height: 1.55; }
.entity-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 26px; }
.entity-list a { border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 10px; color: #bbb; font-size: .67rem; text-decoration: none; }
.entity-list a:hover { color: var(--text); border-color: var(--text); }

@media (max-width: 900px) {
  .event-topbar { grid-template-columns: 1fr auto; }
  .back-link { display: none; }
  .event-grid { grid-template-columns: 1fr; gap: 0; }
  .event-aside { order: -1; }
}

@media (max-width: 620px) {
  .event-topbar { height: 64px; }
  .event-identity { font-size: .78rem; letter-spacing: .16em; }
  .event-identity img { width: 29px; height: 29px; }
  .editor-link { display: none; }
  .event-hero { min-height: 0; padding: 46px 0 42px; }
  h1 { font-size: clamp(2.7rem, 13vw, 4.4rem); }
  .event-summary { font-size: 1.05rem; }
  .evidence-item { grid-template-columns: 30px minmax(0, 1fr) 18px; gap: 10px; }
}
