/* heading */
div.heading-with-tags,
section.heading-with-tags {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    display: flex;
    align-items: center;
    gap: 8.5px clamp(0.313rem, calc(-1.438rem + 3.5vw), 0.75rem);

    h1 {
        margin: 0;
    }

    .tag {
        display: flex;
        align-items: center;
        gap: clamp(0.313rem, calc(-0.937rem + 2.5vw), 0.625rem);
        font-size: clamp(0.875rem, calc(-0.625rem + 3vw), 1.25rem);
        font-weight: normal;
        border: 1px solid var(--color-black);
        border-radius: clamp(0.313rem, calc(-0.937rem + 2.5vw), 0.625rem);
        padding: 9px 10px;

        img.icon {
            width: clamp(1rem, calc(-1.25rem + 4.5vw), 1.563rem);
            height: clamp(1rem, calc(-1.25rem + 4.5vw), 1.563rem);
        }
    }

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

        & {
            flex-wrap: wrap;

            h1 {
                width: 100%;
            }
        }

    }
}

/* cta */
section.cta {
    background-color: var(--secondary-background-color);
    border-radius: 20px;
    padding: 25px;
    
    

    .highlight {
        background-color: rgba(253, 237, 5, .5);
        font-weight: bold;
        display: inline-flex;
        margin-block: 20px 0px;
        padding: 0.0625rem 0.25rem;
        gap: 5px;
        justify-items: center;
    }


    p:first-child {
        margin-top: 0;
    }

    p:last-child {
        margin-bottom: 0;
    }

}

/* hero  */
section.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    align-items: center;
    gap: clamp(2.5rem, calc(-3.75rem + 12.5vw), 4.063rem);
    min-height: 540px;   

    div.content {
        font-size: 1.125rem;
        padding-block: 26px;

        h6 {
            margin: 0;
            margin-bottom: 18px;
            text-wrap: balance;
        }

        h1 {
            margin: 0;
            font-size: clamp(1.438rem, calc(-1.812rem + 6.5vw), 2.25rem);
        }

        .buttons {
            display: flex;
            gap: 14px;
            margin: 32px 0 63px;
        }

        .footnote {
            font-size: 0.875rem;
            font-weight: 700;
        }
    }

    div.img {
        height: 100%;

        img,
        video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: var(--border-radius);
        }
    }

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

        & {
            height: auto;
            min-height: clamp(400px, calc(100dvh - 205px), 600px);
            align-items: flex-end;
            padding: 0;
            grid-template-columns: 1fr;
        }

        div.content {
            order: 2;
            color: var(--color-white);
            font-size: 0.875rem;

            h6 {
                margin: 0;
                margin-bottom: 0.9375rem;
                font-size: 0.75rem;
            }

            h1 {
                font-size: 1.5rem;
                line-height: 1.75rem;
            }

            .buttons {
                display: flex;
                gap: 0.625rem;
                margin: 0.75rem 0 1.5625rem;

                .outline {
                    border-color: var(--color-white);
                    color: var(--color-white);
                    font-weight: 700;
                }
            }

            .footnote {
                font-size: 0.875rem;
                font-weight: 700;
            }
        }


        div.img {
            position: absolute;
            order: 1;
            width: 100%;
            z-index: -1;

            &::after {
                position: absolute;
                content: ' ';
                background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%);
                width: 100%;
                height: 60%;
                bottom: 0px;
                left: 0px;
            }

            img,
            video {
                border-radius: 0;
            }
        }        

    }

}

