/* Removed @import rules. Ensure base.css, header.css, dialog.css, footer.css, and profile.css are linked in the HTML where needed. */

/* body.loading the-header {
    opacity: 1;
    transition: opacity 0s;
} */

body {
    overflow-y: scroll;
}

*:not(the-header):not(dialog) {
    transition: border .2s, color .2s, box-shadow .2s, text-shadow .2s, background .2s;
}

the-header {
    height: 4rem;
}

/* img.nsfw {
    filter: blur(.5rem);
}
body.is18 img.nsfw {
    filter: blur(0);
} */

body main .glow-button {
    align-self: center;
    font-weight: 800;
}

div.old-banner {
    max-width: calc(100% - 2rem);
    align-self: center;
    color: var(--primary-color);
    text-align: center;
    padding: .5rem;
    border: 1px solid rgba(var(--primary-rgb), .5);
    background: rgba(0, 0, 0, .75);
    border-radius: .25rem;
    backdrop-filter: blur(1rem);
    box-shadow: inset 0 0 2rem 0 rgba(var(--primary-rgb), calc(var(--glow-intensity) / 3)), 0px .25rem 1rem 0 rgb(0 0 0 / 50%);
}

/* --- Consolidated Index Content Block Styles --- */
div.old-banner,
main section.news {
    max-width: 60rem; /* Applied to both */
    align-self: center; /* Applied to both */
    border: 1px solid rgba(var(--primary-rgb), .5); /* Applied to both */
    background: rgba(0, 0, 0, .75); /* Applied to both */
    border-radius: .25rem; /* Applied to both */
    backdrop-filter: blur(1rem); /* Applied to both */
    box-shadow: 0px .25rem 1rem 0 rgb(0 0 0 / 50%), inset 0 0 2rem 0 rgba(var(--primary-rgb), calc(var(--glow-intensity) / 3)); /* Applied to both */
}

div.old-banner {
    /* Specific old-banner styles */
    max-width: calc(100% - 2rem); /* Overrides max-width */
    color: var(--primary-color);
    text-align: center;
    padding: .5rem;
}

main section.news {
    /* Specific news section styles */
    width: calc(100% - 2rem); /* Added from section base */
    padding: 1rem; /* Added from section base */
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1rem; /* Added from section base */
}
/* --- End Consolidated Index Content Block Styles --- */


div.old-banner a {
    color: var(--secondary-color);
    text-decoration: none;
}

main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    margin: 0 1rem;
    gap: 2rem;
    /* padding: 2rem; */
}

main div.divider {
    flex: 0 0 1px;
    background-color: rgba(var(--primary-rgb), .25);
}

main > div.divider {
    width: calc(100% - 2rem);
    max-width: 60rem;
    align-self: center;
}

main summary {
    flex: 0 0 20rem;
    display: flex;
    width: calc(100% - 2rem);
    max-width: 60rem;
    /* height: 20rem; */
    align-self: center;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: stretch;
    align-items: stretch;
    position: relative;
    gap: 2rem;
    margin-top: 1rem;
}

main summary div.text {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: stretch;
    align-items: stretch;
    align-self: center;
}

main summary div.text h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    padding: 0;
    margin: 0;
    text-shadow: 0 .5rem 1.5rem rgba(var(--primary-rgb), calc(var(--glow-intensity) / 2));
}
main summary div.text p {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--input-color);
    padding: 0;
    margin: 0;
    text-shadow: 0 .5rem 1.5rem rgba(var(--input-rgb), calc(var(--glow-intensity) / 3));
}

main summary div.text .glow-button {
    margin-top: 2rem;
}

main summary div.images {
    flex: 1 1 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    border-radius: .25rem;
    overflow: hidden;
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, .25);
}

/* main summary div.images img {
    flex: 0 0 25%;
    width: 25%;
    height: 25%;
    overflow: hidden;
    object-fit: cover;
} */
main summary div.images img {
    width: 100%;
    height: 100%;
}
/* main summary div.images img.loading {
    opacity: 0;
} */

