:root {
  color-scheme: light dark;
  --bg: #faf9f7;
  --fg: #1a1a1a;
  --muted: #4a4a4a;
  --border: #d8d4ce;
  --accent: #0b5fff;
  --card: #ffffff;
  --tag-bg: #eef2ff;
  --tag-fg: #1e3a8a;
  --max: 42rem;
  --font: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #f2f2f2;
    --muted: #b0b0b0;
    --border: #333;
    --accent: #7aa2ff;
    --card: #1c1c1c;
    --tag-bg: #1e293b;
    --tag-fg: #bfdbfe;
  }
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

header.site-header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
}

header.site-header h1 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 0.35rem;
  font-weight: 650;
}

.lede,
.meta,
.empty {
  color: var(--muted);
}

.lede {
  margin: 0;
  font-size: 1rem;
}

nav.sections {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
}

nav.sections a {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  background: var(--card);
  color: var(--fg);
  font-size: 0.9rem;
}

nav.sections a:hover,
nav.sections a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent);
}

section.listing {
  margin: 2rem 0;
}

section.listing h2 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.report-card {
  display: block;
  padding: 0.9rem 1rem;
  margin: 0 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
  text-decoration: none;
  color: inherit;
}

.report-card:hover {
  border-color: var(--accent);
}

.report-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.report-card .meta {
  font-size: 0.875rem;
  margin: 0 0 0.5rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-fg);
}

.empty {
  font-size: 0.95rem;
  margin: 0;
}

article.report {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

article.report h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

article.report .byline {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}

.toc {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
  padding: 1rem 1.1rem;
  margin: 0 0 1.75rem;
}

.toc h2 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

article.report h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  scroll-margin-top: 1rem;
}

article.report h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
  scroll-margin-top: 1rem;
}

article.report p,
article.report li {
  max-width: 65ch;
}

article.report footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

@media (min-width: 48rem) {
  .wrap,
  article.report {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Tables — financial / snapshot */
.table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 1.25rem;
  -webkit-overflow-scrolling: touch;
}

article.report table,
.wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 28rem;
}

article.report th,
article.report td,
.wrap th,
.wrap td {
  border: 1px solid var(--border);
  padding: 0.45rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

article.report th,
.wrap th {
  background: var(--card);
  font-weight: 600;
}

article.report td.num,
.wrap td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Disclaimer callout */
.disclaimer {
  border: 1px solid var(--border);
  border-left: 4px solid #b45309;
  background: var(--card);
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.disclaimer strong {
  color: var(--fg);
}

.note {
  font-size: 0.875rem;
  color: var(--muted);
}
