:root {
  --report-bg: #f2f4f7;
  --report-surface: #fff;
  --report-ink: #14171c;
  --report-copy: #3f4752;
  --report-muted: #747e8b;
  --report-rule: #e0e4e9;
  --report-blue: #315efb;
  --report-coral: #f05a43;
  --report-section: #171a20;
  --report-section-ink: #fff;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --report-bg: #0e1014;
  --report-surface: #191c22;
  --report-ink: #f6f7f9;
  --report-copy: #c9ced7;
  --report-muted: #929ba8;
  --report-rule: #2b3039;
  --report-blue: #6f8cff;
  --report-coral: #ff765f;
  --report-section: #edf0f5;
  --report-section-ink: #171a20;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --report-bg: #0e1014;
    --report-surface: #191c22;
    --report-ink: #f6f7f9;
    --report-copy: #c9ced7;
    --report-muted: #929ba8;
    --report-rule: #2b3039;
    --report-blue: #6f8cff;
    --report-coral: #ff765f;
    --report-section: #edf0f5;
    --report-section-ink: #171a20;
    color-scheme: dark;
  }
}

html { scroll-behavior: smooth; }

body {
  background: var(--report-bg) !important;
  color: var(--report-ink) !important;
  font: 17px/1.68 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  letter-spacing: 0 !important;
  transition: background-color 180ms ease, color 180ms ease;
}

.page {
  width: 100% !important;
  max-width: 1080px !important;
  min-height: 100vh;
  margin: 0 auto !important;
  padding: 76px 58px 96px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

header.report {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

header.report::before {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--report-coral);
  content: "";
}

header.report .kicker {
  margin: 0 !important;
  color: var(--report-muted) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.doc-title {
  max-width: 800px;
  margin: 28px 0 76px !important;
  color: var(--report-ink) !important;
  font-size: 58px !important;
  font-weight: 800 !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
}

.section {
  margin: 76px 0 18px !important;
  padding: 24px 28px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--report-section) !important;
  color: var(--report-section-ink) !important;
  font-size: 25px !important;
  font-weight: 760 !important;
  line-height: 1.22 !important;
  letter-spacing: 0 !important;
}

.subsection {
  margin: 14px 0 0 !important;
  padding: 25px 28px 10px !important;
  border: 1px solid var(--report-rule) !important;
  border-bottom: 0 !important;
  border-radius: 8px 8px 0 0 !important;
  background: var(--report-surface) !important;
  color: var(--report-ink) !important;
  font-size: 19px !important;
  font-weight: 720 !important;
  line-height: 1.38 !important;
  letter-spacing: 0 !important;
  transition: border-color 160ms ease, transform 160ms ease;
}

.subsection:hover { border-color: color-mix(in srgb, var(--report-blue) 35%, var(--report-rule)); }

.digest {
  margin: 0 0 14px !important;
  padding: 0 28px 24px !important;
  border: 1px solid var(--report-rule) !important;
  border-top: 0 !important;
  border-radius: 0 0 8px 8px !important;
  background: var(--report-surface) !important;
  box-shadow: 0 8px 24px rgba(20, 23, 28, .05);
}

.section + .digest {
  padding-top: 24px !important;
  border-top: 1px solid var(--report-rule) !important;
  border-radius: 8px !important;
}

:root[data-theme="dark"] .digest { box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }

/* digest-inline-citations.html marks itself .inline-citations, so the two digest
   editions stay apart in the reader: its entries carry a coral edge, and the
   header dot turns blue to match the citation chips inside them. */
.page.inline-citations .subsection,
.page.inline-citations .digest {
  border-left: 3px solid var(--report-coral) !important;
}

.page.inline-citations .subsection:hover {
  border-color: color-mix(in srgb, var(--report-blue) 35%, var(--report-rule));
  border-left-color: var(--report-coral);
}

.page.inline-citations header.report::before { background: var(--report-blue); }

.digest p { margin: 0 !important; color: var(--report-copy) !important; }
.digest p + p { margin-top: 18px !important; }
.digest ul, .digest ol { margin: 10px 0 0 !important; padding-left: 24px !important; }
.digest li { margin: 10px 0 !important; padding-left: 4px !important; }
.digest li::marker { color: var(--report-blue) !important; }
.digest table { margin: 16px 0 0 !important; }
.digest td { border-color: var(--report-rule) !important; padding: 11px 13px !important; }
.digest hr { margin: 28px 0 !important; border-color: var(--report-rule) !important; }
.digest h1, .digest h2, .digest h3 {
  margin: 30px 0 12px !important;
  color: var(--report-ink) !important;
  font-size: 16px !important;
  letter-spacing: 0 !important;
}

/* Source line closing an entry: publication date, then the cited hosts. */
.digest p.sources {
  margin: 0 !important;
  color: var(--report-muted) !important;
  font-size: 12px !important;
}

/* The sources continue the entry's last line rather than starting their own. Both
   sides go inline so they share one text flow; without :has() they stay separate. */
.digest p:has(+ p.sources) { display: inline; }
.digest p:has(+ p.sources) + p.sources { display: inline; margin-top: 0 !important; }
.digest p + p.sources { margin-top: 8px !important; }

.digest .sources .date { font-variant-numeric: tabular-nums; }
.digest .sources .source { white-space: nowrap; }

.digest .sources a {
  color: var(--report-blue) !important;
  font-weight: 650 !important;
  text-decoration: none !important;
}

.digest .sources a:hover { text-decoration: underline !important; }

/* Inline citation chips — reports exported before the source line was introduced. */
.citation {
  margin-left: 6px !important;
  color: var(--report-muted) !important;
  font-size: 10px !important;
  white-space: nowrap;
}

.citation a {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 1px 7px;
  border: 1px solid color-mix(in srgb, var(--report-blue) 22%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--report-blue) 9%, transparent);
  color: var(--report-blue) !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  transition: background-color 140ms ease, transform 140ms ease;
}