main section {
    flex: 0 0 auto;
    display: flex;
    width: calc(100% - 2rem);
    max-width: 60rem;
    align-self: center;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    gap: 1rem;
    padding: 1rem;
    /* border: 1px solid rgba(var(--primary-rgb), .5);
    background: rgba(0, 0, 0, .75);
    border-radius: .25rem;
    backdrop-filter: blur(1rem);
    box-shadow: inset 0 0 2rem 0 rgba(var(--primary-rgb), calc(var(--glow-intensity) / 3)); */
    transition: opacity .5s;
}

main section.news-hero {
    flex: 0 0 10rem;
    display: flex;
    width: calc(100% - 2rem);
    max-width: 60rem;
    /* height: 20rem; */
    align-self: center;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: stretch;
    align-items: stretch;
    position: relative;
    gap: 2rem;
    margin-top: 1rem;
}

main section.news-hero div.text {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: stretch;
    align-items: stretch;
    align-self: center;
}

main section.news-hero div.text h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    padding: 0;
    margin: 0;
    text-shadow: 0 .5rem 1.5rem rgba(var(--primary-rgb), calc(var(--glow-intensity) / 2));
}
main section.news-hero div.text p {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--input-color);
    padding: 0;
    margin: 0;
    text-shadow: 0 .5rem 1.5rem rgba(var(--input-rgb), calc(var(--glow-intensity) / 3));
}

main section.news {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    /* border: 1px solid rgba(var(--primary-rgb), .5); */
    /* background: rgba(0, 0, 0, .75); */
    border-radius: .25rem;
    /* backdrop-filter: blur(1rem); */
    box-shadow: 0px .25rem 1rem 0 rgb(0 0 0 / 50%), inset 0 0 2rem 0 rgba(var(--primary-rgb), calc(var(--glow-intensity) / 3)); /* Base style applied above */
}
main section.news:last-of-type {
    margin-bottom: auto;
}
main section.news h1 {
    font-size: 1.5rem;
    padding: 0;
    margin: 0;
    font-weight: 800;
    color: var(--primary-color);
}

main section.news h1 span {
    color: var(--input-color);
    opacity: .75;
    font-size: .8rem;
    font-weight: 400;
    text-transform: uppercase;
    vertical-align: middle;
}

main section.news h2 {
    font-size: 1rem;
    font-weight: 800;
    padding: 0;
    margin: 0;
    color: var(--primary-color);
}

main section.news p {
    font-size: 1rem;
    padding: 0;
    margin: 0;
    color: var(--input-color);
    line-height: 1.5rem;
}
main section.news ul {
    padding: 0 0 0 1rem;
    margin: 0;
}
main section.news ul li {
    font-size: 1rem;
    padding: 0;
    margin: 0;
    color: var(--input-color);
    line-height: 1.5rem;
}
main section.news a {
    color: var(--secondary-color);
    text-decoration: none;
}

main section.features {
    overflow: hidden;
    padding: 0;
    position: relative;
    gap: 0;
}
main section.features div.previous, main section.features div.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    stroke: var(--primary-color);
    background: rgba(0, 0, 0, .5);
    padding: .75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity .2s;
}
main section.features div.previous {
    left: 0;
}
main section.features div.next {
    right: 0;
}
main section.features div.previous.disabled, main section.features div.next.disabled {
    opacity: 0;
    pointer-events: none;
}

main section.features div.feature {
    flex: 0 0 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: center;
    padding: 0 2rem;
    transform: translateX(calc(-100% * var(--feature-index)));
    transition: transform .5s;
}
main section.features div.feature div {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: .5rem;
    padding-left: 2rem;
}
main section.features div.feature div h1 {
    font-size: 2rem;
    color: var(--primary-color);
    padding: 0;
    margin: 0;
}
main section.features div.feature div p {
    font-size: 1.25rem;
    color: var(--input-color);
    padding: 0;
    margin: 0;
}
main section.features div.feature div a.glow-button {
    margin-top: 2rem;
}

main section.features div.feature img {
    flex: 0 0 auto;
    width: 18rem;
    height: 18rem;
    aspect-ratio: 1;
    object-fit: contain;
    border: 1px solid rgba(var(--primary-rgb), .25);
    border-radius: .25rem;
}

