/* ===== Journal article (blog-post.php) — page-specific ===== */

/* Reading progress bar (uses #scrollProgress rendered in foot.php) */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300; background: var(--g-sunset); box-shadow: 0 0 8px rgba(232,123,44,0.5); transition: width 0.1s linear; }

/* Column width shared by article blocks */
.art-shell { padding: 48px 0 0; }
.art-wrap { max-width: 760px; margin: 0 auto; }

/* Header */
.art-meta .cat { display: inline-block; font-size: 11px; font-weight: 800; color: var(--saffron-deep); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.art-meta h1 { font-family: 'Fraunces', serif; font-size: 52px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.06; color: var(--ink); margin-bottom: 20px; }
.art-standfirst { font-size: 20px; line-height: 1.55; color: var(--ink-2); margin-bottom: 28px; font-weight: 400; }
.art-byline { display: flex; align-items: center; gap: 14px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.art-ava { width: 48px; height: 48px; border-radius: 50%; background: var(--g-lantern); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 16px; flex-shrink: 0; letter-spacing: 0.02em; }
.art-byline .who strong { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.art-byline .who span { font-size: 13px; color: var(--muted); }
.art-byline .blang { display: inline-block; margin-left: 6px; background: var(--saffron-soft); color: var(--saffron-deep); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-full); }
.art-byline-actions { margin-left: auto; display: flex; gap: 8px; }
.art-share-btn { background: var(--bg); border: 1px solid var(--line-strong); padding: 8px 14px; border-radius: var(--r-sm); font-size: 12px; font-weight: 700; cursor: pointer; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.art-share-btn:hover { border-color: var(--ink); color: var(--ink); }

/* Cover */
.art-cover { padding: 32px 0; }
.art-cover-img { max-width: 1040px; margin: 0 auto; aspect-ratio: 21/9; background-color: var(--plum-soft); background-size: cover; background-position: center; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }

/* Promo slider (offer / course / class) */
.art-promo { max-width: 760px; margin: 0 auto; }
.oslider { position: relative; overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.oslides { display: flex; transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }
.oslide { position: relative; min-width: 100%; aspect-ratio: 16/7; background: var(--plum-soft); overflow: hidden; }
.oslide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oslide .ov { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 28px 32px; background: linear-gradient(90deg, rgba(31,6,23,0.85) 0%, rgba(31,6,23,0.5) 55%, transparent 100%); color: #fff; }
.oslide .ov .k { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.9; }
.oslide .ov h3 { font-family: 'Inter Tight', sans-serif; font-size: 23px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; max-width: 62%; }
.oslide .ov p { font-size: 13px; opacity: 0.9; max-width: 56%; line-height: 1.45; }
.oslide .ov .o-btn { display: inline-block; background: var(--saffron); color: #fff; font-weight: 800; font-size: 12px; padding: 9px 16px; border-radius: var(--r-sm); margin-top: 8px; box-shadow: var(--shadow-cta); }
.oslide .ov .o-btn:hover { background: var(--saffron-bright); }
.odots { position: absolute; bottom: 12px; right: 16px; display: flex; gap: 6px; }
.odots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,0.5); cursor: pointer; padding: 0; transition: background 0.15s; }
.odots button.on { background: #fff; }

/* Body / prose */
.art-body { padding: 36px 0 56px; }
.art-prose { max-width: 760px; margin: 0 auto; font-family: 'Inter', sans-serif; font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.art-prose > p:first-child { font-size: 21px; line-height: 1.6; color: var(--ink); font-weight: 500; }
.art-prose p { margin-bottom: 24px; }
.art-prose h2 { font-family: 'Fraunces', serif; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin: 44px 0 16px; line-height: 1.18; }
.art-prose h3 { font-family: 'Inter Tight', sans-serif; font-size: 21px; font-weight: 700; color: var(--ink); margin: 32px 0 12px; }
.art-prose h4 { font-family: 'Inter Tight', sans-serif; font-size: 17px; font-weight: 700; color: var(--ink); margin: 24px 0 10px; }
.art-prose ul, .art-prose ol { margin: 0 0 24px 22px; }
.art-prose li { margin-bottom: 8px; }
.art-prose blockquote { border-left: 4px solid var(--saffron); padding: 4px 0 4px 24px; margin: 32px 0; font-family: 'Fraunces', serif; font-size: 22px; font-style: italic; color: var(--ink); line-height: 1.45; }
.art-prose img { width: 100%; height: auto; border-radius: var(--r-lg); margin: 32px 0; box-shadow: var(--shadow-md); display: block; }
.art-prose a { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.art-prose a:hover { color: var(--saffron-deep); }
.art-prose hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
.art-prose .md-tablewrap { overflow-x: auto; margin: 24px 0; }
.art-prose table, .art-prose .md-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.art-prose td, .art-prose th { border: 1px solid var(--line-strong); padding: 10px 12px; text-align: left; vertical-align: top; }

/* Inline course CTA */
.art-cta { max-width: 760px; margin: 8px auto 0; background: var(--bg-warm); border: 1px solid var(--saffron-soft); border-radius: var(--r-xl); padding: 32px; }
.art-cta h3 { font-family: 'Inter Tight', sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 8px; }
.art-cta p { font-size: 15px; color: var(--ink-2); line-height: 1.6; margin-bottom: 18px; }

/* FAQ */
.art-faq { max-width: 760px; margin: 48px auto 0; }
.art-faq h2 { font-family: 'Fraunces', serif; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 12px; }
.art-faq details { border-bottom: 1px solid var(--line); }
.art-faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-family: 'Inter Tight', sans-serif; font-size: 17px; font-weight: 700; color: var(--ink); }
.art-faq summary::-webkit-details-marker { display: none; }
.art-faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; line-height: 1; color: var(--saffron-deep); }
.art-faq details[open] summary::after { content: '\2212'; }
.art-faq .a { padding: 0 40px 18px 0; font-size: 15px; line-height: 1.7; color: var(--ink-2); }

/* Tags + share footer */
.art-foot { max-width: 760px; margin: 40px auto 0; padding-top: 28px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.art-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.art-tags .tag { background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); text-transform: none; letter-spacing: 0; font-weight: 600; }
.art-share { display: flex; align-items: center; gap: 10px; }
.art-share b { font-size: 13px; color: var(--muted); font-weight: 700; }
.art-share a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); transition: all 0.15s; }
.art-share a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.art-share svg { width: 17px; height: 17px; }

/* Lead capture */
.art-lead { max-width: 760px; margin: 44px auto 0; background: var(--g-plum-rich); border-radius: var(--r-xl); padding: 36px; color: #fff; box-shadow: var(--shadow-lg); }
.art-lead h3 { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 600; margin-bottom: 8px; }
.art-lead > p { font-size: 15px; opacity: 0.9; margin-bottom: 20px; max-width: 48ch; line-height: 1.55; }
.art-lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.art-lead-form .full { grid-column: 1 / -1; }
.art-lead-form input, .art-lead-form select { width: 100%; padding: 13px 15px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.12); color: #fff; font: inherit; font-size: 14px; outline: none; }
.art-lead-form input::placeholder { color: rgba(255,255,255,0.65); }
.art-lead-form select option { color: var(--ink); }
.art-lead-form input:focus, .art-lead-form select:focus { border-color: var(--saffron); background: rgba(255,255,255,0.18); }
.art-lead-form button { grid-column: 1 / -1; background: var(--saffron); color: #fff; border: none; padding: 14px; border-radius: var(--r-sm); font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: var(--shadow-cta); }
.art-lead-form button:hover { background: var(--saffron-bright); }
.art-lead .ok { background: rgba(255,255,255,0.16); border-radius: var(--r-sm); padding: 14px 16px; font-size: 14px; line-height: 1.5; }
.art-lead .err { background: rgba(232,92,74,0.32); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }

/* Author card */
.art-author { padding: 56px 0; background: var(--bg-soft); margin-top: 56px; }
.author-card { max-width: 760px; margin: 0 auto; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 32px; display: grid; grid-template-columns: 72px 1fr; gap: 22px; align-items: center; box-shadow: var(--shadow-sm); }
.author-card .ava { width: 72px; height: 72px; border-radius: 50%; background: var(--g-lantern); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 26px; letter-spacing: 0.02em; }
.author-card .eyebrow { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--saffron-deep); margin-bottom: 6px; }
.author-card h4 { font-family: 'Inter Tight', sans-serif; font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.author-card p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin-bottom: 8px; }
.author-card a { font-size: 13px; font-weight: 700; color: var(--plum); }
.author-card a:hover { color: var(--saffron-deep); }

/* Related */
.art-related { padding: 72px 0 96px; }
.art-related-inner { max-width: 1040px; margin: 0 auto; }
.art-related h2 { font-family: 'Inter Tight', sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 28px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.rel-card { display: block; color: var(--ink); }
.rel-card .img { aspect-ratio: 16/10; border-radius: var(--r-md); background-color: var(--plum-soft); background-size: cover; background-position: center; margin-bottom: 14px; transition: all 0.2s; box-shadow: var(--shadow-sm); }
.rel-card:hover .img { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.rel-card h4 { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600; line-height: 1.25; color: var(--ink); margin-bottom: 6px; }
.rel-card:hover h4 { color: var(--plum); }
.rel-card .meta { font-size: 12px; color: var(--muted); font-family: 'DM Mono', monospace; }

@media (max-width: 1024px) {
  .art-meta h1 { font-size: 38px; }
  .art-prose { font-size: 17px; }
  .oslide .ov h3 { max-width: 80%; }
  .oslide .ov p { max-width: 78%; }
  .rel-grid { grid-template-columns: 1fr; gap: 20px; }
  .art-lead-form { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .author-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .art-foot { flex-direction: column; align-items: flex-start; }
}
