/* ==========================================================================
   lboard.app — Single Article styles (Figma 402-973). Scoped .article-single.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.article-single {
	--as-red: #FF3B21;
	--as-ink: #0C0C0F;
	--as-body: #3F3F44;
	--as-meta: #8C949E;
	--as-mr: 'Manrope', sans-serif;
	--as-in: 'Inter', sans-serif;
	background: #fff;
}
.article-single *, .article-single *::before, .article-single *::after { box-sizing: border-box; }

/* ============ HERO ============ */
.article-single .as-hero { position: relative; overflow: hidden; background: #0A1829; min-height: 560px; display: flex; align-items: flex-end; padding: 150px 20px 56px; }
.article-single .as-hero__bg { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; }
.article-single .as-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,24,41,0.30) 0%, rgba(10,24,41,0.50) 50%, rgba(10,24,41,0.95) 100%); }
.article-single .as-hero__inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.article-single .as-breadcrumb { display: flex; align-items: center; gap: 8px; font-family: var(--as-in); font-size: 12px; margin-bottom: 22px; }
.article-single .as-breadcrumb a { color: rgba(255,255,255,0.45); text-decoration: none; }
.article-single .as-breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.article-single .as-breadcrumb__sep { color: rgba(255,255,255,0.25); }
.article-single .as-hero__tag { display: inline-block; font-family: var(--as-in); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--as-red); background: rgba(255,59,33,0.14); border-radius: 100px; padding: 7px 14px; }
.article-single .as-hero__title { font-family: var(--as-mr); font-weight: 800; font-size: 52px; line-height: 1.1; letter-spacing: -0.02em; color: #fff; margin: 18px 0 0; max-width: 860px; }
.article-single .as-hero__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; font-family: var(--as-in); font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.55); }
.article-single .as-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.4); display: inline-block; }

/* ============ BODY + SIDEBAR ============ */
.article-single .as-body-section { background: #fff; padding: 64px 20px 80px; }
.article-single .as-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 836px 300px; gap: 64px; align-items: start; }

/* prose (the_content) */
.article-single .art-body { font-family: var(--as-in); color: var(--as-body); }
.article-single .art-body > p:first-of-type { font-size: 22px; font-weight: 300; line-height: 1.5; color: var(--as-body); margin: 0 0 28px; }
.article-single .art-body p { font-size: 17px; font-weight: 400; line-height: 1.7; color: var(--as-body); margin: 0 0 20px; }
.article-single .art-body h2 { font-family: var(--as-mr); font-size: 32px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; color: var(--as-ink); margin: 44px 0 18px; scroll-margin-top: 100px; }
.article-single .art-body h3 { font-family: var(--as-mr); font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--as-ink); margin: 32px 0 12px; }
.article-single .art-body ul, .article-single .art-body ol { margin: 0 0 20px; padding-left: 22px; }
.article-single .art-body li { font-size: 17px; line-height: 1.7; color: var(--as-body); margin: 0 0 10px; }
.article-single .art-body a { color: var(--as-red); text-decoration: underline; }
.article-single .art-body img { max-width: 100%; height: auto; border-radius: 16px; margin: 12px 0 28px; }
.article-single .art-body figcaption { font-size: 13px; color: var(--as-meta); margin-top: -18px; margin-bottom: 28px; }

/* peach callout (blockquote) */
.article-single .art-body blockquote { margin: 36px 0; padding: 32px 36px 32px 32px; background: rgba(255,58,32,0.05); border-left: 4px solid var(--as-red); border-radius: 20px; font-family: var(--as-mr); font-size: 20px; font-weight: 600; font-style: normal; line-height: 1.5; color: var(--as-ink); }
.article-single .art-body blockquote p { font: inherit; color: inherit; margin: 0; }

/* numbered steps (red-tint badge + red number) */
.article-single .art-body ol.art-steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0; }
.article-single .art-body ol.art-steps > li { counter-increment: step; position: relative; padding-left: 48px; margin: 0 0 24px; }
.article-single .art-body ol.art-steps > li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 14px; background: rgba(255,59,33,0.10); color: var(--as-red); font-family: var(--as-mr); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.article-single .art-body ol.art-steps > li strong { display: block; font-family: var(--as-mr); font-size: 18px; font-weight: 700; color: var(--as-ink); margin-bottom: 6px; line-height: 1.55; }