/* links */
section.links {

    &.sticky {
        position: sticky;
        top: -2px;
        background: var(--color-yellow);
        z-index: 1;
    }

    ul,
    li {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    ul {
        display: flex;
        gap: 29px;
        justify-content: center;
        font-size: clamp(1rem, calc(0rem + 2vw), 1.25rem);


        li {
            a {
                display: block;
                width: 100%;
                text-align: center;
            }
        }
    }

    &.pad-block-off ul {
        padding-block: 0;
    }

    &.borders ul {
        padding: 1.125rem 0;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }

    @media screen and (max-width: 800px) {
        ul {
            gap: 12px;
            white-space: nowrap;
            border: none;
            overflow: auto;
            justify-content: flex-start;
            padding-right: 15vw !important;
            scrollbar-width: none;
            mask-image: linear-gradient(to right, black, black calc(100% - 80px), transparent);

            &::-webkit-scrollbar {
                display: none;
            }

            a {
                font-size: 1rem;
                white-space: nowrap;
            }

        }

    }

}

/* content */
section.content {

    >p:first-of-type {
        margin-top: 0;
    }
    >p:last-child {
        margin-bottom: 0;
    }

    details {
        margin-block-start: 1em;
        margin-block-end: 1em;



        summary {
            list-style: none;
            font-size: 0.875rem;
            color: var(--font-color);
            text-decoration: underline;
            text-decoration-thickness: 1px;
            text-underline-offset: 3px;
            cursor: pointer;
            user-select: none;
        }

        summary::-webkit-details-marker {
            display: none;
        }

        summary::after {
            content: '\00a0+';
        }

        &[open] summary::after {
            content: '\00a0-';
        }

    }

    p~details {
        margin-block-start: 0;
    }

    p:has(+ details) {
        margin-bottom: 0.3rem;
    }

}

/* legend */
section.legend {
    ul {
        padding: 0;
        margin: 0;
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        gap: 5px 25px;

        li {
            margin: 0;
            padding: 0;
            display: flex;
            text-wrap: pretty;
            gap: 8px;

            .icon {
                max-width: 22px;
                max-width: 14px;
            }
        }
    }
}

/* list thumbs */
section.list-thumbs {
    height: 230px;
    width: 100%;

    .prev,
    .next {
        position: absolute;
        top: 50%;
        width: 30px;
        height: 30px;
        transform: translate(0, -50%);
        left: -15px;
        border: 1px solid var(--font-color);
        outline: 12px solid var(--primary-background-color);
        border-radius: 100%;
        background: var(--primary-background-color) url(../img/icons/chevron-prev_b.svg) no-repeat 9px center;
        background-size: 30% auto;
        cursor: default;
        opacity: 0;
        transition: opacity 0.25s ease-out;
    }

    .next {
        left: auto;
        right: -15px;
        transform: translate(0, -50%);
        background-image: url(../img/icons/chevron-next_b.svg);
        background-position: 12px center;
    }

    .prev.active,
    .next.active {
        pointer-events: auto;
        opacity: 1;
        cursor: pointer;
    }

    .track {
        display: flex;
        gap: 28px;
        width: 100%;
        height: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
        border-radius: var(--border-radius);

        &::-webkit-scrollbar {
            display: none;
        }

        .item {

            position: relative;
            flex: 0 0 auto;
            width: 285px;
            height: 100%;
            scroll-snap-align: center;
            scroll-snap-stop: always;

            a {
                display: block;
                width: 100%;
                height: 100%;
                overflow: hidden;
                border-radius: var(--border-radius);

                img {
                    display: block;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }

                h3 {
                    position: absolute;
                    pointer-events: none;
                    top: 15px;
                    left: 15px;
                    max-width: calc(100% - 30px);
                    margin: 0;
                    padding: 0.188rem .5rem;
                    background-color: var(--primary-background-color);
                    border-radius: 0.625rem;
                    font-size: 0.875rem;
                    font-weight: 900;

                    span {
                        font-weight: normal;
                    }
                }

                div.note {
                    position: absolute;
                    bottom: 0px;
                    padding: 15px;
                    padding-left: 45px;
                    font-weight: 600;
                    text-decoration: underline;
                    color: var(--primary-color);
                    font-size: 0.875rem;
                }

                div.note:before {
                    position: absolute;
                    content: ' ';
                    display: block;
                    top: 0%;
                    left: 15px;
                    width: 20px;
                    height: 100%;
                    background-image: url(../img/icons/arrow_y.svg);
                    background-repeat: no-repeat;
                    background-position: center;
                }

            }

            &:has(.note, .content) a {
                &::before {
                    position: absolute;
                    content: ' ';
                    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%);
                    width: 100%;
                    height: 60%;
                    bottom: 0px;
                    left: 0px;
                }
            }
        }

    }

    &.content {
        .track {
            .item {

                h3 {
                    background-color: var(--color-offwhite);
                    font-weight: 600;
                }

                div.note {
                    color: var(--color-white);
                    padding-left: 15px;
                    text-decoration: none;

                    p {
                        margin: 0;
                        padding: 0;
                        font-weight: normal;
                    }

                    &:before {
                        background: none;
                    }

                }
            }
        }
    }

    &.wide {
        height: auto;
        aspect-ratio: 520/270;

        .track {

            .item {
                width: 100%;

                a {
                    img {
                        border-radius: var(--border-radius-mobile);
                    }
                }
            }
        }
    }

    &.posters {
        height: 450px;

        .track {
            .item {
                width: 294px;

                a {
                    display: flex;
                    flex-direction: column;
                    height: 100%;
                    text-decoration: none;
                    gap: 8px;

                    &:hover {
                        text-decoration: underline;
                    }

                    img {
                        flex: 1 1 auto;
                        border-radius: var(--border-radius);
                    }

                    h3 {
                        top: 0;
                        left: 0;
                        position: relative;
                        background: none;
                        width: 100%;
                        text-align: center;
                        font-size: 14px;

                    }


                }
            }
        }
    }

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

        & {
            height: auto;

            .prev,
            .next {
                width: 25px;
                height: 25px;
                left: -10px;
                outline: 7px solid var(--primary-background-color);
                background-position: center center;
                background-size: 35% auto;
            }

            .next {
                left: auto;
                right: -10px;
                background-image: url(../img/icons/chevron-next_b.svg);
                background-position: 7px center;
            }

            .track .item a {
                border-radius: var(--border-radius-mobile);
            }

        }

        &:not(.posters),
        &.wide {
            height: auto;
            height: 600px;
            aspect-ratio: 0.96 / 1;
            max-height: 300px;

            .track {
                border-radius: var(--border-radius-mobile);

                .item {
                    width: 100%;

                    a {
                        img {
                            border-radius: var(--border-radius-mobile);
                            max-height: 300px;
                        }
                    }
                }
            }

        }

        &.posters {

            .track {
                .item {
                    width: 294px;

                    a {
                        display: flex;
                        flex-direction: column;
                        height: 100%;
                        text-decoration: none;
                        gap: 8px;

                        &:hover {
                            text-decoration: underline;
                        }

                        img {
                            flex: 1 1 auto;
                            border-radius: var(--border-radius);
                        }

                        h3 {
                            top: 0;
                            left: 0;
                            position: relative;
                            background: none;
                            width: 100%;
                            text-align: center;
                            font-size: 14px;

                        }


                    }
                }
            }
        }

    }
}

