/* ===== Hero ===== */
.blogArticle__hero {
    padding-top: 60px;
    padding-bottom: 60px;
}

.blogArticle__breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.blogArticle__breadcrumbs p,
.blogArticle__breadcrumbs a {
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF !important;
}

.blogArticle__breadcrumbs span {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #ADADAD !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 260px;
}

.blogArticle__breadcrumbs_arrow {
    width: 6px;
    height: 12px;
}

.blogArticle__heroInner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 846px;
    margin: 0 auto;
}

.blogArticle__subhead {
    max-width: 780px;
    color: #C2C2C2 !important;
}

.blogArticle__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.blogArticle__author_avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 100px;
    background-color: var(--orangePrimary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blogArticle__author_avatar p {
    color: #fff !important;
    font-weight: 600;
    font-size: 20px;
}

/* smaller variant used inside the related-post cards */
.blogArticle__author_avatar--sm {
    width: 40px;
    height: 40px;
    min-width: 40px;
}

.blogArticle__author_avatar--sm p {
    font-size: 16px;
}

.blogArticle__author_name p:first-child {
    color: #fff !important;
    font-weight: 500;
    font-size: 16px;
}

.blogArticle__author_name p:last-child {
    color: #ADADAD !important;
    font-size: 14px;
}

/* ===== Body wrapper ===== */
.blogArticle__body {
    padding-top: 60px;
}

/* html/body have a site-wide `overflow-x: hidden`, which forces the other
   axis into a scroll container and silently breaks `position: sticky`
   descendants. `clip` clips the same way but doesn't trigger that coupling,
   so it's a drop-in fix scoped to this page only (this stylesheet is only
   loaded here). */
html,
body {
    overflow-x: clip !important;
}

/* ===== Layout: sidebar + content ===== */
.blogArticle__layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.blogArticle__toc {
    flex: 0 0 285px;
    width: 285px;
    align-self: flex-start;
}

.blogArticle__toc h3 {
    color: #fff;
}

.blogArticle__content {
    flex: 1;
    min-width: 0;
}

/* Desktop-only sidebar look for the TOC. Below this breakpoint the shared
   .toc__container rules from toc.css (same as index.html) take over untouched. */
@media (min-width: 1341px) {
    .blogArticle__toc {
        position: sticky;
        /* header>div is position:fixed, 102px tall, z-index:100 — stick below it */
        top: 122px;
    }

    .blogArticle__content {
        border-left: 1px solid #2C2C2C;
        padding-left: 40px;
    }

    .blogArticle__toc .toc__container {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .blogArticle__toc .toc__container>ul {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .blogArticle__toc .toc__container>ul>li {
        margin-right: 0 !important;
        width: 100%;
    }

    .blogArticle__toc .toc__container>ul a {
        display: block;
        width: auto;
        padding: 0 !important;
        background: none !important;
        border: none !important;
        text-align: left;
        color: #ADADAD !important;
        font-weight: 500;
    }

    .blogArticle__toc .toc__container>ul a:hover {
        color: #fff !important;
        background: none !important;
        scale: 1;
    }
}

/* ===== Meta row (date / read time) ===== */
.blogArticle__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.blogArticle__meta p {
    color: #999999 !important;
    font-size: 16px;
    font-weight: 500;
}

.blogArticle__meta span {
    width: 4px;
    height: 4px;
    border-radius: 100px;
    background-color: #999999;
    display: inline-block;
}

/* ===== Article sections ===== */
.blogArticle__sections {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* flex items default to min-width:auto, so a wide descendant (the
   min-width:768px comparison table) would otherwise force this column,
   and the whole page, wider than the viewport on mobile. */
.blogArticle__sections>section {
    min-width: 0;
}

.blogArticle__sections h2 {
    color: #fff;
}

.blogArticle__sections>section>p {
    color: #ADADAD !important;
}

.blogArticle__image {
    width: 100%;
    height: 580px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    margin: 24px 0;
}

.blogArticle__listIntro {
    color: #ADADAD !important;
}

.blogArticle__numberedList {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.blogArticle__numberedList li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.blogArticle__numberedList li span {
    color: #ADADAD !important;
    font-weight: 500;
    min-width: 18px;
}

.blogArticle__numberedList li p {
    color: #ADADAD !important;
}

/* ===== Pros / checklist ===== */
.blogArticle__pros {
    margin-top: 24px;
}

.blogArticle__pros h4 {
    color: #fff;
}

.blogArticle__checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blogArticle__checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blogArticle__checklist li img {
    width: 20px;
    height: 20px;
    min-width: 20px;
}

.blogArticle__checklist li p {
    color: #ADADAD !important;
}

/* ===== Related posts ===== */
.blogArticle__related {
    background-image: url(/assets/images/howToBG.webp);
    background-repeat: no-repeat;
    background-size: cover;
    padding: 88px 0;
}

.blogArticle__related h2 {
    color: #fff;
}

.blogArticle__relatedGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.blogArticle__relatedCard {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    background-color: var(--ultraDark50);
    border-radius: 16px;
}

.blogArticle__relatedCard_img {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

.blogArticle__relatedCard h3 {
    color: #fff;
}

.blogArticle__relatedCard>div>p {
    color: #ADADAD !important;
}

.blogArticle__relatedCard .blogArticle__author {
    margin-top: auto;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .blogArticle__hero {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .blogArticle__body {
        padding-top: 30px;
    }

    .blogArticle__related {
        padding: 30px 0;
    }

    .blogArticle__breadcrumbs {
        justify-content: flex-start;
        margin-bottom: 24px;
    }

    .blogArticle__breadcrumbs span {
        max-width: 140px;
    }

    .blogArticle__heroInner {
        align-items: flex-start;
    }

    .blogArticle__subhead,
    .blogArticle__author {
        text-align: left;
    }

    .blogArticle__layout {
        flex-direction: column;
        /* base rule uses align-items:flex-start for the desktop row layout
           (sidebar shouldn't stretch to content's height); in this
           column layout that instead shrinks children to their content's
           width, letting the table's min-width push .blogArticle__content
           (and the whole page) wider than the viewport. */
        align-items: stretch;
        gap: 24px;
    }

    .blogArticle__toc {
        width: 100%;
        flex-basis: auto;
    }

    .blogArticle__image {
        height: 220px;
    }

    .blogArticle__relatedGrid {
        grid-template-columns: 1fr;
    }

    .blogArticle__relatedCard {
        padding: 20px;
    }

    /* keep the table usable down to very narrow phones instead of forcing
       the full desktop 768px min-width (see .blogArticle__sections>section
       min-width:0 above, which stops it from widening the whole page).
       !important: this stylesheet loads before the site's bundled
       table.css (equal-specificity `.table__wrapper table` rule), so
       source order alone wouldn't let this win. */
    .table__wrapper table {
        min-width: 360px !important;
    }

    /* table.css gives the second column `padding: 20px 0` (no left/right
       padding at all), so its text touches the first column with no gap.
       !important for the same source-order reason as above. */
    .table__wrapper table thead th p,
    .table__wrapper table tbody td p {
        padding: 14px 12px !important;
        font-size: 14px;
    }

    .table__wrapper table thead th:first-child p,
    .table__wrapper table tbody td:first-child p {
        padding: 14px 12px 14px 16px !important;
    }
}