/* "what helps" — red dot bullets */
.article-single .art-body ul.art-checks { list-style: none; padding: 0; margin: 24px 0; }
.article-single .art-body ul.art-checks > li { position: relative; padding-left: 20px; margin: 0 0 16px; font-size: 16px; line-height: 1.7; color: var(--as-body); }
.article-single .art-body ul.art-checks > li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--as-red); }

/* stat cards row — white cards, red top accent, dark numbers */
.article-single .art-body .art-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 12px; }
.article-single .art-body .art-stat { background: #fff; border: 1px solid rgba(12,12,15,0.06); border-top: 3px solid var(--as-red); border-radius: 16px; padding: 24px 26px; box-shadow: 0 1px 3px rgba(12,15,26,0.05); }
.article-single .art-body .art-stat__num { display: block; font-family: var(--as-mr); font-size: 40px; font-weight: 800; line-height: 1; color: var(--as-ink); letter-spacing: -0.02em; }
.article-single .art-body .art-stat__label { display: block; font-family: var(--as-in); font-size: 12px; line-height: 1.4; color: #6B6B75; margin-top: 12px; }

/* author box */
.article-single .art-author { display: flex; align-items: center; gap: 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(12,12,15,0.08); }
.article-single .art-author__avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #141516; color: #fff; font-family: var(--as-mr); font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.article-single .art-author__info { display: flex; flex-direction: column; gap: 2px; }
.article-single .art-author__label { font-family: var(--as-in); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: var(--as-meta); }
.article-single .art-author__name { font-family: var(--as-mr); font-size: 16px; font-weight: 700; color: var(--as-ink); }
.article-single .art-author__role { font-family: var(--as-in); font-size: 13px; color: var(--as-meta); }

/* sidebar */
.article-single .art-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.article-single .as-side-block { border-radius: 16px; padding: 22px; }
.article-single .as-side-label { display: block; font-family: var(--as-in); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: var(--as-red); margin-bottom: 14px; }
.article-single .as-toc { background: #FAFAFC; border: 1px solid #E5E5EB; }
.article-single .as-toc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.article-single .as-toc__list a { font-family: var(--as-in); font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--as-body); text-decoration: none; border-left: 2px solid transparent; padding-left: 12px; display: block; transition: color .15s ease, border-color .15s ease; }
.article-single .as-toc__list a:hover { color: var(--as-red); border-color: var(--as-red); }

/* promo card */
.article-single .as-promo { background: #141516; border-radius: 20px; padding: 26px 24px; text-align: center; }
.article-single .as-promo__label { display: inline-block; font-family: var(--as-in); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: var(--as-red); background: rgba(255,58,32,0.14); border-radius: 100px; padding: 5px 11px; margin-bottom: 16px; }
.article-single .as-promo__title { font-family: var(--as-mr); font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 10px; line-height: 1.2; }
.article-single .as-promo__text { font-family: var(--as-in); font-size: 13px; font-weight: 300; line-height: 1.5; color: rgba(255,255,255,0.6); margin: 0 0 18px; }
.article-single .as-promo__list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 9px; align-items: center; }
.article-single .as-promo__list li { font-family: var(--as-in); font-size: 12px; color: rgba(255,255,255,0.6); }
.article-single .as-promo__list li::before { content: "✓"; color: var(--as-red); font-weight: 700; margin-right: 7px; }
.article-single .as-promo__btn { display: block; width: 100%; border: none; cursor: pointer; -webkit-appearance: none; appearance: none; background: var(--as-red); color: #fff; font-family: var(--as-in); font-size: 14px; font-weight: 600; border-radius: 48px; padding: 13px 18px; transition: opacity .15s ease, transform .15s ease; }
.article-single .as-promo__btn:hover { opacity: .94; transform: translateY(-1px); }
.article-single .as-promo__ghost { display: block; text-align: center; margin-top: 12px; font-family: var(--as-in); font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.7); text-decoration: none; padding: 13px; border: 1px solid rgba(255,255,255,0.18); border-radius: 48px; transition: background .15s ease, color .15s ease; }
.article-single .as-promo__ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* share */
.article-single .as-share { background: #FAFAFC; border: 1px solid #E5E5EB; }
.article-single .as-share__row { display: flex; flex-direction: row; gap: 8px; }
.article-single .as-share__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(12,12,15,0.08); background: #fff; cursor: pointer; -webkit-appearance: none; appearance: none; border-radius: 100px; padding: 10px 12px; font-family: var(--as-in); font-size: 12px; font-weight: 500; color: var(--as-body); text-decoration: none; transition: border-color .15s ease, color .15s ease; }
.article-single .as-share__btn:hover { border-color: var(--as-red); color: var(--as-red); }
.article-single .as-share__btn svg { flex: none; }

/* ============ RELATED ============ */
.article-single .as-related { background: #fff; padding: 0 20px 80px; }
.article-single .as-related__inner { max-width: 1200px; margin: 0 auto; }
.article-single .as-related__head { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.article-single .as-related__label { font-family: var(--as-in); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--as-red); white-space: nowrap; }
.article-single .as-related__rule { flex: 1; height: 1px; background: #E5E5EA; }
.article-single .as-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-single .as-rcard__img { display: block; width: 100%; height: 200px; border-radius: 16px; overflow: hidden; }
.article-single .as-rcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-single .as-rcard__tag { display: inline-block; font-family: var(--as-in); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--as-red); text-transform: uppercase; margin: 16px 0 8px; }
.article-single .as-rcard__title { font-family: var(--as-mr); font-size: 18px; font-weight: 700; line-height: 1.32; color: var(--as-ink); margin: 0 0 10px; }
.article-single .as-rcard__title a { color: inherit; text-decoration: none; }
.article-single .as-rcard__title a:hover { color: var(--as-red); }
.article-single .as-rcard__meta { font-family: var(--as-in); font-size: 11px; color: var(--as-meta); }

/* ============ CTA (same as blog) ============ */
.article-single .as-cta { position: relative; overflow: hidden; background: #0C0C0D; min-height: 480px; display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.article-single .as-cta__bg { position: absolute; inset: 0; background: url('../images/blog/hero-bg.jpg') center/cover no-repeat; }
.article-single .as-cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,12,13,0.60) 0%, rgba(12,12,13,0.86) 100%); }
.article-single .as-cta__inner { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; text-align: center; }
.article-single .as-cta__title { font-family: var(--as-mr); font-weight: 800; font-size: 64px; line-height: 1.05; letter-spacing: -0.02em; color: #fff; margin: 0; white-space: nowrap; }
.article-single .as-cta__sub { font-family: var(--as-in); font-size: 16px; color: rgba(255,255,255,0.55); margin: 16px 0 0; }
.article-single .as-cta__buttons { display: flex; justify-content: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.article-single .as-btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 28px; border: none; border-radius: 48px; font-family: var(--as-in); font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; -webkit-appearance: none; appearance: none; text-decoration: none; transition: transform .15s ease, background .15s ease, opacity .15s ease; }
.article-single .as-btn--primary { background: var(--as-red); color: #fff; }
.article-single .as-btn--primary:hover { transform: translateY(-2px); opacity: .94; }
.article-single .as-btn--ghost { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.18); font-weight: 500; }
.article-single .as-btn--ghost:hover { background: rgba(255,255,255,0.12); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
	.article-single .as-grid { grid-template-columns: 1fr 300px; gap: 40px; }
}
@media (max-width: 1024px) {
	.article-single .as-hero__title { font-size: 42px; }
	.article-single .as-cta__title { font-size: 48px; }
}
@media (max-width: 900px) {
	.article-single .as-grid { grid-template-columns: 1fr; gap: 40px; }
	.article-single .art-sidebar { position: static; }
	.article-single .as-toc { display: none; } /* TOC hidden on mobile (inline headings suffice) */
	.article-single .as-related__grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
	.article-single .as-hero { padding: 120px 20px 44px; }
	.article-single .as-hero__title { font-size: 32px; }
	.article-single .art-body > p:first-of-type { font-size: 19px; }
	.article-single .art-body h2 { font-size: 26px; }
	.article-single .as-cta { min-height: auto; padding: 64px 20px; }
	.article-single .as-cta__title { font-size: 32px; white-space: normal; }
	.article-single .as-btn { width: 100%; max-width: 320px; }
	.article-single .art-body .art-stats { grid-template-columns: 1fr; }
	.article-single .art-body .art-stat { border-right: none; border-bottom: 1px solid rgba(12,12,15,0.08); }
	.article-single .art-body .art-stat:last-child { border-bottom: none; }
}
