/* ===========================================================
   SUGAM ACADEMY — SINGLE BLOG ARTICLE (standalone page)
   New components only. Re-uses tokens.css, typography.css,
   components.css, sections.css, about-page.css (.crumb-band,
   .cta-band, .outcomes) and blog.css / blog-page.css (.bc card
   family, .blogs-grid--full) wherever a matching pattern
   already exists — bundled together via blogs.bundle.min.css.
   =========================================================== */

/* ────────────────────────────────────────
   1. ARTICLE HEADER
──────────────────────────────────────── */
.article-hero {
    position: relative;
    padding-top: var(--sp-4);
    padding-bottom: var(--sp-6);
    overflow: hidden;
}

.article-hero::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    top: -160px;
    right: -140px;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
    opacity: 0.28;
    background: var(--blue-300);
    pointer-events: none;
}

.article-hero__inner {
    max-width: 46rem;
    margin: 0 auto;
}

.article-hero__cat {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--blue-600);
    margin-bottom: var(--sp-3);
}

.article-hero__title {
    margin-bottom: var(--sp-4);
}

.article-hero__excerpt {
    margin-bottom: var(--sp-5);
}

.article-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-4);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--border-hair);
}

.article-byline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.article-byline__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--ink-900);
    color: var(--bone-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
}

.article-byline__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.article-byline__role {
    font-size: 0.78rem;
    color: var(--grey-500);
    font-family: var(--font-mono);
}

.article-hero__stats {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--grey-500);
    margin-left: auto;
}

.article-hero__stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.article-hero__stats svg {
    width: 14px;
    height: 14px;
    stroke: var(--grey-300);
}

@media (max-width: 640px) {
    .article-hero__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-3);
    }

    .article-hero__stats {
        margin-left: 0;
    }
}

/* ────────────────────────────────────────
   2. FEATURED IMAGE
──────────────────────────────────────── */
.article-media {
    max-width: 56rem;
    margin: 0 auto var(--sp-7);
    padding: 0 var(--container-pad);
}

.article-media__frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-hair);
    box-shadow: 0 30px 70px -30px rgba(10, 23, 38, 0.22);
}

.article-media__frame img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

/* ────────────────────────────────────────
   3. PROSE / ARTICLE BODY
   Handles real HTML now (Tiptap editor output): headings,
   lists, blockquote, code, images, hr — not just plain <p>.
──────────────────────────────────────── */
.article-body-wrap {
    padding-bottom: var(--sp-7);
}

.prose {
    max-width: 46rem;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.prose>*:first-child {
    margin-top: 0;
}

.prose p {
    margin: 0 0 1.5em;
}

.prose>p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-size: 3.4em;
    font-weight: 600;
    float: left;
    line-height: 0.85;
    padding: 0.06em 0.12em 0 0;
    color: var(--text-primary);
}

.prose strong {
    color: var(--text-primary);
    font-weight: 600;
}

.prose em {
    font-style: italic;
}

.prose u {
    text-decoration: underline;
}

.prose s {
    text-decoration: line-through;
}

.prose a {
    color: var(--blue-600);
    text-decoration: underline;
    text-decoration-color: var(--blue-300);
    text-underline-offset: 3px;
}

.prose a:hover {
    text-decoration-color: var(--blue-600);
}

.prose h1,
.prose h2,
.prose h3 {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.25;
    margin: var(--sp-6) 0 var(--sp-3);
}

.prose h2 {
    font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
}

.prose h3 {
    font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
}

.prose ul,
.prose ol {
    margin: 0 0 1.5em;
    padding-left: 1.4em;
}

.prose li {
    margin-bottom: 0.5em;
}

.prose li::marker {
    color: var(--blue-500);
}

.prose img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg, 1rem);
    margin: var(--sp-5) 0;
    display: block;
}

.prose blockquote {
    margin: var(--sp-5) 0;
    padding: var(--sp-4) var(--sp-5);
    border-left: 3px solid var(--gold-500);
    background: var(--bone-200);
    border-radius: 0 0.5rem 0.5rem 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.prose blockquote p {
    margin: 0;
}

.prose pre {
    background: var(--ink-900);
    color: var(--bone-100);
    padding: var(--sp-4);
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: var(--sp-5) 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
}

.prose code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bone-200);
    padding: 0.15em 0.4em;
    border-radius: 0.3em;
}

.prose pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.prose hr {
    border: none;
    border-top: 1px solid var(--border-hair);
    margin: var(--sp-6) 0;
}

/* ────────────────────────────────────────
   4. SHARE BAR
──────────────────────────────────────── */
.article-share {
    max-width: 46rem;
    margin: var(--sp-6) auto 0;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex-wrap: wrap;
    padding-top: var(--sp-5);
    border-top: 1px solid var(--border-hair);
}

.article-share__label {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--grey-500);
    margin-right: 0.25rem;
}

.article-share__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-hair);
    color: var(--text-secondary);
    background: var(--surface-raised);
    transition: color var(--dur-fast) var(--ease-out),
        border-color var(--dur-fast) var(--ease-out),
        background var(--dur-fast) var(--ease-out);
}

.article-share__link:hover {
    color: var(--blue-600);
    border-color: var(--blue-500);
    background: var(--bone-200);
}

.article-share__link svg {
    width: 16px;
    height: 16px;
}

/* ────────────────────────────────────────
   5. AUTHOR CARD
──────────────────────────────────────── */
.author-card {
    max-width: 46rem;
    margin: var(--sp-7) auto 0;
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-5);
    background: var(--bone-200);
    border: 1px solid var(--border-hair);
    border-radius: var(--radius-lg);
}

.author-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--ink-900);
    color: var(--bone-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.3rem;
}

.author-card__name {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.author-card__bio {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ────────────────────────────────────────
   6. RELATED ARTICLES
──────────────────────────────────────── */
.related-posts {
    background: var(--surface);
}

.related-posts__head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto var(--sp-6);
}

.related-posts__head .eyebrow {
    justify-content: center;
    margin-bottom: var(--sp-3);
}

/* ────────────────────────────────────────
   7. BACK-TO-BLOG LINK
──────────────────────────────────────── */
.article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: var(--sp-4);
    transition: color var(--dur-fast) var(--ease-out);
}

.article-back:hover {
    color: var(--blue-600);
}

.article-back svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    transition: transform var(--dur-fast) var(--ease-out);
}

.article-back:hover svg {
    transform: translateX(-3px);
}

@media (max-width: 640px) {
    .prose>p:first-of-type::first-letter {
        font-size: 2.6em;
    }
}