/* guides.css — all styles for guide pages. Update here, all pages update. */
* { box-sizing: border-box; }

body {
  margin: 0;
  color: #0D1B2A;
  background: #F7F9FC;
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.guide-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 860px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-left-nav { display: none; }
}

/* ── Left nav ── */
.guide-left-nav { position: sticky; top: 76px; }

.guide-left-nav-section {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}

.guide-left-nav-head {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #5C6E82;
  padding: 10px 14px;
  border-bottom: 1px solid #E2E8F0;
  background: #F8FAFC;
}

.guide-left-nav a {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-bottom: 1px solid #F1F5F9;
  transition: background .1s, color .1s;
}

.guide-left-nav a:last-child { border-bottom: none; }
.guide-left-nav a:hover { background: #EFF6FF; color: #1E3A8A; }
.guide-left-nav a.active { background: #EFF6FF; color: #1E3A8A; font-weight: 700; border-left: 3px solid #2563EB; }

/* ── Main content ── */
.guide-main { min-width: 0; }

.guide-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #94A3B8;
  margin-bottom: 20px;
}

.guide-breadcrumb a { color: #5C6E82; text-decoration: none; }
.guide-breadcrumb a:hover { color: #2563EB; }

/* ── Hero ── */
.guide-hero {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 20px;
}

.guide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EFF6FF;
  color: #1E3A8A;
  border: 1px solid #BFDBFE;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 14px;
}

.guide-h1 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: #0D1B2A;
  line-height: 1.15;
  margin: 0 0 14px;
}

.guide-lead {
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
  margin: 0 0 20px;
  max-width: 680px;
}

.guide-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #94A3B8;
  padding-top: 16px;
  border-top: 1px solid #F1F5F9;
}

/* ── Stats ── */
.guide-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 700px) { .guide-stats { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 16px;
}

.stat-card-num { font-size: 26px; font-weight: 800; letter-spacing: -.04em; color: #0D1B2A; line-height: 1; margin-bottom: 4px; }
.stat-card-label { font-size: 12px; color: #5C6E82; line-height: 1.4; }
.stat-card-source { font-size: 10px; color: #CBD5E1; margin-top: 6px; }

/* ── Content cards ── */
.guide-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 20px;
}

.guide-card h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: #0D1B2A; margin: 0 0 14px; }
.guide-card h3 { font-size: 15px; font-weight: 700; color: #0D1B2A; margin: 20px 0 8px; }
.guide-card h3:first-of-type { margin-top: 0; }
.guide-card p { font-size: 14px; color: #374151; line-height: 1.7; margin: 0 0 12px; }
.guide-card p:last-child { margin-bottom: 0; }

/* ── Findings table ── */
.findings-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 14px; }
.findings-table th { text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #5C6E82; padding: 8px 12px; border-bottom: 2px solid #E2E8F0; }
.findings-table td { padding: 10px 12px; border-bottom: 1px solid #F1F5F9; color: #374151; vertical-align: top; }
.findings-table tr:last-child td { border-bottom: none; }
.findings-table tr:hover td { background: #F8FAFC; }
.sev-badge { display: inline-flex; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.sev-critical { background: #FEE2E2; color: #991B1B; }
.sev-high     { background: #FEF3C7; color: #92400E; }
.sev-medium   { background: #DBEAFE; color: #1D4ED8; }

/* ── Buyer worries ── */
.worry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
@media (max-width: 600px) { .worry-grid { grid-template-columns: 1fr; } }
.worry-card { border: 1px solid #E2E8F0; border-radius: 8px; padding: 14px 16px; background: #F8FAFC; }
.worry-card-q { font-size: 13px; font-weight: 700; color: #0D1B2A; margin-bottom: 6px; }
.worry-card-a { font-size: 13px; color: #5C6E82; line-height: 1.55; }

/* ── Doc categories ── */
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
@media (max-width: 600px) { .doc-grid { grid-template-columns: 1fr; } }
.doc-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid #E2E8F0; border-radius: 8px; background: #fff; text-decoration: none; transition: border-color .12s, background .12s; }
.doc-item:hover { border-color: #BFDBFE; background: #EFF6FF; }
.doc-item-num { font-size: 18px; font-weight: 800; color: #2563EB; min-width: 34px; }
.doc-item-name { font-size: 13px; font-weight: 700; color: #0D1B2A; margin-bottom: 2px; }
.doc-item-desc { font-size: 12px; color: #5C6E82; }

/* ── Callout ── */
.callout { background: #FEF3C7; border: 1px solid #FDE68A; border-radius: 8px; padding: 14px 16px; font-size: 13px; color: #78350F; line-height: 1.55; margin: 16px 0; }
.callout strong { color: #92400E; }

/* ── CTA ── */
.guide-cta { background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%); border-radius: 12px; padding: 32px; text-align: center; margin-bottom: 20px; }
.guide-cta h2 { font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 8px; }
.guide-cta p  { font-size: 14px; color: rgba(255,255,255,.8); margin: 0 0 20px; }
.guide-cta a { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #1E3A8A; font-size: 15px; font-weight: 800; padding: 14px 28px; border-radius: 10px; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.2); transition: transform .12s; }
.guide-cta a:hover { transform: translateY(-1px); }

/* ── ZIP grid ── */
.zip-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; }
@media (max-width: 600px) { .zip-grid { grid-template-columns: repeat(3, 1fr); } }
.zip-link { display: block; text-align: center; padding: 10px 8px; background: #fff; border: 1px solid #E2E8F0; border-radius: 8px; font-size: 13px; font-weight: 700; color: #1E3A8A; text-decoration: none; transition: border-color .12s, background .12s; }
.zip-link:hover { border-color: #BFDBFE; background: #EFF6FF; }
.zip-link small { display: block; font-size: 11px; font-weight: 400; color: #94A3B8; margin-top: 2px; }