main section.social {
    flex-wrap: wrap;
    padding: 0;
    position: relative;
    gap: 1rem;
    align-items: center;
    justify-content: space-evenly;
}
main section.social > h1 {
    flex: 0 0 100%;
    margin: 0;
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    text-shadow: 0 .5rem 1.5rem rgba(236, 72, 153, calc(1 / 2));
}
main section.social .glow-button {
    align-self: center;
}

main section.community {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
}

main section.community > h1 {
    flex: 0 0 100%;
    margin: 0;
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    text-shadow: 0 .5rem 1.5rem rgba(236, 72, 153, calc(1 / 2));
}

main section.community a {
    flex: 0 0 20%;
    aspect-ratio: .8;
    background: rgba(0, 0, 0, .75);
    position: relative;
    border: none;
    overflow: hidden;
    border-radius: .25rem;
    text-decoration: none;
    outline: none;
    box-shadow: 0 .5rem 1.5rem rgba(var(--primary-rgb), calc(var(--glow-intensity) / 3));
    transition: transform .2s;
}
main section.community a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .2s;
}
main section.community a:hover {
    transform: scale(1.1);
}
main section.community a:hover img {
    transform: scale(1.25);
}
main section.community a h1 {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    mix-blend-mode: plus-lighter;
    margin: 0;
    text-shadow: 0 .5rem 1.5rem rgba(var(--primary-rgb), var(--glow-intensity)), 0 .5rem 1.5rem rgba(var(--primary-rgb), var(--glow-intensity)), 0 .5rem 1.5rem rgba(var(--primary-rgb), var(--glow-intensity));
    color: #ffffff;
    text-transform: uppercase;
    font-size: 1.125rem;
}

main section.tiers {
    flex-direction: row;
    justify-content: stretch;
    align-items: stretch;
    padding: 1.5rem;
    gap: 1.5rem;
}

main section.tiers div {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: stretch;
    column-gap: .5rem;
    position: relative;
}

main section.tiers div.divider {
    flex: 0 0 1px;
    align-self: stretch;
}

main section.tiers div svg {
    position: absolute;
    top: .25rem;
    left: -.25rem;
    width: 4rem;
    height: 4rem;
    fill: var(--primary-color);
    filter: drop-shadow(0 .25rem .35rem rgba(var(--primary-rgb), var(--glow-intensity)));
}
main section.tiers div h1 {
    flex: 0 0 auto;
    margin: 0;
    padding-left: 4rem;
    font-size: 2rem;
    color: var(--primary-color);
    text-shadow: 0 .5rem 1.5rem rgba(var(--primary-rgb), calc(var(--glow-intensity) / 2));
}
main section.tiers div p {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    color: var(--input-color);
    text-indent: 4rem;
    line-height: 2rem;
    margin-bottom: 1rem;
}
main section.tiers div .glow-button {
    margin-top: auto;
}

main section.subscription {
    align-items: stretch;
    border: 1px solid rgba(var(--primary-rgb), .5);
    background: rgba(0, 0, 0, .75);
    border-radius: .25rem;
    backdrop-filter: blur(1rem);
    box-shadow: inset 0 0 2rem 0 rgba(var(--primary-rgb), calc(var(--glow-intensity) / 3));
    gap: 2rem;
    padding: 2rem;
}

main section.subscription div:not(.divider) {
    flex: 1 1 0;
}

main section.subscription div {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 1rem;
}

main section.subscription div h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-color);
    text-shadow: 0 .5rem 1.5rem rgba(var(--primary-rgb), calc(var(--glow-intensity) / 2));
}

main section.subscription div h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--input-color);
}
main section.subscription div h3 span {
    font-size: 1rem;
}
main section.subscription div h3 span.strike {
    margin: .25rem;
    text-decoration: line-through;
    color: rgba(var(--input-rgb), .75);
}

main section.subscription div .glow-button {
    text-transform: none;
    font-size: 1.25rem;
    align-self: stretch;
    text-align: center;
    background: var(--primary-color);
    color: var(--input-color);
    text-shadow: 0 .5rem 1.5rem rgba(var(--input-rgb), calc(var(--glow-intensity) / 2));
    margin: auto 0;
}

