@media only screen and (max-width:799px) {
    .sidetoc {
        display: none !important;
    }
    .topsponsor-bsa {
        margin-top: 25px;
        margin-bottom: 25px;
        background-color: var(--bg);
        border: 1px solid var(--table-border-color);
        border-radius: 8px;
        padding: 5px;
        display: none; /*changed via JS once ad is loaded*/
        overflow: hidden;
    }
    .bottomsponsor-wrapper {
        margin-top: 25px;
    }
    .bottomsponsor,
    .bottomsponsor-bsa {
        margin-top: 25px;
        background-color: var(--bg);
        border: 1px solid var(--table-border-color);
        border-radius: 8px;
        padding: 5px;
        display: none; /*changed via JS once ad is loaded*/
        text-decoration: none !important;
    }
    .bottomsponsor {
        flex-direction: column;
    }
    .bottomsponsor-bsa {
        overflow: hidden;
    }
    .bottomsponsor img {
        height: auto;
        width: 40%;
        padding: 10px;        
        transition-property: all;
        transition-timing-function: cubic-bezier(.4,0,.2,1);
        transition-duration: .3s;
    }
    /* .bottomsponsor:hover img{
       width: 30%;
    } */
    .bottomsponsor .bottomsponsor-title{
        margin-top: 5px;
        margin-bottom: 5px;
        margin-left: 15px;
        margin-right: 15px;
        font-weight: 800;
        font-size: 2rem;
        color: var(--sponsor-fg);
    }
    .bottomsponsor .bottomsponsor-description{
        display:block;
        margin-top: 5px;
        margin-bottom: 15px;
        margin-left: 15px;
        margin-right: 15px;
        color: var(--sponsor-fg);        
        transition-property: all;
        transition-timing-function: cubic-bezier(.4,0,.2,1);
        transition-duration: .3s;
    }
    /* .bottomsponsor:hover .bottomsponsor-description{
        display:block;
    } */
    .bottomsponsor .bottomsponsor-cta{
        margin-top: auto;
        margin-bottom: 10px;
        margin-left: 20px;
        margin-right: 20px;
        text-align: center;
        padding: 7px;
        border-radius: 8px;
        background-color: var(--fg);
        color: var(--bg);
    }
}

