/* Article layout. Loaded after styles.css, which supplies the design tokens. */

.breadcrumb {
  font-size: 0.86rem;
  color: var(--faint);
  padding: 1.75rem 0 0;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; }

.article-head { padding: 1.5rem 0 0; max-width: 44rem; }
.article-head h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin: 0.9rem 0 0;
}
.standfirst {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 1.4rem 0 0;
}
.meta-line {
  font-size: 0.86rem;
  color: var(--faint);
  margin: 1.4rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

/* Two columns on wide screens: sticky contents beside the prose. */
.article-body {
  display: grid;
  grid-template-columns: 15rem minmax(0, 44rem);
  gap: 3.5rem;
  padding: 3rem 0 0;
  align-items: start;
}
@media (max-width: 68rem) {
  .article-body { grid-template-columns: minmax(0, 44rem); gap: 0; }
  .toc { display: none; }
}

.toc {
  position: sticky;
  top: 5rem;
  font-size: 0.9rem;
}
.toc p {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 0.8rem;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 0.55rem; }
.toc a {
  color: var(--muted);
  text-decoration: none;
  display: block;
  line-height: 1.35;
}
.toc a::before { content: counter(toc) ". "; color: var(--faint); }
.toc a:hover { color: var(--accent); }

.prose > h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  margin: 3.25rem 0 1rem;
  scroll-margin-top: 5rem;
}
.prose > h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.15rem;
  font-weight: 680;
  margin: 2.25rem 0 0.7rem;
  scroll-margin-top: 5rem;
}
.prose p { margin: 0 0 1.15rem; }
.prose ul, .prose ol { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.45rem; }
.prose strong { font-weight: 650; }

/* Lead sentence of a section: the passage worth quoting on its own. */
.answer {
  font-size: 1.06rem;
  border-left: 3px solid var(--accent);
  padding: 0.15rem 0 0.15rem 1.15rem;
  margin: 0 0 1.4rem;
}

.table-wrap { overflow-x: auto; margin: 0 0 1.6rem; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
}
caption {
  caption-side: top;
  text-align: left;
  font-size: 0.84rem;
  color: var(--faint);
  padding-bottom: 0.6rem;
}
th, td {
  text-align: left;
  padding: 0.6rem 0.9rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
th {
  font-weight: 650;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--faint);
}
td.num, th.num { text-align: right; padding-right: 0; }
tr.sum td { border-top: 2px solid var(--ink); border-bottom: none; font-weight: 650; }
tr.result td {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  border-bottom: none;
}
tr.result td:first-child { border-radius: 6px 0 0 6px; padding-left: 0.7rem; }
tr.result td:last-child { border-radius: 0 6px 6px 0; padding-right: 0.7rem; }

.callout {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin: 0 0 1.6rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.formula {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 0 0 1.5rem;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.7;
}

.cta-inline {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 2.5rem 0;
  text-align: center;
}
.cta-inline h3 { margin-top: 0; font-size: 1.2rem; }
.cta-inline p { color: var(--muted); font-size: 0.97rem; margin-bottom: 1.2rem; }

.prose .faq { max-width: none; margin: 0; }
