/* Reading layout; shared cards, headings and badges live in blog.css. */
.fs-article-page {
    --article-ink: #201c25;
    --article-muted: #736878;
    --article-accent: #a21b69;
    color: var(--article-ink);
}

.fs-article-shell {
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
    padding: 24px 0 64px;
}

.fs-article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    margin-bottom: 32px;
    font-size: .8rem;
    line-height: 1.6;
    color: var(--article-muted);
}

.fs-article-breadcrumb a { color: var(--article-muted); }
.fs-article-breadcrumb a:hover { color: var(--article-accent); }

.fs-article-header {
    max-width: 1024px;
    margin: 0 auto 30px;
    text-align: center;
}

.fs-article-header .fs-blog-tags { justify-content: center; }

.fs-article-title {
    margin: 20px 0 24px;
    color: var(--article-ink);
    font-family: Poppins, sans-serif;
    font-size: clamp(1.65rem, 3.5vw, 2.65rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.025em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.fs-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--article-muted);
    font-size: .85rem;
}

.fs-article-author { display: inline-flex; align-items: center; gap: 9px; color: var(--article-ink); }
.fs-article-author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.fs-article-meta-dot { color: #b491ad; }

.fs-article-cover {
    max-width: 1024px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    background: #e7d7eb;
    box-shadow: 0 16px 48px #3d164b14;
}

.fs-article-cover img { display: block; width: 100%; height: auto; }

.fs-article-paper {
    max-width: 920px;
    margin: 24px auto 0;
    padding: clamp(24px, 5vw, 60px);
    border: 1px solid #eaddeb;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 40px #3d164b09;
}

.fs-article-prose {
    max-width: 72ch;
    margin-inline: auto;
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #49414e;
    overflow-wrap: anywhere;
}

.fs-article-prose p { margin: 0 0 1.35em; line-height: inherit; }
.fs-article-prose > p:first-child { font-size: 1.12em; color: #352839; }
.fs-article-prose > :first-child { margin-top: 0; }
.fs-article-prose > :last-child { margin-bottom: 0; }
.fs-article-prose strong, .fs-article-prose b { color: #302335; font-weight: 700; }

.fs-article-prose h2,
.fs-article-prose h3,
.fs-article-prose h4 {
    margin: 2em 0 .8em;
    color: var(--article-ink);
    font-weight: 700;
    line-height: 1.35;
    text-wrap: balance;
}

.fs-article-prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
.fs-article-prose h3 { font-size: 1.2rem; }
.fs-article-prose h4 { font-size: 1.05rem; }
.fs-article-prose a { color: var(--article-accent); text-decoration: underline !important; text-underline-offset: 3px; }
.fs-article-prose a:hover { color: #68113f; }
.fs-article-prose ul, .fs-article-prose ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.fs-article-prose li { padding-left: .25em; margin-bottom: .5em; }
.fs-article-prose li::marker { color: var(--article-accent); }
.fs-article-prose li > p:last-child { margin-bottom: 0; }

.fs-article-prose blockquote {
    margin: 1.8em 0;
    padding: 20px 24px;
    border: 0;
    border-left: 3px solid #ca408f;
    border-radius: 0 12px 12px 0;
    background: linear-gradient(100deg, #fbecf5, #fcf9fd);
    color: #573348;
}

.fs-article-prose blockquote p:last-child { margin-bottom: 0; }
.fs-article-prose hr { margin: 2em 0; border: 0; border-top: 1px solid #e5d6e5; opacity: 1; }
.fs-article-prose pre { max-width: 100%; padding: 16px; overflow-x: auto; border-radius: 10px; background: #f6f1f7; }
.fs-article-prose code { color: #8c245d; }

.fs-article-footer {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #eee4ee;
}

.fs-article-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--article-accent);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.6;
}

.fs-article-back:hover { color: #601b49; }
.fs-article-page a:focus-visible { outline: 3px solid #9b2e77; outline-offset: 5px; border-radius: 3px; }
.fs-article-empty { padding: 48px 24px; text-align: center; border-radius: 20px; background: #fff; }

.fs-article-related { margin-top: clamp(40px, 6vw, 72px); }
.fs-article-related-heading { text-align: center; margin-bottom: 32px; }
.fs-article-related-heading .fs-blog-heading { margin-bottom: 22px; }

@media (max-width: 575.98px) {
    .fs-article-shell { width: calc(100% - 24px); padding-top: 18px; padding-bottom: 40px; }
    .fs-article-breadcrumb { gap: 6px 8px; margin-bottom: 26px; font-size: .72rem; }
    .fs-article-title { margin-top: 16px; }
    .fs-article-header { padding-inline: 6px; margin-bottom: 24px; }
    .fs-article-cover, .fs-article-paper { border-radius: 12px; }
    .fs-article-paper { margin-top: 16px; padding: 26px 20px; }
    .fs-article-prose { font-size: 1rem; line-height: 1.8; }
    .fs-article-prose > p:first-child { font-size: 1.06em; }
    .fs-article-prose blockquote { padding: 16px; }
}

