/* NERF Report Stylesheet — used by pandoc HTML/PDF export */

:root {
  --nerf-bg: #0d1117;
  --nerf-fg: #e6edf3;
  --nerf-accent: #58a6ff;
  --nerf-accent2: #f78166;
  --nerf-border: #30363d;
  --nerf-surface: #161b22;
  --nerf-muted: #8b949e;
}

@page {
  size: A4;
  margin: 2cm 2.5cm;

  @top-center {
    content: "NERF Security Report";
    font-size: 9pt;
    color: #8b949e;
  }

  @bottom-center {
    content: "Page " counter(page) " of " counter(pages);
    font-size: 9pt;
    color: #8b949e;
  }
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 11pt;
  line-height: 1.6;
  color: #1f2328;
  max-width: 100%;
}

h1 {
  font-size: 22pt;
  font-weight: 700;
  color: #0d1117;
  border-bottom: 3px solid #0969da;
  padding-bottom: 0.4em;
  margin-top: 1.5em;
  page-break-after: avoid;
}

h2 {
  font-size: 16pt;
  font-weight: 600;
  color: #1f2328;
  border-bottom: 1px solid #d0d7de;
  padding-bottom: 0.3em;
  margin-top: 1.3em;
  page-break-after: avoid;
}

h3 {
  font-size: 13pt;
  font-weight: 600;
  color: #1f2328;
  margin-top: 1em;
  page-break-after: avoid;
}

h4, h5, h6 {
  font-weight: 600;
  color: #1f2328;
  page-break-after: avoid;
}

code {
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.9em;
  background: #f6f8fa;
  padding: 0.15em 0.35em;
  border-radius: 4px;
  border: 1px solid #d0d7de;
}

pre {
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 1em;
  overflow-x: auto;
  font-size: 0.85em;
  line-height: 1.5;
  page-break-inside: avoid;
}

pre code {
  background: none;
  border: none;
  padding: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
  font-size: 0.95em;
  page-break-inside: avoid;
}

th {
  background: #f6f8fa;
  font-weight: 600;
  text-align: left;
  padding: 0.6em 0.8em;
  border: 1px solid #d0d7de;
}

td {
  padding: 0.5em 0.8em;
  border: 1px solid #d0d7de;
  vertical-align: top;
}

tr:nth-child(even) {
  background: #f6f8fa;
}

blockquote {
  border-left: 4px solid #0969da;
  margin: 1em 0;
  padding: 0.5em 1em;
  color: #57606a;
  background: #f6f8fa;
}

a {
  color: #0969da;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

hr {
  border: none;
  border-top: 1px solid #d0d7de;
  margin: 2em 0;
}

ul, ol {
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.3em;
}

/* Severity badges (used as inline code: `Critical`, `High`, etc.) */
img[alt="Critical"], .severity-critical {
  color: #cf222e;
  font-weight: 700;
}

img[alt="High"], .severity-high {
  color: #bc4c00;
  font-weight: 700;
}

img[alt="Medium"], .severity-medium {
  color: #9a6700;
  font-weight: 600;
}

img[alt="Low"], .severity-low {
  color: #0969da;
}

/* Print-specific */
@media print {
  body {
    font-size: 10pt;
  }

  h1 {
    font-size: 18pt;
  }

  h2 {
    font-size: 14pt;
  }

  pre {
    white-space: pre-wrap;
    word-wrap: break-word;
  }
}
