:root {
  --bg: #0b0f1a;
  --surface: #151b2b;
  --surface-elevated: #1c2438;
  --border: rgba(232, 236, 245, 0.1);
  --border-strong: rgba(124, 92, 255, 0.45);
  --text: #e8ecf5;
  --muted: #9aa4b8;
  --primary: #6344e6;
  --primary-hover: #5335d4;
  --accent: #22d3ee;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--primary);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius);
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.prose-layout {
  max-width: 840px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 15, 26, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.nav-link.is-active {
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.site-main {
  flex: 1;
}



/* Typography & Hero */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 16px;
}

h1 {
  font-size: 48px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 28px;
  margin-top: 48px;
}

h3 {
  font-size: 22px;
  margin-top: 32px;
}

p {
  margin: 0 0 16px;
  max-width: 70ch;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.hero-tool-section {
  padding: 32px 0 48px;
}

.hero-compact {
  margin-bottom: 24px;
}

.hero-compact h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 70ch;
  margin-bottom: 0;
}

.page-hero {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.meta-line {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
  margin-bottom: 0;
}

.section-band {
  padding: 48px 0;
}

.section-band-tight {
  padding: 24px 0;
}

.section-alt {
  background: rgba(21, 27, 43, 0.45);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  margin-top: 0;
  margin-bottom: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  text-decoration: none;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface-elevated);
  border-color: var(--border-strong);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text);
}

.btn-link {
  background: none;
  border: none;
  padding: 4px 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-link:hover {
  text-decoration: underline;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* Quick Facts Strip */
.facts-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.fact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.fact-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.fact-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--text);
}

/* Editorial Figures */
.editorial-figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-md);
}

.editorial-figure img {
  width: 100%;
  border-radius: 8px;
}

.editorial-figure figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}



/* Prose & Tables */
.prose-content h2:first-child {
  margin-top: 0;
}

.prose-content ul,
.prose-content ol {
  margin: 0 0 16px;
  padding-left: 24px;
  max-width: 70ch;
}

.prose-content li {
  margin-bottom: 8px;
}

.prose-content strong {
  color: #ffffff;
}

.prose-content blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  background: var(--surface);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
}

.prose-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}

.prose-content thead {
  background: var(--surface-elevated);
}

.prose-content th,
.prose-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.prose-content th {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.prose-content td {
  color: var(--muted);
}

.prose-content td:first-child {
  color: var(--text);
  font-weight: 600;
}

/* 2x2 Guide Grid */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.guide-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  text-decoration: none;
}

.guide-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.guide-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--text);
}

.guide-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
  flex: 1;
}

.guide-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
}

.faq-item summary {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}



/* Engagement & Comments */
.engage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.engage-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-like[data-gf-liked],
.btn-like[aria-pressed="true"] {
  background: rgba(124, 92, 255, 0.2);
  border-color: var(--primary);
  color: #ffffff;
}

.btn-like[data-gf-liked] .like-icon {
  color: var(--accent);
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(232, 236, 245, 0.08);
  font-size: 12px;
}

.share-msg {
  font-size: 14px;
  color: var(--accent);
}

.engage-count {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.comments-heading {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 22px;
}

.comment-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.form-row {
  margin-bottom: 12px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.reply-indicator {
  display: none;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--accent);
}

.comment-form[data-gf-replying] .reply-indicator {
  display: flex;
}

.form-msg {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--accent);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comments-empty-prompt {
  display: none;
  color: var(--muted);
  font-size: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.comment-list[data-gf-empty] .comments-empty-prompt {
  display: block;
}

.comment-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
}

.comment-item[data-gf-owner] {
  border-color: var(--primary);
  background: rgba(124, 92, 255, 0.08);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 14px;
}

.comment-author {
  color: var(--text);
}

.owner-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
}

.comment-time {
  color: var(--muted);
  font-size: 12px;
}

.comment-body {
  margin-bottom: 8px;
  color: var(--text);
}

.reply-to-tag {
  color: var(--accent);
  font-weight: 600;
  margin-right: 6px;
}

.comment-replies {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Footer */
.site-footer {
  margin-top: 64px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: #080b14;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 4px;
  color: var(--text);
}

.footer-tagline {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
}

.footer-disclaimer {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.footer-copy {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    gap: 4px;
  }

  .nav-link {
    font-size: 13px;
    padding: 6px 10px;
  }

  h1,
  .hero-compact h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  .facts-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .engage-actions .btn,
  .form-footer .btn-primary,
  .cta-row .btn {
    width: 100%;
  }
}



.ad-slot-band {
  padding: 20px 0 8px;
}
.ad-slot-inner {
  min-height: 90px;
}