/* list showcase */
section.list-showcase {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;

    .track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-flow: column;
        gap: 28px;
        width: 100%;
        height: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;

        &::-webkit-scrollbar {
            display: none;
        }

        >div {
            width: 200px;

            a {
                cursor: pointer;
            }

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                border-radius: 10px;
            }
        }

    }

    .controls {
        display: flex;
        align-items: center;

        .nav {
            display: flex;
            gap: 8px;
            width: 100%;
            user-select: none;

            a {
                width: 10px;
                height: 10px;
                border: 1px solid var(--font-color);
                border-radius: 100%;

                &.active {
                    background-color: #000;
                }
            }
        }

        .buttons {
            display: flex;
            gap: 10px;
            flex-wrap: nowrap;

            .prev,
            .next {
                width: 35px;
                height: 35px;
                border: 1px solid var(--font-color);
                border-radius: 100%;
                background: url(../img/icons/chevron-prev_b.svg) no-repeat 9px center;
                background-size: 30% auto;
                pointer-events: none;
                opacity: 0.4;
                transition: opacity 0.25s ease-out;
                user-select: none;
            }

            .next {
                background-image: url(../img/icons/chevron-next_b.svg);
                background-position: 12px center;
            }

            .prev.active,
            .next.active {
                pointer-events: auto;
                opacity: 1;
            }

        }

    }

    @media screen and (max-width: 650px) {
        gap: 12px;
    }
}

