/* V1.5 — Single Post: preserve the full original [fastcoc_single_article] design.
   The original .fc-sa-hero::before ring extends 170px beyond the right edge;
   the original article root uses overflow:visible, creating horizontal page scroll.
   Clip horizontally only (no new scroll container, so sticky TOC still works). */
body.single-post .fcnative-main { width:100%; max-width:100%; overflow-x:clip; }
body.single-post .fc-sa-page {
    width:100% !important;
    max-width:100% !important;
    overflow-x:clip !important;
    overflow-y:visible !important;
}
body.single-post .fc-sa-page .fc-sa-container {
    width:min(1180px, calc(100% - 48px)) !important;
    max-width:1180px;
    margin-inline:auto !important;
}
body.single-post .fc-sa-page .fc-sa-hero-grid {
    grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr) !important;
    gap:clamp(26px,4vw,68px) !important;
}
body.single-post .fc-sa-page .fc-sa-hero-content,
body.single-post .fc-sa-page .fc-sa-hero-media,
body.single-post .fc-sa-page .fc-sa-content-column {min-width:0;}
body.single-post .fc-sa-page .fc-sa-main-grid {
    grid-template-columns:minmax(0,1fr) minmax(245px,300px) !important;
    gap:clamp(24px,4vw,60px) !important;
}
body.single-post .fc-sa-page .fc-sa-content {
    min-width:0;
    overflow-wrap:break-word;
}
body.single-post .fc-sa-page .fc-sa-content img,
body.single-post .fc-sa-page .fc-sa-content iframe,
body.single-post .fc-sa-page .fc-sa-content video,
body.single-post .fc-sa-page .fc-sa-content figure {max-width:100%;}
body.single-post .fc-sa-page .fc-sa-content pre,
body.single-post .fc-sa-page .fc-sa-content table {max-width:100%;overflow-x:auto;}
@media(max-width:900px){
    body.single-post .fc-sa-page .fc-sa-hero-grid,
    body.single-post .fc-sa-page .fc-sa-main-grid {grid-template-columns:minmax(0,1fr) !important;gap:30px !important;}
    body.single-post .fc-sa-page .fc-sa-sidebar {display:none;}
}
@media(max-width:767px){
    body.single-post .fc-sa-page .fc-sa-container {width:calc(100% - 28px) !important;}
    body.single-post .fc-sa-page .fc-sa-hero-grid {gap:26px !important;}
    body.single-post .fc-sa-page .fc-sa-hero h1 {overflow-wrap:break-word;}
    body.single-post .fc-sa-page .fc-sa-featured-wrap {max-width:100%;}
}
/* Important: do not force overflow:hidden on body or article vertical axis.
   That would break the original sticky table of contents. */
