/*
 * base.css — CSS reset, custom properties, base typography, and keyframes.
 * Edit here to change the colour palette or global font settings.
 */

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

:root {
  --bg: #0d0f12; --surface: #161a1f; --surface2: #1e2329;
  --border: rgba(255,255,255,0.07); --border2: rgba(255,255,255,0.12);
  --text: #e8eaed; --muted: #8892a4;
  --accent: #4f9cf9; --accent2: #38d9a9;
  --allow: #38d9a9; --skip: #4f9cf9; --challenge: #ffb74d; --block: #ef9a9a;
  --font-mono: 'DM Mono', monospace; --font-sans: 'DM Sans', sans-serif;
  --report-sticky-offset: 132px;
}

html {
  scroll-padding-top: var(--report-sticky-offset);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  min-height: 100vh;
  line-height: 1.6;
}

@media print {
  :root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface2: #f4f6f8;
    --border: rgba(0,0,0,.16);
    --border2: rgba(0,0,0,.28);
    --text: #121417;
    --muted: #4c5563;
  }

  body {
    background: #ffffff;
    color: #121417;
  }

  header,
  #drop-screen,
  .report-tabs,
  .add-file-btn,
  .print-btn,
  .reset-btn,
  .copy-rule-btn,
  .ip-tag-control {
    display: none !important;
  }

  #report-screen {
    display: block !important;
  }

  main {
    max-width: none;
    padding: 0;
  }

  .panel,
  .action-bar,
  .site-filter {
    break-inside: avoid;
    box-shadow: none;
  }

  .report-tab-hidden {
    display: block !important;
  }
}

/* ── Screen-reader only utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