/* list grid */
section.list-grid {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.125rem 2.5rem;

    .item {

        display: flex;
        flex-direction: column;
        justify-content: flex-end;

        h3 {
            font-size: 1.625rem;
            margin: 0;
        }

        .content {
            flex: 1 1 auto;
            height: 100%;

            p {
                margin-block: 0.313rem;
            }

        }

        .img {
            flex: 0 0 auto;
            margin-top: 0.938rem;

            a {
                display: flex;
            }

            img,
            video {
                width: 100%;
                max-height: 270px;
                object-fit: cover;
                border-radius: var(--border-radius);
            }
        }

        .carousel {
            flex: 0 0 auto;
            margin-top: 0.938rem;

            .slides {
                display: flex;
                border-radius: 1.25rem;
                overflow-x: auto;
                scroll-snap-type: x mandatory;
                scroll-behavior: smooth;
                -webkit-overflow-scrolling: touch;
                -ms-overflow-style: none;
                scrollbar-width: none;

                &::-webkit-scrollbar {
                    display: none;
                }

                img {
                    flex: 0 0 auto;
                    width: 100%;
                    max-height: 270px;
                    scroll-snap-align: center;
                    object-fit: cover;
                }

            }

            .prev,
            .next {
                position: absolute;
                top: 50%;
                width: 30px;
                height: 30px;
                transform: translate(0, -50%);
                left: -15px;
                border: 1px solid var(--font-color);
                outline: 12px solid var(--primary-background-color);
                border-radius: 100%;
                background: var(--primary-background-color) url(../img/icons/chevron-prev_b.svg) no-repeat 9px center;
                background-size: 30% auto;
                pointer-events: none;
                opacity: 0;
                transition: opacity 0.25s ease-out;
            }

            .prev.active,
            .next.active {
                pointer-events: auto;
                opacity: 1;
            }

            .next {
                left: auto;
                right: -15px;
                transform: translate(0, -50%);
                background-image: url(../img/icons/chevron-next_b.svg);
                background-position: 12px center;
            }
        }

        >a {
            margin: 15px auto 0 0;
        }
    }

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

        & {
            grid-template-columns: 1fr;
            gap: 26px;
            padding: 0;

            &:not(.disable-mobile-bg) {
                background-color: var(--list-background-color);
            }
        }


        &:not(.disable-mobile-bg) .item:not(.featured) .carousel .prev,
        &:not(.disable-mobile-bg) .item:not(.featured) .carousel .next {
            outline: 7px solid var(--list-background-color);
            background-color: var(--list-background-color);
        }

        .item {

            h3 {
                order: 1;
                font-size: 1.5rem;
                padding: 0 10px;

                a {
                    text-decoration: none;
                }
            }

            .content {
                order: 3;
                padding: 0 10px;

                p {
                    margin: 0.313rem;
                }

                p:last-child {
                    margin-bottom: 0;
                }
            }

            .img {
                order: 2;
                flex: 0 0 auto;
                margin-top: 0.625rem;

                img {
                    border-radius: 0.9375rem;
                    aspect-ratio: 373/200;
                }
            }

            .carousel {
                order: 2;
                flex: 0 0 auto;
                margin-top: 0.625rem;

                .slides {
                    border-radius: 0.9375rem;

                    img {
                        aspect-ratio: 373/200;
                    }
                }

                .prev,
                .next {
                    width: 21px;
                    height: 21px;
                    left: 0px;
                    outline: 7px solid var(--primary-background-color);
                    background-position: center center;
                    background-size: 35% auto;
                }

                .next {
                    left: auto;
                    right: 0px;
                    background-image: url(../img/icons/chevron-next_b.svg);
                    background-position: 7px center;
                }

            }

            >a {
                order: 4;
                margin: 10px auto 0 10px;
            }

            &.featured {
                display: grid;
                grid-template-columns: 10px 16px 1fr 16px 10px;
                grid-template-rows: 10px 16px auto minmax(200px, 1fr) 36px 16px 10px;
                background-color: var(--primary-background-color);
                color: var(--color-white);
                padding: 0 0 1.938rem;

                .img {
                    grid-area: 2 / 2 / 7 / 5;
                    border-radius: var(--border-radius);
                    overflow: hidden;
                    margin: 0;

                    &::after {
                        position: absolute;
                        content: ' ';
                        background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 1) 100%);
                        width: 100%;
                        height: 60%;
                        bottom: 0px;
                        left: 0px;
                    }

                    img {
                        display: block;
                        height: 100%;
                        max-height: none;
                        border-radius: unset;
                    }
                }

                >h3 {
                    grid-area: 3 / 3;
                    z-index: 1;
                    margin: 0;
                }

                >.content {
                    grid-area: 4 / 3;
                    display: flex;
                    align-items: flex-end;
                    padding: 0;
                    padding-bottom: 10px;
                    z-index: 1;
                }

                >a {
                    grid-area: 5 / 3;
                    margin: 0 auto auto 0;
                    color: #FFF;
                    background-color: var(--primary-link-color-hover);
                    border-color: var(--primary-link-color-hover);
                }
            }

        }

    }

}

/* side split */
section.sidesplit {
    display: flex;
    gap: 20px;

    >div {
        width: 50%;

        h2 {
            margin: 0;
            margin-bottom: 1rem;
        }

        h2+p {
            margin-top: 0rem;
        }
    }

    &.split-left {
        >div:first-child {
            width: 40%;

            h1:only-child {
                margin-bottom: 0;
            }
        }

        >div:last-child {
            width: 60%;
        }
    }

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

        & {
            flex-direction: column;
        }

        &.split-break>div:first-child:after {
            position: absolute;
            content: '';
            display: block;
            margin-top: 10px;
            width: 100%;
            height: 1px;
            /* border-top: 1px solid #000; */
        }

        &,
        &.split-left {
            >div {
                width: 100% !important;

                p:last-child {
                    margin-bottom: 0;
                }
            }
        }

    }
}

/* columns */
section.columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;

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

        & {
            grid-template-columns: 1fr;
        }

    }
}

