#bloggy--article .bggle_video {
    min-height: auto !important;
}

#bloggy--article img {
    object-fit: cover;
}

#bloggy--article .bggle--block img {
    border-radius: 10px;
}

#bloggy--article .bggle_video.bggle--block video {
    border-radius: 10px;
}


#bloggy--article table thead tr {
    text-align: left;
}

.article-template__hero-container {
    padding: 0 2rem;
}

.caption-with-letter-spacing-article{
    font-size: 12px;
    font-weight: 300;
}

@media screen and (min-width: 780px) {
    .caption-with-letter-spacing-article {
        font-size: 14px;
    }
    .article-template__hero-container {
        max-width: 80rem !important;
        padding: 0;
    }

    .article-main-left {
        padding-top: calc(8rem + var(--page-width-margin));
    }

    #bloggy--article .bggle--block img {
        border-radius: 16px;
    }

    #bloggy--article .bggle_video.bggle--block video {
        border-radius: 16px;
    }
}



.article-template__hero-container .article-template__hero-adapt {
    border-radius: 16px;
}

    .bggle_table-of-content {
        display: none;
    }

@media screen and (max-width: 780px) {

    #bloggy--article .bggle-toc-summaryV2 {
        flex-direction: row-reverse;
        justify-content: space-between;
    }
    #bloggy--article .bggle_table-of-content {
        background-color: #fff !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.bggle_video {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.bggle_video .bggle--youtube-container {
    border-radius: 16px;
}

.article-template__social-sharing {
    margin-top: 0px !important;
}

/* PC TOC styles */
#toc-pc .table-of-contents {
    list-style: none;
    margin: 0;
    padding: 0;
}

#toc-pc .table-of-contents li {
    list-style: none;
    margin: 0;
}

#toc-pc .table-of-contents li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    text-decoration: none;
    color: rgba(var(--color-foreground), 0.75);
}

/* Level-specific text sizing and row height */
#toc-pc .table-of-contents li.toc-level-2 > a {
    min-height: 70px;
    font-weight: 600;
    font-size: 16px;
}

#toc-pc .table-of-contents li.toc-level-3 > a {
    min-height: 52px;
    font-weight: 500;
    font-size: 15px;
}

#toc-pc .table-of-contents li.toc-level-4 > a,
#toc-pc .table-of-contents li.toc-level-5 > a,
#toc-pc .table-of-contents li.toc-level-6 > a {
    min-height: 48px;
    font-weight: 500;
    font-size: 14px;
}

/* Indentation by level (16px step) */
#toc-pc .table-of-contents li.toc-level-3 { margin-left: 16px; }
#toc-pc .table-of-contents li.toc-level-4 { margin-left: 32px; }
#toc-pc .table-of-contents li.toc-level-5 { margin-left: 48px; }
#toc-pc .table-of-contents li.toc-level-6 { margin-left: 64px; }

/* Active state */
#toc-pc .table-of-contents li.is-active > a {
    background: #F8F8F8; /* from SVG design */
    color: rgba(var(--color-foreground), 1);
}

/* Sub-list inside H2 */
#toc-pc .table-of-contents li.toc-level-2 > ul {
    margin: 0;
    padding: 0;
}

/* Collapse/expand behavior */
#toc-pc .table-of-contents li.toc-level-2.is-collapsed > ul {
    display: none;
}

/* Right chevron for H2 items with children (visual only) */
#toc-pc .table-of-contents li.toc-level-2.has-children > a {
    position: relative;
    padding-right: 28px; /* space for chevron */
}

#toc-pc .table-of-contents li.toc-level-2.has-children > a::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid rgba(0,0,0,1);
    border-bottom: 1.5px solid rgba(0,0,0,1);
    transform: translateY(-50%) rotate(-45deg); /* down */
    transform-origin: center;
}

#toc-pc .table-of-contents li.toc-level-2.has-children.is-expanded > a::after,
#toc-pc .table-of-contents li.toc-level-2.has-children.is-active > a::after {
    transform: translateY(-50%) rotate(135deg); /* up */
}

/* Text overflow handling: clamp to 2 lines */
#toc-pc .table-of-contents li > a {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

/* Ensure headings don't hide behind header/sticky TOC on anchor jump */
.article-template__content h2,
.article-template__content h3,
.article-template__content h4,
.article-template__content h5,
.article-template__content h6 {
    scroll-margin-top: calc(5rem + var(--page-width-margin));
}

.toc-toggle-btn {
    background-image: url(/assets/toc-button.svg);
    width: 48px;
    height: 48px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    padding: 0;
    cursor: pointer;
    background-color: transparent;
}

@media screen and (min-width: 1024px) {
    .rte #bloggy--article .bggle_button-link.zz-blog-button {
        font-size: 16px;
    }
    .rte #bloggy--article .bggle_button-link.zz-blog-button-link {
        font-size: 16px;

    }
}

iframe.instagram-media {
    max-width: 300px !important;
}