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

:root {
  --accent: #f25656;
  --accent-dark: #bd3838;
  --accent-soft: rgba(242, 86, 86, 0.1);
  --border: rgba(255, 255, 255, 0.11);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --text-primary: #fff;
  --text-secondary: rgba(255, 255, 255, 0.76);
  --text-muted: rgba(255, 255, 255, 0.5);
  --focus: #ffd7d7;
  --container: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #080808;
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  margin: 0 auto;
  max-width: var(--container);
  padding: 0 24px;
}

.article-hero {
  background: #0d0606;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(ellipse 70% 100% at 0% 50%, rgba(242, 86, 86, 0.28) 0%, rgba(242, 86, 86, 0.06) 45%, transparent 70%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
  border-bottom: 2px solid rgba(242, 86, 86, 0.25);
  padding: 140px 0 72px;
}

.article-hero .container,
.article-body .container {
  max-width: 840px;
}

.article-breadcrumb {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 8px;
  margin-bottom: 24px;
}

.article-breadcrumb a:hover {
  color: var(--accent);
}

.article-breadcrumb span {
  opacity: 0.72;
}

.article-category {
  background: rgba(242, 86, 86, 0.12);
  border-radius: 999px;
  color: var(--accent);
  display: inline-block;
  font: 800 12px/1.2 "Nunito", sans-serif;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  padding: 6px 14px;
  text-transform: uppercase;
}

.article-hero h1 {
  font: 900 clamp(30px, 5vw, 50px)/1.12 "Nunito", sans-serif;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.article-meta {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 12px 16px;
}

.article-meta .divider {
  background: var(--text-muted);
  border-radius: 50%;
  height: 4px;
  width: 4px;
}

.article-body {
  padding: 56px 0 100px;
}

.back-to-blog {
  align-items: center;
  color: var(--text-secondary);
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  margin-bottom: 36px;
}

.back-to-blog:hover {
  color: #fff;
}

.article-content {
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.article-content h2 {
  color: #fff;
  font: 900 30px/1.22 "Nunito", sans-serif;
  letter-spacing: -0.015em;
  margin: 56px 0 16px;
}

.article-content h3 {
  color: #fff;
  font: 800 21px/1.35 "Nunito", sans-serif;
  margin: 34px 0 12px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 24px;
  padding-left: 26px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-content strong {
  color: #fff;
  font-weight: 750;
}

.answer-box {
  background: linear-gradient(145deg, rgba(242, 86, 86, 0.12), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(242, 86, 86, 0.28);
  border-radius: 18px;
  margin-bottom: 36px;
  padding: 28px;
}

.answer-box p:last-child,
.scope-note p:last-child,
.formula-box p:last-child,
.example-card p:last-child,
.methodology-box p:last-child {
  margin-bottom: 0;
}

.answer-label,
.box-label {
  color: var(--accent);
  display: block;
  font: 850 12px/1.2 "Nunito", sans-serif;
  letter-spacing: 0.09em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.evidence-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 26px 0;
}

.evidence-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 0;
  padding: 20px;
}

.evidence-number {
  color: #fff;
  display: block;
  font: 900 clamp(24px, 4vw, 34px)/1 "Nunito", sans-serif;
  margin-bottom: 8px;
}

.evidence-caption {
  color: var(--text-secondary);
  display: block;
  font-size: 13px;
  line-height: 1.5;
}

.scope-note,
.methodology-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  margin: 26px 0;
  padding: 20px 22px;
}

.scope-note {
  font-size: 15px;
}

.split-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 26px 0;
}

.split-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 0;
  padding: 22px;
}

.split-card-good {
  border-top: 3px solid #56c59b;
}

.split-card-limit {
  border-top: 3px solid var(--accent);
}

.split-card h3 {
  font-size: 19px;
  margin: 0 0 12px;
}

.split-card ul {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 0;
}

.decision-flow {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0;
}

.decision-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 0;
  padding: 22px;
  position: relative;
}

