/* EasyAudit Documentation – Plain CSS (no SCSS, no theme) */
/* Colors from src/assets/report.css */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #212529;
  background: #fff;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: #142d37;
  color: #fff;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 60px;
}

.site-title {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.5px;
  margin-right: auto;
}

.site-title:hover,
.site-title:visited {
  color: #fff;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: #fff;
}

.site-nav a.nav-cta {
  color: #f0ad4e;
  font-weight: 600;
}

.site-nav a.nav-cta:hover {
  color: #ffc107;
}

/* ── Mobile menu toggle ─────────────────────────────────────── */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 700px) {
  .menu-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #142d37;
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    font-size: 16px;
    padding: 4px 0;
  }
}

/* ── Main content ───────────────────────────────────────────── */
.page-content {
  min-height: calc(100vh - 60px - 80px);
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: #142d37;
  line-height: 1.3;
}

h1 { font-size: 2rem; margin: 0 0 16px; }
h2 {
  font-size: 1.5rem;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #dee2e6;
}
h3 { font-size: 1.25rem; margin: 24px 0 8px; }
h4 { font-size: 1.1rem; margin: 20px 0 8px; }

p { margin: 0 0 16px; }

a {
  color: #0d6efd;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Code ───────────────────────────────────────────────────── */
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875em;
  background: #f8f9fa;
  padding: 2px 6px;
  border-radius: 4px;
}

pre {
  background: #142d37;
  color: #e9ecef;
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  margin: 0 0 16px;
  line-height: 1.5;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 0.85em;
}

/* ── Tables ─────────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 14px;
}

th {
  text-align: left;
  padding: 10px 12px;
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

tr:hover td {
  background: #f8f9fa;
}

/* ── Blockquotes ────────────────────────────────────────────── */
blockquote {
  border-left: 4px solid #0d6efd;
  background: #f8f9fa;
  padding: 12px 20px;
  margin: 0 0 16px;
  border-radius: 0 8px 8px 0;
  color: #6c757d;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* ── Lists ──────────────────────────────────────────────────── */
ul, ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

li {
  margin-bottom: 4px;
}

/* ── Images ─────────────────────────────────────────────────── */
.page-content img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 16px 0;
}

/* ── Horizontal rules ───────────────────────────────────────── */
hr {
  border: none;
  border-top: 1px solid #dee2e6;
  margin: 32px 0;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: #142d37;
  color: #6c757d;
  text-align: center;
  padding: 24px;
  font-size: 13px;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}
