/* AstroTheme — blog article page. Loaded after base.css + pages.css. */

/* ── Header ──────────────────────────────────────────────────────────────── */
.as-art-head { text-align: center; padding: 34px 0 30px;
  background: radial-gradient(600px 220px at 50% 0%, rgba(255, 214, 160, .45), transparent 70%), linear-gradient(180deg, #fdf3e6, var(--as-bg)); }
.as-art-cat { display: inline-block; margin-bottom: 12px; padding: 5px 14px; border-radius: 30px; background: var(--as-gold-soft);
  color: #9a5d0a; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; }
.as-art-title { max-width: 820px; margin: 0 auto 14px; font-family: var(--as-display); font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; }
.as-art-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--as-muted); }

/* ── Layout: one centred reading column, or column + sidebar ─────────────── */
.as-art-single { max-width: 780px; padding-top: 8px; padding-bottom: 48px; }
.as-art-layout { display: grid; grid-template-columns: minmax(0, 740px) 300px; justify-content: center; gap: 36px;
  align-items: start; padding-top: 8px; padding-bottom: 48px; }
.as-art { min-width: 0; }

.as-art-banner { width: 100%; border-radius: 18px; margin-bottom: 24px; box-shadow: 0 16px 36px rgba(28, 39, 87, .14); }
.as-art-excerpt { margin: 0 0 22px; padding: 16px 20px; border-left: 4px solid var(--as-gold); border-radius: 0 12px 12px 0;
  background: #fff; font-size: 17.5px; line-height: 1.65; color: var(--as-ink); }

/* ── Body typography ─────────────────────────────────────────────────────── */
.as-article-body { font-size: 17px; line-height: 1.85; color: #34374d; }
.as-article-body > *:first-child { margin-top: 0; }
.as-article-body p { margin: 0 0 1.1em; }
/* Empty paragraphs from the editor would leave big gaps. */
.as-article-body p:empty { display: none; }
/* Some articles carry their own H1 in the body — keep it below the page title. */
.as-article-body h1 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin: 1.2em 0 .6em; }
.as-article-body h2 { font-size: clamp(23px, 2.6vw, 28px); line-height: 1.25; margin: 1.6em 0 .6em; padding-bottom: 8px; border-bottom: 2px solid var(--as-gold-soft); }
.as-article-body h3 { font-size: 20px; line-height: 1.3; margin: 1.4em 0 .5em; }
.as-article-body h4 { font-size: 17px; margin: 1.2em 0 .4em; }
.as-article-body ul, .as-article-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.as-article-body li { margin: .35em 0; }
.as-article-body li::marker { color: var(--as-gold); }
.as-article-body a { color: var(--as-gold-dk); text-underline-offset: 3px; }
.as-article-body img { border-radius: 14px; margin: 18px auto; }
.as-article-body blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--as-gold); background: #fff; border-radius: 0 12px 12px 0; font-style: italic; }
.as-article-body table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 15px; background: #fff; border-radius: 12px; overflow: hidden; }
.as-article-body th, .as-article-body td { padding: 10px 12px; border-bottom: 1px solid var(--as-line); text-align: left; }
.as-article-body th { background: var(--as-gold-soft); color: var(--as-ink); }

.as-art-back { display: inline-block; margin-top: 8px; font-weight: 600; font-size: 14px; color: var(--as-gold); text-decoration: none; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) { .as-art-layout { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 991px) { .as-art-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .as-art-head { padding: 24px 0 22px; }
  .as-article-body { font-size: 16.5px; }
  .as-art-excerpt { font-size: 16.5px; padding: 14px 16px; }
}
