:root {
  --bg: #0f1419;
  --surface: #1a222d;
  --text: #e8eaed;
  --muted: #9aa0a6;
  --accent: #3b82f6;
  --border: #2d3748;
  --max: 56rem;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
header, section {
  padding: 2.5rem 1.25rem;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
}
.hero {
  background: linear-gradient(165deg, #1a222d 0%, #0f1419 50%);
  border-bottom: 1px solid var(--border);
}
.tagline {
  color: var(--muted);
  font-size: 1.125rem;
  margin: 0 0 1rem;
}
h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
}
h2 {
  font-size: 1.35rem;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--muted);
  font-weight: 600;
}
main section:nth-child(even) { background: var(--surface); }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
code {
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}
.pill {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 1rem;
}
.card:last-child { margin-bottom: 0; }
.card h3 {
  margin-top: 0;
  color: var(--text);
  font-size: 1rem;
}
/* PDF / print export toolbar */
.export-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.export-bar button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.export-bar button:hover { filter: brightness(1.08); }
.export-bar button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.export-bar .hint-text {
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 46rem;
  line-height: 1.45;
}
.export-bar .hint-text p {
  margin: 0 0 0.45rem;
}
.export-bar .hint-text p:last-child {
  margin-bottom: 0;
}

@media print {
  :root {
    --bg: #ffffff;
    --surface: #fafafa;
    --text: #1a1a1a;
    --muted: #555555;
    --accent: #0b57d0;
    --border: #cccccc;
  }
  .no-print {
    display: none !important;
  }
  body {
    background: #fff;
    color: #1a1a1a;
    font-size: 11pt;
  }
  a {
    color: #0b57d0;
    text-decoration: underline;
  }
  .hero {
    background: #f5f5f5;
    border-bottom: 1px solid #ccc;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .tagline {
    color: #444;
  }
  .pill {
    color: #0b57d0;
  }
  main section:nth-child(even) {
    background: #fafafa;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .card {
    border: 1px solid #ccc;
    background: #fff;
    break-inside: avoid;
  }
  h2 {
    border-bottom-color: #ccc;
  }
  h3 {
    color: #333;
  }
  hr {
    border-top-color: #ccc;
  }
  code {
    background: #eee;
    color: #111;
  }
  header, section {
    padding: 1.25rem 0;
  }
  .wrap {
    max-width: 100%;
    padding: 0 0.5rem;
  }
  @page {
    margin: 1.2cm;
  }
}
