:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --primary: #312e81;
  --primary-hover: #1e1b4b;
  --accent: #0d9488;
  --accent-soft: #ccfbf1;
  --warm: #d97706;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.78rem;
  padding: 0.45rem 1rem;
}
.topbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar a { color: #5eead4; font-weight: 600; }
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none !important;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #312e81, #0d9488);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.main-nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.main-nav a {
  padding: 0.42rem 0.72rem;
  border-radius: 8px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.main-nav a:hover, .main-nav a.active {
  background: #eef2ff;
  color: var(--primary);
}
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}
.hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #0f766e 100%);
  color: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
  box-shadow: 0 12px 30px rgba(30, 27, 75, 0.16);
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 1.75rem; }
}
.badge-verified {
  display: inline-block;
  background: rgba(20, 184, 166, 0.22);
  border: 1px solid rgba(94, 234, 212, 0.45);
  color: #ccfbf1;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.hero h1 {
  margin: 0 0 0.85rem;
  font-size: 2.15rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.hero .lead {
  color: #e0e7ff;
  font-size: 1.02rem;
  margin: 0 0 1.35rem;
}
.search-bar {
  display: flex;
  gap: 0.5rem;
  max-width: 520px;
}
.search-bar input {
  flex: 1;
  padding: 0.7rem 0.95rem;
  border-radius: 9px;
  border: none;
  font-size: 0.92rem;
  color: var(--ink);
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  border: none;
  padding: 0.68rem 1.15rem;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none !important;
}
.btn-primary:hover { background: #0f766e; }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 0.55rem 1rem;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  text-decoration: none !important;
}
.btn-outline:hover { background: #eef2ff; }
.lab-stats {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 1.35rem;
}
.lab-stats h3 { margin: 0 0 1rem; font-size: 0.95rem; color: #ccfbf1; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.stat-box { background: rgba(15, 23, 42, 0.35); border-radius: 10px; padding: 0.85rem; }
.stat-num { font-size: 1.35rem; font-weight: 800; color: #fff; }
.stat-lbl { font-size: 0.78rem; color: #cbd5e1; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 2.2rem 0 1.15rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.55rem;
  flex-wrap: wrap;
}
.section-head h2 { margin: 0; font-size: 1.45rem; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.35rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08); }
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.cat-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  background: #eef2ff;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}
.score-pill {
  font-size: 0.75rem;
  font-weight: 800;
  color: #0f766e;
  background: var(--accent-soft);
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
}
.card h3 { margin: 0 0 0.55rem; font-size: 1.08rem; line-height: 1.35; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--primary); }
.excerpt { color: var(--muted); font-size: 0.9rem; margin: 0 0 1rem; }
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}
.quiz-widget {
  background: var(--surface);
  border: 2px solid #c7d2fe;
  border-radius: 16px;
  padding: 1.75rem;
  margin: 2rem 0;
  box-shadow: 0 6px 22px rgba(49, 46, 129, 0.07);
}
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.quiz-options {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
}
.quiz-opt {
  text-align: left;
  padding: 0.82rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.quiz-opt:hover { border-color: var(--primary); background: #eef2ff; }
.quiz-opt.correct { border-color: #059669; background: #ecfdf5; color: #065f46; font-weight: 700; }
.quiz-opt.wrong { border-color: #dc2626; background: #fef2f2; color: #991b1b; }
.quiz-feedback {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #f1f5f9;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  display: none;
}
.article-wrap {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: var(--shadow);
}
@media (max-width: 680px) { .article-wrap { padding: 1.35rem; } }
.breadcrumb { font-size: 0.84rem; color: var(--muted); margin-bottom: 1rem; }
.author-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 1.15rem 0 1.5rem;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.metrics-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.15rem 1.3rem;
  margin: 1.4rem 0 1.75rem;
}
.metric-row { margin-bottom: 0.85rem; }
.metric-row:last-child { margin-bottom: 0; }
.metric-label { display: flex; justify-content: space-between; font-size: 0.87rem; font-weight: 600; margin-bottom: 0.3rem; }
.bar-bg { height: 9px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #312e81, #0d9488); border-radius: 999px; }
.prose h2 { margin-top: 1.85rem; margin-bottom: 0.65rem; font-size: 1.3rem; color: var(--ink); }
.prose p { margin: 0 0 1.05rem; color: #1e293b; }
.prose ul { padding-left: 1.3rem; margin-bottom: 1.1rem; }
.prose li { margin-bottom: 0.45rem; }
.disclosure-banner {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 10px;
  padding: 0.85rem 1.05rem;
  font-size: 0.84rem;
  color: #115e59;
  margin-bottom: 1.4rem;
}
.newsletter-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.65rem;
  margin-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.newsletter-box h3 { margin: 0 0 0.35rem; }
.newsletter-box p { margin: 0; color: var(--muted); max-width: 560px; font-size: 0.92rem; }
.site-footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 3rem 1.25rem 1.75rem;
  margin-top: 3rem;
}
.footer-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { margin: 0 0 0.75rem; font-size: 0.92rem; color: #fff; text-transform: uppercase; letter-spacing: 0.04em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; font-size: 0.87rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #5eead4; }
.footer-bottom {
  max-width: 1160px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #94a3b8;
}
