/* Light background override for article pages */
body.article {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
}

body.article .nav {
  background: rgba(11, 15, 26, 0.95);
}


/* Article page layout */

.article-page {
  min-height: 100vh;
  padding-top: 64px;
}

.article-hero {
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: #0b0f1a;
}

.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.85;
}

.article-container {
  max-width: 740px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

/* Back link */
.article-back {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  margin-bottom: 32px;
  letter-spacing: 0.01em;
  transition: opacity 0.15s ease;
}

.article-back:hover {
  opacity: 0.75;
}

/* Article header */
.article-header {
  margin-bottom: 48px;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 32px;
}

.article-title-main {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-text-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.article-byline {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Body text */
.article-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text-mid);
}

.article-body p {
  margin: 0 0 1.6em;
}

.article-body p:last-child {
  margin-bottom: 0;
}

/* Formula block */
.article-formula {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2.5em 0;
  padding: 32px 40px;
  background: #f1f5f9;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
}

.formula-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--color-text-dark);
  letter-spacing: 0.02em;
}

.formula-text sup {
  font-size: 0.65em;
  vertical-align: super;
  line-height: 0;
}

/* Bulleted list */
.article-list {
  margin: 0 0 1.6em 1.25em;
  padding: 0;
}

.article-list li {
  margin-bottom: 0.6em;
  color: var(--color-text-mid);
  line-height: 1.7;
}

/* Closing callout block */
.article-callout {
  margin: 2.5em 0 0;
  padding: 32px 40px;
  background: #f1f5f9;
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-callout p {
  margin: 0 0 1em;
  color: var(--color-text-dark);
  font-weight: 500;
}

.article-callout p:last-child {
  margin-bottom: 0;
}

/* Coming soon state */
.article-coming-soon {
  padding: 64px 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 600px) {
  .article-hero {
    height: 280px;
  }

  .article-container {
    padding: 40px 20px 72px;
  }

  .article-title-main {
    font-size: 1.75rem;
  }
}
