.article-page {
  background: var(--bg);
}

.article-hero {
  padding: 142px 0 78px;
  color: #fffaf4;
  background:
    radial-gradient(circle at 78% 26%, rgba(232, 79, 42, 0.34), transparent 24%),
    #211b17;
}

.article-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
}

.article-back {
  display: block;
  width: fit-content;
  margin-bottom: 48px;
  color: rgba(255, 250, 244, 0.64);
  text-decoration: none;
}

.article-hero h1 {
  max-width: 850px;
  margin: 0 0 28px;
  font-size: clamp(2.65rem, 5.5vw, 5.9rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.article-hero h1 em {
  color: #f06440;
  font-style: normal;
}

.article-hero .lead {
  max-width: 740px;
  margin: 0;
  color: rgba(255, 250, 244, 0.68);
}

.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 88px;
  justify-content: center;
  padding-top: 88px;
  padding-bottom: 112px;
}

.article-toc {
  position: sticky;
  top: 112px;
  align-self: start;
  padding-left: 18px;
  border-left: 2px solid rgba(232, 79, 42, 0.28);
}

.article-toc > strong {
  display: block;
  margin-bottom: 18px;
}

.article-toc nav {
  display: grid;
  gap: 11px;
}

.article-toc a {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  text-decoration: none;
}

.article-content {
  min-width: 0;
}

.article-content section {
  padding: 78px 0 0;
  scroll-margin-top: 90px;
}

.article-content section:first-of-type {
  padding-top: 52px;
}

.article-content h2 {
  margin: 10px 0 24px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.article-content p,
.article-content li {
  font-size: 1.04rem;
  line-height: 1.75;
}

.article-content a {
  color: #c53e1f;
  font-weight: 600;
}

.article-content .article-calculator-link {
  width: fit-content;
  margin-top: 12px;
  color: #fff;
  text-decoration: none;
}

.article-section-number {
  color: var(--muted);
  font: 600 0.76rem/1 "Space Grotesk", sans-serif;
  letter-spacing: 0.14em;
}

.article-warning,
.article-summary,
.article-fact,
.article-note,
.formula-card {
  padding: 24px;
  border-radius: 20px;
}

.article-summary {
  margin-bottom: 18px;
  border: 1px solid rgba(36, 29, 24, 0.14);
  background: #fffaf4;
}

.article-summary p,
.article-fact p {
  margin-bottom: 0;
}

.article-fact {
  margin: 28px 0;
  border-left: 4px solid #e84f2a;
  border-radius: 0 18px 18px 0;
  background: rgba(232, 79, 42, 0.08);
}

.article-table {
  width: 100%;
  margin: 28px 0;
  overflow: hidden;
  border-collapse: collapse;
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.74);
}

.article-table th,
.article-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(36, 29, 24, 0.12);
  text-align: left;
  vertical-align: top;
}

.article-table th {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-warning {
  color: #fffaf4;
  background: #a6321a;
}

.article-warning p,
.article-note p,
.formula-card p {
  margin-bottom: 0;
}

.article-note {
  margin-top: 26px;
  border: 1px solid rgba(36, 29, 24, 0.12);
  background: rgba(255, 252, 247, 0.72);
}

.formula-card {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  color: #fffaf4;
  background: #211b17;
}

.formula-card span,
.formula-grid span {
  color: #e84f2a;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.formula-card > strong {
  font: 600 clamp(1.8rem, 4vw, 3.2rem)/1.2 "Space Grotesk", sans-serif;
}

.formula-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.formula-grid div {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(36, 29, 24, 0.12);
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.72);
}

.formula-grid strong {
  font: 600 clamp(1.2rem, 2.1vw, 1.8rem)/1.3 "Space Grotesk", sans-serif;
}

.article-checklist {
  display: grid;
  gap: 10px;
  margin: 28px 0;
}

.article-checklist label {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(36, 29, 24, 0.1);
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.66);
}

