/**
 * AVL Custom Homes — long-form article pages (blog posts, n8n-published guides)
 * Loaded by /articles/*.php and optional $page_extra_head
 */

.avl-article-page {
  padding-top: 10rem;
  padding-bottom: 5rem;
  min-height: 60vh;
  background: #fff;
}

.avl-article {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  color: #1f2937;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.avl-article h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #111827;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.avl-article h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: #111827;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #C5A028;
}

.avl-article h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin: 1.5rem 0 0.75rem;
}

.avl-article p {
  margin: 0 0 1.125rem;
}

.avl-article ul,
.avl-article ol {
  margin: 0 0 1.25rem 1.25rem;
  padding-left: 0.5rem;
}

.avl-article li {
  margin-bottom: 0.5rem;
}

.avl-article a {
  color: #b48f17;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.avl-article a:hover {
  color: #111827;
}

.art-tldr {
  background: linear-gradient(135deg, #fbfaf7 0%, #f4f1ea 100%);
  border: 1px solid #e8e3d8;
  border-left: 4px solid #C5A028;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #374151;
}

.author-byline {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.art-toc {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.art-toc h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #C5A028;
  border: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.art-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.art-toc li {
  margin: 0.4rem 0;
}

.art-toc a {
  font-weight: 600;
  font-size: 0.95rem;
}

.technical-illustration {
  margin: 2rem 0;
}

.technical-illustration img {
  width: 100%;
  max-width: 1100px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.technical-illustration figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
  max-width: 850px;
}

.fig-label {
  color: #C5A028;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.35rem;
}

.art-callout {
  background: #0a0a0a;
  color: #e5e7eb;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-left: 4px solid #C5A028;
}

.art-callout strong {
  color: #fff;
  display: block;
  margin-bottom: 0.5rem;
}

.art-callout p {
  margin: 0;
  font-size: 0.98rem;
}

.art-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.art-cta p {
  margin-bottom: 1rem;
}

.art-byline {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-top: 1rem;
}

/* n8n / article.php embedded prose */
.article-content.prose h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #111827;
}

.article-content.prose h3 {
  font-size: 1.15rem;
  margin-top: 1.25rem;
}

.article-content.prose img {
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}

@media print {
  .avl-article-page {
    padding-top: 0;
  }
}
