/* California Guides shared stylesheet
   Matches freedmvtest.com California state pages (navy/amber, Inter body / Sora headings).
   Single-file CSS per network convention. */

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  font-size:16px;line-height:1.7;color:#0f172a;background:#f8fafc;
  -webkit-font-smoothing:antialiased
}

/* Topbar — mirrors state index topbar; sticky at top */
.topbar{
  background:#0f2744;color:#fff;padding:0 20px;height:56px;
  display:flex;align-items:center;justify-content:space-between;
  position:sticky;top:0;z-index:200;
  box-shadow:0 1px 2px rgba(0,0,0,.08)
}
.topbar-logo{
  color:#fff;text-decoration:none;font-weight:700;font-size:15px;
  font-family:'Sora','Inter',sans-serif
}
.topbar a.ghost{
  color:#fff;text-decoration:none;font-size:13px;
  padding:8px 14px;border:1px solid rgba(255,255,255,.28);border-radius:6px
}
.topbar a.ghost:hover{background:rgba(255,255,255,.08)}

/* Breadcrumbs — sticky below topbar */
.breadcrumb{
  background:#f4f6f9;border-bottom:1px solid #e2e8f0;
  padding:10px 20px;font-size:13px;color:#64748b;
  position:sticky;top:56px;z-index:150
}
.breadcrumb-inner{max-width:780px;margin:0 auto}
.breadcrumb a{color:#0f2744;text-decoration:none;font-weight:500}
.breadcrumb a:hover{text-decoration:underline}
.breadcrumb .sep{margin:0 8px;color:#cbd5e1}

/* Article layout */
.article{max-width:780px;margin:0 auto;padding:32px 20px 56px}
.article h1{
  font-family:'Sora','Inter',sans-serif;font-size:34px;line-height:1.25;
  color:#0f2744;margin-bottom:12px;font-weight:700;letter-spacing:-.02em
}
.article h2{
  font-family:'Sora','Inter',sans-serif;font-size:24px;line-height:1.3;
  color:#0f2744;margin:36px 0 14px;font-weight:700
}
.article h3{
  font-family:'Sora','Inter',sans-serif;font-size:18px;line-height:1.35;
  color:#0f2744;margin:24px 0 10px;font-weight:600
}
.article p{margin-bottom:14px;color:#334155}
.article ul,.article ol{margin:10px 0 18px 22px;color:#334155}
.article li{margin-bottom:8px}
.article strong{color:#0f2744;font-weight:600}
.article a{color:#1e40af;text-decoration:underline;text-underline-offset:2px}
.article a:hover{color:#1e3a8a}

/* Hero meta line */
.meta{
  font-size:13px;color:#64748b;margin-bottom:28px;
  padding-bottom:14px;border-bottom:1px solid #e2e8f0
}
.meta time{color:#475569;font-weight:500}

/* Callout boxes */
.callout{
  background:#fffbeb;border-left:4px solid #f59e0b;
  padding:16px 18px;margin:20px 0;border-radius:4px;font-size:15px
}
.callout strong{color:#78350f}
.callout-navy{
  background:#eff6ff;border-left-color:#1e40af
}
.callout-navy strong{color:#1e3a8a}
.callout-red{
  background:#fef2f2;border-left-color:#dc2626
}
.callout-red strong{color:#991b1b}

/* Key fact grid */
.fact-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;margin:18px 0 24px
}
.fact{
  background:#fff;border:1px solid #e2e8f0;border-radius:8px;
  padding:14px 16px
}
.fact .k{font-size:12px;color:#64748b;text-transform:uppercase;letter-spacing:.04em;font-weight:600;margin-bottom:4px}
.fact .v{font-size:16px;color:#0f2744;font-weight:600}

/* Download card (for the 50-hour log) */
.download-card{
  background:linear-gradient(135deg,#0f2744 0%,#1e3a8a 100%);
  color:#fff;padding:32px 28px;border-radius:10px;margin:24px 0 32px;
  box-shadow:0 4px 12px rgba(15,39,68,.18);
  text-align:center
}
.download-card h3{font-family:'Sora',sans-serif;font-size:22px;font-weight:800;color:#fff;margin:0 0 8px}
.download-card p{color:rgba(255,255,255,.9);margin-bottom:18px;font-size:14px;max-width:520px;margin-left:auto;margin-right:auto}
.article a.download-btn,.download-btn{
  display:inline-block;background:#f59e0b;color:#0f2744;
  padding:12px 22px;border-radius:6px;text-decoration:none;
  font-weight:700;font-size:15px;font-family:'Sora',sans-serif;
  transition:background .15s ease
}
.article a.download-btn:hover,.download-btn:hover{background:#fbbf24;color:#0f2744;text-decoration:none}

/* Tables */
.article table{
  width:100%;border-collapse:collapse;margin:18px 0;
  font-size:14px;background:#fff;border:1px solid #e2e8f0;border-radius:6px;
  overflow:hidden
}
.article th{
  background:#0f2744;color:#fff;padding:10px 12px;
  text-align:left;font-weight:600;font-family:'Sora',sans-serif;font-size:13px
}
.article td{
  padding:10px 12px;border-top:1px solid #e2e8f0;color:#334155;vertical-align:top
}
.article tr:nth-child(even) td{background:#f8fafc}

/* Q&A block (for most-missed-questions page) */
.qa{
  background:#fff;border:1px solid #e2e8f0;border-radius:8px;
  padding:18px 20px;margin:14px 0
}
.qa .q{
  font-weight:600;color:#0f2744;font-size:16px;margin-bottom:10px;
  font-family:'Sora',sans-serif
}
.qa .opts{margin:10px 0;color:#475569;font-size:14px}
.qa .opts div{padding:4px 0}
.qa .correct{color:#047857;font-weight:600}
.qa .why{
  margin-top:10px;padding-top:10px;border-top:1px solid #f1f5f9;
  font-size:14px;color:#475569
}
.qa .why strong{color:#0f2744}

/* CTA footer block — matches Illinois cta-box (navy gradient + amber button) */
.cta-footer{
  background:linear-gradient(135deg,#0f2744 0%,#1a3d6d 100%);
  color:#fff;border:none;border-radius:10px;
  padding:32px 28px;margin:32px 0;text-align:center
}
.cta-footer h3{
  margin-bottom:8px;font-family:'Sora',sans-serif;
  font-size:22px;font-weight:800;color:#fff
}
.cta-footer p{margin-bottom:18px;color:rgba(255,255,255,.9);font-size:14px;opacity:.95}
.article a.cta-btn,.cta-btn{
  display:inline-block;background:#e8a020;color:#0f2744;
  padding:12px 28px;border-radius:6px;text-decoration:none;
  font-weight:700;font-size:14px;font-family:'Sora',sans-serif;
  letter-spacing:.2px
}
.article a.cta-btn:hover,.cta-btn:hover{background:#f5b235;color:#0f2744;text-decoration:none}

/* Related guides */
.related{margin-top:40px;padding-top:24px;border-top:1px solid #e2e8f0}
.related h3{margin-bottom:12px;color:#0f2744;font-family:'Sora',sans-serif;font-size:16px}
.related a{
  display:block;padding:10px 0;color:#1e40af;text-decoration:none;
  font-size:15px;border-bottom:1px solid #f1f5f9
}
.related a:hover{color:#1e3a8a;text-decoration:underline}

/* Footer — matches guides/index.html (Illinois-style) */
.site-footer{background:#0a1c30;color:rgba(255,255,255,.6);padding:40px 20px 32px;margin-top:40px}
.footer-inner{max-width:880px;margin:0 auto;text-align:center}
.footer-brand{font-family:'Sora',sans-serif;font-size:15px;font-weight:700;color:#fff;margin-bottom:6px}
.footer-desc{font-size:12px;line-height:1.6;max-width:500px;margin:0 auto 16px;color:rgba(255,255,255,.6)}
.footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-bottom:16px}
.footer-links a{text-decoration:none;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:6px;padding:4px 12px;font-size:11px;color:rgba(255,255,255,.6)}
.footer-links a:hover{background:rgba(255,255,255,.12);color:#fff}
.footer-copy{font-size:11px;opacity:.5;color:rgba(255,255,255,.6)}
.footer-legal{margin-top:8px;font-size:11px;color:rgba(255,255,255,.6)}
.footer-legal a{color:rgba(255,255,255,.5);text-decoration:none;margin:0 4px}
.footer-legal a:hover{text-decoration:underline}

/* Mobile */
@media (max-width:640px){
  .article{padding:24px 16px 40px}
  .article h1{font-size:26px}
  .article h2{font-size:20px}
  .topbar{padding:0 16px;height:52px}
  .topbar-logo{font-size:13px}
  .topbar a.ghost{font-size:12px;padding:6px 10px}
  .breadcrumb{top:52px}
}
