:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --accent: #059669;
  --accent-soft: #d1fae5;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
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.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
  background: #020617;
  color: #cbd5e1;
  font-size: 0.78rem;
  padding: 0.45rem 1rem;
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar a { color: #34d399; 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: 1180px;
  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.55rem;
  font-weight: 800;
  font-size: 1.18rem;
  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, #0f172a, #2563eb);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
}
.main-nav { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.main-nav a {
  padding: 0.42rem 0.72rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.main-nav a:hover, .main-nav a.active { background: #eff6ff; color: var(--primary); }
.container { max-width: 1180px; margin: 0 auto; padding: 2rem 1.25rem 3.5rem; }
.hero {
  background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e3a8a 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.25rem;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.18);
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding: 1.75rem; } }
.badge-pill {
  display: inline-block;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #a7f3d0;
  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.1rem; line-height: 1.2; letter-spacing: -0.02em; }
.hero .lead { color: #cbd5e1; font-size: 1.02rem; margin: 0 0 1.35rem; }
.search-bar { display: flex; gap: 0.5rem; max-width: 540px; }
.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: #047857; }
.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: #eff6ff; }
.stat-panel {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 1.35rem;
}
.stat-panel h3 { margin: 0 0 1rem; font-size: 0.92rem; color: #93c5fd; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.stat-box { background: rgba(2, 6, 23, 0.45); 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; }
.filter-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.filter-pill {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}
.filter-pill.active, .filter-pill:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.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: #eff6ff; padding: 0.22rem 0.6rem; border-radius: 999px; }
.score-pill { font-size: 0.75rem; font-weight: 800; color: #047857; 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;
}
.tco-widget {
  background: var(--surface);
  border: 2px solid #bfdbfe;
  border-radius: 16px;
  padding: 1.75rem;
  margin: 2rem 0;
  box-shadow: 0 6px 22px rgba(29, 78, 216, 0.07);
}
.tco-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 1rem; margin: 1.1rem 0 1.25rem; }
.tco-field label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--muted); margin-bottom: 0.35rem; }
.tco-field input { width: 100%; padding: 0.62rem 0.75rem; border-radius: 8px; border: 1.5px solid var(--border); font-size: 0.95rem; }
.tco-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 0.9rem; margin-top: 1rem; }
.tco-metric { background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 0.95rem; }
.tco-metric .val { font-size: 1.35rem; font-weight: 800; color: var(--primary); }
.tco-metric .lbl { font-size: 0.78rem; color: var(--muted); }
.article-wrap {
  max-width: 860px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.35rem;
  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.95rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 1.15rem 0 1.5rem;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.92rem;
  flex-shrink: 0;
}
.takeaways-box {
  background: #eff6ff;
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 1.15rem 1.35rem;
  margin: 1.25rem 0 1.5rem;
}
.takeaways-box h2 { margin: 0 0 0.6rem !important; font-size: 0.98rem !important; text-transform: uppercase; color: var(--primary); }
.takeaways-box ul { margin: 0; padding-left: 1.25rem; }
.takeaways-box li { margin-bottom: 0.45rem; font-size: 0.93rem; }
.toc-box { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.25rem; margin: 1.25rem 0 1.5rem; }
.toc-box summary { font-weight: 700; font-size: 0.92rem; cursor: pointer; }
.toc-box ol { margin: 0.6rem 0 0; padding-left: 1.35rem; font-size: 0.88rem; }
.metrics-box { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 1.2rem 1.35rem; 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, #1d4ed8, #059669); border-radius: 999px; }
.table-scroll { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border); border-radius: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; background: #fff; }
.data-table caption { text-align: left; font-weight: 700; font-size: 0.92rem; color: var(--primary); padding: 0.85rem 1rem; background: #f8fafc; border-bottom: 1px solid var(--border); }
.data-table th, .data-table td { padding: 0.75rem 0.95rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.data-table th { background: #f1f5f9; font-weight: 700; font-size: 0.81rem; text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: none; }
.prose h2 { margin-top: 1.9rem; margin-bottom: 0.65rem; font-size: 1.3rem; color: var(--ink); }
.prose p { margin: 0 0 1.05rem; color: #1e293b; font-size: 0.98rem; }
.prose ul { padding-left: 1.35rem; margin-bottom: 1.1rem; }
.prose li { margin-bottom: 0.45rem; }
.faq-list { margin: 1.15rem 0 1.75rem; display: grid; gap: 0.85rem; }
.faq-item { background: #f8fafc; border: 1px solid var(--border); border-radius: 11px; padding: 1rem 1.2rem; }
.faq-item h3 { margin: 0 0 0.35rem !important; font-size: 0.99rem !important; color: var(--ink) !important; }
.faq-item p { margin: 0 !important; font-size: 0.91rem !important; color: var(--muted) !important; }
.author-bio-card {
  margin-top: 2.2rem;
  padding: 1.35rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.disclosure-banner {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 0.85rem 1.05rem;
  font-size: 0.84rem;
  color: #065f46;
  margin-bottom: 1.4rem;
}
.site-footer { background: #020617; color: #e2e8f0; padding: 3rem 1.25rem 1.75rem; margin-top: 3rem; }
.footer-grid { max-width: 1180px; 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.9rem; 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: #60a5fa; }
.footer-bottom {
  max-width: 1180px;
  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;
}
.consent-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: #020617;
  color: #e2e8f0;
  border-top: 2px solid #2563eb;
  padding: 0.9rem 1.25rem;
  box-shadow: 0 -6px 24px rgba(2, 6, 23, 0.3);
}
.consent-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.84rem; }
.consent-actions { display: flex; gap: 0.6rem; }
.consent-btn-sec { background: transparent; color: #cbd5e1; border: 1px solid #475569; padding: 0.48rem 0.9rem; border-radius: 8px; font-weight: 600; font-size: 0.82rem; cursor: pointer; }
.consent-btn-pri { background: #2563eb; color: #fff; border: none; padding: 0.5rem 1rem; border-radius: 8px; font-weight: 700; font-size: 0.82rem; cursor: pointer; }