@media only screen and (min-width:800px) {
    main {
        position: relative;
    }
    .topsponsor-bsa {
        margin: 0 auto 32px;
        width: min(100%, 760px);
        background-color: transparent;
        border: 1px solid color-mix(in srgb, var(--table-border-color) 70%, transparent);
        border-radius: 8px;
        padding: 12px;
        display: none; /*changed via JS once ad is loaded*/
        overflow: hidden;
        backdrop-filter: blur(6px);
    }
    .sidetoc {
        width: 250px;
        margin-top: 25px;
        background-color: transparent;
        position: relative;
    }
    .sidetoc-wrapper {
        position: fixed;
        width: 250px;
        height: calc(100vh - var(--menu-bar-height)  - 50px * 2);
        overflow: auto;
        display: flex;
        flex-direction: column;
        gap:20px;
        background-color: transparent;
    }
    .pagetoc {
        max-height: 60%;
        overflow: auto;
        border-left: 1px solid color-mix(in srgb, var(--table-border-color) 70%, transparent);
        border-radius: 12px;
        background: transparent;
        box-shadow: none;
        padding: 4px 4px;
    }
    .sidesponsor {
        max-height: 40%;
        height: 40%;
        background-color: transparent;
        border: 1px solid color-mix(in srgb, var(--table-border-color) 70%, transparent);
        border-radius: 8px;
        padding: 5px;
        display: none; /*changed via JS once ad is loaded*/
        flex-direction: column;
        text-decoration: none !important;
        backdrop-filter: blur(6px);
    }
    .sidesponsor img {
        height: auto;
        width: 60%;
        padding: 10px;        
        transition-property: all;
        transition-timing-function: cubic-bezier(.4,0,.2,1);
        transition-duration: .3s;
    }
    .sidesponsor:hover img{
       width: 30%;
    }
    .sidesponsor .sponsor-title{
        margin-top: 5px;
        margin-bottom: 5px;
        margin-left: 15px;
        margin-right: 15px;
        font-weight: 800;
        font-size: 2rem;
        color: var(--sponsor-fg);
    }
    .sidesponsor .sponsor-description{
        display:none;
        margin-top: 5px;
        margin-bottom: 15px;
        margin-left: 15px;
        margin-right: 15px;
        color: var(--sponsor-fg);        
        transition-property: all;
        transition-timing-function: cubic-bezier(.4,0,.2,1);
        transition-duration: .3s;
        overflow: scroll;
    }
    .sidesponsor:hover .sponsor-description{
        display:block;

    }
    .sidesponsor .sponsor-cta{
        margin-top: auto;
        margin-bottom: 10px;
        margin-left: 20px;
        margin-right: 20px;
        text-align: center;
        padding: 7px;
        border-radius: 8px;
        background-color: var(--fg);
        color: var(--bg);
    }
    .sidesponsor-bsa {
        max-height: 40%;
        height: 40%;
        background-color: transparent;
        border: 1px solid color-mix(in srgb, var(--table-border-color) 70%, transparent);
        border-radius: 8px;
        padding: 5px;
        display: none; /*changed via JS once ad is loaded*/
        overflow: hidden;
        backdrop-filter: blur(6px);
    }
    .bottomsponsor-wrapper {
        margin-top: 32px;
    }
    .bottomsponsor,
    .bottomsponsor-bsa {
        margin: 0 auto;
        width: min(100%, 760px);
        background-color: transparent;
        border: 1px solid color-mix(in srgb, var(--table-border-color) 70%, transparent);
        border-radius: 8px;
        padding: 12px;
        display: none; /*changed via JS once ad is loaded*/
        text-decoration: none !important;
        backdrop-filter: blur(6px);
    }
    .bottomsponsor {
        flex-direction: column;
    }
    .bottomsponsor-bsa {
        overflow: hidden;
    }
    .bottomsponsor img {
        height: auto;
        width: 40%;
        max-width: 240px;
        padding: 10px;
        transition-property: all;
        transition-timing-function: cubic-bezier(.4,0,.2,1);
        transition-duration: .3s;
    }
    .bottomsponsor .bottomsponsor-title {
        margin-top: 5px;
        margin-bottom: 5px;
        margin-left: 15px;
        margin-right: 15px;
        font-weight: 800;
        font-size: 2rem;
        color: var(--sponsor-fg);
    }
    .bottomsponsor .bottomsponsor-description {
        display: block;
        margin-top: 5px;
        margin-bottom: 15px;
        margin-left: 15px;
        margin-right: 15px;
        color: var(--sponsor-fg);
        transition-property: all;
        transition-timing-function: cubic-bezier(.4,0,.2,1);
        transition-duration: .3s;
    }
    .bottomsponsor .bottomsponsor-cta {
        margin-top: auto;
        margin-bottom: 10px;
        margin-left: 20px;
        margin-right: 20px;
        text-align: center;
        padding: 7px;
        border-radius: 8px;
        background-color: var(--fg);
        color: var(--bg);
    }

    .sidetoc-toggle {
        position: fixed;
        top: calc(var(--menu-bar-height) + 90px);
        width: 28px;
        height: 28px;
        border-radius: 9999px;
        border: 1px solid color-mix(in srgb, var(--sidebar-active) 50%, var(--table-border-color));
        background: color-mix(in srgb, var(--bg) 60%, transparent);
        color: var(--sidebar-active);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 12;
        transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    }
    .sidetoc-toggle .toggle-chevron {
        font-size: 12px;
        font-weight: 700;
        letter-spacing: -0.08em;
        text-shadow: 0 0 8px color-mix(in srgb, var(--sidebar-active) 60%, transparent);
    }

    .sidetoc-toggle:hover {
        background-color: color-mix(in srgb, var(--sidebar-active) 12%, transparent);
        color: var(--sidebar-active);
        transform: translateX(-2px);
    }

    html.sidetoc-hidden .sidetoc {
        width: 0;
        margin-top: 0;
    }

    html.sidetoc-hidden .sidetoc-wrapper {
        display: none;
    }

    html.sidetoc-hidden .sidetoc-toggle {
        transform: rotate(180deg);
    }

    .pagetoc a {
        border-left: none;
        color: color-mix(in srgb, var(--fg) 70%, var(--links)) !important;
        display: block;
        padding-bottom: 5px;
        padding-top: 5px;
        padding-left: 12px;
        padding-right: 12px;
        text-align: left;
        text-decoration: none;
        text-overflow: ellipsis;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        border-radius: 10px;
        font-size: 1.35rem;
        transition: color 0.2s ease, background-color 0.2s ease;
    }
    .pagetoc a:hover {
        background: linear-gradient(90deg, color-mix(in srgb, var(--links) 16%, transparent), transparent);
        color: color-mix(in srgb, var(--sidebar-active) 85%, var(--fg)) !important;
    }
    .pagetoc a.active {
        background: linear-gradient(90deg, color-mix(in srgb, var(--links) 24%, transparent), transparent);
        color: var(--sidebar-active) !important;
    }
    .pagetoc .pagetoc-H2 {
        padding-left: 20px;
    }
    .pagetoc .pagetoc-H3 {
        padding-left: 40px;
    }
    .pagetoc .pagetoc-H4 {
        padding-left: 60px;
    }
    .pagetoc .pagetoc-H5 {
        display: none;
    }
    .pagetoc .pagetoc-H6 {
        display: none;
    }
}

.bsa-crawler-slot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.bsa-pageviews-slot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.bsa-fixedfooter-slot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

@media only screen and (min-width: 0px) and (min-height: 0px) {
    #bsa-zone_1773736844679-9_123456 {
        min-height: 100px;
    }

    #bsa-zone_1773736987437-6_123456 {
        min-height: 100px;
    }

    #bsa-zone_1773065859037-5_123456 {
        min-height: 1px;
    }

    #bsa-zone_1770368463-7_123456 {
        min-height: 1px;
    }

    #bsa-zone_1770367111944-8_123456 {
        min-height: 1px;
    }

    #bsa-zone_1773737041447-5_123456 {
        min-height: 0px;
    }
}

@media only screen and (min-width: 770px) and (min-height: 0px) {
    #bsa-zone_1773736844679-9_123456 {
        min-height: 90px;
    }

    #bsa-zone_1773736987437-6_123456 {
        min-height: 280px;
    }

    #bsa-zone_1773065859037-5_123456 {
        min-height: 1px;
    }

    #bsa-zone_1770368463-7_123456 {
        min-height: 1px;
    }

    #bsa-zone_1770367111944-8_123456 {
        min-height: 1px;
    }
}

@media only screen and (min-width: 880px) and (min-height: 0px) {
    #bsa-zone_1773737041447-5_123456 {
        min-height: 250px;
    }
}