main section.subscription div ul {
    list-style-type: '✓';
    padding-left: 1rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
main section.subscription div ul li {
    padding-left: .5rem;
}
main section.subscription div ul li::marker {
    color: var(--secondary-color);
}

main section.subscription div p {
    margin: 0;
    padding: 0;
    color: var(--secondary-color);
}

main section.contact {
    flex-direction: column;
    align-items: stretch;
}
main section.contact h1, main section.contact h2, main section.contact p {
    margin: 0;
    padding: 0;
}
main section.contact h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}
main section.contact h2 {
    font-size: 1.25rem;
    color: var(--secondary-color);
}
main section.contact p {
    font-size: 1rem;
    color: var(--input-color);
}
main section.contact p a {
    color: var(--secondary-color);
    text-decoration: none;
}
main section.contact ul {
    font-size: 1rem;
    color: var(--input-color);
}


main.guide {
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(var(--primary-rgb), .5);
    background: rgba(0, 0, 0, .75);
    border-radius: .25rem;
    backdrop-filter: blur(1rem);
    box-shadow: inset 0 0 2rem 0 rgba(var(--primary-rgb), calc(var(--glow-intensity) / 3));
    gap: 1rem;
    padding: 1rem;
}
main.guide h1, main.guide h2, main.guide p {
    margin: 0;
    padding: 0;
}
main.guide h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}
main.guide h2 {
    font-size: 1.25rem;
    color: var(--secondary-color);
}
main.guide h3 {
    font-size: 1rem;
    color: var(--secondary-color);
}
main.guide p {
    font-size: 1rem;
    color: var(--input-color);
}
main.guide img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}
main.guide p a {
    color: var(--secondary-color);
    text-decoration: none;
}
main.guide ul {
    font-size: 1rem;
    color: var(--input-color);
}
main.guide blockquote {
    padding: 0;
    margin: 0;
}
main.guide th {
    text-align: left;
    color: var(--secondary-color);
}


footer {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    font-weight: 300;
    color: var(--primary-color);
    column-gap: .5rem;
    row-gap: .25rem;
    margin: 0 1rem 1rem 1rem;
}
footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Removed redundant .glow-button definition (assuming covered by base.css) */

/*********** MEDIA QUERIES START HERE ***********/
@media only screen and (max-width: 480px) {
    main section.tiers {
        flex-direction: column;
    }
}
@media only screen and (max-width: 720px) {
 
    main {
        margin: 0;
        gap: 1.25rem;
    }

    main summary div.text h1 {
        font-size: 1.75rem;
    }
    main summary div.text p {
        font-size: 1rem;
    }

    main summary div.text .glow-button {
        font-size: 1.25rem;
        text-align: center;
        margin-top: 1rem;
    }

    /* main summary div.images img {
        flex: 0 0 33%;
        width: 33%;
        height: 25%;
    } */
    main summary {
        flex: 0 0 16rem;
        margin-top: 0;
        /* width: calc(100% - 1rem); */
    }
    main summary div.images {
        align-self: center;
    }
    main summary div.images img {
        flex: 0 0 auto;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    main section {
        /* width: calc(100% - 1rem); */
    }

    main section.features div.feature {
        flex-direction: column;
    }
    main section.features div.feature div {
        padding-top: 1rem;
        padding-left: 0;
    }

    main section.features div.feature div h1 {
        font-size: 1.5rem;
    }
    main section.features div.feature div p {
        font-size: 1rem;
    }

    main section.features div.feature img {
        width: 40vw;
        height: 40vw;
    }

    main section.features div.feature div a.glow-button {
        margin-top: 1rem;
    }

    main section.social > h1 {
        font-size: 1.5rem;
    }
    main section.community > h1 {
        font-size: 1.5rem;
    }
    main section.community a {
        flex: 0 0 40%;
    }

    main section.tiers {
        padding: 0;
    }
    main section.subscription {
        flex-direction: column;
    }
}
/*********** MEDIA QUERIES END HERE ***********/
