/* Standalone dark report pages served from static/reports/ (outside Docusaurus routing). */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/reports/inter-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --bg: #1b1b1d;
  --bar: #242526;
  --sheet: #202023;
  --text: #e4e4e7;
  --muted: #8b8b92;
  --accent: #66bf0d;
  --font: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* Minimal top bar matching the docs navbar */
.topbar {
  height: 60px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  background: var(--bar);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  font-size: 0.875rem;
}

.brand img {
  height: 32px;
  width: auto;
}

/* The "sheet" */
.wrap {
  padding: 2.5rem 1rem 3rem;
}

.page {
  width: 100%;
  max-width: 816px; /* 8.5in at 96dpi */
  aspect-ratio: 8.5 / 11; /* letter; grows if content needs more room */
  margin: 0 auto;
  padding: clamp(1.5rem, 8%, 4.5rem);
  display: flex;
  flex-direction: column;
  background: var(--sheet);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.4);
  font-size: clamp(0.9rem, 0.8rem + 0.4vw, 1rem);
  line-height: 1.55;
}

.logo {
  display: block;
  height: 56px;
  width: auto;
  margin: 0 auto 1.25rem;
}

.page h1 {
  margin: 0 0 1.75rem;
  text-align: center;
  font-size: 1.2em;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
}

.body {
  flex: 1 1 auto;
}

.body h2 {
  margin: 1.5em 0 0.2em;
  font-size: 1em;
  font-weight: 700;
  color: #ffffff;
}

.body h2:first-child {
  margin-top: 0;
}

.body p {
  margin: 0 0 1em;
}

.body p:last-child {
  margin-bottom: 0;
}

.body figure {
  margin: 0.75em 0 1.25em;
}

.body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.body a {
  color: var(--accent);
}

.page footer {
  margin-top: auto;
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85em;
  color: var(--muted);
}

.page footer span:nth-child(2) {
  text-align: center;
}

.page footer span:last-child {
  text-align: right;
}

@media print {
  .topbar {
    display: none;
  }

  .wrap {
    padding: 0;
  }

  .page {
    max-width: none;
    aspect-ratio: auto;
    border: 0;
    box-shadow: none;
    background: #ffffff;
    color: #111111;
  }

  .page h1,
  .body h2 {
    color: #000000;
  }

  .page footer {
    color: #666666;
  }
}
