/* Styles for the Articles section. Loaded after styles.css, only on article pages. */

.article {
  padding-top: 2.75rem;
}

.article h1 {
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.1;
  max-width: 20ch;
  margin-bottom: 0.75rem;
}

.article-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.article .answer {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 1.125rem;
  padding: 1.1rem 1.25rem;
}

.article .prose {
  max-width: 42rem;
}

.article .prose h2 {
  max-width: none;
  margin-top: 2.75rem;
}

.article .prose h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 1.75rem 0 0.5rem;
  max-width: none;
}

.article .prose ol,
.article .prose ul {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.article .prose li + li {
  margin-top: 0.75rem;
}

.article .prose li::marker {
  color: var(--accent);
  font-weight: 600;
}

.article code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--surface);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

.article .prose .article-cta {
  margin-top: 2.75rem;
}

.article .prose .article-cta h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  margin-top: 0;
}

.article .prose .article-cta .check-list {
  list-style: none;
  padding-left: 0;
}

.article-more {
  margin-top: 2.5rem;
}

.article-cards {
  max-width: 42rem;
}

.article-cards .card h2 a {
  color: inherit;
  text-decoration: none;
}

.article-cards .card h2 a:hover,
.article-cards .card h2 a:focus-visible {
  color: var(--accent);
}

.article .toc {
  margin: 1.25rem 0 0;
}

.article .toc p {
  margin-bottom: 0.4rem;
}

.article .toc ul {
  margin: 0;
  padding-left: 1.3rem;
}

.article .toc li + li {
  margin-top: 0.3rem;
}

.article .prose figure.figure {
  margin: 1.75rem 0;
}

.article .prose figure.figure svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.article .prose figure.figure figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}