.article-steps {
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.article-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid rgba(36, 29, 24, 0.14);
}

.article-steps li > span {
  color: #e84f2a;
  font-weight: 600;
}

.article-steps p {
  margin: 4px 0 0;
  color: var(--muted);
}

.article-cta {
  padding: 88px 0;
  background: linear-gradient(135deg, #f8d8c8, #e9eee5);
}

.article-cta-shell {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
}

.article-cta h2 {
  margin: 12px 0 0;
}

@media (max-width: 900px) {
  .article-hero-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-hero-grid,
  .article-layout {
    gap: 44px;
  }

  .article-toc {
    position: static;
  }
}

@media (max-width: 620px) {
  .article-hero {
    padding: 118px 0 60px;
  }

  .article-back {
    margin-bottom: 34px;
  }

  .article-layout {
    padding-top: 54px;
    padding-bottom: 72px;
  }

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

  .article-table {
    display: block;
    overflow-x: auto;
  }

  .article-cta-shell {
    align-items: start;
    flex-direction: column;
  }
}

.article-byline { margin: 22px 0 0; color: rgba(255, 250, 244, .72); font-size: .85rem; }
.kiln-overview { margin: 0; min-width: 0; }
.kiln-overview svg { display: block; width: 100%; height: auto; }
.kiln-overview figcaption { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; color: #eee3d7; font-size: .85rem; }
.article-figure { margin: 32px 0; }
.diagram-scroll { overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--stroke); border-radius: 12px; background: var(--card); }
.diagram-scroll svg { display: block; width: 100%; min-width: 620px; height: auto; }
.article-figure figcaption { margin-top: 14px; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.article-figure figcaption strong { color: var(--ink); font-weight: 600; }
.article-source { padding: 3px 6px; border: 0; border-bottom: 1px dotted currentColor; color: var(--muted); background: none; font: inherit; font-size: .78rem; cursor: pointer; }
.source-excerpt { width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; margin: auto; padding: 22px; border: 0; border-radius: 12px; background: var(--ink); color: var(--card); box-shadow: var(--shadow); font-size: .9rem; line-height: 1.6; }
.source-excerpt strong, .source-excerpt span, .source-excerpt small { display: block; }
.source-excerpt strong { margin-bottom: 10px; }
.source-excerpt small { margin-top: 14px; color: var(--accent-3); font-size: .78rem; }
.source-excerpt::backdrop { background: transparent; }
.article-source:focus-visible, .diagram-scroll:focus-visible, .article-checklist input:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.article-checklist input { width: 18px; height: 18px; flex-shrink: 0; margin: 0; accent-color: var(--accent-2); }
.article-checklist label { cursor: pointer; }
.article-checklist label:has(input:checked) { border-color: var(--accent-2); }
.article-table caption { padding: 14px 16px; color: var(--muted); text-align: left; font-size: .9rem; }
.calculation-table td:last-child { font-weight: 600; white-space: nowrap; }
.formula-card > span { color: var(--accent-3); }
.formula-grid span { color: var(--muted); }
@media (max-width: 620px) {
  .article-warning, .article-summary, .article-fact, .article-note, .formula-card { padding: 20px; }
  .article-hero h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .kiln-overview { max-width: 440px; }
  .formula-card > strong { font-size: 1.7rem; }
  .formula-grid strong { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .kiln-overview { animation: kiln-enter .55s ease-out both; }
  .article-source { transition: color .15s ease; }
  @keyframes kiln-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}
@media print {
  .site-header, .article-toc, .article-source, .article-cta { display: none; }
  .article-hero { padding: 20px 0; color: #1e1914; background: #fff; }
  .article-hero .lead, .article-byline, .kiln-overview figcaption { color: #1e1914; }
  .article-layout { display: block; padding: 24px 0; }
  .article-figure { break-inside: avoid; }
  .diagram-scroll { overflow: visible; }
  .diagram-scroll svg { min-width: 0; }
}
