:root {
  --paper: #ffffff;
  --rule: #eeeeee;
  --ink: #111111;
  --muted: #6b6b6b;
  --accent: #111111;
  --on-accent: #ffffff;
  --radius: 0px;
  --page-gutter: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1c1e;
    --rule: #3a3a3c;
    --ink: #f4f4f4;
    --muted: #9c9c9c;
    --accent: #f4f4f4;
    --on-accent: #1c1c1e;
  }
}

@media (min-width: 834px) {
  :root {
    --page-gutter: 48px;
  }
}

@media (min-width: 1024px) {
  :root {
    --page-gutter: 80px;
  }
}

@media (min-width: 1440px) {
  :root {
    --page-gutter: 90px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--muted);
}

.page {
  max-width: calc(1024px + 2 * var(--page-gutter));
  margin-inline: auto;
  padding-block: 2.5rem;
  padding-inline: max(var(--page-gutter), env(safe-area-inset-left))
    max(var(--page-gutter), env(safe-area-inset-right));
}

@media (min-width: 834px) {
  .page {
    padding-block: 4rem;
  }
}

.site-header,
.site-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.site-header {
  margin-bottom: 2rem;
}

.site-footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 12px;
}

.site-header > a {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-kicker {
  color: var(--muted);
  font-size: 12px;
}

.location {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 1.5rem;
}

.button-accent {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 700;
  padding: 0.375rem 0.75rem;
  border: 0;
  border-radius: var(--radius);
  text-decoration: none;
}

.button-accent:hover {
  color: var(--on-accent);
  filter: brightness(0.96);
}

.report-header .site-kicker {
  text-align: right;
}

.report {
  color: var(--ink);
}

.report .doc-title {
  margin-bottom: 1.25rem;
}

.report .doc-title p {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.report .doc-date {
  color: var(--muted);
  font-size: 12px;
  margin: 0.25rem 0 1.75rem;
}

.report h2 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.75rem;
}

.report h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 1.5rem 0 0.5rem;
}

.report p,
.report li {
  margin: 0 0 0.75rem;
}

.report ul {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
}

.report .abstract-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.report .chain {
  margin: 0.75rem 0 1rem;
}

.figure {
  margin: 1.25rem 0 1.5rem;
}

.figure-plot {
  width: 100%;
  min-height: 280px;
}

.figure-caption {
  color: var(--muted);
  font-size: 12px;
  text-align: left;
  margin: 0.5rem 0 0;
}

.report table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 0.25rem;
  font-size: 14px;
}

.report th,
.report td {
  border-bottom: 1px solid var(--rule);
  padding: 0.4rem 0.5rem;
  text-align: left;
  font-weight: 400;
}

.report th {
  font-weight: 500;
  color: var(--ink);
}

.report td:not(:first-child),
.report th:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.report .table-wrap {
  margin: 1.25rem 0 1.5rem;
  overflow-x: auto;
}

.tex[data-display="1"] {
  margin: 1rem 0;
  overflow-x: auto;
}

.status {
  color: var(--muted);
}