.step-number {
  align-items: center;
  background: var(--accent);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font: 900 14px/1 "Nunito", sans-serif;
  height: 30px;
  justify-content: center;
  margin-bottom: 14px;
  width: 30px;
}

.decision-step h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.decision-step p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.table-wrap {
  border: 1px solid var(--border);
  border-radius: 14px;
  margin: 26px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-content table {
  border-collapse: collapse;
  font-size: 15px;
  min-width: 660px;
  width: 100%;
}

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

.article-content tr:last-child td {
  border-bottom: 0;
}

.article-content th {
  background: var(--surface-strong);
  color: #fff;
  font: 800 14px/1.35 "Nunito", sans-serif;
}

.article-content td {
  color: var(--text-secondary);
}

.article-content td:first-child {
  color: #fff;
  font-weight: 700;
}

.formula-box {
  background: #050505;
  border: 1px solid rgba(242, 86, 86, 0.25);
  border-radius: 14px;
  margin: 26px 0;
  padding: 22px;
}

.formula-box code {
  color: #fff;
  display: block;
  font: 800 clamp(16px, 3vw, 20px)/1.45 "Nunito", sans-serif;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.formula-box p {
  color: var(--text-secondary);
  font-size: 15px;
}

.example-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--border);
  border-radius: 16px;
  margin: 26px 0;
  padding: 24px;
}

.example-card h3 {
  margin-top: 0;
}

.example-copy {
  background: #050505;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 16px;
  padding: 18px 20px;
}

.article-faqs,
.related-articles {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 58px;
  padding-top: 48px;
}

.article-faqs > h2,
.related-articles > h2 {
  color: #fff;
  font: 900 28px/1.3 "Nunito", sans-serif;
  margin-bottom: 28px;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 26px;
  padding-bottom: 26px;
}

.faq-item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-q {
  color: #fff;
  font: 800 18px/1.4 "Nunito", sans-serif;
  margin-bottom: 9px;
}

.faq-a {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

.related-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 132px;
  overflow-wrap: anywhere;
  padding: 20px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.related-card:hover {
  background: rgba(242, 86, 86, 0.05);
  border-color: rgba(242, 86, 86, 0.35);
  transform: translateY(-2px);
}

.related-title {
  color: #fff;
  flex: 1;
  font: 800 15px/1.4 "Nunito", sans-serif;
}

.related-arrow {
  color: var(--text-muted);
  font: 700 13px/1.4 "Nunito", sans-serif;
}

.article-cta {
  background: var(--accent-soft);
  border: 1px solid rgba(242, 86, 86, 0.24);
  border-radius: 18px;
  margin-top: 60px;
  padding: 40px;
  text-align: center;
}

.cta-eyebrow {
  color: var(--accent);
  display: inline-block;
  font: 850 11px/1.2 "Nunito", sans-serif;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.article-cta h3 {
  color: #fff;
  font: 900 25px/1.3 "Nunito", sans-serif;
  margin-bottom: 12px;
}

.article-cta p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
}

.btn-primary {
  align-items: center;
  background: var(--accent-dark);
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font: 800 15px/1.3 "Nunito", sans-serif;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  padding: 12px 26px;
  text-align: center;
  white-space: normal;
}

.btn-primary:hover {
  background: #a92f2f;
}

a:focus-visible,
.table-wrap:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .article-hero {
    padding: 108px 0 50px;
  }

  .article-body {
    padding-top: 44px;
  }

  .article-content {
    font-size: 16px;
  }

  .article-content h2 {
    font-size: 26px;
    margin-top: 48px;
  }

  .evidence-strip,
  .decision-flow,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .evidence-stat {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(92px, auto) 1fr;
  }

  .evidence-number {
    margin-bottom: 0;
  }

  .answer-box,
  .article-cta {
    padding: 26px 20px;
  }
}

@media (max-width: 620px) {
  .container {
    padding: 0 18px;
  }

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

  .article-meta .divider {
    display: none;
  }

  .article-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .related-card {
    transition: none;
  }
}