.citation a:hover {
  background: color-mix(in srgb, var(--report-blue) 16%, transparent);
  transform: translateY(-1px);
}

article.ripple {
  margin: 16px 0 !important;
  padding: 24px 28px !important;
  border: 1px solid var(--report-rule) !important;
  border-radius: 8px !important;
  background: var(--report-surface) !important;
  box-shadow: 0 8px 24px rgba(20, 23, 28, .05);
}

article.ripple h3 { color: var(--report-ink) !important; font-size: 18px !important; }
article.ripple p { color: var(--report-copy) !important; }
article.ripple .meta { color: var(--report-muted) !important; }
article.ripple .meta a { color: var(--report-blue) !important; }
figure img { border-color: var(--report-rule) !important; border-radius: 8px !important; }

footer.report {
  margin-top: 82px !important;
  padding-top: 20px !important;
  border-top: 1px solid var(--report-rule) !important;
  color: var(--report-muted) !important;
  font-size: 11px !important;
  text-align: left !important;
}

mark[data-intsum-search] {
  padding: 1px 0;
  border-radius: 2px;
  background: #ffe58c;
  color: #171a20;
}

mark.intsum-search-current {
  background: #ff9b78;
  outline: 2px solid #b53c27;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media (max-width: 700px) {
  body { font-size: 15px !important; }
  .page { padding: 48px 16px 64px !important; }
  .doc-title { margin-bottom: 56px !important; font-size: 42px !important; }
  .section { margin-top: 60px !important; padding: 20px !important; font-size: 21px !important; }
  .subsection { padding: 21px 20px 9px !important; font-size: 17px !important; }
  .digest { padding: 0 20px 21px !important; }
  .section + .digest { padding-top: 21px !important; }
  .digest p { line-height: 1.65 !important; }
}

@media print {
  :root {
    --report-bg: #fff;
    --report-surface: #fff;
    --report-ink: #111;
    --report-copy: #222;
    --report-rule: #ddd;
    --report-section: #fff;
    --report-section-ink: #111;
  }
  body { background: #fff !important; }
  .page { max-width: none !important; min-height: 0; margin: 0 !important; padding: 8mm 14mm !important; }
  .section { padding: 12px 0 !important; border-bottom: 1px solid #ccc !important; }
  .subsection, .digest, article.ripple { box-shadow: none !important; }
}