/* accordion */
section.accordion {

    & {
        border-bottom: 1px solid var(--border-color);
    }

    details {
        padding: 1.875rem 0;
        border-top: 1px solid var(--border-color);

        summary {
            list-style: none;
            font-size: 1.625rem;
            font-weight: 600;
            cursor: pointer;
            user-select: none;
            display: flex;
            gap: 0.625rem;           


            img {
                width: 20px;
                height: 20px;
            }

            &:has(img) {
                display: flex;
                gap: 10px;
                align-items: center;
            }

            &::after {
                flex: 0 0 auto;
                margin-left: auto;
                content: ' ';
                width: 1.625rem;
                height: 1.625rem;
                background: url(../img/icons/plus_b.svg) no-repeat center;
                border: 1px solid var(--border-color);
                border-radius: 100%;
                display: inline-block;
            }

            &::-webkit-details-marker {
                display: none;
            }

            span {
                flex: 0 0 auto;
            }
        }

        &[open] summary::after {
            background-image: url(../img/icons/minus_b.svg);
        }

        &[open] summary {
            margin-bottom: 1rem;
        }

        h2 {
            font-size: 18px;
            display: flex;
            align-items: center;
            gap: 5px;
            margin-bottom: 10px;
        }

        hr {
            margin: 20px 0;
            border-top: 1px dashed var(--color-half-black);
        }

    }

    &.accordion-inner-border {
        details {
            border-top: 1px solid var(--border-color);
        }
    }

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

        details {
            padding: 1.0625rem 0;


            summary {
                font-size: 1.25rem;


                &::after {
                    width: 1.3125rem;
                    height: 1.3125rem;
                }
            }

            >img {
                width: 100%;
                height: auto;
            }

        }

    }

    &.accordion-sub {
        border: none;

        details {
            border: none;
            padding: 0.9375rem 0;
            padding-right: 0px;

            summary {
                font-size: 1.375rem;
                padding-right: 0px;

                &:has(img) {
                    display: flex;
                    gap: 10px;
                    align-items: center;
                }

                img {
                    width: 20px;
                    height: 20px;
                }

                &::after {
                    margin-right: 0px;
                }
            }
        }

        @media screen and (max-width: 800px) {
            details {
                summary {
                    font-size: 1.125rem;
                }
            }
        }

    }

    &.accordion-small {
        border: none !important;

        details {
            border: none;
            padding: 0.8125rem 0;
            padding-right: 0px;

            summary {
                font-size: 1.125rem;
                font-weight: normal;
                padding-right: 0px;

                &::after {
                    margin-right: 0px;
                }
            }
        }

        details:first-child {
            padding-top: 0;
            ;
        }

        details:last-child {
            padding-bottom: 0;
            ;
        }

        @media screen and (max-width: 800px) {
            details {
                summary {
                    font-size: 1.125rem;
                }
            }
        }

    }

}

/* cotent with sidebar */
section.content-with-sidebar {
    
    display: flex;
    padding-block: 30px !important;
    gap: 50px;

    > div {
        width: 100%;
        &:first-child {
            max-width: 305px;
        }
    }

    aside {

        nav {
            ul {
                list-style: none;
                margin: 0;
                padding: 0;
            }
    
            li {
                border-top: 1px solid var(--border-color);
    
                &:last-child {
                    border-bottom: 1px solid var(--border-color);
                }
    
                a {
                    text-decoration: none;
                    font-size: 1.375rem;
                    padding-block: 1.25rem;
                    padding-right: 1.25rem;
                    display: block;
                    transition: font-weight 0.25s;
    
                    &:hover,
                    &.active {
                        font-weight: 700;
                    }
                }
    
            }
    
            @media screen and (max-width: 820px) {
    
                ul {
                    display: flex;
                    flex-wrap: wrap;
                    gap: 10px;
                    width: 100%;
    
                    li {
                        border: none;
                        display: block;
    
                        &:last-child {
                            border-bottom: none;
                        }
    
                        a {
                            display: inline-block;
                            white-space: nowrap;
                            padding: 0.5rem 0.75rem;
                            border-radius: 10px;
                            border: 1px solid var(--border-color);
                            font-size: 0.875rem;
                            font-weight: 700;
                            transition: background-color 0.25s, color 0.25s;
    
                            &:hover,
                            &.active {
                                background-color: var(--color-black);
                                color: var(--color-white);
                            }
                        }
                    }
                }
            }
        }
    }

    @media screen and (max-width: 800px) {
        & {
            flex-direction: column;
            gap: 25px;
            > div {
                &:first-child {
                    max-width: none;
                    border-bottom: 1px solid var(--color-black);
                    padding-bottom: 30px;
                }
               }
        }
    }
    
}