/* A-List consulting audit theme */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #f7f7f8;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --accent: #0d6efd;
  --accent-soft: #eef4ff;
  --p0: #dc2626;
  --p1: #ea580c;
  --p2: #f59e0b;
  --p3: #16a34a;
  --info: #2563eb;
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}
.back-link:hover { text-decoration: underline; }
header.hero {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  color: white;
  border-radius: 16px;
  padding: 36px 32px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(13,110,253,0.18);
}
header.hero h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
header.hero .subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin: 0 0 16px;
}
header.hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  font-size: 13px;
  opacity: 0.95;
}
header.hero .meta span strong { display: block; opacity: 0.7; font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }

.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 13px;
}
.toc strong { display: block; margin-bottom: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-size: 11px; font-weight: 600; }
.toc ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.toc a { color: var(--text); text-decoration: none; padding: 4px 10px; border-radius: 6px; background: var(--accent-soft); font-weight: 500; }
.toc a:hover { background: var(--accent); color: white; }

section.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
}
section.card h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
section.card h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
}
section.card h3 { font-size: 16px; margin: 20px 0 8px; font-weight: 700; }

.tldr ul, .know ul, .gotchas ul { padding-left: 18px; margin: 0; }
.tldr li, .know li, .gotchas li { margin-bottom: 8px; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; }
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent);
}
.badge.warn { background: #fef3c7; color: #92400e; }
.badge.danger { background: #fee2e2; color: #991b1b; }
.badge.ok { background: #dcfce7; color: #166534; }
.badge.muted { background: #f3f4f6; color: var(--muted); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 8px 0 16px;
}
table th, table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table th {
  background: #f9fafb;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
}
table tr:last-child td { border-bottom: 0; }
table code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: 12px; color: #be123c; }

.findings .finding {
  border-left: 4px solid var(--p3);
  background: #fafafa;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 12px;
}
.findings .finding.p0 { border-left-color: var(--p0); background: #fef2f2; }
.findings .finding.p1 { border-left-color: var(--p1); background: #fff7ed; }
.findings .finding.p2 { border-left-color: var(--p2); background: #fffbeb; }
.findings .finding.p3 { border-left-color: var(--p3); background: #f0fdf4; }
.finding .severity {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  margin-right: 8px;
  letter-spacing: 0.04em;
}
.finding.p0 .severity { background: var(--p0); }
.finding.p1 .severity { background: var(--p1); }
.finding.p2 .severity { background: var(--p2); }
.finding.p3 .severity { background: var(--p3); }
.finding h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.finding p { margin: 4px 0; font-size: 14px; }
.finding .label { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; margin-right: 4px; }
.finding code { background: #1e293b; color: #e2e8f0; padding: 1px 6px; border-radius: 4px; font-size: 12px; }

pre {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0;
}
code { font-family: "SF Mono", Menlo, Monaco, Consolas, monospace; }
.tree {
  background: #f9fafb;
  padding: 16px 20px;
  border-radius: 8px;
  font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
  border: 1px solid var(--border);
  white-space: pre;
  overflow-x: auto;
}

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 8px 0 16px; }
.stat { background: #f9fafb; border-radius: 8px; padding: 12px 14px; }
.stat .n { font-size: 22px; font-weight: 700; }
.stat .l { font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.05em; }

.health-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.health-pill.critical { background: #fee2e2; color: #991b1b; }
.health-pill.warning { background: #fef3c7; color: #92400e; }
.health-pill.ok { background: #dcfce7; color: #166534; }
.health-pill.unknown { background: #f3f4f6; color: var(--muted); }

footer.foot { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
